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.
Prior to version 4.0, there were two versions of VirtualBox— one was open source, and the one that most Linux distributions shipped with was not. At this point, there should no longer be two separate editions and the "OSE" version is deprecated for versions of Ubuntu beyond 12.04.
However, the most recent version of VirtualBox is always available for the currently supported versions of Ubuntu, which is not always the case for the Ubuntu version. This will provide the latest bug fixes and features without having to wait for the packages to make their way downstream to Ubuntu.
Additionally, should you ever need support from Oracle themselves, they're more likely to give you the time of day if you're reporting from a version they released.
They provide a repository which you can add to your software sources. In other words, they build specifically with Ubuntu in mind. To add it, just follow the instructions:
# first make sure to remove your current virtualbox
sudo apt purge virtualbox
# next, add the repository to your sources
sudo add-apt-repository "deb http://download.virtualbox.org/virtualbox/debian $(lsb_release -cs) contrib"
# add public keys to verify downloads
wget -q https://www.virtualbox.org/download/oracle_vbox_2016.asc -O- | sudo apt-key add -
wget -q https://www.virtualbox.org/download/oracle_vbox.asc -O- | sudo apt-key add -
# now update to complete the process of adding the repository
sudo apt update
# install dkms if you haven't already
sudo apt install dkms
# install virtualbox; change version number as needed
sudo apt install virtualbox-5.0
One thing that's not included in the repositories, unlike it is in the Ubuntu repositories, is the Extension Pack. That means you have to manually download and install it. Since versions mismatch between the two repositories, you cannot use the Ubuntu one. Luckily, the process is to install the extension pack is fairly simple. You can find it on the normal downloads page and can be installed easily on the command line:
# make sure no VMs are running when you do this or it will fail
# and make sure to replace /path/to/ext-pack with the actual path to the downloaded extension pack ☺
vboxmanage extpack install --replace /path/to/ext-pack
Open a terminal and execute:
sudo apt-get install virtualbox
which should work.
Once you have installed it you probably want to install guest additions in the guest OS.
Also you probably want the extension pack which you can get from here:
Make sure you get the correct version.
As of Xenial 16.04, you can also get the extension pack from the Canonical repositories. Go to the terminal and execute:
sudo apt install virtualbox-ext-pack
Therefore, as of Xenial 16.04, you should be able to get virtualbox and the extension pack by typing the following:
sudo apt install virtualbox virtualbox-ext-pack
Following the instructions on your screen.
To install the user interface to manage your virtual boxes use this command
sudo apt install virtualbox-qt