Ubuntu中升级Firefox及flash player

我的Ubuntu系统自带的Firefox浏览器版本是17.0.1,今天看到官网上最新版本已经到23了,因此想将其升级一下。

 

对Linux不是很熟悉,得益于搜索引擎,最终将其成功升级,这里记录一下操作过程。

 

升级Firefox

首先是下载Firefox,我是从这里下载的:http://firefox.com.cn/download/

 

火狐在linux下不提供安装包(如rpm或者deb包)下载,只提供二进制可执行文件打包。下载可执行文件包,解压后是可以直接用的,但我们一般会进行一些配置。

 

我下载的是中文版的Firefox,地址:http://download.firefox.com.cn/releases/firefox/22.0/zh-CN/Firefox-latest.tar.bz2

 

 

Linux发行版一般本身也带火狐,因些需要将其先卸载掉:

C代码   收藏代码
  1. sudo apt-get remove firefox    

 
不要用-purge选项,这样会删除掉Firefox原来的配置文件。

然后将下载的Firefox-latest.tar.bz2解压到/usr/lib目录下:

C代码   收藏代码
  1. cd /usr/lib/    
  2. sudo tar -xvf /home/zyh/software/Firefox-latest.tar.bz2    

 
这样就将Firefox安装在了/usr/lib下,在该目录输入 ./firefox 命令即可启动浏览器。但仅这样的话,每次启动Firefox都需要到该目录来,很是麻烦,我们可以建立链接到 /usr/bin 目录:

C代码   收藏代码
  1. cd /usr/bin/    
  2. sudo ln -s /usr/lib/firefox/firefox    

 
这样我们就可以在终端任意路径下启动Firefox了。

最后给Firefox创建一个快捷方式

C代码   收藏代码
  1. cd /usr/share/applications    
  2. vi firefox.desktop    

 
然后在VI中编辑firefox.desktop文件内容如下(可以使用任何编辑器,比如nano或者gedit):

C代码   收藏代码
  1. [Desktop Entry]  
  2. Name=Firefox  
  3. Comment=火狐浏览器  
  4. GenericName=火狐浏览器-中国版  
  5. Exec=/usr/lib/firefox/firefox  
  6. Icon=/usr/lib/firefox/browser/icons/mozicon128.png  
  7. Terminal=false  
  8. Type=Application  
  9. Categories=Application;Network;  

 
保存退出后/usr/share/applications中就会出现Firefox的快捷方式,双击即可启动Firefox浏览器了。也可以将它复制到桌面或者固定到Unity的启动器中。

快捷方式属性:

 

 

安装flashplayer

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

 

首先下载插件:http://get.adobe.com/cn/flashplayer/

 

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

 

 

将其解压,得到libflashplayer.so和readme.txt两个文件,另外还有一个usr文件夹;打开readme.txt文本文件,里面有一段安装说明介绍了如何安装flashplayer,内容如下:

C代码   收藏代码
  1. Installing using the plugin tar.gz:  
  2.     o Unpack the plugin tar.gz and copy the files to the appropriate location.    
  3.     o Save the plugin tar.gz locally and note the location the file was saved to.  
  4.     o Launch terminal and change directories to the location the file was saved to.  
  5.     o Unpack the tar.gz file.  Once unpacked you will see the following:  
  6.         + libflashplayer.so  
  7.         + /usr  
  8.     o Identify the location of the browser plugins directory, based on your Linux distribution and Firefox version  
  9.     o Copy libflashplayer.so to the appropriate browser plugins directory.  At the prompt type:  
  10.         + cp libflashlayer.so <BrowserPluginsLocation>  
  11.     o Copy the Flash Player Local Settings configurations files to the /usr directory.  At the prompt type:  
  12.         + sudo cp -r usr/* /usr  

 
首先拷贝libflashplayer.so到浏览器的plugins目录,对我的浏览器来说是/usr/lib/mozilla/plugins/目录;其次是拷贝usr目录到/usr目录下,这样就为Firefox浏览器成功安装了flashplayer插件。

命令如下

C代码   收藏代码
  1. tar -zxvf install_flash_player_11_linux.x86_64.tar.gz  
  2. sudo cp libflashplayer.so /usr/lib/mozilla/plugins/  
  3. sudo cp -r usr/* /usr  

 

原文:http://blog.csdn.net/zhyh1986/article/details/9674327


评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值