Created
July 6, 2010 18:21
-
-
Save mistersourcerer/465736 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
# Script created by | |
# Romeo-Adrian Cioaba [email protected] | |
# Super minor updates by jason.melton[at]gmail[dot]com | |
# Updates by Alejandro Cuervo 3[at]cuervo[dot]net | |
# Released under GPL | |
echo "Closing Firefox" | |
sudo killall -9 firefox | |
echo "Downloading and instaling Getlibs for required libraries" | |
wget http://www.boundlesssupremacy.com/Cappy/getlibs/getlibs-all.deb | |
sudo dpkg -i getlibs-all.deb | |
echo "Removing previous installs of flash:" | |
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 ia32-libs and nspluginwrapper" | |
sudo apt-get install ia32-libs nspluginwrapper | |
echo "Getting libs" | |
sudo getlibs -p libcurl3 | |
sudo getlibs -p libnss3-1d | |
sudo getlibs -p libnspr4-0d | |
echo "Installing Flash Player 10" | |
cd ~ | |
wget http://fpdownload.macromedia.com/get/flashplayer/current/install_flash_player_10_linux.tar.gz | |
tar zxvf install_flash_player_10_linux.tar.gz | |
sudo cp install_flash_player_10_linux/libflashplayer.so /usr/lib/mozilla/plugins/ | |
rm -rf ~/install_flash_player_10_linux/ | |
sudo nspluginwrapper -i /usr/lib/mozilla/plugins/libflashplayer.so | |
echo "Linking the libraries so that firefox can see them." | |
sudo ln -sf /usr/lib/nspluginwrapper/plugins/npwrapper.libflashplayer.so /usr/lib/mozilla/plugins/ | |
sudo ln -sf /usr/lib/nspluginwrapper/plugins/npwrapper.libflashplayer.so /usr/lib/firefox-addons/plugins/ | |
echo "Done :-)" | |
echo "You may re-start Firefox now" | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment