Home > Chromium, Ubuntu > Experimenting with the Chromium-OS Web browser in Ubuntu

Experimenting with the Chromium-OS Web browser in Ubuntu

I’ve been wondering for quite a while if it would be possible to build and run the Web browser of the Chromium-OS in Ubuntu, and what it would take to achieve this. Also, I wanted to know what goods it could bring compared to the regular Chromium browser. So I just decided to give it a try.

Chromium-OS is to Chrome-OS what Chromium is to Google Chrome. Chrome-OS is what runs in the new shiny Google Chromebooks that started to sell a few days ago. Like Chromium, Chromium-OS is open-source: anyone could grab the sources and build it. Running it could be trickier though, it all depends on the targeted hardware, some critical drivers may be missing. The Web browser of Chromium-OS is a slightly modified Chromium, it is not part of the Chromium-OS source tree. It lives (mostly) in the Chromium tree. There’s a lib implementing the OS API linking the browser and the OS together. It’s called libcros.so, it’s (obviously) part of the OS.

My plan was just to give the Web browser a try, not the full OS, so I knew beforehand that bits will be missing. I’ve been building the regular browser since day 1, so I’m more than familiar with the source tree and its hairy build system. My initial guess was that I already had most of the code, I needed the rest, plus different build flags and probably some adjustments to my Ubuntu packaging rules. It didn’t take me long to turn my package into the -OS flavor. I decided to run it with a fresh profile, to stay on the safe side, on my Oneiric desktop, running Unity 3D. To my surprise, it even run on my first try. A few errors in the shell but no bad crash or evil snap of any kind.

First difference, it starts maximized, with rounded corners at the top, a light grey theme, and no window decorations:

All of this is expected, as everything happens in the browser in Chrom*-OS.

It’s possible to unmaximize it, but as it has no window decorations, it’s difficult to resize (only possible if you know the shortcut).

It’s immediately obvious that the Unity toolbar is now redundant. The browser has its own applets inside its tab bar. By default:

  • a clock. The timezone is wrong, that’s because it failed to get it from Ubuntu (different file location in the OS)
  • a network indicator, with a yellow sign, indicating a problem
  • a battery indicator, with a question mark, also showing a problem
Of course, all those problems are expected, it’s not meant to run there. My console is filled with error messages explaining why it’s broken. I would need to adjust some paths, like the timezone symlink, and provide the missing libcros.so, which may prove difficult. As I said before, that lib is part of the OS, and depends on bits Ubuntu doesn’t have.
The network indicator seems to be meant to communicate with the system network-manager, which I don’t use on this box. Instead, I got fake values.
There’s also a file manager, it’s obviously sandboxed. It doesn’t expose anything from my Ubuntu host. I can only access my external storage devices, like my camera mounted on USB. The file manager has a preview system, like you would expect. It works for still pictures, even has a slideshow mode. For  videos, there’s a “Play” and an “Enqueue” button, they fire a player, also without window decorations, which unfortunately doesn’t work (but it may be related to the codec my camera uses). At least the playlist and fullscreen mode both work.
Browsing the Web seems ok. The flash plugin installed in the system is not detected. In fact, none of my plugins are.
There are a few new preferences shown here:
Most of those prefs cannot be changed, there’s a concept of owner in the OS, so I don’t expect it to work here. That’s also blocking the installation of extensions/webapps/themes.
That’s all for the tour. It sure satisfied my curiosity. What do you think?
  1. dylanmccall
    June 19, 2011 at 00:29

    Coool. Thanks for the tour!

    Oh, I’m curious about something: that menu. Is that your Gtk theme, or is it using its own style? (Or is ChromiumOS not using Gtk?)

    When ChromiumOS was opened up I played around with the window manager for a bit, and it worked pretty well at the time. Could be fun to do again 🙂

    • fta
      June 19, 2011 at 19:35

      it’s not my theme, which has the same color as the unity panel in the 1st screenshot.
      The binary still uses gtk though, but i’m not sure it will in the long term. I’ve seen some patches trying to get rid of it.

  2. Lucian
    June 20, 2011 at 00:34

    I’ve been using this on my ARM netbook since there’s no Chromium nightly for ARM.

    I think it could work very well as a lightweight DE in Ubuntu.

  3. ben
    September 28, 2011 at 19:21

    how can i install chromium web to my iphad touch web os HP

  4. DJJo
    December 14, 2011 at 20:22

    hou can i install Chromium-OS Web browser on ubuntu?

  1. No trackbacks yet.

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Google+ photo

You are commenting using your Google+ account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )


Connecting to %s

%d bloggers like this: