cd /usr/lib/
sudo tar -xvf /home/zyh/software/Firefox-latest.tar.bz2
这样就将Firefox安装在了/usr/lib下,在该目录输入 ./firefox 命令即可启动浏览器。但仅这样的话,每次启动Firefox都需要到该目录来,很是麻烦,我们可以建立链接到 /usr/bin 目录:
cd /usr/bin/
sudo ln -s /usr/lib/firefox/firefox
这样我们就可以在终端任意路径下启动Firefox了。
最后给Firefox创建一个快捷方式
cd /usr/share/applications
vi firefox.desktop
然后在VI中编辑firefox.desktop文件内容如下(可以使用任何编辑器,比如nano或者gedit):
[Desktop Entry]
Name=Firefox
Comment=火狐浏览器
GenericName=火狐浏览器-中国版
Exec=/usr/lib/firefox/firefox
Icon=/usr/lib/firefox/browser/icons/mozicon128.png
Terminal=false
Type=Application
Categories=Application;Network;
保存退出后/usr/share/applications中就会出现Firefox的快捷方式,双击即可启动Firefox浏览器了。也可以将它复制到桌面或者固定到Unity的启动器中。
快捷方式属性:
安装flashplayer
Firefox开始的时候不能播放Flash视频,虽然安装了Flashplayer;Chrome浏览器可以正常播放,但Firefox却无法正常播放;原因不明,下面记一下如何为Firefox安装Flashplayer插件。
我的Ubuntu是64位的,所以下载下来的tar.gz包如下:
将其解压,得到libflashplayer.so和readme.txt两个文件,另外还有一个usr文件夹;打开readme.txt文本文件,里面有一段安装说明介绍了如何安装flashplayer,内容如下:
Installing using the plugin tar.gz:
o Unpack the plugin tar.gz and copy the files to the appropriate location.
o Save the plugin tar.gz locally and note the location the file was saved to.
o Launch terminal and change directories to the location the file was saved to.
o Unpack the tar.gz file. Once unpacked you will see the following:
+ libflashplayer.so
+ /usr
o Identify the location of the browser plugins directory, based on your Linux distribution and Firefox version
o Copy libflashplayer.so to the appropriate browser plugins directory. At the prompt type:
+ cp libflashlayer.so
o Copy the Flash Player Local Settings configurations files to the /usr directory. At the prompt type:
+ sudo cp -r usr/* /usr
首先拷贝libflashplayer.so到浏览器的plugins目录,对我的浏览器来说是/usr/lib/mozilla/plugins/目录;其次是拷贝usr目录到/usr目录下,这样就为Firefox浏览器成功安装了flashplayer插件。
命令如下
tar -zxvf install_flash_player_11_linux.x86_64.tar.gz
sudo cp libflashplayer.so /usr/lib/mozilla/plugins/
sudo cp -r usr/* /usr