Do You Love Me?

@Venusxx

January 20th 2007 / 自言自语

6.06安装FF2.0

我的Ubuntu是6.06(Draper)+Gnome+FireFox1.5.0.8

主要参考资料:
http://help.ubuntu.com/community/FirefoxNewVersion
http://forum.ubuntu.org.cn/viewtopic.php?t=35132
[separator]
[quote]First, back up your bookmarks and settings:
cd ~/.mozilla/firefox/.default
mkdir ~/Desktop/ffsettings
cp bookmarks.html cert8.db cookies.txt formhistory.dat hostperm.1 key3.db signons.txt history.dat mimeTypes.rdf ~/Desktop/ffsettings[/quote]
1、备份你的书签和设置:
cd ~/.mozilla/firefox/
.default
mkdir ~/Desktop/ffsettings
cp bookmarks.html cert8.db cookies.txt formhistory.dat hostperm.1 key3.db signons.txt history.dat mimeTypes.rdf ~/Desktop/ffsettings

[quote]Download Firefox from the Firefox website, and change to the directory you downloaded it to. Install it to /opt/firefox:

extract tar into /opt (you should make sure /opt already exists)

sudo tar xzvf firefox-2.0.tar.gz -C /opt

remove the package if you no longer require it

rm firefox-2.0.tar.gz[/quote]
2、然后下载FF2.0并解压缩到/opt/firefox目录。(一般软件装在/opt目录下,当然你也可以用其他目录)
sudo tar xzvf firefox-2.0.tar.gz -C /opt

[quote]Link to your plugins and remove totem-mozilla as it doesn't seem to work with Firefox 1.5.x or 2.x:
sudo mv /opt/firefox/plugins /opt/firefox/plugins.bak
sudo ln -s /usr/lib/firefox/plugins /opt/firefox/plugins
sudo rm /usr/lib/firefox/plugins/libtotem_mozilla.*[/quote]
3、将你原来的插件链接到FF2.0中,并移除totem-mozilla插件。(如果你原来是FF1.5的话,移除totem-mozilla插件这步好像不用了,因为根本就没包含,至少我是这样。)
sudo mv /opt/firefox/plugins /opt/firefox/plugins.bak
sudo ln -s /usr/lib/firefox/plugins /opt/firefox/plugins

[quote]Change to your home directory, and rename your old profile, leaving it as a backup (using the existing profile may cause problems with Firefox 2.x):
cd
mv ~/.mozilla/firefox ~/.mozilla/firefox1.x.ubuntu[/quote]
4、关键步骤1
将系统原来的FF改名(备份)成其他名字(这里是从firefox改成了firefox1.x.ubuntu,你也可以改成任何你喜欢的)
cd
mv ~/.mozilla/firefox ~/.mozilla/firefox1.x.ubuntu

[quote]To ensure it is used as the default version, modify the symbolic link in /usr/bin:

First, /usr/bin/firefox

sudo dpkg-divert --divert /usr/bin/firefox.ubuntu --rename /usr/bin/firefox
sudo ln -s /opt/firefox/firefox /usr/bin/firefox

Then, /usr/bin/mozilla-firefox, used as the default gnome browser

sudo dpkg-divert --divert /usr/bin/mozilla-firefox.ubuntu --rename /usr/bin/mozilla-firefox
sudo ln -s /opt/firefox/firefox /usr/bin/mozilla-firefox

The dpkg-divert command will move the original system-wide /usr/bin/firefox to a new name.

发表评论
已登录为 [退出]


x