After installing Ubuntu server how do I install the desktop environment?
5 Answers
Depending on which desktop you wish to install, you install the the meta-package that installs all the necessary packages. You can use apt-get or aptitude to do this.
sudo apt install ubuntu-desktop
installs the Unity desktop
sudo apt install kubuntu-desktop
would install the KDE desktop
Other desktop meta-packages are xubuntu-desktop, ubuntu-gnome-desktop, lubuntu-desktop, and edubuntu-desktop.
Note: as default, apt install will also install all the recommended packages. Having recommended packages is usually desired for desktop users, but it may be undesired on a server since it's a lot of additional stuff.
- 319
- 29,456
-
3For onlookers, here's additional info I found useful that's on the same wavelength as the answer - http://www.ubuntugeek.com/install-gui-in-ubuntu-server.html – John K Aug 13 '10 at 03:30
-
1typically you want the answer below that doesn't install recommended packages – Martin Rauscher Jan 05 '24 at 16:47
If you wan to install a graphical desktop manager without some of the desktop addons like Evolution and OpenOffice, but continue to use the server flavor kernel use the following command
sudo aptitude install --without-recommends ubuntu-desktop
-
6dam... started the install from the answer and scrolled down to this. :( – Meirion Hughes Jun 11 '14 at 08:29
-
my version of aptitude doesn't have that option. It does have --without-recommends – JHowIX Feb 03 '16 at 17:09
-
-
12
sudo apt-get install --no-install-recommends ubuntu-desktopor
sudo aptitude install --without-recommends ubuntu-desktop– Hover Ruan Apr 21 '16 at 02:31
From Ubuntu 20.04, we could use sudo apt install ubuntu-desktop-minimal to minimal install ubuntu-desktop, it removes around 80 packages (and related cruft) from the default install, including Thunderbird, LibreOffice and so on.
The command could replace the old command sudo apt-get install --no-install-recommends ubuntu-desktop or sudo aptitude install --without-recommends ubuntu-desktop.
- 411
If you just need to run virtual GUI (GUI exsists but you dont need to see it) on the computer for testing or other purposes.
sudo apt-get install xvnc4viewer
Is a setup I have.
:)
- 35,799
-
2So, the server isn't running the desktop, but you can still VNC from a client machine and get a desktop? That would be perfect for my needs (dunno about the OP). – Scaine Oct 16 '10 at 08:34
-