Updated May 4, 2018
A virtual machine with
Download http://www.cs.sjsu.edu/faculty/horstman/LubuntuFall2015.zip (Windows; warning: huge file, 2188189575 bytes) or http://www.cs.sjsu.edu/faculty/horstman/LubuntuFall2015.tar.gz (Mac OS X or Linux; warning: huge file, 2188183766 bytes). Uncompress, yielding a file Lubuntu.vdi
with 4715446272 bytes. Move into your cs46a
directory. You can discard the zip file afterwards.
After having downladed and extracted the virtual machine image, follow these steps:
Name: Lubuntu
Type: Linux
Version: Ubuntu (choose 64-bit if available, otherwise 32-bit)
You would think that selecting a file is a straightforward process, but unfortunately some operating syatems make this surprisingly complex. In Windows, the unzipper makes a directory LubuntuFall2015
and places the file Lubuntu.vdi
inside it. How can you tell which is which? Evil laughter—you can’t. Because Windows also hides the file extension .vdi
because someone had thought that file extensions are “confusing”. You’ll just have to click your way through all the way to a LubuntuFall2015
that has an icon that isn't a folder icon.
For Mac: Click "Create"
Your virtual machine is configured. Click on the "Start" button on the VirtualBox toolbar to start it.
Check that your user account is in the vboxsf
group. Click on the bird icon, select Users and Groups → Manage Groups → vboxsf → Properties. Your user account should have a checkmark next to it. Check it if it is unchecked. When prompted for a password, enter secret
.
Right-click on the VM tab in the VirtualBox opening screen. Settings → General → Advanced. Make sure the Shared Clipboard is set to Bidirectional.
Q: Why can’t I see the start menu?
A: Maybe your screen is too small? The image runs in 1024x768. Either use the scroll bars or select the full screen option.
Q: Why Lubuntu?
A: It’s just like Ubuntu, but it’s faster and has a more familiar user interface
Q: How do I see files from my host operating system?
A: Look inside the /media folder. There is a folder that points to the shared directory that you set up during installation.
Q: Can I run the virtual machine off a flash drive?
A: Only if you reformat the Flash drive to use a file system other than FAT32 (whose maximum file size is 4GB).
Q: What if I run Windows XP?
A: It might work, but it’s not supported. You are completely on your own.
Q: What if I run Windows 10?
A: It might work, but it’s not yet supported. You are completely on your own.
Q: Can I run Cygwin instead?
A: It might work, but it’s not supported. You are completely on your own.
Q: I tried unzipping the zip file on the Mac, and it didn’t work. Now what?
A: Some versions of Mac OS don’t know how to unzip files > 4GB. Use the .tar.gz file instead.
Q: How can I fix the error message “Failed to load VMMR0.r0 (VERR_SUPLIB_OWNER_NOT_ROOT)” when trying to load the VM image on a Mac?
A: Try the suggestions in this article or this discussion.
Q: How can I fix the error message “Failed to load VMMR0.r0 (VERR_SUPLIB_WRITE_NON_SYS_GROUP)” when trying to load the VM image on a Mac?
A: Try the suggestion in this blog post comment.
Q: How can I fix the error message “Failed to load VMMR0.r0 (VERR_VMM_SMAP_BUT_AC_CLEAR)” when trying to load the VM image on a Mac?
A: Try the suggestion in this bug report.
Q: How can I make such a VM myself?
A: Follow these steps:
user
(b) Password: secret
(c) Log in automaticallysudo apt-get update (password is secret
)
sudo apt-get upgrade
sudo apt-get install virtualbox-guest-dkms emacs git gitk
sudo shutdown -r now
tar xvfz Downloads/jdk-*-linux-i586.tar.gz ls -d jdk* emacs .bashrcNote the . in
.bashrc
!.bashrc
file:
export PATH=~/jdk1.8.0_51/bin:$PATHHere, the
jdk1.8.0_51
matches the output of ls -d jdk*
above. If you have a different version of Java, match it. Save the file. Close Emacs. Close the terminal.
tar xvf Downloads/eclipse*.tar.gzLater, to run Eclipse, open a terminal window and type
eclipse/eclipse
java -jar Downloads/bluej*.jarLater, to run BlueJ, open a terminal window and type
bluej/bluej
Q: Why would I want to build my own VM?
A: That way, you only need to download a 700K ISO file instead of a huge VM image. And you'll gain confidence installing a Linux system, which will come in handy sooner than you think.