Joined: Aug 13, 2004 Posts: 335 Location: Maysville, KY
Posted: Mon Jun 05, 2006 1:55 pm Post subject: Ubuntu / Debian distros and not starting gui on bootup
An MLUG member asked me a question regarding Debian installation and disabling a gui on startup, and for the first time I thought about it.
Most people familiar with Red Hat operating systems knows this is commonly called runlevel 3 but debian-like operating systems really only have 2 runlevels. Most people familar with red hat-like operating systems know you edit the /etc/inittab file and change the default runlevel from 5 to 3 and this takes care of it. However, the default runlevel in debian is only 2 and changing to 3, 4, or even 5 won't make a difference.
This is why:
By default Debian only uses 2 run levels. It's redhat and derived distributions that have created the trend of runlevel 3 being 'multiuser no gui' and runlevel 5 being 'multiuser gui'. Debian is not the only distro to behave this way. The official tool to use in debian to manipulate runlevel scripts is update-rc.d (like chkconfig in redhat and others).
The default runlevel in debian is 2, if you dont want X to start at startup disable gdm using update-rc.d i.e,
Code:
$ sudo update-rc.d -f gdm remove
for gdm based logins or
Code:
$ sudo update-rc.d -f kdm remove
for kdm based logins
To re-enable either of them, run the following commands:
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum
All content Copyright 2000 - 2008, Maysville Linux Users Group unless otherwise credited.
All Rights Reserved!
The opinions expressed by visitors to this web site are their own and not necessarily the opinions of the MLUG!