Ubuntu uses X Display Manager(xdm、gdm、kdm or wdm) to startup X-Window, if we want to disabled X-window, we need to disable X Display Manager.
check run level
$runlevel # output N 2
rename X Display Manager
base on runlevel (2), we can found the file name like
/ect/rc2.d, this is X Display Manager. we rename it to _s30gdm, and
file name pattern
- S for start up, K or shut down
- 30 : priority, maybe difference with yours
- gdm : a kind of X Display Manager.