I want to use Windows 7 or 8 but I don't know to install a software like VirtualBox which we have to do with the use of terminal. I don't want to use Windows as a main OS so I want to use it in VirtualBox. Can you tell me how to install downloaded files in Ubuntu. I once installed java runtime but don't know the meaning of the lines which I have written in terminal, I just did as the blog posted by a man says.
5 Answers
You can use one terminal command:
sudo apt-get -y install virtualbox
When you are asked for the password, type your password. It will not be shown, not even asterisks. The command will take a while, but will finish and get the user@computer~:$
prompt when it is done.
Reboot for good measure(some kernel modules hate insmod
, but it is not important to know what that is)
and then press Alt+F2 and type:
virtualbox
to get Virtualbox open. It will also be in the Unity dash.
Updated:
Since you downloaded the file, just double-click it so it opens in Software Center. It will still need to download dependencies in any case.
You just need to open a terminal and do:
sudo apt-get install virtualbox-ose
this will install virtualbox from the repositories, but if you want a newer version, you should use:
sudo add-apt-repository "deb http://download.virtualbox.org/virtualbox/debian lucid non-free" && wget -q http://download.virtualbox.org/virtualbox/debian/oracle_vbox.asc -O- | sudo apt-key add - && sudo apt-get update
and then:
sudo apt-get install virtualbox-3.2

- 9,612
Install the latest VirtualBox version (as of writing this, currently 5.1) by using the command line :
Open a terminal (Ctrl+Alt+T) and execute:
wget -O- https://www.virtualbox.org/download/oracle_vbox.asc | sudo apt-key add -
sudo add-apt-repository "deb http://download.virtualbox.org/virtualbox/debian $(lsb_release -sc) contrib #VirtualBox"
sudo apt update
sudo apt-get install virtualbox-5.1

- 36,264
- 56
- 94
- 147

- 13,462
Installing virtualbox manually:
Go to the virtualbox/Linux_Downloads section download the appropriate deb(32/64bit) file.
save it in your home folder, then, run the following commands:
sudo dpkg -i virtualbox-4.2_4.2.6-82870~Ubuntu~quantal_amd64.deb
note: if you have an other version/architect, just change the file name to the name of the package you downloaded. Or double click the file, and the software-center will provide a one-click install option.
On the same page download the VirtualBox Extension Pack
.
The VirtualBox Extension Pack means that you will get Support for USB 2.0 devices, VirtualBox RDP and PXE boot for Intel cards.
Note:
install the extension pack with the same version as your installed version of VirtualBox

- 26,704
At today, the latest version of VirtualBox is 4.3.6. You can install it in Ubuntu 13.10 by following these steps in a terminal FOR A 64bit Environment (modify the first link to do it for a 32bit version of Ubuntu). Each line is one command, so paste in order. In addition to download and install the latest package, you will also solve most of the main issues, allowing a proper work of Virtualbox. Tested in a out-of-the-box Ubuntu 13.10.
wget http://download.virtualbox.org/virtualbox/4.3.6/virtualbox-4.3_4.3.6-91406~Ubuntu~raring_amd64.deb -O virtualbox-436.deb
sudo dpkg -i virtualbox-436.deb
sudo apt-get install -f -y
sudo apt-get install dkms
sudo adduser $USER vboxusers
sudo /etc/init.d/vboxdrv setup
To get the Guest Additions for that version (almost mandatory for running windows):
wget http://download.virtualbox.org/virtualbox/4.3.6/VBoxGuestAdditions_4.3.6.iso
You should then, once you installed windows in your virtual machine, load that iso and install the drivers to improve the VM's performance. That's it.

- 1,204
- 1
- 12
- 21
-
nice..+1 ..this is a complete one... – rusty Jan 25 '14 at 05:11