4

I want to build up my own desktop environment (like an Openbox/i3 setup) from a base. I don't want any pre-existing DE since I want to learn about all the components required to make a running DE on my own. Now the only "flavour" that Ubuntu offers in this respect is "Ubuntu Server". Now, my question is whether the Ubuntu Server ISO comes with any server-oriented stuff preinstalled. As far as I understand it is supposed to be very bare, but the website isn't very verbose about what comes preinstalled. So does it have anything like Apache, Docker, network-management tools etc preinstalled that I'd have to remove? Also, could someone point me to where the preinstalled packages are listed?

Edit: Version which I am interested in is 20.04, the current LTS release. Also, the "minimal" install offered is standard Ubuntu with the DE, just stripped down to very small number of apps such as a web browser. That is not what I want. I want no preinstalled DE. I am fine with installing stuff from the Server ISO, I just need to know if there are really "server" stuff that I'd have no need for. Unless I know they exist and what they are, I can't remove them. Hence the question.

adch99
  • 221

2 Answers2

7

As it turns out each Ubuntu release has a .manifest file associated with it on its downloads page which, according to this question, lists the preinstalled packages. However, there are comments in the same source saying that it's the list of the live CD packages. As that is the closest answer I got, I compared the manifest files of Ubuntu Server 20.04 and Ubuntu Desktop 20.04. There are indeed a few packages which are present in Ubuntu server but not in the Desktop such as screen, tmux, eatmydata, curl and a bunch of python packages. Some packages have different versions. Nothing big is preinstalled though. Here is a link to the diff.

adch99
  • 221
5

I might have misread your question initially, since you are asking about "preinstalled". My answer is more in the line of "what can be removed" and then "what can be installed".

By default, Ubuntu server is pretty minimal, and you normally shouldn't have to remove anything. However, there are a few packages and snaps that are safe to remove, but this is not really documented anywhere.

For reference, I consider the following packages safe to remove under all circumstances: (unless you really need them - I have removed all those on my server)

  • lxd-agent-loader
  • cloud-init
  • byobu
  • vim
  • xfsprogs
  • xauth (probably needed if you want a GUI)

One "official" place to get a list of packages available during installation (but not preinstalled unless you choose to) is the "Using the installer step by step" guide for Ubuntu Server.

In this guide you'll find this image, which shows packages that you are presented for during installation: (which also means these are not preinstalled, unless you choose to)

enter image description here

And now for the caveat: Since 20.04, these are all Snap packages. It seems Canonical are indeed pushing snaps in front of regular .deb packages.

However, to get an overview of available packages you can install afterwards (which are not snaps), you can consult the official Ubuntu Server Guide. This guide has installation instructions for many useful server applications and utilites, which you can find by navigating the left-hand menu.

Finally, for installing a desktop environment on a server, I find this existing answer most useful.

Artur Meinild
  • 31,035