linux中不能播放flash player

浏览时遇到无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 mozilla
/usr/lib/mozilla
/usr/share/mozilla

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

如果还是没有成功加载则继续下一步

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


来个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

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值