LinuxQuestions.org
Review your favorite Linux distribution.
Home Forums Tutorials Articles Register
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 06-25-2004, 07:44 PM   #1
Fear58
Member
 
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 07:46 PM.
 
Old 06-25-2004, 08:02 PM   #2
jschiwal
LQ Guru
 
Registered: Aug 2001
Location: Fargo, ND
Distribution: SuSE AMD64
Posts: 15,733

Rep: Reputation: 682Reputation: 682Reputation: 682Reputation: 682Reputation: 682Reputation: 682
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:
id:3:initdefault:
to this
id:5:initdefault:

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 08:06 PM.
 
Old 06-25-2004, 08:15 PM   #3
Franklin
Senior Member
 
Registered: Oct 2002
Distribution: Slackware
Posts: 1,348

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

Login as root.
pico /etc/inittab

or

mc

navigate to the file, choose edit (F4)

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


HTH
 
  


Reply



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 07:00 PM
change security level in command-line kantoboy Mandriva 3 08-31-2004 06:07 AM
how do i change the graphical res. from command line? justin9 Linux - Newbie 6 03-27-2004 04:16 AM
How to Change Mandrake Security Level in the command line miketheninja Linux - General 1 03-04-2004 04:45 PM
change refresh rate during graphical startup mmail75 Fedora 1 12-11-2003 03:41 PM

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

All times are GMT -5. The time now is 12:40 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
Open Source Consulting | Domain Registration