Difference between revisions of "Ubuntu-Linux-on-Virtual-Box/C2/Installing-VirtualBox-on-Ubuntu-Linux-OS/English"

From Script | Spoken-Tutorial
Jump to: navigation, search
(Created page with "Title of the script: Installation of VirtualBox in Ubuntu Author: Praveen S Keywords: VirtualBox, VirtualBox installation, Ubuntu, Virtualisation, Spoken Tutorial, Video Tut...")
 
Line 13: Line 13:
 
|-
 
|-
 
|| Slide: Introduction
 
|| Slide: Introduction
|| Welcome to the spoken tutorial on '''Installing''' '''VirtualBox''' on '''Ubuntu''' '''Linux OS.'''
+
|| Welcome to the spoken tutorial on '''Installing VirtualBox''' on '''Ubuntu Linux OS.'''
  
 
|-
 
|-
 
|| Slide: Learning Objective
 
|| Slide: Learning Objective
 
|| In this tutorial we will learn to:
 
|| In this tutorial we will learn to:
 
  
 
* Install '''VirtualBox''' on '''Ubuntu Linux 16.04 Operating System'''
 
* Install '''VirtualBox''' on '''Ubuntu Linux 16.04 Operating System'''
 
 
  
 
|-
 
|-
 
|| Slide: System Requirements
 
|| Slide: System Requirements
 
|| This tutorial is recorded using
 
|| This tutorial is recorded using
 
  
 
* '''Ubuntu Linux 16.04 OS'''
 
* '''Ubuntu Linux 16.04 OS'''
Line 44: Line 40:
 
* '''VirtualBox''' is a free and open source software for '''Virtualization'''
 
* '''VirtualBox''' is a free and open source software for '''Virtualization'''
 
* It allows us to install and use multiple OS in the '''base machine i.e. (host)'''
 
* It allows us to install and use multiple OS in the '''base machine i.e. (host)'''
* The '''base machine '''can have either '''Windows''', '''Linux''' or '''MacOS'''
+
* The '''base machine '''can have either '''Windows, Linux''' or '''MacOS'''
 
+
 
+
  
 
|-
 
|-
Line 61: Line 55:
 
|-
 
|-
 
|| Slide: System requirements for VirtualBox  
 
|| Slide: System requirements for VirtualBox  
|| In case the '''base machine''' has '''Ubuntu''' '''Linux OS, '''then it should be any one of the following versions:
+
|| In case the '''base machine''' has '''Ubuntu Linux OS, '''then it should be any one of the following versions:
 
+
  
 
* '''Ubuntu Linux 14.04'''
 
* '''Ubuntu Linux 14.04'''
 
* '''Ubuntu Linux 16.04 '''or
 
* '''Ubuntu Linux 16.04 '''or
 
* '''Ubuntu Linux 18.04'''
 
* '''Ubuntu Linux 18.04'''
 
 
  
 
|-
 
|-
Line 76: Line 67:
 
|-
 
|-
 
|| Slide: Code Files
 
|| Slide: Code Files
|| The commands used in this tutorial are available in the '''Code''' Files link below the player.
+
|| The '''commands''' used in this tutorial are available in the '''Code''' Files link below the player.
  
 
|-
 
|-
Line 88: Line 79:
 
|| Slide: Note
 
|| Slide: Note
 
|| Important note:  
 
|| Important note:  
 
  
 
Before installing '''VirtualBox''', we have to ensure that '''Virtualization''' is enabled on our machine.
 
Before installing '''VirtualBox''', we have to ensure that '''Virtualization''' is enabled on our machine.
Line 98: Line 88:
 
|-
 
|-
 
|| Open Terminal
 
|| Open Terminal
|| Open the '''terminal''' by pressing '''Ctrl''', '''Alt''' and '''T''' keys simultaneously on your keyboard.
+
|| Open the '''terminal''' by pressing '''Ctrl, Alt''' and '''T''' keys simultaneously on your keyboard.
  
 
|-
 
|-
Line 112: Line 102:
 
|-
 
|-
 
|| Highlight '''vmx'''
 
|| Highlight '''vmx'''
|| If the output has '''vmx''' '''flags''', then '''Virtualization''' is enabled on this computer.
+
|| If the output has '''vmx flags''', then '''Virtualization''' is enabled on this computer.
  
 
|-
 
|-
Line 119: Line 109:
  
  
|| * If it is not enabled, kindly enable it in '''BIOS''' '''settings.'''
+
||  
* As the '''BIOS''' '''settings''' vary from computer to computer, we cannot show a demo of the same.
+
* If it is not enabled, kindly enable it in '''BIOS settings.'''
 +
* As the '''BIOS settings''' vary from computer to computer, we cannot show a demo of the same.
 
* If you are not a''' technical person''', kindly do this with the help of a '''System Administrator'''.
 
* If you are not a''' technical person''', kindly do this with the help of a '''System Administrator'''.
 
 
  
 
|-
 
|-
 
|| Slide
 
|| Slide
|| * If the option '''Virtualization''' is not available in the '''BIOS'''
+
||  
 +
* If the option '''Virtualization''' is not available in the '''BIOS'''
 
* Then we cannot install '''VirtualBox''' in that '''machine'''
 
* Then we cannot install '''VirtualBox''' in that '''machine'''
 
 
  
 
|-
 
|-
Line 144: Line 132:
  
 
Press Enter
 
Press Enter
|| First let us update the '''base machine''' with the help of the following command.
+
|| First let us update the '''base machine''' with the help of the following '''command'''.
  
  
For that, on the '''terminal, '''type''' '''
+
For that, on the '''terminal, '''type-
  
 
'''<nowiki>sudo <space> apt-get <space> update</nowiki>'''
 
'''<nowiki>sudo <space> apt-get <space> update</nowiki>'''
Line 170: Line 158:
  
  
Now we have to add the '''VirtualBox''' '''repository''' to the '''Ubuntu''' '''source''' '''list'''.
+
Now we have to add the '''VirtualBox repository''' to the '''Ubuntu source list'''.
  
 
|-
 
|-
|| gedit-> '''''sudo sh -c 'echo "deb http://download.virtualbox.org/virtualbox/debian $(lsb_release -sc) contrib" >> /etc/apt/sources.list.d/virtualbox.list''''''
+
|| gedit->  
 +
'''''sudo sh -c 'echo "deb http://download.virtualbox.org/virtualbox/debian $(lsb_release -sc) contrib" >> /etc/apt/sources.list.d/virtualbox.list''''''
 
|| To do so, copy this '''command''' and paste on the '''terminal.'''  
 
|| To do so, copy this '''command''' and paste on the '''terminal.'''  
  
Line 181: Line 170:
 
|-
 
|-
 
||  
 
||  
|| Next, we have to add the '''VirtualBox''' '''repository''' '''key''' to the '''apt''' '''source.'''
+
|| Next, we have to add the '''VirtualBox repository key''' to the '''apt source.'''
  
 
|-
 
|-
Line 210: Line 199:
  
 
Press Enter
 
Press Enter
|| For that type on the terminal, '''<nowiki>sudo <space> apt-get <space> update</nowiki>'''
+
|| For that type on the '''terminal, <nowiki>sudo <space> apt-get <space> update</nowiki>'''
  
  
Line 232: Line 221:
 
* '''File size''' to be downloaded from the '''Internet''' and
 
* '''File size''' to be downloaded from the '''Internet''' and
 
* the '''disk space''' usage after the installation
 
* the '''disk space''' usage after the installation
 
 
  
 
|-
 
|-
Line 272: Line 259:
 
|-
 
|-
 
|| Slide: Summary  
 
|| Slide: Summary  
|| In this tutorial, we have learnt  
+
|| In this tutorial, we have learnt-
 
+
  
 
* To check if '''Virtualization''' is enabled and
 
* To check if '''Virtualization''' is enabled and
 
 
* Install '''VirtualBox''' in '''Ubuntu Linux 16.04 OS'''
 
* Install '''VirtualBox''' in '''Ubuntu Linux 16.04 OS'''
 
 
  
 
|-
 
|-
Line 292: Line 275:
 
|-
 
|-
 
|| Slide: About Workshop
 
|| Slide: About Workshop
|| The Spoken Tutorial Project&nbsp;team conducts workshops using spoken tutorials.
+
|| The Spoken Tutorial Project&nbsp;team conducts workshops using spoken tutorials and gives certificates.
 
+
 
+
And gives certificates.
+
  
  

Revision as of 23:36, 8 October 2018

Title of the script: Installation of VirtualBox in Ubuntu

Author: Praveen S

Keywords: VirtualBox, VirtualBox installation, Ubuntu, Virtualisation, Spoken Tutorial, Video Tutorial


Visual Cue
Narration
Slide: Introduction Welcome to the spoken tutorial on Installing VirtualBox on Ubuntu Linux OS.
Slide: Learning Objective In this tutorial we will learn to:
  • Install VirtualBox on Ubuntu Linux 16.04 Operating System
Slide: System Requirements This tutorial is recorded using
  • Ubuntu Linux 16.04 OS
  • VirtualBox version 5.2
  • gedit text editor

However, you may use any text editor of your choice.


Before we begin, please make sure that you are connected to the Internet.

Slide: VirtualBox What is VirtualBox?
  • VirtualBox is a free and open source software for Virtualization
  • It allows us to install and use multiple OS in the base machine i.e. (host)
  • The base machine can have either Windows, Linux or MacOS
Slide: System requirements for VirtualBox To install an OS inside a VirtualBox, the base machine should have the following configuration.
  • i3 processor or higher
  • Ram 4GB or higher
  • Hard disk free space 50GB or more and
  • Virtualization should be enabled on BIOS

This will ensure that the VirtualBox will work smoothly.

Slide: System requirements for VirtualBox In case the base machine has Ubuntu Linux OS, then it should be any one of the following versions:
  • Ubuntu Linux 14.04
  • Ubuntu Linux 16.04 or
  • Ubuntu Linux 18.04
Let us start the installation.
Slide: Code Files The commands used in this tutorial are available in the Code Files link below the player.
Show the file in gedit text editor I have opened this file in gedit text editor on my machine.


And I will use the same file to copy-paste the commands during the demonstration.

Slide: Note Important note:

Before installing VirtualBox, we have to ensure that Virtualization is enabled on our machine.

Let us verify if Virtualization is enabled or not.
Open Terminal Open the terminal by pressing Ctrl, Alt and T keys simultaneously on your keyboard.
Gedit-> grep --color vmx /proc/cpuinfo


Press Enter

Copy this command from the code file and paste it in the terminal.


Press Enter to execute.

Highlight vmx If the output has vmx flags, then Virtualization is enabled on this computer.
Slide


  • If it is not enabled, kindly enable it in BIOS settings.
  • As the BIOS settings vary from computer to computer, we cannot show a demo of the same.
  • If you are not a technical person, kindly do this with the help of a System Administrator.
Slide
  • If the option Virtualization is not available in the BIOS
  • Then we cannot install VirtualBox in that machine
Highlight Virtualization Enabled In my case it is already enabled.
Terminal


sudo apt-get update


Press Enter

First let us update the base machine with the help of the following command.


For that, on the terminal, type-

sudo <space> apt-get <space> update


Then press Enter.

Type password and press Enter You may be prompted to enter your system password.


Type the password and press Enter.

Only narration From now on type the system password whenever prompted, during this installation and press Enter.
Next let us install VirtualBox.


Now we have to add the VirtualBox repository to the Ubuntu source list.

gedit->

sudo sh -c 'echo "deb http://download.virtualbox.org/virtualbox/debian $(lsb_release -sc) contrib" >> /etc/apt/sources.list.d/virtualbox.list'

To do so, copy this command and paste on the terminal.


Then press Enter.

Next, we have to add the VirtualBox repository key to the apt source.
gedit->


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-%7Csudoapt-keyadd -

To do so, copy these two commands one by one.


Paste them on the terminal.


And press Enter.

Now we have to update the repository list.
Terminal

sudo apt-get update


Press Enter

For that type on the terminal, sudo <space> apt-get <space> update


Then press Enter.

Terminal


sudo apt-get install virtualbox-5.2

Next type sudo <space> apt-get <space> install <space> virtualbox-5.2


And press Enter.

Highlight the terminal output The terminal will display
  • the list of packages to be installed
  • File size to be downloaded from the Internet and
  • the disk space usage after the installation
Type Y and the press Enter When asked, “Do you want to continue?”, type Y and the press Enter.
The installation may take some time depending on your Internet speed.


The installation is completed now.

Go to Dash home


Type Virtualbox

Now go to Dash home.


In the search bar, type Virtualbox.


Now double-click on the Oracle VM VirtualBox icon.

Show VirtualBox Interface VirtualBox application opens. This indicates that the installation is successful.
With this we come to the end of this tutorial.


Let us summarize.

Slide: Summary In this tutorial, we have learnt-
  • To check if Virtualization is enabled and
  • Install VirtualBox in Ubuntu Linux 16.04 OS
Slide:

About Spoken Tutorial project

The video at the following link summarises the Spoken Tutorial project.


Please download and watch it.

Slide: About Workshop The Spoken Tutorial Project team conducts workshops using spoken tutorials and gives certificates.


For more details, please write to us.

Slide: Forum questions Please post your timed queries on this forum
Slide: Acknowledgement Spoken Tutorial Project is funded by NMEICT, MHRD, Government of India.


More information on this mission is available at

this link.

Slide: Thanks The script and video has been contributed by NVLI and Spoken Tutorial team.


And this is Nancy Varkey from IIT Bombay signing off.

Thank you for joining.

Contributors and Content Editors

Nancyvarkey, Pravin1389