linux下 firefox安装flash插件(手动安装)

我的linux版本是CentOS 6.

 

浏览时遇到无flash插件时,到官网下载一个:

http://get.adobe.com/cn/flashplayer/


我下载的是:install_flash_player_11_linux.i386.tar.gz

OK,开始安装。


1.找到正确目录

 

 

#whereis firefox
firefox: /usr/bin/firefox /usr/share/man/man1/firefox.1.gz

 

现在可以确定它在/usr下面了,再找下安装目录

 

#find /usr -name firefox

/usr/bin/firefox

 

哎呀,没找到,/usr/bin/firefox这个是程序,不是目录

。。。不要忘了firefox的全名是Mozilla Firefox,继续找

 

#find /usr -name mozilla

/usr/lib/mozilla
/usr/share/mozilla


OK,有两个目录出来了。

说说我遇到的事:屁颠屁颠从图形界面去找这两个目录,结果是找不到,没弄明白,只好用命令了。


2.查看plugins到底放在哪

 

# ls /usr/share/mozilla
extensions

 

这个没有,下一个

 

# ls /usr/lib/mozilla
extensions  plugins  plugins-wrapped


OK,找到插件目录/usr/lib/mozilla/plugins

 
3.解压安装包install_flash_player_11_linux.i386.tar.gz,找到libflashplayer.so

 

复制libflashplayer.so到firefox插件目录下

 

#cp flash_source_path/libflashplayer.so /usr/lib/mozilla/plugins

flash_source_path/libflashplayer.so是插件的绝对路径,如果你在当前目录下,直接

#cp libflashplayer.so /usr/lib/mozilla/plugins


到这里插件已经复制进去了,打开firefox,郁闷,如果还是没有成功加载则继续下一步


4.又是权限问题

 

转入插件目录

#cd /usr/lib/mozilla/plugins


查看权限

# ls -l
总用量 17000
-rw-r--r--. 1 root root 17047372  3月  2 00:26 libflashplayer.so
-rwxr-xr-x. 1 root root     4332 11月 12 2010 librhythmbox-itms-detection-plugin.so
-rwxr-xr-x. 1 root root    94248 11月 12 2010 libtotem-cone-plugin.so
-rwxr-xr-x. 1 root root   102784 11月 12 2010 libtotem-gmp-plugin.so
-rwxr-xr-x. 1 root root    68600 11月 12 2010 libtotem-mully-plugin.so
-rwxr-xr-x. 1 root root    77188 11月 12 2010 libtotem-narrowspace-plugin.so

 

看吧libflashplayer.so权限和其它插件的不同,不管了,来个755

 

#chmod 755 libflashplayer.so
#ls -l
总用量 17000
-rwxr-xr-x. 1 root root 17047372  3月  2 00:26 libflashplayer.so
-rwxr-xr-x. 1 root root     4332 11月 12 2010 librhythmbox-itms-detection-plugin.so
-rwxr-xr-x. 1 root root    94248 11月 12 2010 libtotem-cone-plugin.so
-rwxr-xr-x. 1 root root   102784 11月 12 2010 libtotem-gmp-plugin.so
-rwxr-xr-x. 1 root root    68600 11月 12 2010 libtotem-mully-plugin.so
-rwxr-xr-x. 1 root root    77188 11月 12 2010 libtotem-narrowspace-plugin.so

 

注:如果发现其用户和组群和其它插件不一样的话,也改下吧,我直接root进行操作的,没有问题,不知道用其它用户怎么样,命令如下:
#chown root:root libflashplayer.so


再次打开firefox,终于发现成功加载了,。。。激动中。。。


原地址:http://blog.csdn.net/yanhang1589/article/details/7312691


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

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

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

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值