40

After installing Ubuntu server how do I install the desktop environment?

Tim
  • 32,274
  • 27
  • 118
  • 177
John K
  • 1,105
  • 3
  • 14
  • 23

5 Answers5

45

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-get install ubuntu-desktop

installs the Unity desktop

sudo aptitude install kubuntu-desktop

would install the KDE desktop

Other desktop meta-packages are xubuntu-desktop, ubuntu-gnome-desktop, lubuntu-desktop, and edubuntu-desktop .

muru
  • 193,181
  • 53
  • 473
  • 722
txwikinger
  • 27,944
  • 10
  • 78
  • 101
  • 3
    For 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
39

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
Okezie
  • 109
  • 5
hhlp
  • 41,392
  • 18
  • 84
  • 133
10
sudo apt-get install ubuntu-desktop
maco
  • 15,622
  • 3
  • 31
  • 35
9

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.

:)

myusuf3
  • 33,569
  • 41
  • 88
  • 103
  • 2
    So, 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
  • yeah you see a graphical shell. – hookenz May 08 '14 at 03:42
5

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.

Key Shang
  • 351
  • 6
  • 9