linux升级火狐,Ubuntu中升级Firefox

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的启动器中。

快捷方式属性:

2bafc73a67ddd0d275ad70c336d26939.png

安装flashplayer

Firefox开始的时候不能播放Flash视频,虽然安装了Flashplayer;Chrome浏览器可以正常播放,但Firefox却无法正常播放;原因不明,下面记一下如何为Firefox安装Flashplayer插件。

我的Ubuntu是64位的,所以下载下来的tar.gz包如下:

574ae056c481698a08f5d03b4c7ca9d6.png

将其解压,得到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

  • 0
    点赞
  • 1
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值