---
title: "Ubuntu 下安装64位Flash player的脚本"
author: "fosa0989"
date: "2011-05-02T03:55:01Z"
tags: ["Firefox", "Flash", "Linux", "Ubuntu", "脚本"]
categories: ["操作系统"]
slug: "ubuntu-64-flash-player"
draft: false
lastmod: "2011-05-02T03:55:01Z"
id: 1026003
url: "https://hchen229.iteye.com/blog/1026003"
---

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