Ubuntu 下安装64位Flash player的脚本

ourtimes 2011-05-02

#!/bin/bash

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/flashplayer10_2_p3_64bit_linux_111710.tar.gz

tar zxvf flashplayer10_2_p3_64bit_linux_111710.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 flashplayer10_2_p3_64bit_linux_111710.tar.gz

相关推荐