Take the 2-minute tour ×
Ask Ubuntu is a question and answer site for Ubuntu users and developers. It's 100% free, no registration required.

I am new to Virtualbox and Vagrant.

I followed Vagrant Get Started Guide, and have a VirtualBox running Ubuntu 12.04 LTS 32-bit.

http://docs.vagrantup.com/v2/getting-started/index.html

However, there's no graphical user interface (only a terminal).

Could anyone point me a box with a GUI?

share|improve this question

1 Answer 1

up vote 7 down vote accepted

By default, no. Server distros don't have a GUI, but you can easily add one using apt-get.

People commonly use Gnome, XFCE etc. A quick search will get you what you need, depending on which Desktop Environment (DE) you're looking for.

XFCE is great and lightweight. If you're running a server system, you might want that to keep memory free for other applications.

Installing XFCE

sudo apt-get install xfce4

Installing Gnome

sudo add-apt-repository ppa:gnome3-team/gnome3
sudo apt-get update
sudo apt-get install gnome-shell
sudo apt-get install ubuntu-desktop

After installing the desktop, you'll also want to install GDM which will let you boot directly into a graphical environment. (or lightDM)

sudo apt-get install gdm

or: sudo apt-get install lightdm

Once done, you'll want to configure it.

sudo dpkg-reconfigure gdm
share|improve this answer
    
Thanks, BenK... running sudo add-apt-repository ppa:gnome3-team/gnome3 causes add-apt-repository: command not found. Any idea on solving the problem? –  Mingyu May 27 '13 at 23:21
1  
Running sudo apt-get install python-software-properties solves that problem –  Mingyu May 27 '13 at 23:29
    
Note that apt-get install xubuntu-desktop will install Xubuntu themes, applications, etc. while apt-get install xfce4 just installs XFCE. The same goes for LXDE. –  ignis Jun 5 '13 at 9:49
    
If this doesn't work for you - it didn't for me - take gdm out of the equation. The only thing you need is 1. sudo apt-get install xfce4 and then 2. sudo startxfce4&. That's it. –  Air Nov 16 '13 at 22:24
    
Don't forget to configure the GUI in vagrant. Example for vagrant + virtualbox: config.vm.provider "virtualbox" do |v| v.gui = true end –  josketres Jun 17 at 21:20

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.