首页 » 性感的程序员 » Ubuntu下为Firefox安装adobe flash player

Ubuntu下为Firefox安装adobe flash player

网上搜索会有很多安装教程,大同小异.一般的文章只会说第一步第二步干嘛干嘛,但当离开某篇教程之后,就没办法自己再去安装.本文的目的就是为了避免这种情况.

和平常一样,要安装,首先得去官网下载一个adobe flash player.我下载的是 install_flash_player_11_linux.x86_64.tar.gz 安装包
然后解压.解压后的目录结构如下

+ libflashplayer.so
+ /usr
+readme.txt

然后打开 readme.txt ,这里面有很多有用信息.其中一段是 Installation instructions,如下

Installation instructions
-------------------------

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

Installing the plugin using RPM:
   o As root, enter in terminal:
          + # rpm -Uvh <rpm_package_file>
          + Click Enter key and follow prompts

Installing the standalone player:
   o Unpack the tar.gz file
   o To execute the standalone player,
          + Double-click, or 
          + Enter in terminal: ./flashplayer

这一段就是说的怎么安装.因为之前下载的是 tar.gz 安装包,自然就找到对应的安装方法.即:

Installing using the plugin tar.gz:
    o Unpack the plugin tar.gz and copy the files to the appropriate location.  
    o Save the plugin tar.gz locally and note the location the file was saved to.
    o Launch terminal and change directories to the location the file was saved to.
    o Unpack the tar.gz file.  Once unpacked you will see the following:
        + libflashplayer.so
        + /usr
    o Identify the location of the browser plugins directory, based on your Linux distribution and Firefox version
    o Copy libflashplayer.so to the appropriate browser plugins directory.  At the prompt type:
        + cp libflashlayer.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.解压下载的安装包 install_flash_player_11_linux.x86_64.tar.gz
2.将 libflashplayer.so 文件复制到浏览器插件文件夹里面
3.将 /usr 文件夹复制到系统的 usr/ 文件夹内

到此,adobe flash player 插件就算安装成功了.

看到这个地方,至少你应该学会了下载一个软件后,去看看 readme.txt 文件,软件的文档才是最好的教程.很多人往往会忽略掉这个文档,而四处去搜索软件的安装或使用方法.而该文件往往包含很重要的信息,能解决你大部分的疑问.