Operating Systems
Installing the Programming Environment
Step 1: Install VirtualBox
VirtualBox is a popular open-source hypervisor to load multiple guest OSss under a single host
operating system.
You can nd the platform package for your computer here: https://www.virtualbox.org/wiki/
Downloads
Step 2: Download the OVA le
Download the ova le from the google drive link below. This contains the virtual system which
we load into VirtualBox.
Note: This le is large (~5GB), so make sure you have a stable connection before downloading.
Google Drive Link: https://drive.google.com/ le/d/
1Boc9PNqGaDBtwqHFMA5wveop5_axqIC7/view?usp=drive_web
Page 1 of 5
fi
fi
fi
fi
fi
Operating Systems
Step 3: Setup Virtual Machine
Step 3.1: Import the OVA le
After installing VirtualBox and downloading the ova le, open VirtualBox and select File >
Import Appliance.
Select the OVA le and click Finish. The virtual machine should have a con guration shown
below.
Page 2 of 5
fi
fi
fi
fi
Operating Systems
Step 3.2: Login
Once you have successfully imported the ova le, click start to launch the virtual machine. This
will boot Lubuntu, a light-weight Ubuntu-based linux distribution.
The root password is: operatingsystems
Step 3.3: Choosing the Default Windows manager
After logging in, you will be prompted to select a default windows manager for LXQt which is
the desktop environment used by Lubuntu.
Navigate to opt/VBoxGuestAdditions-7.0.22/bin/ and select VBoxClient as the default
windows manager.
Click OK to continue loading your desktop. This may take some time.
(Optional) Resize Screen
You can resize the screen by navigating to View > Virtual Screen 1 > Resize to x:x
Page 3 of 5
fi
Operating Systems
Step 4: Running C Programs
Once the virtual machine has been set up, you can run C programs from either the terminal or
CodeLite IDE which is pre-installed. Both applications can be found on the desktop.
A. Using Terminal
For simple programs, you can write and run C programs directly from the terminal. To write C
code, use may use a terminal text editor like vim or nano. Compile and run the code using gcc:
gcc my_program.c -o my_program
./my_program
B. Using CodeLite IDE
For more complicated projects, it is advisable to use an IDE such as CodeLite. A quickstart
guide can be found here: https://docs.codelite.org/hello_world/
Page 4 of 5
Operating Systems
Note: On Firefox and the Lubuntu File Manager
You can run Firefox inside the VM directly to access NYU Brightspace to upload your
assignment or browse the internet. It can be found in the applications menu by clicking the
bottom-left corner icon.
You can view your downloaded les in the Lubuntu le manager (called ‘Computer’ on the
desktop).
Page 5 of 5
fi
fi