#! /bin/bash

set -x

echo "deb http://download.virtualbox.org/virtualbox/debian maverick non-free" >>/etc/apt/sources.list

wget -q http://download.virtualbox.org/virtualbox/debian/sun_vbox.asc -O- | sudo apt-key add -
 
sudo apt-get update
 
#apt-cache search virtualbox (use this command to find if newer versions than 3.1 are available.  It is shown here to demonstrate that this command should be done after oracle repo is added and updated)
 
sudo apt-get install virtualbox-4.0