Latest LQ Deal: Linux Power User Bundle
Go Back > Forums > Linux Forums > Linux - Newbie
User Name
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!


  Search this Thread
Old 06-25-2004, 08:44 PM   #1
Registered: Feb 2004
Location: Reno, Nevada
Distribution: Mandrake 9.2
Posts: 221

Rep: Reputation: 30
How do you change INIT startup to level 3 (graphical) from command line?

Anyone kno the command? I've tryed logging in as root and going back into startingx, but it wont let me. Any way to change the level to 3 from the command line before you start X? (I think its 3, to the graphical startup, thats what I want). Thanks

Ive seen posts saying "Edit the etc/inttab file" or something like that, but how do I go about editing it from the command line before starting X?

Last edited by Fear58; 06-25-2004 at 08:46 PM.
Old 06-25-2004, 09:02 PM   #2
LQ Guru
Registered: Aug 2001
Location: Fargo, ND
Distribution: SuSE AMD64
Posts: 15,733

Rep: Reputation: 677Reputation: 677Reputation: 677Reputation: 677Reputation: 677Reputation: 677
On most distros, the graphical run level is 5. Run level 3 is the one you are starting out with.

Changing the line which looks like this:
to this

will change the default run level to level 5 (graphic). This assumes that one of the login managers like kdm or gdm or xdm are installed. If you installed a distro, they should be installed and setup. If you installed your own linux yourself (Linux From Scratch) then you would have more work to do.

You can use vim or emacs to edit the file, however whatever you use, you need to su to root to be able to save it.

If all you want to do is start the gui (kde or gnome or other), you can enter startx. To enter another run level, as root enter: init <runlevel>. This will start the services that need starting. The startx command will do the same thing.

Last edited by jschiwal; 06-25-2004 at 09:06 PM.
Old 06-25-2004, 09:15 PM   #3
Senior Member
Registered: Oct 2002
Distribution: Slackware, Windows 7
Posts: 1,253

Rep: Reputation: 55
if you are not comfortable with VIm or emacs, I might suggest pico or the editor in mc.

Login as root.
pico /etc/inittab



navigate to the file, choose edit (F4)

Both work from the command line and are fairly easy to figure out.



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 can I go to the windows screen from the command line on suse, on run level 3? abefroman SUSE / openSUSE 1 05-08-2005 08:00 PM
change security level in command-line kantoboy Mandriva 3 08-31-2004 07:07 AM
how do i change the graphical res. from command line? justin9 Linux - Newbie 6 03-27-2004 05:16 AM
How to Change Mandrake Security Level in the command line miketheninja Linux - General 1 03-04-2004 05:45 PM
change refresh rate during graphical startup mmail75 Fedora 1 12-11-2003 04:41 PM > Forums > Linux Forums > Linux - Newbie

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

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