LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   how can I quit the desktop, to run shell only? (https://www.linuxquestions.org/questions/linux-newbie-8/how-can-i-quit-the-desktop-to-run-shell-only-179000/)

noot 05-07-2004 12:43 PM

how can I quit the desktop, to run shell only?
 
I'm running a linux half-life server, and I want to know how I can quit the "x windows system" or whatever it's called, so I'm running only the server, not all the pretty GUI stuff.
thanks

noot

pmrent 05-07-2004 12:54 PM

if you have the X11 stuff installed all you have to do is open a terminal and type "inittab" and the run level you want. (it might be init. Don't remember)
so,
inittab 3 = text / server mode
inittab 5 = gui mode

This works on the fly.
If you want to do it permanently you have to edit the /etc/inittab file. You'll see a list if run levels and below that there is the level your currently running. See below.

# Default runlevel. The runlevels used by RHS are:
# 0 - halt (Do NOT set initdefault to this)
# 1 - Single user mode
# 2 - Multiuser, without NFS (The same as 3, if you do not have networking)
# 3 - Full multiuser mode
# 4 - unused
# 5 - X11
# 6 - reboot (Do NOT set initdefault to this)
#
id:5:initdefault:

Being a newbei myself I leave the inittab file at 5 (the gui) and do the above commands to get to text. Somethings are just easier in the gui.

Hope this helps.
Good Luck
Pete

Crito 05-07-2004 01:01 PM

telinit 3
is the "right" way, but calling init directly usually works too

pmrent 05-07-2004 01:03 PM

That's right.
Thank You.

adm1329 05-07-2004 01:03 PM

If you prefer to start up in text all the time it's pretty easy. As pmrent said just open up a terminal and
Code:

cd /etc
vi inittab

you'll see
# Default runlevel. The runlevels used by RHS are:
# 0 - halt (Do NOT set initdefault to this)
# 1 - Single user mode
# 2 - Multiuser, without NFS (The same as 3, if you do not have networking)
# 3 - Full multiuser mode
# 4 - unused
# 5 - X11
# 6 - reboot (Do NOT set initdefault to this)
#
id:5:initdefault:

Just change the id:5:initdefault: to id:3:initdefault:
save the file and then reboot.


All times are GMT -5. The time now is 03:34 PM.