วันศุกร์, เมษายน 29, 2554

Ubuntu Natty 11.04 x64 - Change Firefox JRE plugin from IcedTea to Sun & Flash plugins Npwrapper to Adobe Flash 10

Prerequisted
Download adobe flash 10 for x64 in tar.gz distribution (can't remember from which url, try googling)
Install Sun's JDK as a default JDK.

For Java plugin/JRE
  • going to .mozilla/plugins/
  • find the libjavaplugin.so
  • using ls -la to see its symbolic link  to /etc/alternatives/mozilla-javaplugin.so
  • and /etc/alternatives/mozilla-javaplugin.so also a synbolic link to another place, which is IcedTea's JRE 
  • So we just change /etc/alternatives/mozilla-javaplugin.so point to /usr/lib/jvm/jdk1.6.0_25/jre/lib/amd64/libnpjp2.so 
 * If there's no .mozilla/plugins/ you might want to check this blog instead. To "Change Firefox java plugin from IcedTeaWeb to Sun JRE"

execute at terminal:
    sudo apt-get install icedtea-7-plugin

For Adobe Flash
  • type about:plugins in the address bar
  • find the default Flash plugins remember its path of the .so file
  • mine was point to /var/lib/flashplugin-installer/libflashplayer.so
  • going there  /var/lib/flashplugin-installer/
  • rename npwrapper.libflashplayer.so to npwrapper.libflashplayer.so.bak
  • put the downloaded libflashplayer.so into this folder
  • chmod 777 libflashplayer.so
  • restart Firefox
  • Bingo! 
  • check by enter about:plugins in the address bar
*find my post about howto make a download Sun's JDK to a default JDK