running chromium os on the mac on virtualbox

Now that the Chromebook is out and I’ve speculated about the target audience, I wanted to give running the Google OS a shot.  The closest I know that you can get is running Chronium OS which is the open source version.

The VM

This is the first time I needed a virtual machine on my mac.  I decided to start with VirtualBox since it is free for personal use.  It met my needs, so I’m done.  I should try Fusion at some point, but I didn’t need it for this.  I started by downloading the 82MB download for VirtualBox.

Setting up the VM

Since the “versioned” copy only provides a VM Ware and USB stick image, I tried following the instructions to convert the USB image to a vgi virtualbox file.  (The USB download is 324 MB.)  Launching the VM that way just gave me a black screen.

Next I tried getting the nightly snapshot build for VirtualBox from the “vanilla” site.  That worked well and I got the Chromium login screen.

I created the VM both times. using 512 MB RAM and Linux Ubuntu 32 bit.

Taking a screenshot

The only thing that that wasn’t obvious in VirtualBox was how to take a screenshot.   Thanks to this Techmix post, I learned you need to press left command to return the keyboard to the host mac and then use the right command key (with shift + 4) to grab a screenshot and have it sent to the desktop of the host mac.  And you have to do this every time because the keyboard focus returns to the VM every time you command+tab back to it.

getting started with google os (chromium) – a step by step guide

I installed Google OS (Chromium really) in a virtual machine to try it out.  It really is as simple as advertised.  Here’s everything you have to do.

The first time you use the computer

  1. Tell the machine how to connect to the internet.  It was ethernet rather than wifi.  Presumably because the VM is networked to the host machine.
  2. Username/password for google account if have one.
  3. Image you’d like to use for identification.
  4. Practice with your touchpad.  You can see this online.  It’s pretty cool in that it picks up on the fact that I have a smart touchpad.    In my Safari browser on the host machine, I can drag and drop and the like.  In my Chrome browser on the guest, I cannot.  Both the laptop and external trackpads work fine in the Chrome browser on guest; it’s just the test page giving me problems.
  5. Usability issue: It took me about five minutes to realize that was it.  It’s a normal browser window from which yo can go to other websites.

The menu

Click time and “open date and time options” to get the control panel lite.  This is where you can say you don’t want passwords saved, set up security and other preferences.  You can also get here by clicking the wrench on the right side of the screen.

If you close the browser, you get the bookmarks bar.  It starts with an option to take you to the webstore which offers both free and paid apps.  You mean you didn’t want to play Angry Birds?  The other built in option is the file manager which appears to host local and cloud storage.  I was puzzled because I thought there was no local storage.

There options for the browser are easy to read.

The second login

It shows your cute icon/avatar.  It took about 15 seconds to launch.  I’m not sure how much of that is Chromium and how much is me launching a computer within my computer.  (For the more technical folks reading this, I imagine starting a real computer is going to be about the same or a little slower.)

eclipse 3.7 on the new mac – 8 good features & 1 bad + my plugin list

I downloaded Eclipse 3.7/Indigo release.  Since I got my Mac so recently, I waited to install development tools and create a new Mac workspace until Indigo came out.  My first set of installs on a Mac had some extra unexpected surprises of course.  Installing Postgres didn’t go nearly as smoothly as Eclipse.  Check back for the blog post on that!

Downloading

I went with the JavaEE developer release since it has web functionality built in.  I confirmed I had a 64 bit machine by running uname -a.  I also finally realized the clue that I’ve clicked download.  It’s that the download icon turns into a progress icon or changes the icon to my most recent download.

Installing

When I selected the download, it automatically unzipped it to downloads.  I then dragged it to the applications folder and added Eclipse to the dock as described.  Somehow I downloaded Helios instead of Indigo and had to do it again.  Not sure how that happened since I downloaded on Indigo release day.  I’ll assume I was tired.

Eclipse itself

My plugin install list contains what I used in Eclipse 3.6 plus a number of others.  This time I used Marketplace Client to try to get the plugins.  It’s nice that you can browse plugins and get ideas for things to install that you didn’t know about.  It’s not much easier to install, but it wasn’t exactly hard before.

Plugin Purpose Marketplace Experience
Sysdeo Tomcat integration Listed, but no install link. Still must install by unzipping into plugins directory.
EclEmma Code Coverage Smooth – click and install
PMD Static analysis Listed, but no install link. Had to use install site link directly.
Subversive To access Subversion repositories Smooth – click and install
eGit To access Git repositories (or run your own locally) Smooth – click and install
Hibernate Tools JPA assistance Did not install. There was a conflict with the built into JPA perspective in the JEE version of Eclipse. While I usually hand create my entities, I like having the plugin available but this isn’t a big deal.  The built into one appears to do the same thing.  And more likely, I wouldn’t use them either.
Groovy Groovy project/editor and console Couldn’t find in Marketplace, but think it is there.  Installed from install site link.
Freemarker IDE Freemarker syntax highlighting and macro assistance. Didn’t look in Marketplace.  I didn’t know this existed, but JBoss supplies it at the same URL as Hibernate Tools and I found it by accident.  Since JForum (CodeRanch) uses Freemarker, this could be helpful.  Trying it for five minutes, the syntax highlighting made the install worth it.
m2Eclipse Maven Smooth – click and install

What I like

In Eclipse 3.6, there were only 4 features I liked enough to remark upon.  This time, there are twice as many!

  1. A few versions of Eclipse ago if you had m.method(one, two) and tried to delete the “method” followed by autocomplete, it left the parenthesis and parameters alone.  Since at least Eclipse 3.5, it would add an extra set of parens and parameter templates.  Horribly annoying.  In Eclipse 3.7, it goes back to the original behavior.  Very excited about this fix!  This wasn’t reproducable, I think it was luck.
  2. JPA annotation autocomplete got better.  This is a minor convenience.
  3. Secure storage – passwords are now stored encrypted on disk.   This does mean anyone who uses your computer/account can commit on your behalf.  Not a problem on my home computer.
  4. “Document proxy icons in Cocoa” – you can drag an icon in the title bar to another application.  Sounds like it has potential.
  5. You can open the same file in different editors at the same time.  This is nice because I sometimes like to be in the visual and XML views.
  6. Being able to filter the compiler settings preferences.  (That list has grown so long it is hard to find specific options.)
  7. Compiler setting to ignore unavoidable generics problems (when calling legacy code.)  This is nice because it avoids false positives.  There is a risk because you have to be extra careful in that space, but I’ll find that in unit test.
  8. Paste URL into JUnit view – useful for loading an Ant or Maven junit report XML file from a nightly build.

And my worst feature

  1. The extract method keyboard shortcut is gone!  I use this one a lot.  It was there on Mac Eclipse 3.6.   You can still use the menus, but that is less efficient.

Mac Stuff

Since I had downloaded Eclipse 3.6 for the Mac, I installed it as well to see what was a Mac issue and what was an Eclipse 3.7 issue.  Here’s what is not new in Eclipse 3.7, but was new to me.

  1. In Safari, control left/right arrow take you the beginning/end of the line.  Which is convenient because shift + control + arrow highlights the line.   (I learned today that the command/apple key does the same as control although it is more awkward to type.)  In Eclipse, command left/right arrows takes you to the beginning/end of the line but control does not. Luckily, command + arrow does work in Safari so I’ll be using that shortcut now.  (It would be nice if there was a standard across applications for this – pgadmin doesn’t work the same way as either of these and I haven’t found the keyboard shortcut there yet.)
  2. My integration tests went down from three minutes to seven seconds!  This isn’t a Mac thing – it’s a six year old machine vs brand new machine.  But still cool.  I didn’t know they could run so fast.
  3. I changed the Mac system preferences to turn on “Use all F1, F2, etc keys as standard function keys”.  Having to press “fn” to use the debugger was quite annoying. I use the special keys a lot less than the function keys overall.  And when I am changing the sound volume, I’m not in the middle of typing/debugging.  I wish I could change it on only one of my two keyboards.  (I’m using a standalone keyboard where I care about the function keys being reversed.)  Not important, but it would be cool if I could switch to use the built in keyboard without the function key.