page2
Posted by ruchi at 2:36 pm
7 Responses to “How to disable X or GUI on boot in Debian”
Takla
says:
March 31, 2009 at 3:47 pm
Perhaps the easiest way to manage start up services and run levels in Debian is with the use of either/both sysvconfig and
sysv-rc-conf. sysv-rc-conf allows the admin to easily select/deselect services for each runlevel, while sysvconfig is cruder and
allows the admin to select/deselect services, the changes being applicable to all runlevels. Both are ncurses applications and
very simple to use. They’re in main.
1.
Alves David
says:
March 31, 2009 at 6:13 pm
Nice, but you could also set the initdefault to 2 (in /etc/inittab)
# The default runlevel.
id:2:initdefault:
Note that when setting inittab to 2, deamons stratings at > 2 are not started.
2.
Takla
says:
April 1, 2009 at 9:23 am
Runlevel 2 in Debian still starts all kinds of services such as GDM (on a machine with a desktop environment), hal, dbus, cups
etc etc. because all the multi-user runlevels are by default identical, or perhaps ‘awaiting configuration’. This can be checked
on a default install.
In each and every one of the start up scripts in /etc/rc#.d/ you’ll find the line ‘# Default-Start: 2 3 4 5′
You can edit inittab or grub’s menu.lst to set runlevel 2 or 3 or 4 or 5 but you won’t see any difference unless you also edit
those scripts, as you describe above. sysv-rc-conf is a really simple effective way to present and manage the runlevels. The
only time I can see that manually editing/renaming the individual scripts has an advantage is if you need to change the
sequence of service start ups within a runlevel, which is quite unusual.
3.
riri
says:
April 8, 2009 at 12:36 pm
You can use this command for disable a script on runlevel :
# update-rc.d -f gdm remove
4.
Takla
says:
April 8, 2009 at 4:41 pm
Riri: you could even read the article
5.
riri
says:
April 9, 2009 at 6:37 am
Ok, sorry
6.
JD. Brown
says:
April 11, 2009 at 8:24 am
Or, if you just need to temporarily disable runlevel 5, you can get rcconf from the repositories and type it in bash to disable
7.
Only the first one in the list is "the one true way" in Debian. The last one is easy but only works on Debian and requires
you to set the display manager again later using dpkg-reconfigure. Others are generic methods to disable daemons.
You can still start X with the startx command from any console shell.
Sponsored Link
Related content:
Howto Boot debian in text mode instead of graphical mode (GUI)
1.
Fix for sleepy display and boot-to-prompt on iMac G3
2.
Debian and Ubuntu Linux Run Levels
3.
How to install Liquorix Kernel in debian 7.0
4.
How to Reset debian Root Password
5.
How to disable X or GUI on boot in Debian
http://www.debianadmin.com/how-to-disable-x-or...
2 of 3
22/04/15 16:28