Lab 1
Lab 1
Faculty of Engineering
Electrical and Computer Engineering Department
Member Name ID
Instructors:
Dr. Abdulghani M. Al-Qasimi
Eng Turki Abdulhafith
Work:
In this lab session, I was required to install Linux on a virtual machine and learn basic
Linux commands. For the first step, I downloaded and installed the latest version of
Oracle's Virtual Machine, VirtualBox, along with its extension pack. I made sure to get the
version that was suitable for my operating system. Then, instead of downloading the
Guest Linux Appliance from the course website, I chose not to use the LAMP package
because I already had Kali Linux installed. So, I created a new virtual machine and
installed Kali Linux on it. Finally, I installed the Windows Utility Applications by
downloading and installing PuTTY and WinSCP.
Once I had Linux installed on a virtual machine on my computer, I tested the installation
by creating, uploading, compiling, debugging, editing, and executing a small C program.
I ran the WinSCP application in the host computer and connected to the guest using the
IP address I noted before. I used the username "kali" and the password "kali" to connect.
After the connection was successful, I uploaded the C program to the guest Linux system
and opened PuTTY to get a secure command shell client. I typed "g++ add.c -o add" in
the command prompt, but the compiler did not find the file "studio.h" as part of the C
library. I corrected this issue by using the "vim" editor to edit the file directly in the guest
2
Linux system. Finally, I opened the references page and reviewed the UNIX tutorials and
applied them. The following figures demonstrates my work.
3
Figure 1: Pining Kali from Host
4
Figure 3: Putty Connection from Host
5
Figure 4: Trying to run add.c
6
Figure 5: Output of add.c after correcting
7
Figure 6: Exploring File System
8
Figure 7: Exploring File System
9
Figure 8: Exploring File System
10
Figure 9: Tutorial 2
11
Figure 10: Tutorial 2
12
Figure 11: Tutorial 2
13
Figure 12: Tutorial 2
14
Figure 13: Creating new user using terminal
15
Figure 14: Accessing new user from WINSCP
16