RPiScrub
Posts: 9
Joined: Tue Nov 11, 2014 8:15 am

Unable to use 'startx'

Tue Nov 11, 2014 8:27 am

Hi guys, the problem started first when i tried to do 'auto login and auto startx' from this website.

http://www.raspberrypi-spy.co.uk/2012/0 ... load-lxde/

http://elinux.org/RPi_Debian_Auto_Login

I have tried both methods suggested in the website, the only thing that worked is the auto login, but the 'auto startx' does not work for some reason.

I am sure that many of you out there have tried this before and it may or may not have worked for you. So i am hoping that you guys could help me rectify this problem that i am facing right now.

After typing startx, the screen shows;

No protocol specified
..
xinit: giving up
xinit: unable to connect to X server: Resource temporarily unavailable

waiting for X server to shut down Server terminated successfully (0). Closing log file.

xinit: server error
xauth: timeout in locking authority file /home/pi/.Xauthority

-------------------------------------------------------------------------------------------------------------------------------------------------------------------------

Please do not suggest me to rename the files, the problem is i am unable to access into the normal home page itself, let alone know how to rename the files. It is because everytime i type startx, the same thing repeats itself over and over again.

Thanks for helping

User avatar
DougieLawson
Posts: 39124
Joined: Sun Jun 16, 2013 11:19 pm
Location: A small cave in deepest darkest Basingstoke, UK
Contact: Website Twitter

Re: Unable to use 'startx'

Tue Nov 11, 2014 8:30 am

rm ~/.Xauthority
Note: Any requirement to use a crystal ball or mind reading will result in me ignoring your question.

Criticising any questions is banned on this forum.

Any DMs sent on Twitter will be answered next month.
All non-medical doctors are on my foes list.

RPiScrub
Posts: 9
Joined: Tue Nov 11, 2014 8:15 am

Re: Unable to use 'startx'

Thu Nov 13, 2014 3:12 pm

@ DougieLawson

Thanks a lot for helping me!!

It works now. Thanks a lot!!! :)))))))))))))))))))))))))))))))

yangz
Posts: 6
Joined: Mon Jan 25, 2016 4:23 am

Re: Unable to use 'startx'

Mon Jan 25, 2016 6:34 am

I also encountered the similar question ! The information below is my board and OS:

board: Raspberry Pi 2 B
os: Ubuntu mate 15.10

I can't logged into my count even the password is correct. So I followed your guide: sudo rm ./Xauthority .
Congratulations ! It's work ! Thank you :D

Return to “Beginners”