1. 程式人生 > >Linux 瀏覽器下安裝 Flash

Linux 瀏覽器下安裝 Flash

在linux下為瀏覽器安裝flash

官方readme檔案有關內容如下:

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
o Copy the Flash Player Local Settings configurations files to the /usr directory. At the prompt type:
+ sudo cp -r usr/* /usr

官方的說明就是最好的教程,希望自己能養成事事看官方文件的習慣,百度來百度去的效率很低。

簡要說明:

  1. 從flash官網下載針對Linux的外掛,(有rpm,apt,tar.gz三種,壓縮檔案比較通用)
  2. 解壓得到
    • libflashplayer.so
    • /usr
  3. 把.so檔案拷貝到瀏覽器外掛目錄下(不同瀏覽器不同,firefox的是/usr/lib/mozilla/plugins/)
  4. 進入解壓後的目錄,執行cp ./usr/* -r /usr
  5. 重啟瀏覽器,大功告成