linux 下firefox安装flash player插件

我的linux版本是CentOS 6.4 浏览时遇到无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

posted on 2015-03-31 23:27 snowhill 阅读(202) 评论(0)  编辑 收藏 引用 所属分类: 系统管理


只有注册用户登录后才能发表评论。
网站导航: 博客园   IT新闻   BlogJava   知识库   博问   管理


<2007年11月>
28293031123
45678910
11121314151617
18192021222324
2526272829301
2345678

导航

公告

又一年...........

留言簿(3)

随笔分类(13)

文章分类(131)

文章档案(124)

c++

java

linux

oracle

常用软件

其他

网络配置

系统安全

音乐

搜索

最新评论

阅读排行榜