ITeye博客

Ubuntu 下安装64位Flash player的脚本

fosa0989 · 2011-05-02 03:55 · 默认类别 · 操作系统 · Ubuntu · Flash · Firefox · 脚本 · Linux · Markdown

#!/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

评论(0)

暂无评论。

评论功能维护中,当前仅展示历史评论。