CS151 Virtual Machine
If you use Windows, you need to install a Linux virtual machine.
- Download Ubuntu 18.04 64 bit.
- Download VirtualBox from http://virtualbox.org and install.
- Start VirtualBox. New → Name: Ubuntu, Version: Ubuntu (64 bit), then follow the wizard with all defaults.
- Select Settings → System → Motherboard and set the RAM memory to at least 2GB
- Select Settings → Storage → Click on the CD Drive just below the IDE controller → Click on the CD icon all the way to the right → Choose the downloaded ISO file from the first step → Ok. Professor Mak has a more detailed guide with pictures.
- Start your new VM.
- Install Ubuntu. Accept all defaults, except select "Minimal Install". Remember the username and password that you chose! (I just choose
user
and secret
—nobody can log into your VM without first logging into your computer.)
- In Ubuntu, open a terminal (Ctrl+Alt+T). Type:
firefox &
and visit this web page so that you can copy and paste inside Ubuntu.
- Paste this command in a terminal:
sudo apt update && sudo apt upgrade
sudo apt install virtualbox-guest-x11 virtualbox-guest-utils virtualbox-guest-dkms git openjdk-11-jdk emacs
Type secret
(or whatever you chose) when prompted for your password.
- Reboot by running
sudo shutdown -r now
- When the virtual machine restarts, log in.
- Run Firefox in the virtual machine (Ctrl-Alt+T, then
firefox &
). Reopen this web page in the virtual machine.
- Resize the window to be as large as possible, or if you prefer, select View → Full Screen in the VirtualBox menu.
- In another Firefox tab, visit http://www.eclipse.org/downloads/eclipse-packages
- Click the link for “Eclipse IDE for Java Developers” and “Linux 64 bit”. Click on “Download” and “Save file”. When the download has finished, run this in a terminal window:
tar xvf ~/Downloads/eclipse-java-*-x86_64.tar.gz
- Run Eclipse:
~/eclipse/eclipse &
-
When you are done, halt the virtual machine:
sudo shutdown -h now