How to remove Gnome from Ubuntu Desktop 14.04

70,161

Solution 1

sudo apt-get purge unity gnome-shell lightdm

sudo apt-get clean

sudo apt-get autoremove

sudo apt-get -f install

Solution 2

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
Share:
70,161

Related videos on Youtube

Wargog
Author by

Wargog

Updated on September 18, 2022

Comments

  • Wargog
    Wargog almost 2 years

    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
    Wargog almost 10 years
    This will allow me to boot to the shell still right?
  • sbergeron
    sbergeron almost 10 years
    yeah, and if it doesn't boot directly into the shell then you can just press ctrl+alt+f1 and that will bring you to a shell and the ubuntu/unity desktop won't be running
  • Nabeel K
    Nabeel K about 8 years
    how can I reinstall all this. I accidentally did the above and cant recover it back
  • sbergeron
    sbergeron about 8 years
    @beardedbeast Are you able to get to a tty? If so then just do an apt-get install lightdm [desktop environment of your choice]