Thursday, April 12, 2007

Flash Player 9 in Firefox 2.x on Edgy x86_64 with nspluginwrapper!

I am posting this here to keep it close at hand for my private usage on the diverse x86_64 boxes I use, but to be fair it is well documented on the Ubuntu Forums.

First you will need to download these files:
# setup your linux32 libraries.
#
$ sudo aptitude install ia32-libs ia32-libs-gtk linux32 lib32asound2

# Debianize rpm's with alien.
#
$ sudo aptitude install alien

# convert the downloaded packages.
#
$ cd [path-to-downloaded-rpms]
$ sudo alien nspluginwrapper-0.9.91.2-1.x86_64.rpm
$ sudo alien nspluginwrapper-i386-0.9.91.2-1.x86_64.rpm

# install the packages.
#
$ sudo dpkg -i nspluginwrapper_0.9.91.2-2_amd64.deb
$ sudo dpkg -i nspluginwrapper-i386_0.9.91.2-2_amd64.deb

#
# WARNING: now close all browsers!!!
#

# unpack your downloaded flash player tarball.
#
$ cd [download-location]
$ tar xzvf install_flash_player_9_linux.tar.gz
$ cd install_flash_player_9_linux
$ mv libflashplayer.so /usr/lib/mozilla/plugins/
$ mv flashplayer.xpt /usr/lib/mozilla/plugins/

# finally need to setup the nspluginwrapper stuff, after running
# command below you should see the results in
# /usr/lib/mozilla/plugins/npwrapper.libflashplayer.so
# and
# /usr/lib/mozilla/plugins/npwrapper.so
$ nspluginwrapper -i /usr/lib/mozilla/plugins/libflashplayer.so

# link these to firefox plugins.
#
$ cd /usr/lib/mozilla-firefox/plugins
$ ln -s /usr/lib/mozilla/plugins/npwrapper.libflashplayer.so
$ ln -s /usr/lib/mozilla/plugins/npwrapper.so

# finished, go try a flash site like www.mlb.com with Firefox 2.x!