CS152 Virtual Machine

  1. Download VirtualBox from http://virtualbox.org and install.
  2. Download Lubuntu 18.04 64 bit.
  3. Start VirtualBox. New → Name: Lubuntu, Version: Ubuntu (64 bit), then follow the wizard with all defaults.
  4. 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.
  5. Start your new VM.
  6. 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.)
  7. When installation is complete, select Devices → Insert Guest Additions CD image from the VirtualBox menu.
  8. 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.
  9. In VirtualBox, select Settings → Advanced → Clipboard → Bidirectional
  10. Reboot by clicking on the bird icon in the bottom left and selecting Logout, then Reboot.
  11. Restart the Lubuntu virtual machine and log in.
  12. Open a terminal (Ctrl+Alt+T) and type firefox &
  13. In the Lubuntu Firefox, visit http://horstmann.com/sjsu/spring2018/cs152/vm.html (this page).
  14. Select View → Full Screen.
  15. In the terminal, type
    sudo apt install git openjdk-8-jdk emacs
    
    Type secret (or whatever) when prompted for a password.
  16. In Firefox, visit http://scala-ide.org/download/sdk.html Locate “Linux GTK 64 bit” and download. Select “Save to disk” when prompted.
  17. When the download has finished, type this into a terminal window:
    tar xvf ~/Downloads/scala*.tar.gz
    
  18. Run the Scala IDE: Type
    ~/eclipse/eclipse &
    in a terminal window.
  19. 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.