2011年11月21日 星期一

Disable X windows on Ubuntu 10.04

In CentOS / RHEL, people would change option on initdefault from /etc/inittab to control whether X11 should be started. In Ubuntu, it is totally different, there is no such iniitab file on Ubuntu. To stop Ubuntu to start X11 (i.e. behave more or less the same as runlevel 3 in CentOS), one have to modify the /etc/init/gdm.conf and edit the line to disable gdm service on runlevel 2.

Here is the line

# stop on runlevel [0126]  ## This means GDM will start on run level 1, 2 and 6.

stop on runlevel [016] ## This means GDM will only start on run level 1 and 6. And Ubuntu's default run level is 2, i.e GDM wont start on default run level.

After that, a system reboot will bring your ubuntu installation to text mode.



沒有留言:

張貼留言