起因:chrome無法播放優酷視頻,然后換firefox發現居然沒有裝flash 插件。
解釋:關於chrome在網上看到了不少說法,說chrome新版本的不支持adobe flash之類的,但是這些都不是我們該擔心的,在新版的chrome(ubuntu下的)都已經包含了flash相關的插件,如圖可以看到(最后一個插件)
但是今天我的電腦就是腦抽,本來還能用的,看着看着就不行了,鼓搗半天,又突然莫名奇妙的好了,這個不是重點。
FireFox安裝adobeflash 插件:
其實在adobe下的壓縮包里有說明(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 <BrowserPluginsLocation> o Copy the Flash Player Local Settings configurations files to the /usr directory. At the prompt type: + sudo cp -r usr/* /usr
這里要說明的是:adobe網站上的rpm包估計版本有點老,還是建議下載for other linux的tar.gz包。
不願意看英文的,我這里翻譯一下主要步驟:
1. 解壓tar.gz包
tar -xzvf <壓縮包名字>
2. 解壓以后你可以看到,文件夾里有一個 libflashplayer.so,還有一個usr文件夾,當然還有一些其他的文件夾,但是無關緊要。
3. 找到你的firefox插件的位置,一般是/usr/lib/firefox-addons/plugins/
4. 把 libflashplayer.so 復制到3 中的目錄
cp libflashplayer.so /usr/lib/firefox-addons/plugins/
5. 把解壓文件中的usr文件夾復制到 /usr/ 中去
sudo cp -r usr/* /usr
然后重啟瀏覽器即可正常播放優酷的視頻了。