2010年3月1日

ubuntu 9.10 (Karmic) 下 firefox 的64 bit flashplugin 安裝

以下程式碼是從 http://the3mingheats.blogspot.com/2009/12/64bit-flash-player-on-linux.html?zx=a7531bec64ff2e02 抓來修改的
將以下程式碼複製後, 存成文字檔, 例如 install.sh
在終端機下指令, 讓此檔變成可執行
chmod +x install.sh
然後執行
./install.sh

Youtube 中文字有亂碼則參見這一篇: Ubuntu 8.10 AMD64 安裝了flash播放器,中文是亂碼

64 bit flash player for Firefox 可從此處下載: http://labs.adobe.com/downloads/flashplayer10_64bit.html

---beginning of the script---
echo "Stopping any Firefox that might be running"
sudo killall -9 firefox

echo "Removing any other flash plugin previously installed:"
sudo apt-get remove -y --purge flashplugin-nonfree gnash gnash-common mozilla-plugin-gnash swfdec-mozilla libflashsupport nspluginwrapper
sudo rm -f /usr/lib/mozilla/plugins/*flash*
sudo rm -f ~/.mozilla/plugins/*flash*
sudo rm -f /usr/lib/firefox/plugins/*flash*
sudo rm -f /usr/lib/firefox-addons/plugins/*flash*
sudo rm -rfd /usr/lib/nspluginwrapper

echo "Installing Flash Player 10"
cd ~
wget http://download.macromedia.com/pub/labs/flashplayer10/libflashplayer-10.0.45.2.linux-x86_64.so.tar.gz
 tar zxvf libflashplayer-10.0.45.2.linux-x86_64.so.tar.gz
sudo cp libflashplayer.so /usr/lib/mozilla/plugins/

echo "Linking the libraries so Firefox and apps depending on XULRunner (vuze, liferea, rsswol) can find it."
sudo ln -sf /usr/lib/mozilla/plugins/libflashplayer.so /usr/lib/firefox-addons/plugins/
sudo ln -sf /usr/lib/mozilla/plugins/libflashplayer.so /usr/lib/xulrunner-addons/plugins/

# now doing some cleaning up:
sudo rm -rf libflashplayer.so
sudo rm -rf libflashplayer-10.0.45.2.linux-x86_64.so.tar.gz
---end of the script---

沒有留言: