# apt-get install rcconf and then just uncheck your X window manager from the rcconf list. You can still start it any time with # /etc/init.d/example start but to stop it you need to do # cd /tmp; nohup /etc/init.d/example stop at least with xdm. Or else it hangs up before it can stop itself. Here I leave nohup.out in /tmp.