【轉載】
最近重新安裝了Ubuntu系統,因此flash play需要重新安裝。本文就是記錄。
准備工作
首先,我們去這個地方下載需要的tar包:https://get.adobe.com/cn/flashplayer .Firefox和Chromium需要的flash都在這里.
為Chromium安裝Flash player
1.解壓下載的tar包解壓到需要的位置
tar xzvf flash_player_ppapi_linux.x86_64.tar.gz -C flash_chrome
里面大概有這樣幾個文件:
.
├── LGPL
│ ├── LGPL.txt
│ └── notice.txt
├── libpepflashplayer.so
├── manifest.json
└── README
directory, 5 files
2.把libpepflashplayer.so復制到chromium的插件目錄:
sudo cp libpepflashplayer.so /usr/lib/chromium-browser/plugins/libpepflashplayer.so
3.修改chromium的配置文件:
修改/etc/chromium-browser/default,修改CHROMIUM_FLAGS,修改后大致如下:
Options to pass to chromium-browser
CHROMIUM_FLAGS="--ppapi-flash-path=/usr/lib/chromium-browser/plugins/libpepflashplayer.so --ppapi-flash-version=22.0.0.209"
這里有一點需要注意:其中ppapi-flash-version=22.0.0.209中的版本號,要與tar包中manifest.json中的版本號對應起來.
4.重啟Chromium即可生效
為Firefox安裝Flash player
1.解壓下載的tar包解壓到需要的位置
tar xzvf flash_player_ppapi_linux.x86_64.tar.gz -C flash_chrome
里面大概有這樣幾個文件:
.
├── LGPL
├── libflashplayer.so
├── readme.txt
└── usr
directories, 2 file
其中的readme.txt中有這樣一段話:
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
我們接下來的步驟就是按照這段話來做.
2.libflashplayer.so復制到firefox的插件目錄:
sudo cp libflashplayer.so /usr/lib/mozilla/plugins/libflashplayer.so
3.復制flash的配置文件:
sudo cp -r usr/* /usr
4.重啟firefox即可。
結語:就這么多,挺簡單吧.