May 25, 2012 · Server · Email This Post

We have already discussed how to install ubuntu 12.04 LAMP server .If you are a new user and not familiar with command prompt you can install GUI for your ubuntu LAMP server using one of the 2 options

1) Install desktop Environment

2) Install Webmin

1) Install desktop Environment

First you nee to make sure you have enabled Universe and multiverse repositories in /etc/apt/sources.list file once you have enable you need to use the following command to install GUI

sudo apt-get update

sudo apt-get upgrade

sudo apt-get install ubuntu-desktop

The above command will install GNOME desktop

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

If you want to install light weight desktop install xfce using the following command

sudo apt-get install xubuntu-desktop

If you want to install KDE desktop use the following command

sudo apt-get install kubuntu-desktop

2) Install Webmin on Ubuntu 12.04 server

You can check here howto install Webmin on Ubuntu 12.04 server

Incoming search terms:

Related posts

10 Comments to “How to install GUI on Ubuntu 12.04 (Precise) Server”

  1. JohnP says:

    Installing any desktop on a server will likely reduce stability if you actually run the desktop apps. X/Windows and other GUI libraries like video card drivers usually have this effect.

    Whether 12.04 suffers from this same issue is unknown to me, but I suspect it is the case.

    [Reply]

  2. MarcB says:

    Running ‘sudo apt-get install ubuntu-desktop’ does not install Gnome.
    This command installs the Unity desktop, which is definitely different from Gnome.

    [Reply]

  3. PeterV says:

    Tried this but got errors about broken packages, couldn’t install e.g. firefox because the software library couldn’t update, teamviewer same thing.

    [Reply]

  4. MattS says:

    The article neglects to mention that after a successful ‘apt-get install …’, you need to run ‘startx’ (for ubuntu-desktop) or equivalent.

    [Reply]

  5. Alfredo says:

    MattS: Thanks so much for this so important comment.

    [Reply]

  6. MasterShifu says:

    Hey Matt, is there a way we can automate this, or do we have to manually run startx upon boot every time?

    [Reply]

  7. Josh says:

    Installed under root. Boots up automatically without any extra configuration.

    [Reply]

  8. isra_mtz says:

    Hi, I’m new in these topics, I have a doubt, wich are my advantages of use server version if I’m a software developer ? and … If I have installed a server version, when I install ubuntu-desktop package, my version turns to desktop version or I continue with server version ?

    [Reply]

  9. MaverikH says:

    Ran this…
    sudo apt-get install –no-install-recommends ubuntu-desktop

    can we set this to not boot the gui by default but retain the ability to “startx” and “stopx”?

    [Reply]

  10. kalesh says:

    vm player requires vm tool update for linux.

    [Reply]

Leave a Reply