Advertisement
Guest User

Untitled

a guest
Aug 13th, 2011
261
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Bash 1.48 KB | None | 0 0
  1. #!/bin/bash
  2. # Script  created by
  3. # Romeo-Adrian Cioaba romeo.cioaba@spotonearth.com
  4. # Modified for Fedora 15 by
  5. # Petr "An00biS" Ohlidal ([MyNick]@[MyNick].net)
  6.  
  7. echo "Stopping any Firefox that might be running"
  8. sudo killall -9 firefox
  9.  
  10. echo "Removing any other flash plugin previously installed:"
  11. sudo yum remove flashplugin-nonfree gnash gnash-common mozilla-plugin-gnash swfdec-mozilla libflashsupport nspluginwrapper
  12. sudo rm -f /usr/lib/mozilla/plugins/*flash*
  13. sudo rm -f ~/.mozilla/plugins/*flash*
  14. sudo rm -f /usr/lib/firefox/plugins/*flash*
  15. sudo rm -f /usr/lib/firefox-addons/plugins/*flash*
  16. sudo rm -rfd /usr/lib/nspluginwrapper
  17.  
  18. echo "Installing Flash Player 11"
  19. cd /tmp
  20.  
  21. wget http://download.macromedia.com/pub/labs/flashplatformruntimes/flashplayer11/flashplayer11_b2_install_lin_64_080811.tar.gz
  22.  
  23. tar zxvf flashplayer11_b2_install_lin_64_080811.tar.gz
  24. sudo cp libflashplayer.so /usr/lib64/mozilla/plugins/
  25. sudo cp -r usr/ /usr
  26.  
  27. echo "Linking the libraries so Firefox and apps depending on XULRunner (vuze, liferea, rsswol) can find it."
  28. if [ -f /usr/lib/firefox-addons/plugins/ ]; then
  29.     sudo ln -sf /usr/lib/mozilla/plugins/libflashplayer.so /usr/lib/firefox-addons/plugins/
  30. fi
  31. if [ -f /usr/lib/xulrunner-addons/plugins/ ]; then
  32.     sudo ln -sf /usr/lib/mozilla/plugins/libflashplayer.so  /usr/lib/xulrunner-addons/plugins/
  33. fi
  34.  
  35. # now doing some cleaning up:
  36. sudo rm -rf libflashplayer.so
  37. sudo rm -rf usr/
  38. sudo rm -rf flashplayer11_b2_install_lin_64_080811.tar.gz
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement