I wan't command line only server machine. So, I wish to remover GUI from server, which was installed automatically during upgrade.
Simultaneously, I don't want to remove
X because I still wish to be able to run
X Window applications on
How to do that?
sudo apt-get remove ubuntustudio-desktop
#GRUB_CMDLINE_LINUX_DEFAULT="quiet splash console=tty1" GRUB_CMDLINE_LINUX_DEFAULT="text"
etc/default/grub didn't help (it only affected graphics during boot phase)
/etc/init/rc-sysinit.conf didn't help.
$ ls /usr/share/xsessions ubuntustudio.desktop xfce.desktop
Adding "manual" to
$ cat /etc/init/lightdm.override manual
didn't help, although stopping
sudo service lightdm stop
closes desktop. How to make this service never run?
$ sudo update-rc.d lightdm disable insserv: warning: current start runlevel(s) (empty) of script `lightdm' overrides LSB defaults (2 3 4 5). insserv: warning: current stop runlevel(s) (0 1 2 3 4 5 6) of script `lightdm' overrides LSB defaults (0 1 6).
systemctl disable lightdm.service
helped, thanks @steeldriver