Friday, May 4, 2007

Get flash 9 working (very easy) with nspluginwrapper

Since the readers of this blog are all AMD64 users (in general), I would like to mention how I got flash to work under AMD64. It's not that hard, but it seems that sometimes the instructions are confusing or hard to find. This is going to be pretty much a blatant copy of what was on the Ubuntu Forums post here.

Ok. We need some basic 32-bit libraries available from the Ubuntu repositories. In a terminal:

sudo apt-get install ia32-libs ia32-libs-gtk linux32 lib32asound2

Now, if Janvitus' Repository isn't changed since I write this, type in this:

wget http://janvitus.interfree.it/ubuntu/2C4C84CC.gpg -O- | sudo apt-key add -

Now type in:

sudo gedit /etc/apt/sources.list

And in the text editor that opens up add on the bottom:

deb http://janvitus.interfree.it/ubuntu/ feisty-janvitus main-amd64
deb-src http://janvitus.interfree.it/ubuntu/ feisty-janvitus main-amd64


Save the file, close it and then type into terminal:

sudo apt-get update

Then:

sudo apt-get install nspluginwrapper gsfonts-x11

After everything is installed, download adobe flash player 9 from this website: http://fpdownload.macromedia.com/get/flashplayer/current/install_flash_player_9_linux.tar.gz

Now CLOSE ALL OPEN BROWSERS.

Double-click on the downloaded flash player archive and extract it somewhere. Then open up the extracted folder and:
move the 2 files “libflashplayer.so” and “flashplayer.xpt” from that folder into the /usr/lib/mozilla/plugins folder (quote from article)
Now I had problems about permissions when moving, and had to run a command in order to do it:

sudo mv [and now drag both files into the terminal window, then type this>>] /usr/lib/mozilla/plugins/

So it should look something like this:

gavin@gavin-desktop:~$ sudo mv '/home/gavin/Desktop/install_flash_player_9_linux/libflashplayer.so' '/home/gavin/Desktop/install_flash_player_9_linux/flashplayer.xpt' /usr/lib/mozilla/plugins/

Of course your username would be replaced with mine. After that is typed in, hit enter.

Now, finally, we are almost done. Type in:

nspluginwrapper -i /usr/lib/mozilla/plugins/libflashplayer.so

You shouldn't receive any error messages if you've done the right things.

Now open up your Home folder and choose in the view menu > Show hidden files. In the folder .mozilla/plugins/ you should see the file “npwrapper.libflashplayer.so”, created from the previous command.

Copy it into the folder /usr/lib/mozilla/plugins/ and copy it into the folder /usr/lib/mozilla-firefox/plugins/

Now try it out by going to Youtube or a flash-based website. If youtube doesn't work, try closing the browser and reopening it, it might work the second time.

If something goes wrong, visit the forum post and if you fix it comment on this blog so I can edit my post. Thanks! Good luck.

1 comment:

Anonymous said...

Perfect Gavin. Thanxs !!!