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 VNC
or XServer
.
How to do that?
UPDATE
sudo apt-get remove ubuntustudio-desktop
didn't help
UPDATE 2
Changing
#GRUB_CMDLINE_LINUX_DEFAULT="quiet splash console=tty1"
GRUB_CMDLINE_LINUX_DEFAULT="text"
in etc/default/grub
didn't help (it only affected graphics during boot phase)
UPDATE 3
Changing to
env DEFAULT_RUNLEVEL=3
in /etc/init/rc-sysinit.conf
didn't help.
UPDATE 4
$ ls /usr/share/xsessions
ubuntustudio.desktop xfce.desktop
UPDATE 5
Adding "manual" to lightdm.override
$ cat /etc/init/lightdm.override
manual
didn't help, although stopping lightdm
service
sudo service lightdm stop
closes desktop. How to make this service never run?
UPDATE 6
$ 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).
didn't help
SOLUTION
systemctl disable lightdm.service
helped, thanks @steeldriver
From the tested comments discussion this is done use
systemd
disable argument: