LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Debian
User Name
Password
Debian This forum is for the discussion of Debian Linux.

Notices


Reply
  Search this Thread
Old 03-17-2005, 07:36 AM   #1
Swampy
Member
 
Registered: Jan 2003
Location: Dover, Kent
Distribution: Debian 6.0.1 (Squeeze)
Posts: 133

Rep: Reputation: 15
Can startx as root, not as User


I have set up a graphical environment on my Laptop & am very happy with it. gdm loads up on boot & Gnome works happily.

However, I tried just going back to a command line system, starting the graphical environment when I need it.

I installed sysvconfig & disabled gdm.

When I reboot the machine I login to a text prompt fine, but when I try to startx the X server appears to start (I get a graphical background with "X" cursor) then X crashes & I am back to the command line.

I tried this as root & Gnome starts up with no problems. There appears to be no discernable difference in the text output after I stop X as root & after the crash as myself.

Is there anything obvious that I'm doing wrong, or not set up?

Running Debian Sarge on a Sony Vaio.
 
Old 03-17-2005, 08:11 AM   #2
Tuttle
Senior Member
 
Registered: Jul 2003
Location: Wellington, NZ
Distribution: mainly slackware
Posts: 1,291

Rep: Reputation: 52
you could try deleting your ~/.xinitrc and ~/.xsession files and do a:
Code:
ln -s /etc/X11/xinit/xinitrc.gnome ~/.xinitrc
if that exists on debian sarge?!
Then startx.
 
Old 03-17-2005, 08:12 AM   #3
DarkstarNL
LQ Newbie
 
Registered: Oct 2003
Location: The Netherlands
Distribution: Debian Sarge
Posts: 22

Rep: Reputation: 15
can you post your /etc/X11/Xwrapper.config??

there is a line called allowed_users in there it should be console in your case!
 
Old 03-17-2005, 09:58 AM   #4
johnMG
Member
 
Registered: Jul 2003
Location: CT, USA
Distribution: Debian Sarge (server), Etch (work/home)
Posts: 601

Rep: Reputation: 32
There appears to be no discernable difference in the text output after I stop X as root & after the crash as myself.

Then it doesn't really sound like X is "crashing"... more likely it starts up correctly, finds something it doesn't like, then quits.

If you use sysvconfig to re-enable gdm, do things go back to X working correctly for you?
 
Old 03-19-2005, 06:04 AM   #5
Swampy
Member
 
Registered: Jan 2003
Location: Dover, Kent
Distribution: Debian 6.0.1 (Squeeze)
Posts: 133

Original Poster
Rep: Reputation: 15
Knew it was something obvious I'd missed.

I had an .xsession file set up fine. Gdm, when enabled, worked fine & logged me it.

I had neglected to create a .xinitrc file

I entered the following:

exec fluxbox & wmpid=$!

gkrellm -w &
rxvt -fg white -bg black &

wait $wmpid

into my.xinitrc file, entered startx & all was well.

Forgive my ignorance & thanks for your advice.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Cannot startx as non-root user paul.nel Linux - General 1 04-07-2005 03:51 PM
unable to startx as non-root user raska Slackware 7 11-22-2004 07:41 PM
startx doesn't startx for user vdemuth Mandriva 10 11-08-2004 08:41 PM
Only root can startx lamedavis Linux - Software 3 02-24-2004 12:46 AM
Can't startX as user (KDE 3.1)... root is fine Spislander Debian 1 01-01-2004 09:04 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Debian

All times are GMT -5. The time now is 02:41 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration