10

I need to use Ubuntu Desktop on my server for certain reasons because I can't use Ubuntu Server, but to make it more efficient I would like to remove the desktop environment and boot straight to the shell, all the other questions I saw the answer were for older versions of Ubuntu and the commands they posted did not work, mostly because it said those packages were not found.

All in all I just need the desktop environment gone and boot to the shell.

Wargog
  • 309

2 Answers2

6

If it is already installed, you can remove the Ubuntu Desktop metapackage and install the server softwares you need:

sudo apt-get install openssh

Configure SSH according to your needs. Then:

sudo apt-get remove ubuntu-desktop
sudo apt-get autoremove
muru
  • 207,228
4
sudo apt-get purge unity gnome-shell lightdm

sudo apt-get clean

sudo apt-get autoremove

sudo apt-get -f install
Aaron
  • 6,764
sbergeron
  • 2,670