EE4204 Computer Networks I (Part 1)
Socket Programming Assignment
Install Ubuntu on Oracle VirtualBox
(Prepared by Amogh P.C. Graduate Assistant)
Lecturer : Assoc. Prof. Mohan Gurusamy, elegm@nus.edu.sg
Install Ubuntu on Oracle VirtualBox
Download oracle virtual box and ubuntu OS
Oracle VirtualBox
• Go to https://www.virtualbox.org/wiki/Downloads
• Download VirtualBox latest version (currently 6.1.4) platform packages for WIndows or OS X (MAC users)
• Run the executable file. Continue with the installation of VirtualBox with the defaults. This will open VirtualBox at the end of the installation.
Ubuntu Desktop
Download the latest version of Ubuntu from https://ubuntu.com/download/desktop
Installation screenshots
Open Oracle VirtualBox
Keep memory around 4GB ~ 4096 (recommended)
Select the ubuntu image
Click add and Choose the ubuntu .iso image downloaded
Click start installation of ubuntu starts form there
Choose install ubuntu
Use default keyboard settings
Choose minimal installation, We don’t need any other default ubuntu softwares
Pick a username and password
Done with the installation of ubuntu in oracle virtual box
Open the terminal and compile the both client and server programs
Run the server in Terminal 1
Run the client in another terminal with an argument as server ip (127.0.0.1) in Terminal 2
Please note as we are running both client and server in the same machine.
The IP address 127.0.0.1 a special-purpose IPv4 address called localhost or loopback address is used as servers IP