0

I've set up Ubuntu 16.04.3 LTS to boot in CLI mode, and to start a GUI I run sudo lightdm start in tty1.

My question is, Is there any way to quit GUI completely and get back to CLI in GUI?

I can quit GUI by sudo lightdm stop in tty2 (since tty1 is running lightdm and I can't insert any command) or simply by CTRL + C. But it feels like an unusual way to me. And am I doing right to quit GUI?

Zanna
  • 70,465
cody
  • 1
  • You want to start your Ubuntu as a "server" i.e. without any GUI at all, is that right? – M. Dm. Jan 05 '18 at 14:28
  • sudo lightdm (start|stop) , no need to go to tty2 to start / stop. If you have a problem with startx , post the error message. FWIW on servers consider a web administration tool. – Panther Jan 05 '18 at 14:33
  • Here they tell you to boot in text mode. – Pierre François Jan 05 '18 at 14:41
  • 2
    For systemd-based systems, the preferred methods would probably be sudo systemctl isolate multi-user.target - and sudo systemctl isolate graphical.target instead of sudo lightdm start - these should be independent of the particular desktop manager. – steeldriver Jan 05 '18 at 16:39

0 Answers0