LinuxQuestions.org
Review your favorite Linux distribution.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 05-07-2004, 01:43 PM   #1
noot
LQ Newbie
 
Registered: May 2004
Posts: 4

Rep: Reputation: 0
Question 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
 
Old 05-07-2004, 01:54 PM   #2
pmrent
LQ Newbie
 
Registered: May 2004
Location: Green Bay, WI
Distribution: RH 9 RHE 2.1 3.0
Posts: 27

Rep: Reputation: 15
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
 
Old 05-07-2004, 02:01 PM   #3
Crito
Senior Member
 
Registered: Nov 2003
Location: Knoxville, TN
Distribution: Kubuntu 9.04
Posts: 1,168

Rep: Reputation: 53
telinit 3
is the "right" way, but calling init directly usually works too
 
Old 05-07-2004, 02:03 PM   #4
pmrent
LQ Newbie
 
Registered: May 2004
Location: Green Bay, WI
Distribution: RH 9 RHE 2.1 3.0
Posts: 27

Rep: Reputation: 15
That's right.
Thank You.
 
Old 05-07-2004, 02:03 PM   #5
adm1329
Member
 
Registered: Mar 2004
Distribution: CentOS 5
Posts: 128

Rep: Reputation: 17
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.
 
  


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
fluxbox : desktop shell gletare Linux - Newbie 4 11-06-2005 01:27 PM
How do I switch the desktop shell in 10.2? wellander Slackware 5 10-25-2005 12:27 PM
getting a desktop from shell paul_dundee Linux - Newbie 3 04-09-2005 10:34 AM
Howto run a program for 15 seconds and let it quit itself. bglnelissen Programming 3 03-16-2005 10:37 AM
How do I get to the desktop/Shell? James McDowall Linux - Newbie 3 06-18-2004 08:18 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 10:04 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