Re: X-server problem
No need to CC me, I am subscribed.
Note: I am running Wheezy, but I am fairly sure this applies to Squeeze.
On Wed, Mar 14, 2012 at 10:51:23AM +0100, Andriy Samsonyuk wrote:
> > On Tue, Mar 13, 2012 at 12:26:53PM +0100, Andriy Samsonyuk wrote:
> > > Hello,
> > >
> > > i am currenttly running debian 6.0 with 2.6.32-5-486 on CF-27 (toughbook)
> > > 300MHz Pentium II with 128MB RAM.
> > >
> > > I dont need a desktop (gnome, kde, etc) but would like to have X-server running.
> >
> > Fine. You should consider using a window manager like fvwm though.
> i intend to, but not fvwm, i prefer evilwm. But first i wanted to make sure
> X is running.
> >
> > > X starts for root, but not for non-root user
> > > user is in groups: users, tty, audio, video
> > ^^^
> > Weird, a normal user isn't in that group by default.
> you are right, i put the user in the group (it did not helped) ;-)
> >
> > > /etc/X11/Xwrapper.config is set to
> > > allowed_users=anybody
> >
> > Mmmm, mine is set to:
> > allowed_users=console
> this did not helped too ;-)
But its back to "allowed_users=console", right?
> i am starting from scratch - reinstalled X + default configuration
Mmmm, unfortunately that won't overide any config files you may have
changed.
> > How are you starting X? We need to know the exact commands.
> i have a xinit line in my .profile and exec /.../evilwm in .xinitrc
> usual configuration, that always worked (at least at 5 different PCs)
> and here i am getting
> X: user not authorized to run the X server
What version of Debian were you running when it last worked?
Things *have* changed. For example, .xinitrc has been replaced with an
.xsessionrc, also you no longer need any "exec /.../evilwm" stuff. (see
below)
errors go in to .xsession-errors - anything in there?
So you know about checking "/var/log/Xorg.0.log"?
> and after playing around with files, permissions i got:
> xf86OpenConsole: Cannot open /dev/tty0 (No such file or directory)
I wouldn't play around with file permissions, unless you are correcting
them.
> > First of all, Don't Panic! The good thing about Debian is, it is
> > fixable.
> i know, thats why i like it so much
Excellent! You'll be half way there then.
> > Can you remember the changes you have done?
> mostly, aber i set everything to default configurations, just to
> be sure
The error "X: user not authorized to run the X server" makes me a bit
doubtful, although ...
Right, first comment out any lines you have added to .profile
2nd - rename .xinitrc to .xsessionrc
3rd - comment out any exec stuff in your .xsessionrc
Example
=======
All I have is:
tal% less .xsessionrc
/home/chrisb/background.sh &
xterm -fn 10x20 -xrm "XTerm.vt100.background: #CCA8AA" -xrm \
"XTerm.vt100.foreground: blue" -geom 50x25 &
And believe it or not fvwm starts ... because
root@tal:~# ls -al /etc/alternatives/x-window-manager
lrwxrwxrwx 1 root root 14 Mar 14 2011 /etc/alternatives/x-window-manager -> /usr/bin/fvwm2
Have a look at "/etc/X11/Xsession.d/50x11-common_determine-startup"
Hopefully you haven't altered any files under /etc/X11/, right?
Is this enough to go on?
Remember, "/var/log/Xorg.0.log" is your friend. :)
Don't hesitate to post back if you are stuck.
Good luck.
P.S. We still haven't considered your graphics card yet, so there may
still be problems. Again - Don't Panic!
--
"Religion is excellent stuff for keeping common people quiet."
-- Napoleon Bonaparte
Reply to: