Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #!/bin/bash
- # Script created by Romeo-Adrian Cioaba romeo.cioaba@spotonearth.com
- # http://www.myscienceisbetter.info/install-native-64bit-flash-player-11-on-linux.html
- #changed to use aptitude, various other small changes by n2deep.
- echo "Stopping any Firefox that might be running"
- sudo killall -9 firefox
- echo "Removing any other flash plugins previously installed:"
- sudo aptitude purge -y flashplugin-installer flashplugin-nonfree gnash gnash-common mozilla-plugin-gnash swfdec-mozilla libflashsupport nspluginwrapper
- sudo rm -f /usr/lib/mozilla/plugins/*flash*
- sudo rm -f /home/*/.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 11 64 bit"
- cd /tmp
- wget http://download.macromedia.com/pub/labs/flashplatformruntimes/flashplayer11/flashplayer11_b1_install_lin_64_071311.tar.gz
- tar zxvf flashplayer11_b1_install_lin_64_071311.tar.gz
- sudo cp libflashplayer.so /usr/lib/mozilla/plugins/
- sudo cp -r usr/ /
- 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 usr/
- sudo rm -rf flashplayer11_b1_install_lin_64_071311.tar.gz
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement