Completely remove Ubuntu Desktop from a Ubuntu Server

While setting up my Plex I noticed that I couldn’t connect from my laptop to configure the server that I installed on a Ubuntu Server due to that they existed on different subnets. To solve this I installed Ubuntu Desktop temporarily on my Ubuntu Server and set up the server from a browser on the local machine.

But as I like minimal installs and not a bloated server I later decided to remove Ubuntu desktop completley. Here is how you do:

INSTALL UBUNTU DESKTOP WITHOUT INSTALL RECOMMENDS

sudo apt-get install --no-install-recommends ubuntu-desktop

REMOVE UBUNTU DESKTOP COMPLETELY

sudo apt purge ubuntu-desktop -y && sudo apt autoremove -y && sudo apt autoclean

Leave a Comment

This site uses Akismet to reduce spam. Learn how your comment data is processed.