for friends of the acer aspire one
May 25, 2009
Google Chrome (Chromium) for Linux
Google Chrome is an internet browser based on WebKit. Which is the same open source browser engine that's being used by Apple Safari. Chrome also features a new JavaScript engine called V8. The first beta version of Chrome for Windows was released in September last year, and the development team has been working on Linux and Mac ports since.

There is no Google Chrome for Linux yet, and the first beta version is probably still a few weeks away, but Google has been uploading development snapshots of Chromium for Linux since March. Chromium is the open source project behind Chrome and is basically Chrome without the Google branding. It has reached a point now where it's useable and quite stable.





The first thing you'll notice when using Chromium is that it's quite fast and lightweight. To confirm the initial impression I selected a few browser benchmarks and compared Firefox 3.5b4 with Chromium. The new TraceMonkey JavaScript engine, that was supposed to regain the performance crown for Mozilla, is already enabled by default in the latest Firefox beta version. All tests have been run on an Acer Aspire One A110 with Intel Atom N270 processor.

The V8 Benchmark Suite is used by Google to finetune JavaScript performance. Firefox only scores 54 while Chromium scores 733, which certainly is impressive, despite not being a fair comparison.

A more neutral benchmark suite is the SunSpider JavaScript Benchmark. The authors are the WebKit developers, but Mozilla also uses it for Firefox benchmarks. Chromium completes the tests in 38.20 seconds while Firefox needs 81.42 seconds. You can compare the Chromium results here, and the Firefox results here.

Futuremark Peacekeeper is probably the only benchmark suite that's completely neutral, as all tests mimic functions commonly used by the most popular websites. Chromium scores 659 and Firefox 220 points. More details are in the screenshots below, but note that the bars use a different reference value and are a bit misleading.





The results confirm that Chromium is very fast. And it hasn't even entered beta phase yet. Google further claims that no work on performance optimization has been done so far at all. The benchmarks do also not show other performance advantages Chromium has over Firefox. One such advantage is that Chromium, unlike Firefox, is multithreaded.

Once a final version is released Google Chrome should become the first choice for netbooks running Linux. What currently makes Firefox the browser of choice for many are useful extensions, which Google Chrome lacks. Google already announced plans to add support for extensions, but it's probably still a few months away.

If you're eager to try Chromium yourself, and are using a recent version of a major Linux distribution like Ubuntu or Fedora, you can just use one of the unofficial repositories. Alternatively download the latest snapshot directly from Google here, or distribution specific packages here.

It's not so simple if you're using the pre-installed Linux on the Acer Aspire One. Chromium requires more recent libraries than already installed, and yum cannot update them due to unresolved dependencies. But you can download and extract the required libraries and make Chromium use them, without interfering with the already installed system libraries.

sudo mkdir -pm 777 /opt/chrome-linux/libs
cd /opt/chrome-linux/libs

wget http://koji.fedoraproject.org/packages/gcc/4.3.2/7/i386/libstdc++-4.3.2-7.i386.rpm
wget http://mirrors.kernel.org/fedora/updates/9/i386.newkey/nspr-4.7.3-1.1.fc9.i386.rpm
wget http://mirrors.kernel.org/fedora/updates/9/i386.newkey/nss-3.12.2.0-3.fc9.i386.rpm
wget http://mirrors.kernel.org/fedora/updates/9/i386.newkey/pango-1.20.4-1.fc9.i386.rpm
wget http://koji.fedoraproject.org/packages/cairo/1.6.4/1.fc9/i386/cairo-1.6.4-1.fc9.i386.rpm
wget http://mirrors.eu.kernel.org/fedora/updates/10/i386/pixman-0.12.0-3.fc10.i386.rpm

for i in `ls *rpm`; do rpm2cpio $i | cpio -idv; done; mv lib/* usr/lib/* $PWD
for i in `ls lib*so`; do ln -s $i $i.0d; ln -s $i $i.1d; done

cat << 'EOF' > /opt/chrome-linux/libs/chrome.sh
#!/bin/sh
export LD_LIBRARY_PATH=/opt/chrome-linux/libs:$LD_LIBRARY_PATH
/opt/chrome-linux/chrome
EOF

chmod 755 /opt/chrome-linux/libs/chrome.sh


Download Chromium and extract it.

wget -N http://build.chromium.org/buildbot/continuous/linux/LATEST/chrome-linux.zip

sudo unzip -o chrome-linux.zip -d /opt
sudo chown -R user /opt/chrome-linux


Open an editor.

sudo mousepad /usr/share/applications/chromium.desktop

Paste the following lines into the editor and save the file.

[Desktop Entry]
Name=Chromium
Comment=Chromium
Exec=/opt/chrome-linux/libs/chrome.sh
Icon=/opt/chrome-linux/chrome.png
Terminal=false
Type=Application


Download an icon and add it to the desktop.

wget http://src.chromium.org/svn/trunk/src/chrome/app/theme/chromium/product_logo_256.png

mv product_logo_256.png /opt/chrome-linux/chrome.png
dca add 10 "file='/usr/share/applications/chromium.desktop'"


To update Chromium just re-download and extract it. Personal settings are kept in the home directory and will be preserved. A new snapshot is usually uploaded every few hours, so it's a bit pointless to try and keep up with it. The latest build number is displayed here.
55



thanks a lot as always.
May 25, 2009 11:07:00 AM



Anonymous
hi I tried this chrome but as it is not fully functional i would like to remove it please can you explain how to do this

mike
May 25, 2009 11:47:00 AM



I suggest to just keep it. It will make upgrading to the beta or final version of Chrome much easier. If you want to remove the icon run the dca command mentioned in the article but replace add with remove. To re-add it run the original dca command again.

May 25, 2009 3:54:00 PM



Anonymous
ok thanks for your fast reply Do you know if Chrome will have the same level of security or better than Firefox
May 26, 2009 8:28:00 AM



Anonymous
I am sure an advanced guy can make a script that always downloads the new version using the number in http://build.chromium.org/buildbot/snapshots/chromium-rel-linux/LATEST
May 26, 2009 4:55:00 PM



It's quite simple actually.

wget -N http://build.chromium.org/buildbot/snapshots/chromium-rel-linux/`curl -s http://build.chromium.org/buildbot/snapshots/chromium-rel-linux/LATEST`/chrome-linux.zip

May 26, 2009 5:13:00 PM



WOW Macles. Am writing this from Chrome.
Thanks for the clear instructions and superb blog - which since I found it have been very very happy.
May 26, 2009 8:42:00 PM



Flash does not work on it.. it asks to download the player but I have it (previous installation via this blog).

Thanks!
May 30, 2009 2:14:00 PM



I wonder how it compares with Opera? I now use this almost exclusively on my A110 because it's much more responsive than either Firefox 2 or 3.
May 30, 2009 5:37:00 PM



Anonymous
Hello macles,

while installing Chrome, I received the following error:

Failed dependencies:
libstdc++ = 4.1.2-33 is needed by (installed) libstdc++-devel-4.1.2-33.i386
libstdc++ = 4.1.2-33 is needed by (installed) gcc-c++-4.1.2-33.i386

I would appreciate any help you could give me
May 31, 2009 7:40:00 PM



Add --nodeps to the sudo rpm line.

May 31, 2009 8:07:00 PM



Anonymous
Macles.

Have followed your instructions to the letter (several times) and whilst I have 2 Chromium shortcuts (oopps) none of them work. Have tried the latest version too. Have a feeling its the editor. Do I need to save to a particular location? Running linpus original

Thanks

Tom
Jun 1, 2009 5:45:00 PM



Pjotr
Chromium is very fast, apparently. Sounds good. However, does it support add-ons?

The prime reason why I mostly use Firefox, instead of Epiphany or Opera, is that I can install the add-ons Adblock Plus, NoScript and Media Player Connectivity. Does Chromium offer similar functionality?
Jun 1, 2009 9:01:00 PM



Anonymous
Threadjack... Google Android OS coming soon to the Aspire One!
Jun 2, 2009 10:41:00 PM



Tried Chromium. yes it is fast. I'm looking for the "how to" android inside UNR 9.04, pretty interesting :).
Jun 6, 2009 4:17:00 PM



Anonymous
Thanks for the great blog. Installed Chromium no problem, but now Add/Remove Programs does not work. Have you got a fix?

Thanks Tim
Jun 7, 2009 2:11:00 PM



Anonymous
Macles, I was wondering if you could enlighten us mere mortals on another subject as well. I have recently started using iweb on my macbook for my first steps into web design and it is great. Is there something similar that can be used in Linux on the AA1?
Your mission -should you decide to accept it- would be to cast your magic on some step by step instructions on what could work on the AA1.
Humbled and in awe as always!
Terry
Jun 7, 2009 6:34:00 PM



Anonymous
Hello, more info on Add/Remove not working. Looks like some libs need reverting back to fc8. Or is there an fc9 version of libs that works with PIRUT and PUP. Please see error script below:

Pirut

[user@localhost ~]$ pirut
Unable to import modules. Maybe you're not running under X?

Pup

[user@localhost ~]$ pup
Traceback (most recent call last):
File "/usr/sbin/pup", line 32, in {module}
import gtk
File "/usr/lib/python2.5/site-packages/gtk-2.0/gtk/__init__.py", line 48, in {module}
from gtk import _gtk
ImportError: /usr/lib/libpangoft2-1.0.so.0: undefined symbol: g_assertion_message_expr

"I've had to replace < brackets with { brackets due to tags not allowed around module"

Best Regards Tim
Jun 8, 2009 2:16:00 PM



There is indeed a library mismatch, with no easy way to solve it except for using --force to revert back to a previous pango version, but Chromium will no longer work then.

Jun 8, 2009 3:43:00 PM



Anonymous
Thanks for the quick response, Macles*
Is the command:

wget http://kojipkgs.fedoraproject.org/packages/pango/1.18.4/1.fc8/i386/pango-1.18.4-1.fc8.i386.rpm

and then
yum update pango --force

Please post correct code to revert back to fc8 version of pango.

Thanks Tim
Jun 8, 2009 5:04:00 PM



Use sudo rpm -U pango-1.18.4-1.fc8.i386.rpm --force to install it. If you want to keep using Chromium and only use pirut once in a while you can just switch back and forth between both pango versions. Not very convenient but there is no other solution.

Jun 8, 2009 5:32:00 PM



Anonymous
Thanks for that! You're a star!

Cheers Tim
Jun 8, 2009 7:08:00 PM



I was frightened with updating the system libraries, so I've found other way to run Chromium in our Linpus.

The trick is this: unpack the rpms contents in a isolated directory, for example, /opt/chrome-linux/libs

Then, invoke chromium with this command:
LD_LIBRARY_PATH=/opt/chrome-linux/libs:$LD_LIBRARY_PATH /opt/chrome-linux/chrome
Jun 10, 2009 9:43:00 AM



Anonymous
Tom, I had exactly the same problem, I had not noticed that I had had an error during the installation in fact the same one as "Anonymous", just re-do everything again but this time add "--nodeps" to the sudo rpm line. Then remove the double chromium entry from /home/user/.config/xfce4/desktop/group-app.xml
Jun 11, 2009 9:34:00 PM



Anonymous
"Flash does not work on it.. it asks to download the player but I have it (previous installation via this blog)"

Yeah flash no workie for me either. I have 6.10 installed and it is not working.

Back to firefox I go, shame too, it is quick as a bunny.

Mike
Jun 16, 2009 5:05:00 AM



I had the same problem. Its too bad. Chromium was super quick. Flash worked on the one I got too. Hopefully we can get a version that doesn't break our Add/Remove function. I would definitely switch.

Lance
Jun 21, 2009 3:42:00 AM



Ok, Ive reverted back to using Firefox and fixed my Add/Remove problem using your instructions.

Can you tell us please how to Uninstall the program to recover space? I already used the DCA command to remove the icon but I know the program is still in there. Once again. This is the best blog on the net. I appreciate the help.

Lance
Jun 21, 2009 3:47:00 AM



Anonymous
Has anyone had issues with setting the time after doing this? I can do it at the command line, but the "settings" option appears to do nothing.
Jul 1, 2009 11:26:00 AM



I modified the instructions to extract all libraries into a seperate directory, as suggested in an earlier comment. This resolves all problems related to the library mismatch. If you already installed chromium revert to the previous pango version first.

Jul 3, 2009 6:25:00 PM



rama
Hi - Tried the install several times yesterday and today, but keep getting the following when chrome starts
symbol lookup error: /opt/chrome-linux/chrome: undefined symbol: cairo_format_stride_for_width

Have googled and found that some others are getting this, but no resolutions - any ideas?
[Did come across one entry that stated "emerge" the cairo libraries, followed by the pango libraries, and it would work - dont know what "emerge"'ing involves - has something been broken in the build?
Any assistance gratefully recieved.
Brilliant blog BTW Macles.
Jul 5, 2009 12:09:00 PM



Ah yes there was a small mistake in the update I made yesterday, it linked to cairomm instead of cairo. Just delete the chrome-linux directory and restart from the beginning. You can skip the dca command if the icon is already on the desktop.

Jul 5, 2009 3:45:00 PM



Rama
Many thanks for the swift response - sorted now.
Excellent stuff.
Jul 6, 2009 9:45:00 AM



I'm getting two errors:

First, trying to execute this code

install -m 755 <(cat << 'EOF'
#!/bin/sh
export LD_LIBRARY_PATH=/opt/chrome-linux/libs:$LD_LIBRARY_PATH
/opt/chrome-linux/chrome
EOF) /opt/chrome-linux/libs/chrome.sh

gets

bash: install: command not found

Of course, this means that the new icon which points to the chrome.sh won't work.

That said, the invokation of

LD_LIBRARY_PATH=/opt/chrome-linux/libs:$LD_LIBRARY_PATH /opt/chrome-linux/chrome

works.

How can I link this to the chromium.desktop icon?
Jul 10, 2009 12:42:00 AM



One specific version of the pre-installed Linux shipped with a broken coreutils package without the install command. Use sudo yum update coreutils to update it.

Jul 10, 2009 1:43:00 AM



[user@localhost ~]$ sudo yum update coreutils
fedora 100% |=========================| 2.1 kB 00:00
updates 100% |=========================| 2.6 kB 00:00
adobe-linux-i386 100% |=========================| 951 B 00:00
Setting up Update Process
Could not find update match for coreutils
No Packages marked for Update

?
Jul 10, 2009 1:50:00 AM






... nevermind, searched your site for coreutils and found this couplet:


sudo rpm -e --nodeps coreutils
sudo yum install coreutils
Jul 10, 2009 2:00:00 AM



I changed the instructions to not depend on install anymore, just in case.

Jul 10, 2009 2:56:00 AM



Yeah, you're the man!

I wonder if it is possible to remove the windows borders, just to make it look like in Windows...

'Saludos' from Spain!
Jul 11, 2009 2:44:00 AM



Anonymous
hi
can you put flash player and other add ons on chromium?
Jul 11, 2009 2:55:00 PM



you have to edit the chrome.sh file so it is:
#!/bin/sh
export LD_LIBRARY_PATH=/opt/chrome-linux/libs:$LD_LIBRARY_PATH
/opt/chrome-linux/chrome --enable-plugins

Java is still not supported though

- Peter
Jul 18, 2009 4:53:00 PM



If you use a netbook you should disable the 'Use system title bar and borders' by rightclicking next to the tabs. This way you have few extra pixels to use for displaying the webpages...
Jul 18, 2009 4:56:00 PM



arun
let me know when flash player is going to work with google chrome please, then i will download. it now i am fine with firefox 3
thank u
Jul 23, 2009 5:56:00 PM



Anonymous
[user@localhost ~]$ cat << 'EOF' > /opt/chrome-linux/libs/chrome.sh
>
i am stuck help me please

arun
Jul 25, 2009 3:24:00 PM



kap4lin
This is indeed interesting. I am hoping to get this working on RedHat EL5 (64-bit). I am assuming that the rpms provided above are 32-bit. Is that correct? Anyways, the following pango error comes up:

[somepath]/chrome-linux/chrome: symbol lookup error: [somepath]/chrome-linux/libs/libpangocairo-1.0.so.0: undefined symbol: g_once_init_enter_impl

Any idea to on how to fix this?
Aug 24, 2009 8:45:00 PM



Anonymous
Hi, i downloaded the latest version of this, it says

'Plugins (e.g. Flash) are partway implemented and will cause frequent crashes. Use --enable-plugins to turn them on if you're ok with that'

What to i do to turn flash on? What do i type and where do i type it?

Thanks in advance :)
Sep 9, 2009 2:59:00 PM



Anonymous
Chromium is the fastest Browser for Online Browsergames or apps ?!!
But i need a fast Browser with JAVA. Is there any way to use chromium with java?
thanks
Nov 6, 2009 10:38:00 PM



Anonymous
Hi, thanks for your work!

What about the new release of a google chrome version for linux? There is a Fedora/OpenSuse rpm install file, but I don´t think it is going to work with the usual dependence problems. Could you help us with this? It would be great because I´m not an expert on linux, so I can´t do it myself. Thanks again.
Dec 10, 2009 6:26:00 PM



Shaun
I originally installed Chrome months ago ten recently had to reinstall everything. Now I can't install Chrome at all. Are the http://koji.fedoraproject.org links still valid as connecting attempts keep failing?
If not, does anyone have alternatives for the require links?
Dec 13, 2009 1:30:00 PM



I did the following to get Chromium back to the last build from November. It still works fine. Not sure if a later one is better, but at least I have Chromium back! Someone smarter will have to show how to get the later builds to work on our Aspire Ones.

wget -N http://build.chromium.org/buildbot/continuous/linux/2009-11-30/33434/chrome-linux.zip
sudo unzip -o chrome-linux.zip -d /opt
sudo chown -R user /opt/chrome-linux
Dec 18, 2009 10:24:00 PM



The current build works, it's just that Chromium expects libbz2.so.1.0 but only libbz2.so.1 is provided by the system. A simple symlink helps. I haven't edited the article because it's probably only a temporary problem.

ln -s /opt/chrome-linux/libs/libbz2.so.1 /opt/chrome-linux/libs/libbz2.so.1.0

Dec 19, 2009 7:09:00 AM



Hi, Macles. I got it working with your steps. I've been using your site for quite a while. Thanks so much. I did notice though that the last line you posted regarding the symlink didn't work. The way I got it to work was as follows:

ln -s /lib/libbz2.so.1 /opt/chrome-linux/libs/libbz2.so.1.0

Of course, you have to remove the symlink that didn't work (if you used it like I did) by doing:

rm -rf /opt/chrome-linux/lib/libbz2.so.1.0

And then recreate the symlink, and all should be good and Chrome will run from the icon on the desktop or by running /opt/chrome-linux/libs/chrome.sh

Thanks!
Dex
Dec 23, 2009 3:39:00 AM



Pushkar
I am getting the following error while launching chrome:

/opt/chrome-linux/chrome: symbol lookup error: /opt/chrome-linux/libs/libpangocairo-1.0.so.0: undefined symbol: g_once_init_enter_impl

How do I resolve this?

Thanks,
Pushkar
Dec 24, 2009 9:12:00 PM



I get the following errors and then the browser crashes:
/opt/chrome-linux/chrome: /lib/libz.so.1: no version information available (required by /opt/chrome-linux/chrome)
/opt/chrome-linux/chrome: /lib/libz.so.1: no version information available (required by /opt/chrome-linux/chrome)
[14999:15006:12585552800:ERROR:/b/slave/chromium-rel-linux/build/src/net/disk_cache/backend_impl.cc(128)] Unable to rename cache folder
[14999:15006:12588726186:ERROR:/b/slave/chromium-rel-linux/build/src/base/nss_init.cc(84)] Error initializing NSS with a persistent database (sql:/home/pushkar/.pki/nssdb): NSS error code -5977
[14999:15006:12588726277:ERROR:/b/slave/chromium-rel-linux/build/src/base/nss_init.cc(94)] Error initializing NSS without a persistent database: NSS error code -5925
./chrome.sh: line 3: 14999 Segmentation fault /opt/chrome-linux/chrome --enable-plugins

How to fix this?

FYI, I am running Fedora core 6.

Regards,
Pushkar
Dec 24, 2009 10:59:00 PM



Anonymous
I can see the icon in the CONNECT area in my acer aspire one. But it doesn't open. How do I fix this please? :(

Sincerely,
Nay
Dec 27, 2009 4:07:00 PM