X won't start as user, works as root...SOLVED!
I am running Debian sarge on a Panasonic toughbook. I have been running this system daily for several months without a problem. I have not recently recompiled my kernel or anything like that. The only thing I have done is update/upgrade the system with apt-get.
Last time I shutdown, everything seemed to be working fine. Next time I boot up, I cannot start X as a user. However, if I su to root and type startx, I get into the X server fine. I have posted my XFree log. What has happened that my user can't get into X, but root does? /var/log/XFree86.0.log: Code:
Warning: font renderer for ".pcf" already registered at priority 0 |
I also had that pb with debian
The thing is your /home/$USER/.xinit and /home/$USER/.xserverrc files have been damaged or they have inapropriate access rights.My suggestion is to simply delete them , thus forcing the startx script to load the default ones from /etc/X11/xinit/ .
|
Re: I also had that pb with debian
Quote:
I checked...and I don't have any files named .xinit and .xserverrc on my system. Not even under the root directory. |
hmmm :-?
My guess is that they /etc/X11/xinit do not have the apropriate rights.Try changing their rights . These are my files ...
Code:
-rw-r--r-- 1 root root xinitrc If this fails i'm out of suggestions :D . I'll try to remember if there were other things i tried because i remember i had the same pb and actually solved it ! |
Re: hmmm :-?
Well... no dice.
My permissions are the same as yours. Deleting the user did not do anything. I even tried creating a new user...but I got an error that there was no .Xauthority file. That is a little disturbing as well. Quote:
|
what errors do you see when you do
startx as a user? |
What I originally posted is all that I see when I try startx as a user...other than the typical output from XF86config-4...but there is nothing else unusual.
What makes is strange is that root can get in fine...which means that my X system must be working properly...but something user specific is messed up. I even tried replacing my .Xauthority file for my user with the one from root...but I get the same errors. Quote:
|
maybe it's the fontserver. Do all users have read access to all the font directories?
Also, you probably have something like fontpath "unix:-7100" in your X config file. What happens if you replace it with explicit fontpath specifications? Say: FontPath /usr/X11R6/lib/fonts, /usr/share/fonts, ... just give a list of all the directories with your fonts. |
Quote:
Code:
# XF86Config-4 (XFree86 X Window System server configuration file) Code:
drwxr-xr-x 10 root root 4096 Sep 18 08:45 . |
hmmm. it looks all right. What happens when you comment out the line FontPath "unix:-7100" and try to start X?
|
Quote:
|
hm. When you startx as a user and it fails, there are no error messages on the screen?
How about: startx /etc/X11/xinit/xinitrc |
Quote:
Unfortunately I left my laptop at work this evening, so I will have to try your command tomorrow morning. I had a download running that I didn't want to kill...so I left it at the office. (Although subconsciously I think I needed a break from it. This problem is really driving me CRAZY!) |
Quote:
|
the user's x-related files are those hidden files starting with .x and .X. Well not all since there are things like .xine. I have
.xinitrc .xsession .Xauthority .Xdefaults .Xresources They can be deleted or backed-up to another place w/o problem since X will replace them with the defaults if not found. I'm wondering if it's your window/desktop manager that's acting up - if the wm/dm exits, X will exit as well (in general, if the last thing that gets started during X startup exits, X exits with it). You can start just X with an xterm with startx /usr/X11R6/bin/xterm maybe this works? |
All times are GMT -5. The time now is 03:54 PM. |