LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 09-30-2003, 07:43 PM   #1
Risetaker2003
LQ Newbie
 
Registered: Aug 2003
Location: CA
Posts: 27

Rep: Reputation: 15
Exit X


Maybe some body can help me? How do I exit X once I login as root user? And how do I browse to the home dir of the root user so I can execute the nvidia run file once I'm in text mode?
 
Old 09-30-2003, 07:51 PM   #2
Thymox
Senior Member
 
Registered: Apr 2001
Location: Plymouth, England.
Distribution: Debian + Ubuntu
Posts: 4,358

Rep: Reputation: 57
To leave X you can press <CTRL>+<ALT>+<BackSpace>. This kills the X server/client (which, I can't remember). If you boot to a GUI login by defeault then the chances are that it'll take you back to your GUI login.

A better way, however, would be:
Edit (as root) the file /etc/inittab. Change the line id:5:initdefault: to id:3:initdefault:. Run the installer program, edit your X config file accordingly and then test it by typing startx. If all is OK, then re-edit the /etc/inittab file and change the 3 back to a 5. If you want, reboot - or, since this is Linux - type init 5.

Hope this helps.
 
Old 09-30-2003, 08:00 PM   #3
viniosity
Member
 
Registered: Oct 2001
Location: Washington, DC
Distribution: Debian, Archlinux, Ubuntu, Sidux
Posts: 244

Rep: Reputation: 30
You don't say which distro you're using, but the above won't work for Debian. Debian nicely relaunches X after you hit <CTRL> + <ALT> + <Backspace>. Also, changing the init level in /etc/inittab won't work either. The command you have to use in Debian is a little uglier:

update-rc.d -f xdm remove && update-rc.d xdm start 99 3 4 5 . stop 99 0 1 2 6 .

This will allow you to reboot your machine to the command line. I assume if you want to reverse it you would swap the 'remove' for 'add' (though I haven't tested that.)
 
Old 09-30-2003, 08:06 PM   #4
Thymox
Senior Member
 
Registered: Apr 2001
Location: Plymouth, England.
Distribution: Debian + Ubuntu
Posts: 4,358

Rep: Reputation: 57
So, under Debian you can't edit your inittab file and run init 3 either? I can appreciate that pressing CABackSpace will simply relaunch the login (as I said above) but I think that has more to do with XDM than Debian.
 
Old 09-30-2003, 08:08 PM   #5
Risetaker2003
LQ Newbie
 
Registered: Aug 2003
Location: CA
Posts: 27

Original Poster
Rep: Reputation: 15
Redhat
 
Old 09-30-2003, 08:10 PM   #6
mossy
Member
 
Registered: Aug 2003
Location: USexIRL
Distribution: *nix
Posts: 849

Rep: Reputation: 30
to simply "exit X once I login as root user" you can click on the start [kicker] and logout.

if you are in a console or in text mode you can type:
logout
which will out of root mode.

when you login to any userid it will automatically start off in it's home directory - this includes su/root.
 
  


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
How to exit vi? lommer0 Linux - General 15 02-19-2012 06:17 AM
difference between exit 1 and exit kushalkoolwal Programming 6 10-20-2005 03:56 PM
exit X ? w00t Linux - Newbie 11 06-01-2003 08:04 PM
exit xlord Programming 7 11-03-2002 11:33 AM


All times are GMT -5. The time now is 10:11 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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration