CS152 Virtual Machine
- Download VirtualBox from http://virtualbox.org and install.
- Download Lubuntu 18.04 64 bit.
- Start VirtualBox. New → Name: Lubuntu, Version: Ubuntu (64 bit), then follow the wizard with all defaults.
- 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 → Ok.
- Start your new VM.
- Install Lubuntu. Accept all defaults. Remember the password that you chose! (I just choose
secret
—nobody can log into your VM without first logging into your computer.)
- When installation is complete, select Devices → Insert Guest Additions CD image from the VirtualBox menu.
- In Lubuntu, open a terminal (Ctrl+Alt+T). Type these commands:
cd /media/*/VB*
sudo apt install gcc make perl
sudo ./VB*Linux*
Type secret
(or whatever you chose) when asked for your password.
- In VirtualBox, select Settings → Advanced → Clipboard → Bidirectional
- Reboot by clicking on the bird icon in the bottom left and selecting Logout, then Reboot.
- Restart the Lubuntu virtual machine and log in.
- Open a terminal (Ctrl+Alt+T) and type
firefox &
- In the Lubuntu Firefox, visit
http://horstmann.com/sjsu/spring2018/cs152/vm.html
(this page).
- Select View → Full Screen.
- In the terminal, type
sudo apt install git openjdk-8-jdk emacs
Type secret
(or whatever) when prompted for a password.
- In Firefox, visit http://scala-ide.org/download/sdk.html Locate “Linux GTK 64 bit” and download. Select “Save to disk” when prompted.
- When the download has finished, type this into a terminal window:
tar xvf ~/Downloads/scala*.tar.gz
- Run the Scala IDE: Type
~/eclipse/eclipse &
in a terminal window.
- Quit the Scala IDE and shut down the virtual machine (bird icon → Logout → Shutdown.)
FAQ
How do I copy and paste text between Windows and the Linux VM?
There is a way of doing it, but why? Just start Firefox in Linux and read the lab/homework instructions there.
How do I transfer files between Windows and the Linux VM?
There is a way of doing it, but why? Just do your coding in the Linux VM and save all your work in your Git repo.
How do I switch from the Linux VM full screen mode to Windows?
There is a way of doing it, but why? Enjoy distraction-free coding in the Linux VM.