page1
DEBIAN/UBUNTU LINUX SYSTEM ADMINISTRATION TUTORIALS,HOWTOS,TIPS
Search
Debian Admin
General
Add comments
How to disable X or GUI on boot in Debian
Mar
31
2009
Sponsored Link
This tutorial will explain how to disable X or GUI on boot in Debian
First get the root shell by entering the following at the boot prompt:
boot: Linux vga=normal s
Here, Linux is the label for the kernel image you are booting; "vga=normal" will make sure lilo runs in normal VGA screen,
and "s" (or "S") is the parameter passed to init to invoke single-user mode. Enter the root password at the prompt.
There are few ways to disable all the X starting daemons:
run update-rc.d -f ?dm remove ; update-rc.d ?dm stop 99 1 2 3 4 5 6 .
Example
For gnome
run update-rc.d -f gdm remove ; update-rc.d gdm stop 99 1 2 3 4 5 6 .
insert "exit 0″ at the start of all /etc/init.d/?dm files
Example
For gnome edit /etc/init.d/gdm file
#vi /etc/init.d/gdm
add the following line in the first line
exit 0
Save and exit the file
rename all /etc/rc2.d/S99?dm files to /etc/rc2.d/K99?dm
Example
For Gnome
mv /etc/rc2.d/S99gdm /etc/rc2.d/K99gdm (may be more file)
remove all /etc/rc2.d/S99?dm files
rm /etc/rc2.d/S99gdm
run :>/etc/X11/default-display-manager
Here, number in rc2.d must correspond to the runlevel specified in the /etc/inittab. Also ?dm means that you need to run
the command multiple times by substituting it with all of the xdm, gdm, kdm, and wdm.
Sponsored Link
Backup
Database
Free-Tools
General
Monitoring
Network
Other Linux
Package-Mgmt
Security
Webserver
Categories
Sponsored Link
Follow Me
Select Month
Archives
Sponsored Link
My Daily Tech Tips
Windows Reference
UBuntu Geek
DebianHelp
Ubuntux
Tuxmachines
Debuntu
Libervis
Linuxappfinder
Favourite Sites
About Author
Contact
Debian Hosting
Popular Posts
Privacy Policy
Sitemap
How to disable X or GUI on boot in Debian
http://www.debianadmin.com/how-to-disable-x-or...
1 of 3
22/04/15 16:28