How to install VirtualBox to use Windows or other OS?

135

Solution 1

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.

Solution 2

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

Solution 3

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

Solution 4

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

Solution 5

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.

Share:
135

Related videos on Youtube

chenny
Author by

chenny

Updated on September 18, 2022

Comments

  • chenny
    chenny over 1 year

    It's my first work with Json. I've already installed Json.Net in my Visual Studio project and used to deserialize some simple string like this:

    {
          "A":"1",
          "B":"2",
          "C":"3"
    }
    

    With this code:

    JToken token = JObject.Parse("{ "A":"1","B":"2","C":"3"}";
    string aValue = token.SelectToken("A");
    string aValue = token.SelectToken("B");
    string aValue = token.SelectToken("C");
    

    But I don't know how to do with a Json like this:

    {
         "LIST":[
              {
                   "A":"value1",
                   "B":"value1",
                   "C":"value1"
              }
              {
                   "A":"value2",
                   "B":"value2",
                   "C":"value2"
              }
              {
                   "A":"value3",
                   "B":"value3",
                   "C":"value3"
              }
         ],
         "D":"value4",
         "E":"value5",
         "F":"value6"
    }
    

    How can get all elements of type and the other variable like D, E and F?

    Thank you

    • valverij
      valverij about 10 years
      For one, your JSON is invalid. You're missing commas after the objects in your array.
    • chenny
      chenny about 10 years
      Yes, you are right, the array elemets are separated by commas.
  • precise
    precise over 10 years
    nice..+1 ..this is a complete one...
  • valverij
    valverij about 10 years
    Also, I'm pretty sure Json.NET just assigns it to anonymous types if you just use JsonConvert.DeserializeObject(string)
  • chenny
    chenny about 10 years
    I made as indicated but the array Children is null. The other variables like d, e and f are ok.
  • Brian Rogers
    Brian Rogers about 10 years
    @Yiyi In the Parent class above, change the name of the Children property to LIST, or, alternatively, add [JsonProperty("LIST")] before the Children property. Then it should work.