You are on page 1of 20

CEIT313 Use of Operating Systems

Laboratory Activity I
Pardus Setup on VirtualBox
M i d d l e E a s t T e c h n i c a l U n i v e r s i t y
De p a rt me nt of Co m p u te r Ed u c ati on an d Ins tr u cti on a l Te c hn o log y
CE IT3 1 3 Use of Op e ra ting Sy ste ms - La b o ra to r y A c tivi ty I
Pa r dus Set u p on V i rt ua l B ox

All the lab computers should have VirtualBox software installed. You are all required to use the same
lab computer throughout the semester. Therfore, it is very important that you install your Linux
distro (Pardus) as desribed below. Follow the instructions carefully!

Part I. Starting Up Pardus OS in Live CD Mode


1. Just before you start there should not be any OS installed on the computer you are using. If
there is please right click on it and select Remove…

2. Then select New from the toolbar so that the following dialog box will open. Fill the form as
shown below and click Next.

CEIT313 Use of Operating Sys tems - Laboratory Activ ity 1 1


M i d d l e E a s t T e c h n i c a l U n i v e r s i t y
De p a rt me nt of Co m p u te r Ed u c ati on an d Ins tr u cti on a l Te c hn o log y
CE IT3 1 3 Use of Op e ra ting Sy ste ms - La b o ra to r y A c tivi ty I
Pa r dus Set u p on V i rt ua l B ox

3. The next dialog box appears as shown below. In this box you are going to adjust the amount
of RAM your guest operating system is going to use. For the lab computers 1500 MB is
enough not letting the host OS become unresponsive. Please note that for that not to
happen stay within the green are anytime you are installing a guest OS on VirtualBox. Then
click Next.

4. In the next screen click Create to tell VirtualBox create a new harddisk on a file.

2 Pardus Setup on VirtualBox


M i d d l e E a s t T e c h n i c a l U n i v e r s i t y
De p a rt me nt of Co m p u te r Ed u c ati on an d Ins tr u cti on a l Te c hn o log y
CE IT3 1 3 Use of Op e ra ting Sy ste ms - La b o ra to r y A c tivi ty I
Pa r dus Set u p on V i rt ua l B ox

5. Select VDI as your HDD file format and click Next

6. To let your guest OS HDD grow as you use its harddisk select Dynamically allocated and click
on Next.

CEIT313 Use of Operating Sys tems - Laboratory Activ ity 1 3


M i d d l e E a s t T e c h n i c a l U n i v e r s i t y
De p a rt me nt of Co m p u te r Ed u c ati on an d Ins tr u cti on a l Te c hn o log y
CE IT3 1 3 Use of Op e ra ting Sy ste ms - La b o ra to r y A c tivi ty I
Pa r dus Set u p on V i rt ua l B ox

7. In this step you need to name the HDD file name and its location. Usually your lab
computers’ D drive is the best option. Ask your lab assistant where to store the HDD file. 8
GB is enough for this course’s requirements. In your own or for other Oss you may have to
choose larger sizes. Finally select Create button to create the guest OS definition and it
accompanying HDD file.

8. Once created select the guest OS name from the VirtualBox left panel and select Settings to
open the following dialog box. Once open select the Storage panel (see the next figure).

4 Pardus Setup on VirtualBox


M i d d l e E a s t T e c h n i c a l U n i v e r s i t y
De p a rt me nt of Co m p u te r Ed u c ati on an d Ins tr u cti on a l Te c hn o log y
CE IT3 1 3 Use of Op e ra ting Sy ste ms - La b o ra to r y A c tivi ty I
Pa r dus Set u p on V i rt ua l B ox

In this screen you need to select the Empty optical disc to load the OS image file (Step 1) and then
select the drop down menu in the shape of a optical disc (step 2).

9. Finally in the list you need to select the Choose a virtual CD/DVD disk file… to open and
select the ISO image file. The location of the ISO file will be identified by your lab assistant.

CEIT313 Use of Operating Sys tems - Laboratory Activ ity 1 5


M i d d l e E a s t T e c h n i c a l U n i v e r s i t y
De p a rt me nt of Co m p u te r Ed u c ati on an d Ins tr u cti on a l Te c hn o log y
CE IT3 1 3 Use of Op e ra ting Sy ste ms - La b o ra to r y A c tivi ty I
Pa r dus Set u p on V i rt ua l B ox

Once you select the ISO image file the dialog box should look like similar to the following:

10. Then you need to select the Pardus OS from the left side of main VirtualBox window and
select Start.

11. If everything goes fine the following screen appear in a moment. Using the DOWN cursor key
select the option “Pardus Kurumsal 2013 KDE 486” and press Enter.

6 Pardus Setup on VirtualBox


M i d d l e E a s t T e c h n i c a l U n i v e r s i t y
De p a rt me nt of Co m p u te r Ed u c ati on an d Ins tr u cti on a l Te c hn o log y
CE IT3 1 3 Use of Op e ra ting Sy ste ms - La b o ra to r y A c tivi ty I
Pa r dus Set u p on V i rt ua l B ox

12. After waiting for a short period of time the OS runs as seen in the figure below. This mode is
called Live CD mode in which you can try the OS without installing it in your harddrive. It will
not affect anything if you are trying it on your own computer. For the lab activity, however,
we will install it on the virtual harddrive we have previously installed. For this we need to
double click on the “Sabit Disk’e Kur” icon.

CEIT313 Use of Operating Sys tems - Laboratory Activ ity 1 7


M i d d l e E a s t T e c h n i c a l U n i v e r s i t y
De p a rt me nt of Co m p u te r Ed u c ati on an d Ins tr u cti on a l Te c hn o log y
CE IT3 1 3 Use of Op e ra ting Sy ste ms - La b o ra to r y A c tivi ty I
Pa r dus Set u p on V i rt ua l B ox

Part II. Installing Pardus OS on the virtual HardDrive


13. After double-clicking on that icon the following dialog box appear and you need to select the
ONLY option of “/dev/sda” and selct “ileri” button.

14. The installation program will warn you to delete the harddrive and you need to select “Evet”.
In this step there is nothing to worry about as you are installing it on a virtual harddrive. Even
if there is something wrong you can always start over without affecting the physical
harddrive. There is nothing to be afraid of! 

8 Pardus Setup on VirtualBox


M i d d l e E a s t T e c h n i c a l U n i v e r s i t y
De p a rt me nt of Co m p u te r Ed u c ati on an d Ins tr u cti on a l Te c hn o log y
CE IT3 1 3 Use of Op e ra ting Sy ste ms - La b o ra to r y A c tivi ty I
Pa r dus Set u p on V i rt ua l B ox

15. The following and the next screen is important. So examine it for a while. There are mainly
two partitions in it. The first one is “/dev/sda1” which is given a SWAP type and the second
one is “/dev/sda2” which is given a EXT4 type (it is a filesystem type just like FAT32 or NTFS).
In this step you need to right click on this partition (/dev/sda2 or EXT4) to see the option
shown in the next screenshot below.

Among the options you need to select the “Atanacak yer: /” option to install Pardus OS files
in the Root folder and select ileri.

CEIT313 Use of Operating Sys tems - Laboratory Activ ity 1 9


M i d d l e E a s t T e c h n i c a l U n i v e r s i t y
De p a rt me nt of Co m p u te r Ed u c ati on an d Ins tr u cti on a l Te c hn o log y
CE IT3 1 3 Use of Op e ra ting Sy ste ms - La b o ra to r y A c tivi ty I
Pa r dus Set u p on V i rt ua l B ox

16. In the next screen you will asked to fill the form as shown below. Please
note the username and the password so that you will remember it every
week in the CEIT313 lab activities. Once filled it out click ileri.

GNU GRUB
GNU GRUB (short for
GNU GRand Unified
Bootloader) is a boot
loader package from
the GNU Project.
GRUB is the
reference
implementation of
the Free Software
Foundation's
Multiboot
Specification, which
provides a user the
choice to boot one
of multiple operating
systems installed on
a computer or select
a specific kernel
configuration
17. The following screen will ask you whether you want to install GRUB as your available on a
bootloader. Keep the option selected and click ileri. particular operating
system's partitions.
GNU GRUB was
developed from a
package called the
Grand Unified
Bootloader (a play
on Grand Unified
Theory). It is
predominantly used
for Unix-like
systems. The GNU
operating system
uses GNU GRUB as
its boot loader, as do
most Linux
distributions. The
Solaris operating
system has used
GRUB as its boot
loader on x86
systems, starting
with the Solaris 10
1/06 release.

10 Pardus Setup on VirtualBox


M i d d l e E a s t T e c h n i c a l U n i v e r s i t y
De p a rt me nt of Co m p u te r Ed u c ati on an d Ins tr u cti on a l Te c hn o log y
CE IT3 1 3 Use of Op e ra ting Sy ste ms - La b o ra to r y A c tivi ty I
Pa r dus Set u p on V i rt ua l B ox

On the next screen you will be provided with the summary of the options you have selected.
Click once again on the ileri button to start the actual installation process and wait for a
while. In the meantime, you can read about the Wikipedia definition of GRUB to know
further about the tool.

18. After a sufficient amount of waiting (based on the speed of your CPU and the harddrive) the
installation will finish and you will be provided with the following screen. If it is the case then
you can click on the Tamam button

CEIT313 Use of Operating Sys tems - Laboratory Activ ity 1 11


M i d d l e E a s t T e c h n i c a l U n i v e r s i t y
De p a rt me nt of Co m p u te r Ed u c ati on an d Ins tr u cti on a l Te c hn o log y
CE IT3 1 3 Use of Op e ra ting Sy ste ms - La b o ra to r y A c tivi ty I
Pa r dus Set u p on V i rt ua l B ox

19. Just like every other OS installation you will be required to boot media (the installation disk).
In this case your boot media is the virtual ISO file you have set as an optical disk in a previous
step. For thei purpose you need to click on Devices menu on the VirtualBox window and
select CD/DVD devices and finally remove the check mark next to the
pardus_kurumsal_2013_kde_32bit_tr.iso by clicking on it (see the figure below.)

The following warning screen should appear as you are trying to remove the installation
media while it is being used. You can safely click on the Force Unmount button…

12 Pardus Setup on VirtualBox


M i d d l e E a s t T e c h n i c a l U n i v e r s i t y
De p a rt me nt of Co m p u te r Ed u c ati on an d Ins tr u cti on a l Te c hn o log y
CE IT3 1 3 Use of Op e ra ting Sy ste ms - La b o ra to r y A c tivi ty I
Pa r dus Set u p on V i rt ua l B ox

… and then select the Close menu item form the Machine menu of the VirtualBox window.
For this you can also select Host+Q key combination. The Host key is the Right CTRL button
on the keyboard on a default VirtualBox setup.

This will pops up the dialog box asking you


whether to save the machine state, send the
shutdown signal to properly shutdown the
system, or Power off the virtual system. It
would be best and fast if you select the
power off option.

20. Once the system is “turned off” you need to restart it by selecting the Start button:

CEIT313 Use of Operating Sys tems - Laboratory Activ ity 1 13


M i d d l e E a s t T e c h n i c a l U n i v e r s i t y
De p a rt me nt of Co m p u te r Ed u c ati on an d Ins tr u cti on a l Te c hn o log y
CE IT3 1 3 Use of Op e ra ting Sy ste ms - La b o ra to r y A c tivi ty I
Pa r dus Set u p on V i rt ua l B ox

This time the Pardus OS that you have just installed is going to be boot using the following
options and again you will be required to select the 486 option as shown below.

21. You will be asked your user name and the password you have previously setup.

22. If there was nothing wrong, you will be provided with the following screen.

14 Pardus Setup on VirtualBox


M i d d l e E a s t T e c h n i c a l U n i v e r s i t y
De p a rt me nt of Co m p u te r Ed u c ati on an d Ins tr u cti on a l Te c hn o log y
CE IT3 1 3 Use of Op e ra ting Sy ste ms - La b o ra to r y A c tivi ty I
Pa r dus Set u p on V i rt ua l B ox

Part III. Setting Up a shared folder


23. Before creating a folder to be shared by both the host OS and the guest OS we need to install
what is called “Guest Additions CD” to enable our guest OS to communicate with the host
OS. Select the Insert Guest Additions CD image… menu item from the Devices menu.

24. Right after you click you will be provided with a pop up on the lower right hand corner. Select
the “Dosya yöneticisi ile aç” option.

CEIT313 Use of Operating Sys tems - Laboratory Activ ity 1 15


M i d d l e E a s t T e c h n i c a l U n i v e r s i t y
De p a rt me nt of Co m p u te r Ed u c ati on an d Ins tr u cti on a l Te c hn o log y
CE IT3 1 3 Use of Op e ra ting Sy ste ms - La b o ra to r y A c tivi ty I
Pa r dus Set u p on V i rt ua l B ox

25. “Dosya yöneticisi” is an application similar to the Windows Explorer as shown below. You
need to double click on the autorun.sh (shell script to install the software) …

… and enter the user password as you are required to have administrator rights to be able to
install the software.

16 Pardus Setup on VirtualBox


M i d d l e E a s t T e c h n i c a l U n i v e r s i t y
De p a rt me nt of Co m p u te r Ed u c ati on an d Ins tr u cti on a l Te c hn o log y
CE IT3 1 3 Use of Op e ra ting Sy ste ms - La b o ra to r y A c tivi ty I
Pa r dus Set u p on V i rt ua l B ox

The script will run as shown below and when it finishes installing it will require you to press
Enter.

26. In this step you need to first create a folder on the host OS’s (windows) desktop and name it
as ceit313. Once installed, the software will let you create a folder in the host OS and share it
with the guest OS. To be able to do that you need to right-click “Shared Folder Setting”
button as shown below.

CEIT313 Use of Operating Sys tems - Laboratory Activ ity 1 17


M i d d l e E a s t T e c h n i c a l U n i v e r s i t y
De p a rt me nt of Co m p u te r Ed u c ati on an d Ins tr u cti on a l Te c hn o log y
CE IT3 1 3 Use of Op e ra ting Sy ste ms - La b o ra to r y A c tivi ty I
Pa r dus Set u p on V i rt ua l B ox

27. After you click on the Shared Folder Settings you will see a screen similar to the following.
Fill the folder path text box with the path information of the host OS folder that you have
just created on the Windows desktop. Give the same name (it is arbitrary) to the Folder
Name text box and check the checkboxes as shown below. Finally click OK Button and the
again OK button.

28. Now you are also required to create a folder on the guest OS’s desktop (again the location
and the name are arbitrary but desktop is a convenient one)

18 Pardus Setup on VirtualBox


M i d d l e E a s t T e c h n i c a l U n i v e r s i t y
De p a rt me nt of Co m p u te r Ed u c ati on an d Ins tr u cti on a l Te c hn o log y
CE IT3 1 3 Use of Op e ra ting Sy ste ms - La b o ra to r y A c tivi ty I
Pa r dus Set u p on V i rt ua l B ox

29. Run the Root Terminal from the Pardus OS Start menu and enter the password when asked.

30. In the terminal screen prompt, type the following command and press Enter

root@ceit313:~# mount - t vboxsf ceit313 /home/ceit313/Masaüstü/ceit313

From now on any file you copy in the ceit313 folder on the guest OS can be accessible from the host
OS or vice versa.

CEIT313 Use of Operating Sys tems - Laboratory Activ ity 1 19

You might also like