LinuxQuestions.org
Go Job Hunting at the LQ Job Marketplace
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 10-30-2003, 05:42 PM   #1
ejennings_98
Member
 
Registered: Sep 2003
Location: Canada, West Coast
Distribution: Mandriva 2012.1 i586 & x86_64
Posts: 69

Rep: Reputation: 15
What is run level?


Okay, here is a real newbie question for all of you.

What is runlevel? In a different thread, someone had mentioned running a particular command at a specific run level. What is meant by that?

Eric
 
Old 10-30-2003, 06:02 PM   #2
xexix
Member
 
Registered: Oct 2003
Location: Long Island, N.Y., U.S.A
Distribution: Gentoo, Slackware
Posts: 79

Rep: Reputation: 15
runlevels are controlled by the first process that gets run: init. init is responsible for creating new processes, and cleaning up children. init has different "runlevels" to distinguish the types of services it should run. The following is a list of typical runlevels.

# 0 = halt
# 1 = single user mode (simple shell)
# 2 = unused (but configured the same as runlevel 3)
# 3 = multiuser mode (usually many virtual terminals)
# 4 = X11 with KDM/GDM/XDM (session managers)
# 5 = unused (but configured the same as runlevel 3)
# 6 = reboot

The /etc/inittab file controls what init should do when entering those runlevels. They are usually scripts that help you initialize your system. As well as properly shutting down the system. Most users do their stuff in runlevels 3 and 4. To switch your runlevel: telinit n, where n is the new runlevel.
 
Old 10-30-2003, 06:07 PM   #3
ejennings_98
Member
 
Registered: Sep 2003
Location: Canada, West Coast
Distribution: Mandriva 2012.1 i586 & x86_64
Posts: 69

Original Poster
Rep: Reputation: 15
Thank you for your quick reply. I guess there are a number of Linux/Unix concepts that still elude me. But answers like yours are very helpfull and every bit helps.

Thanks, Eric
 
Old 10-30-2003, 06:12 PM   #4
jsbush
LQ Newbie
 
Registered: Oct 2003
Posts: 22

Rep: Reputation: 15
In redhat 7.2 it's

# 0 = halt (shutdown)
# 1 = single user mode (simple shell)
# 2 = multisuer without network
# 3 = multiuser mode
# 4 = unused
# 5 = X11 GUI
# 6 = reboot
7-9=unused
 
Old 10-30-2003, 08:24 PM   #5
joseph
Member
 
Registered: Jul 2003
Location: Batam
Distribution: Ubuntu 10 And Linux Mint
Posts: 414

Rep: Reputation: 30
Quote:
Originally posted by ejennings_98
Thank you for your quick reply. I guess there are a number of Linux/Unix concepts that still elude me. But answers like yours are very helpfull and every bit helps.

Thanks, Eric
but you should be sure about your run level coz there are some differences in some distro, such as redhat, slackware, suse.
 
Old 10-30-2003, 08:33 PM   #6
vincebs
Member
 
Registered: Oct 2003
Location: Mississauga, ON
Distribution: Ubuntu 9.04
Posts: 494

Rep: Reputation: 30
I upgraded my XFree86 system and now GNOME doesn't run automatically anymore. Any way I can fix this?

Also, how can I switch from a text-login to a graphical login at startup?
 
Old 10-30-2003, 08:40 PM   #7
frandalla
Member
 
Registered: Oct 2003
Location: Tokyo - Japan
Distribution: Slackware
Posts: 348
Blog Entries: 1

Rep: Reputation: 37
through /etc/inittab you can change from graphical and texto login..... it's easy to see... it shows you a list of run levels and change to the one set as Graphical Login.... (usually 4 but may be 5 too)
 
Old 10-30-2003, 08:41 PM   #8
joseph
Member
 
Registered: Jul 2003
Location: Batam
Distribution: Ubuntu 10 And Linux Mint
Posts: 414

Rep: Reputation: 30
Quote:
Originally posted by vincebs
I upgraded my XFree86 system and now GNOME doesn't run automatically anymore. Any way I can fix this?
Try to reinstall your XFree86 system.

Quote:
Also, how can I switch from a text-login to a graphical login at startup?
vi /etc/inittab, search for entry init:3 and change it to init:5 (usually init:5 is runlevel for XWindow)
 
Old 11-05-2003, 05:46 PM   #9
vincebs
Member
 
Registered: Oct 2003
Location: Mississauga, ON
Distribution: Ubuntu 9.04
Posts: 494

Rep: Reputation: 30
So how do I upgrade XFree86 without screwing up my gnome desktop?

Right now when I switch to run level 5, it loads the X Window screen, and hangs displaying only the xconsole, no window manager, and no login. The only way for me to get into GNOME is to boot into run level 3, run xdm, log in again with the XFree86 login screen, close the TWM window manager, and load GNOME using the xterms.
 
  


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
What is Run Level? Khmer Linux - General 5 10-18-2005 01:25 PM
Run Level 3 webwolf70 Mandriva 5 01-17-2005 11:41 PM
run level whaase Linux - General 3 10-07-2002 10:07 PM
Run Level POWERBOOKM Linux - Newbie 2 12-01-2001 09:44 PM
run level isajera Linux - Software 2 06-22-2001 08:20 AM


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