Install Virtualbox 5.x on Ubuntu 14.04 Trusty (no X11)

Step-by-Step descriptions of how to do things.
Post Reply
User avatar
peter_b
Chatterbox
Posts: 383
Joined: Tue Nov 12, 2013 2:05 am

Install Virtualbox 5.x on Ubuntu 14.04 Trusty (no X11)

Post by peter_b »

Generic instructions can be found on the virtualbox.org download wiki page.

1) Add the repository:
Copy/paste the following line to "/etc/apt/sources.list.d/virtualbox.list":

Code: Select all

deb http://download.virtualbox.org/virtualbox/debian trusty contrib
2) Add Oracle's GPG key:

Code: Select all

$ wget -q https://www.virtualbox.org/download/oracle_vbox.asc -O- | sudo apt-key add -
3) Update APT package list:

Code: Select all

$ apt-get update
4) Install Virtualbox 5 package:
By default, the virtualbox package from Oracle would automatically try to install an X11 server (for GUI).
Since I'm running things on a headless server machine, I want to avoid having graphics running.

For this, I add "--no-install-recommends", so it only installs mandatory dependencies:

Code: Select all

$ apt-get install virtualbox-5.0 --no-install-recommends
(Thanks to RNS wiki for the "No-X11" flags)

That's it.
You're done :D
Post Reply