The Five Minute How To Install VirtualBox 4.1 Guide

Do you want Oracle VirtualBox 4.1? Do you have five minutes? If you said, 'Yes' to both questions, then this tutorial is for you.
Written by Ken Hess, Contributor

Have you tried VirtualBox 4.1 yet? I hope it isn't because the latest packaged version for your OS is 4.0.12 and you feel as if you're stuck there. You're not stuck there. This short tutorial will guide you through the installation. This installation is for Debian-related Linux distributions. If you use Windows, download the 4.1 installable file from http://www.virtualbox.org/wiki/Downloads and run it.

Copy the following line into your /etc/apt/sources.list file.

deb http://download.virtualbox.org/virtualbox/debian maverick contrib non-free

Save sources.list and run update:

$ sudo apt-get update

If you receive the following error,

W: GPG error: http://download.virtualbox.org maverick Release: The following signatures couldn't be verified because the public key is not available: NO_PUBKEY 54422A4B98AB5139

Grab the public key file for the package.

$ wget http://download.virtualbox.org/virtualbox/debian/oracle_vbox.asc

--2011-07-21 12:58:19-- http://download.virtualbox.org/virtualbox/debian/oracle_vbox.asc

Resolving download.virtualbox.org...

Connecting to download.virtualbox.org||:80... connected.

HTTP request sent, awaiting response... 200 OK

Length: 1734 (1.7K) [text/plain]

Saving to: `oracle_vbox.asc'

Install the file with,

$ sudo apt-key add oracle_vbox.asc


$ sudo apt-get update

$ sudo apt-get install virtualbox-4.1

Reading package lists... Done Building dependency tree Reading state information... Done The following packages were automatically installed and are no longer required: virtualbox-ose-dkms libvncserver0 Use 'apt-get autoremove' to remove them. The following extra packages will be installed: libsdl-ttf2.0-0 The following packages will be REMOVED: virtualbox-ose virtualbox-ose-qt The following NEW packages will be installed: libsdl-ttf2.0-0 virtualbox-4.1 0 upgraded, 2 newly installed, 2 to remove and 0 not upgraded. Need to get 66.5MB of archives. After this operation, 76.2MB of additional disk space will be used. Do you want to continue [Y/n]? Y

Once installed, you can run VirtualBox from your GNOME menu under System Tools. Or, if you installed onto a server system with no graphical system, then launch it from your remote Linux system by connecting via SSH ($ ssh -X hostname) and typing, virtualbox &, at a user prompt.

If you're running Windows, connect via an SSH client with X11 forwarding on and use an X server like Xming to view remote graphical programs.

If you need more assistance with making the connection from your remote system or installing VirtualBox 4.1, please use the Talkback area.

Tell me what you think of VirtualBox 4.1, if you can pull yourself away from it long enough to do so.

Editorial standards