vrijdag 24 juli 2009

Install FireFox3 on the Acer Aspire One

Also, a good thing to do with your Aspire One is to install Firefox 3. Firefox 2 is installed by default, but since several Linpus programmes (like email) depend on Firefox 2 libraries, you cannot just upgrade 2 to 3.
I found a very good tutorial you can use, or you can follow my summary of the tutorial.

On the Firefox site you can choose the newest Firefox in your favorite language. Make sure you choose a download with os=linux. In this example, I'll use version 3.5.1 in US English. I downloaded via the link http://www.mozilla.com/products/download.html?product=firefox-3.5.1&os=linux&lang=en-US and put it in /tmp.

Now extract the file as superuser to the directory /opt.
sudo tar -jxf firefox-3.5.1.tar.bz2 --directory /opt

Set the default user as owner of all the files with
sudo chown user -R /opt/firefox

I choose to rename the old startup script /usr/bin/firefox to firefox2. Then I set a symbolic link from /usr/bin/firefox to the newly installed one.
sudo mv /usr/bin/firefox /usr/bin/firefox2
sudo ln -fs /opt/firefox/firefox /usr/bin/firefox

The next step links all plug-ins (not to be confused with extensions) to Firefox 3.
sudo ln -s /usr/lib/mozilla/plugins/* /opt/firefox/plugins

Launch the profile manager using the command below. Create a new profile, name it anything you like and select it. If you want to keep your bookmarks export them via the bookmark manager first. You can then delete the old default profile.
The old profile has some things disabled, including the "check for updates".
firefox -profilemanager -no-remote

Now, I'm going to change the connect menu. First, copy the old .desktop file to a new one. I want to keep the old one, just in case.
sudo cp /usr/share/applications/linpus-web.desktop /usr/share/applications/firefox3.desktop

Edit the linpus-web.desktop file with your favorite editor. Search the line with "Exec=firefox" and edit it to "Exec=firefox2".
In the file firefox3.desktop, replace the old icon with a new one.
sudo sed '/Icon/ s/acs_//' -i /usr/share/applications/firefox3.desktop

Now, edit the menu. Edit the file ~/.config/xfce4/desktop/group-app.xml.
Optional: I copied the line <app sequence="0">/usr/share/applications/linpus-web.desktop</app> to the bottom of the block, replacing 0 by 11 (my last menuitem was 10).
We want to have the new FireFox icon on the first spot (replacing the old browser). Edit the line <app sequence="0">/usr/share/applications/linpus-web.desktop</app> and replace "linpus-web.desktop" by "firefox3.desktop".

Now, after a reboot of the system, it should work. You'll have a nice Firefox logo in the connect menu, which will open Firefox3.

Geen opmerkingen:

Een reactie posten