linux下 firefox安装flash_player插件

来源:互联网 发布:淘宝上货流程 编辑:程序博客网 时间:2024/05/17 06:06

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

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


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

OK,开始安装。 查看其中的readme.txt,有说明如何安装。其中主要内容为

    o Copy libflashplayer.so to the appropriate browser plugins directory.  At the prompt type:
        + cp libflashplayer.so <BrowserPluginsLocation>(即火狐的安装路径下)
    o Copy the Flash Player Local Settings configurations files to the /usr directory.  At the prompt type:
        + sudo cp -r usr/* /usr(这个步骤我记得绘出问题需要自己手动复制)


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

0 0
原创粉丝点击