Professional Documents
Culture Documents
In order to install Ubuntu on Virtual Box, you should have a physical computer with at
least 4 GB of RAM (Random Access Memory), a hard disk drive with at least 30 GB of free
space (SSD is preferred due to its higher performance). Your CPU (Central Processor
Unit) must support Intel VT-x or AMD-v hardware virtualization features which must also
be enabled in UEFI/BIOS. This point is especially important if you are looking for how to
install Ubuntu 64-bit on Virtual Box.
Virtual Box
Virtual Box is a free, open-source and cross-platform software that lets you create,
run, and manage virtual machines on your system. Virtual Box was originally
developed by Innotek GmbH and released in 2007. The company was later bought by
Sun Microsystems. With Oracle VM VirtualBox you can create one or more VMs on a
single physical server. Virtual machines are computers that use the hardware
components of the host computer, each running its own operating system. VB
supports the installation of MS Windows, Linux, BDS, and MS-DOS on the installed
VMs.
Open the Virtual Box EXE file. Go to the location to which the EXE file downloaded
and double-click the file. Doing so will open the Virtual Box installation window.
Navigate through the installation prompts.
Click next on the first three pages.
Click yes when prompted.
Click Install
Click yes when prompted.
6. Enter a name for your virtual machine. Type whatever you want to name your
virtual machine (e.g., Ubuntu) into the "Name" text field that's near the top of
the pop-up menu.
7. Select Linux as the "Type" value. Click the "Type" drop-down box, then
click Linux in the resulting drop-down menu.
8. Select Ubuntu as the "Version" value. Ubuntu should be selected by default
after you set the "Type" value to Linux, but if it isn't, click the "Version" drop-
down box and click Ubuntu (64-bit) before proceeding.
3. Click Start button.
raj
5. Once the new VM is prepared for installing Ubuntu on VirtualBox, start the VM
(Machine > Start). The VM boots from the ISO Ubuntu installation image. The first
screen that you can see after booting is the Welcome screen.
6. Keyboard layout. Choose your keyboard layout. Let’s select English (US).
7. Updates and other software. There are a few options to choose from on this
screen.
Normal installation. A web browser, utilities, office applications and media players
are installed.
Minimal installation. Only the main components including a web browser and basic
utilities are installed.
Let’s select the normal installation.
8. Installation type. This screen contains options for preparing a disk for Ubuntu
installation.
Erase disk and install Ubuntu. This is the default option. All disk space will be
automatically allocated to Ubuntu. If you select Erase disk and install Ubuntu on
VirtualBox VMs, one big /dev/sda1 partition is created on /dev/sda.
This /dev/sda1 partition with ext4 file system is mounted to the / directory (root
directory), though a separate swap partition is not created. Attention: All data on
the virtual disk will be erased—there is no reason to worry about it, however,
because an empty virtual disk created previously is being used for installing
Ubuntu on VirtualBox.
9. Setting up Ubuntu
Select a time zone.
Enable the on-screen keyboard
Enable the on-screen keyboard
Enter your name, enter a username, and create a password.
Wait for Ubuntu to finish installing.
Restart the virtual machine.
Log into your computer.
raj
2. Basic Linux Commands raj
1. ls
Directory listing
2. ls –al
Formatted listing with hidden filesDirectory listing
3. cd dir
Change directory to dir
raj
4. ls -lt
Sorting the Formatted listing by time modification
6. Cd
Change to home directory
5. pwd
Show current working directory
raj
7. mkdir dir
Creating a directory dir
8. cat >file
Places the standard input into the file
9. more file
Output the contents of the file
raj
13. rm file
Deleting the file
15. rm -r dir raj
16. rm -f file
Force to remove the file
20.date
Show the current date and time
21. cal
Show this month's calender
22. uptime
Show current uptime
23.w
Display who is on line
24.whoami
Who you are logged in as
raj
26.uname -a
show kernel information
27. cat /proc/cpuinfo
cpu information
28.man command
show the manual for command
raj
3. Advance Linux Commands raj
1. ps
To display the currently working processes
2. top
Display all running process
raj
3. kill pid
Kill the process with given pid
5. File permission
chmod octal file
Change the permission of file to octal,which can be found
separately for user,group,world by adding,
• 4-read(r)
• 2-write (w)
• 1-execute(x)
4. Searching
grep pattern file
Search for pattern in file
raj
System Requirement
Operating System Pre-Requirement
Windows 10, 8.1 and 8 No Pre-Requirement
Windows 7, Vista and XP .NET 4.5 Framework Required
1. Locate the file you want to examine, right-click on the icon, and select Properties.
3. There, you’ll see that the permission for each file differs according to three
categories:
ls –l [file_name]
For instance, the command for the previously mentioned file would be:
ls –l raj.txt
As seen in the image above, the output provides the following information:
file permission
1. File type. There are three possibilities for the type. It can either be a regular file
raj
Users that have reading permission can see the content of a file (or files in a
directory). However, they cannot modify it (nor add/remove files in a directory). On
the other hand, those who have writing privileges can edit (add and remove) files.
Finally, being able to execute means the user can run the file. This option is mainly
used for running scripts.
1. using symbols (alphanumerical characters)
Type the initial letter for each class, followed by the equal sign (=) and the first letter
of the read (r), write (w) and/or execute (x) privileges.
To set a file, so it is public for reading, writing, and executing, the command is:
Another way to specify permission is by using the octal/numeric format. This option is
faster, as it requires less typing, although it is not as straightforward as the previous
method.
The privileges are summed up and depicted by one number. Therefore, the
possibilities are:
7 – for read, write, and execute permission
6 – for read and write privileges
5 – for read and execute privileges
4 – for read privileges
As you have to define permission for each category (user, group, owner), the
command will include three (3) numbers (each representing the summation of
privileges).
For instance, let’s look at the test.txt file that we symbolically configured with
the chmod u=rw,g=r,o=r test.txtcommand.
The same permission settings can be defined using the octal format with the
command: