Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question?
If it is not in the man pages or the how-to's this is the place! |
Notices |
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
|
|
04-13-2004, 04:46 PM
|
#1
|
Member
Registered: Nov 2002
Location: Pennsylvania
Distribution: Mandrake 9.1 and Redhat 9
Posts: 144
Rep:
|
xfree86 locking problem
Hey everybody. I've been using linux well for the past year, and all of a sudden after a bad shutdownk, i had a problem related to the x server crash. I was able to see the output after typing startx into the console, and here it is:
xauth: error in locking authority file /home/benjamin/.Xauthority
xauth: error in locking authority file /home/benjamin/.Xauthority
xauth: error in locking authority file /home/benjamin/.Xauthority
xauth: error in locking authority file /home/benjamin/.Xauthority
Fatal server error:
Can't read lock file /tmp/.X0-lock
giving up.
xinit: Connection refused (errno 111): unable to connect to X server
xinit: No such process (errno 3): Server error.
xauth: error in locking authority file /home/benjamin/.Xauthority
And then it terminated. If i switched to root the message was the same except for the directory-- /root/.Xauthority. What do i need to do to get the X server back up and running? I use a simple AGP intel Direct video card, and everything had been working before...thanks for your contributions.
-----------------------
Ben Frison
|
|
|
04-13-2004, 05:14 PM
|
#2
|
Member
Registered: Mar 2004
Location: US
Distribution: Redhat 9 - Linux 2.6.3
Posts: 836
Rep:
|
first delete all /tmp/.X*-lock files,
If it starts then, its because the lock files were never deleted when the X server crashed.
If that doesnt help,
Then delete theose /tmp/*-lock files AND rename the .Xauthority files to something other than .Xauthority
and retry startx.
These files will be automatically generated upon startup.
startx as root first then properly do:
shutdown now -r and relogin as normal user then startx as regular user.
Post back . the deleteion of the lock files and renaming Xauthority files should do the trick.
also make sure /tmp is not mounted read-only .
Last edited by AutOPSY; 04-13-2004 at 05:15 PM.
|
|
|
04-13-2004, 05:32 PM
|
#3
|
Member
Registered: Nov 2002
Location: Pennsylvania
Distribution: Mandrake 9.1 and Redhat 9
Posts: 144
Original Poster
Rep:
|
Thanks for your reply, but it still isn't working. in fact, when i went to check where those files were ( . X-0 and . Xauthority), .X-0 wasn't there. tmp is mounted r and w, and when i started the X server after deleting the .Xauthority-c file i found, it came up with exactly the same message
|
|
|
04-13-2004, 07:11 PM
|
#4
|
Member
Registered: Nov 2002
Location: Pennsylvania
Distribution: Mandrake 9.1 and Redhat 9
Posts: 144
Original Poster
Rep:
|
hi again. I discovered that this is an authorizing problem with my x -server. somehow the .xAuthority file is unlocked or locked by the .X0-lock, and every time i boot up this .X0-lock file isn't there. Any suggestions are appreciated, because i'm not sure what i'm doing here.
|
|
|
04-14-2004, 05:26 PM
|
#5
|
Member
Registered: Nov 2002
Location: Pennsylvania
Distribution: Mandrake 9.1 and Redhat 9
Posts: 144
Original Poster
Rep:
|
anything else?
|
|
|
04-14-2004, 08:01 PM
|
#6
|
Senior Member
Registered: Oct 2002
Distribution: Slackware
Posts: 1,348
|
Can you start x as root?
Can you create a new user and start x as that user.
What are the permissions on the /home/benjamin/.Xauthority file.
Last edited by Franklin; 04-14-2004 at 08:06 PM.
|
|
|
04-14-2004, 08:04 PM
|
#7
|
Member
Registered: Nov 2002
Location: Pennsylvania
Distribution: Mandrake 9.1 and Redhat 9
Posts: 144
Original Poster
Rep:
|
when i log onto root start x doesn't work, with the same problems as when i startx on my regular user
|
|
|
04-14-2004, 08:26 PM
|
#8
|
Senior Member
Registered: Oct 2002
Distribution: Slackware
Posts: 1,348
|
Your login manager script may be corrupted.
Start linux in run level 3
login as root
type xdm, gdm, or kdm (try all three) instead of startx and see what happens.
|
|
|
04-14-2004, 09:04 PM
|
#9
|
Member
Registered: Nov 2002
Location: Pennsylvania
Distribution: Mandrake 9.1 and Redhat 9
Posts: 144
Original Poster
Rep:
|
Thanks for your help franklin--it almost worked. I typed in xdm--nothing. then gdm... an error screen was brought up, and i went into an x config program, setting it to not automatically reload whenever i boot. After that, gdm retried the x server and it worked, sending me to a gdm graphic user login. However, i wanted to figure out if this would work every time i rebooted. And it has failed ever since. I do have another clue: here was the initial error screen that comes up when executing gdm:
execve failed for /etc/X11/X (errno 40)
Any suggestions welcome
|
|
|
04-14-2004, 09:06 PM
|
#10
|
Member
Registered: Nov 2002
Location: Pennsylvania
Distribution: Mandrake 9.1 and Redhat 9
Posts: 144
Original Poster
Rep:
|
oh yes, and there is nothing in the .Xauthority files
|
|
|
04-14-2004, 11:47 PM
|
#11
|
Senior Member
Registered: Oct 2002
Distribution: Slackware
Posts: 1,348
|
What were you doing when you crashed initially?
Any new drivers/hardware? (i.e. video card)
Have you looked at the logs /var/log/xdm.errors, /var/log/XFree86.x.x.log?
|
|
|
04-14-2004, 11:59 PM
|
#12
|
Senior Member
Registered: Oct 2002
Distribution: Slackware
Posts: 1,348
|
I found this while googling your error...
Quote:
After doing some more investigating. I figured it out. I soon found that I could not read or write any files in my home directory. I logged in as root and saw that root had taken ownership of my home directory. I "chown" the directory back to me as root and now all is back to normal. Oh well, maybe this post will help someone else with the same problem.
|
Check the ownership of the /home/benjamin/.Xauthority file.
http://lantech.geekvenue.net/chuckti...264/index_html
The link may help.... ??
Just some random thots.
|
|
|
All times are GMT -5. The time now is 06:02 AM.
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|