LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Ubuntu (https://www.linuxquestions.org/questions/ubuntu-63/)
-   -   Why Run Level 2 by Default? (https://www.linuxquestions.org/questions/ubuntu-63/why-run-level-2-by-default-356356/)

aquaboot 08-23-2005 10:47 PM

Why Run Level 2 by Default?
 
Hi All,

I've just installed Ubuntu 5.04. The default runlevel in /etc/inittab is runlevel 2. What is the difference between this and runlevel 5? I'm used to RL 5 being the x11 multiuser mode (like in Redhat FC 3). I ask this because after being logged into an X session, I come home and find out that the X server has stopped and I'm at a standard non-gui (RL 3 type) login prompt. What's this all about?

Thanks Much,

aquaboot

linux=future 08-23-2005 11:14 PM

Ubuntu boots in runlevel 2, and on the first reboot it also installs additional packages then. Ubuntu will then go to runlevel 5 by default, and if it can't go to 5 for some reason it goes to 3.

aquaboot 08-24-2005 01:19 PM

Thanks for the reply.

I have a very basic, default install and have not modified boot parameters. I've done probably 8 reboots since the initial install. /etc/inittab was set default at run level 2 and remained that way despite reboots until I manually changed it to 5 last night. Hmm...

-aquaboot

reddazz 08-24-2005 01:57 PM

Debian and most of its derivatives use runlevel two for everything. To get back into the equivalent of runlevel 5, you would have to do as root
Code:

#/etc/init.d/gdm start (replace gdm with kdm if you use kdm)
To stop the xserver like runlevel 3, you would do something like
Code:

#/etc/init.d/gdm stop
There is a way to make sure that you always login to a gui. I think it involves using dpkg to reconfigure the xserver.

aquaboot 08-24-2005 07:50 PM

thanks for the advise. I'll give it a try. :-)

-aquaboot


All times are GMT -5. The time now is 07:41 AM.