今天在用ubuntu,尝试在firefox上安装flash插件。过程简直比我预想中的要简单得多,其实就三个字:『拷文件』!我这是第一次自己安装软件,所以一些过程顺便写下来,适合如我等小白翻阅。

似乎get.adobe.com/flash上下载回来的.tar.gz不是源码,不用编译,拿来就用。cd.tar.gz的目录,解压:

tar -xvzf 那啥.tar.gz


这里打『那啥』的前几个字母按tab即可自动完成。打开那个readme.txt看看,其中有部分如下:

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

Uninstallation instructions
---------------------------

Manual uninstallation (for users who installed the plugin via Install script):
   o Delete libflashplayer.so binary and flashplayer.xpt file in 
   directory /home/<user>/.mozilla/plugins/

RPM uninstallation:
   o As root, enter in terminal:
          + # rpm -e flash-plugin
          + Click Enter key and follow prompts

其中凡是说啥“RPM”的我都不管啦。按他说的做就是了。这里,我使用的所谓“the appropriate browser plugins directory”,对于firefox来讲,就是/usr/lib/mozilla/plugins/

至于复制usr目录什么的,其实就是将解压出来的usr文件夹内的所有文件("usr/*")复制到/usr

就是这样。firefox刷新下就能播flash内容了。简单到我都情何以堪了……