[From http://askubuntu.com/questions/73767/how-to-stop-the-unity-desktop] Using Ubuntu, the desktop can be "quit" by logging out and, from the LightDM login screen...
CTRL+ALT+F1
...to move to TTY1 text console.
Then...
sudo service lightdm stop
...will stop all graphics.