1
Nov
2008

Flash 9 for FreeBSD 7.1

I hear the cheers already... Flash 9 for FreeBSD at last! And I don't mean having to run a Windows or Linux browser — Flash 9 in native Firefox 3. FreeBSD's linux emulation layer has undergone some upgrades recently, and as of FreeBSD 7.1 it is able to provide enough kernel support to get the linux Flash player version 9 running. Very good indeed, and hopefully it'll hold us out until Adobe create official native FreeBSD support (assuming that rumour comes true). Note: this only works on i386 and AMD64 platforms.

Let's get down to business. To get Flash 9 working you'll first need to upgrade to FreeBSD 7.1. Now 7.1 is not officially out yet, but if you CVSup from RELENG_7 as of about 2 weeks ago, all the necessary linux compatibility code is there already. I assume you know about CVSup and how to upgrade FreeBSD. Once that's done the rest is straight forward.

Step 1: Enable Linux compatibility and linprocfs

Add linux_enable="YES" to /etc/rc.conf. Add compat.linux.osrelease=2.6.16 to /etc/sysctl.conf. Add OVERRIDE_LINUX_BASE_PORT=f8 to /etc/make.conf. Add this line to /etc/fstab:

linproc /usr/compat/linux/proc linprocfs rw 0 0

Then run these commands:

mkdir -p /usr/compat/linux/proc
mount /usr/compat/linux/proc
/etc/rc.d/abi start
/etc/rc.d/sysctl start

Step 2: Update ports and install all the needed software

You will now need to install the following ports and their dependencies:

cd /usr/ports/emulators/linux_base-f8 && make install clean
cd /usr/ports/www/linux-flashplugin9 && make install clean
cd /usr/ports/www/nspluginwrapper && make install clean

Follow the nspluginwrapper instructions to enable all available plugins:

# nspluginwrapper -v -a -i
Auto-install plugins from /usr/X11R6/lib/browser_plugins
Looking for plugins in /usr/X11R6/lib/browser_plugins
Auto-install plugins from /usr/local/lib/npapi/linux-flashplugin
Looking for plugins in /usr/local/lib/npapi/linux-flashplugin
Install plugin /usr/local/lib/npapi/linux-flashplugin/libflashplayer.so
into /usr/local/lib/browser_plugins/npwrapper.libflashplayer.so
Auto-install plugins from /root/.mozilla/plugins
Looking for plugins in /root/.mozilla/plugins

Restart or open Firefox 3 and enter about:plugins into your address bar. You should see something like the following:

And that's it! Open your favourite Flash site and all should work.

If your browser doesn't register the Shockwave Flash plugin as pictured above, you might need to do a bit of extra work as I had to do on one of my machines:

cd /usr/local/lib/firefox3/plugins && ln -s /usr/local/lib/browser_plugins/npwrapper.libflashplayer.so npwrapper.libflashplayer.so

I'm not sure why one of my machines needed this, but it might happen to you so this is just a heads up.

Update: I have learned that the change with the plugin directory is due to a change in FreeBSD's Firefox 3 port. If you're running port version 3.0.1_1 or later you will need to use the new plugin directory as shown above. CVS change history can be seen here.

Enjoy!


[...] Instructions here (crnl.org/blog, 01/11/2008) [...]

TooManySecrets said on 2008-11-05 08:08:05:

Hi!
Nice entry. This is your howto in spanish in my web (with your permission, of course): http://www.toomany.net/index.php/archives/242

Have a nice day ;-)
TooManySecrets

Como instalar Flash9 en FreeBSD (eng) said on 2008-11-05 10:45:57:

[...] Como instalar Flash9 en FreeBSD (eng) [...]

Aragon Gouveia said on 2008-11-05 11:19:03:

TooManySecrets, nice work. I noticed a lot of Spanish speaking visitors reading this entry so your post is a good contribution. Just one bit of advice: you should mention that the code is in RELENG_7 and that 7.1-BETA2 is not recent enough to get the functionality. BETA3 or RC1 will have the new functionality I'm sure.

anon said on 2008-11-05 11:31:12:

Hi,

Thanks for the tip re: BETA3/RC1. I have just installed in the last hour on...

7.1-PRERELEASE-200809 FreeBSD 7.1-PRERELEASE-200809

no va as the say in spanish (no go)

... as usual everything I touch on linux turns to ... (may it was that way already with linux)

while i am ranting, i can't beleive flash is so prevalent on the web - it really is bad news, and the sites that pi$$ me off the most is google - i thought they were holy crusaders of open source software? then again all their servers run on crappy linux - which is the new windows & google being the new microsoft it is no surprise.

thank god swfdec is looking good - i think i will ignore adobe from here on in

=)

Aragon Gouveia said on 2008-11-05 12:48:54:

@anon, your FreeBSD version string looks peculiar. It indicates to me that your source tree is from September 2008, which is before the linux emulation changes were merged to RELENG_7. That is possibly why it isn't working...

[...] Pour conjurer le mauvais sort, un petit tutoriel pour installer Frash 9 sur sa FreeBSD. [...]

Kevin said on 2008-11-09 13:02:22:

I had been waiting for this - especially since more and more sites don't support Flash 7 anymore - but unfortunately your howto doesn't work here. I upgraded to yesterday's RELENG_7 (displays as 7.1-PRERELEASE) and the plugin correctly loads (as Flash 9.0 r124) in Firefox 3.
Some Flash files (eg low quality Youtube films) load, but there isn't any sound. And most of the time the browser hangs, only coming back to life when I do a 'killall -TERM npviewer.bin'.
Is there anything else I can do or check to try and make this work?

Aragon Gouveia said on 2008-11-09 17:12:53:

Kevin, no sound might be a library dependency issue. Take a look at this email: http://www.mail-archive.com/freebsd-stable@freebsd.org/msg99556.html

After using this for a few weeks I can say I've also been plagued by the browser hangs that you describe. The PC-BSD 7.0.1 folks are also experiencing it. It is a known problem, apparently related to futex emulation bugs so I would guess it'll be fixed over time.

Kevin said on 2008-11-10 01:59:33:

Through your link I found the actual linprocfs and related patches... turns out my local cvsup mirror was outdated (sigh).
Rebuilt after cvsupping from another mirror and now it works! What's more, even Flash 10 seems to work if I manually download it and then run nspluginwrapper.
Audio/video synchronisation is not perfect (in either version) and pages with Flash on them load quite slow... but it's - a lot - better than nothing. Thanks!

Milu’s Corner » Flash9 na FreeBSD said on 2008-11-17 23:01:28:

[...] Doszły mnie wieści że FreeBSD dzięki emulacji ABI Linuksa jest w stanie odtwarzać animacje flashowe. Postanowiłem więc z ciekawości spróbować na ile to rzeczywiście funkcjonuje. Ściągnąłem wersję FreeBSD 7.1-BETA2 i zacząłem eksperymentować. Poniższy opis powstał na bazie http://crnl.org/blog/2008/11/01/flash-9-for-freebsd-71 i u mnie się sprawdził. [...]

NILTON said on 2008-12-01 21:15:19:

Hello very good this how to :P thank you very much

georgi iovchev said on 2008-12-04 12:03:19:

I am trying this guide but I am getting error when trying to install nspluginwrapper
===> linux-glib2-2.6.6_1 conflicts with installed package(s):
linux_base-f8-8_9

anyone other has this issue ?

Aragon Gouveia said on 2008-12-05 00:35:56:

Ah, it looks like the linux-glib2 port was updated a few days ago. Previously it had broken CONFLICTS so this wasn't a problem at the time I wrote this. I saw your post on the FreeBSD forums. Doing what you did should be fine. Another option would be to edit the Makefiles of:

x11-toolkits/linux-gtk2
x11-toolkits/linux-pango
accessibility/linux-atk

And just remove the run dependency for linux-glib2. A newer version of linux-glib2 is installed by the linux_base-f8 port.

Aragon Gouveia said on 2008-12-05 00:45:05:

Never mind my last comment. The real fix is to make sure OVERRIDE_LINUX_BASE_PORT=f8 is defined in /etc/make.conf. I'll update this article. Thanks!

panixgr said on 2008-12-10 08:48:48:

THANX!
I used to have gnash installed with firefox 2.0.0.14, which made my wife complain about ultra low performance.
Now with 7.1, SCHED_ULE and PREEMPTION and firefox3 and linux-flashplugin-9.0r151 all work fine!

David Horn said on 2008-12-18 04:48:53:

Works well with the current version of Flash 9.0 and Firefox 3.0.4 as well:

File name: npwrapper.libflashplayer.so
Shockwave Flash 9.0 r152

The linux-flashplugin9 port currently has an outdated MD5 for the tar.gz distfile on adobe's site. Manually downloading, and updating distinfo with the current MD5 hash for the distfile worked as a temporary solution. The I suppose I will send-pr this when I get a chance. Likely due to change from r151 to r152.

Thanks for the write-up. Very useful.

Ken Easson said on 2009-01-07 05:18:26:

seems the flash download site is nolonger!
i visit macromedia's site to download the distfile and i get a "your platform is not supported" message
also - can't find "flash" in the freebsd.org site :( anyone know what's going on? what's "air" is that the new name adobe's giving flash?

Corpse said on 2009-01-08 15:16:22:

corpse# cd /usr/ports/www/linux-flashplugin9 && make install clean
===> linux-flashplugin-9.0r124_1 Unstable, no sound, generally unusable state.
*** Error code 1

Stop in /usr/ports/www/linux-flashplugin9.

Corpse said on 2009-01-08 16:46:48:

I have no sound mmm help pleas

Aragon Gouveia said on 2009-01-08 20:06:38:

Try update your ports trees guys. Adobe recently changed their distfile, but it looks like the FreeBSD port got updated yesterday to accomodate.

Corpse said on 2009-01-09 04:13:18:

i dont have audio on youtube please help

Aragon Gouveia said on 2009-01-09 23:05:07:

Try the suggested sound fixes mentioned earlier in the comments...

elvis wong said on 2009-01-12 03:44:14:

I follow this step by step procedure without success.

when i connect to youtube, i received this error message;

Hello, you either have JavaScript turned off or an old version of Adobe's Flash Player. Get the latest Flash player.

i make about:plugins in my firefox 3.0.5 and i see

Shockwave Flash

File name: npwrapper.libflashplayer.so
Shockwave Flash 9.0 r124

MIME Type Description Suffixes Enabled
application/x-shockwave-flash Shockwave Flash swf Yes
application/futuresplash FutureSplash Player spl Yes

All seem to be ok...

Some one have similar problem?

thanks

tony said on 2009-01-14 06:22:18:

Hi,

Thanks for the note. Firefox no longer complains about not having a plugin, but on youtube, for instance, I only get a black area where the video would be. Does anyone know what't wrong? I'm running FreeBSD7.1, just installed.

Thanks for any help.

All the best,

Tony

Nick said on 2009-01-16 17:53:10:

Hi,

I have followed this tutorial. Here is what I did
1) I installed FreeBSD 7.1 AMD64 (xorg and gnome packages from binary)
2) I upgraded the ports (with portsnap)
3) I followed the tutorial (r152 I believe was the flash version installed)

I got flash9 to work but I have no sound on it. So for example www.youtube.com will have video without sound.

Any suggestions?

Thank you

silicium said on 2009-01-16 22:37:14:

Hi
Same error here, after a fresh install of 7.1-RELEASE, firefox3.0.5,1 from package, firefox3-i18n-3.0.5 from port, portsnap fetch extract update, then the rest as above. About:plugins shows shockwave plugin 9.0 r152 . Going to a web page with flash loads it, a blank area appears, firefox freezes for tens of seconds, then the following errors come in console.
Hope this helps.

*** NSPlugin Wrapper *** WARNING:(/usr/ports/www/nspluginwrapper/work/nspluginwrapper-1.2.2/src/npw-wrapper.c:1924):invoke_NPP_SetWindow: assertion failed: (rpc_method_invoke_possible(plugin->connection))
*** NSPlugin Wrapper *** ERROR: NPP_SetWindow() wait for reply: Message timeout
*** NSPlugin Wrapper *** WARNING:(/usr/ports/www/nspluginwrapper/work/nspluginwrapper-1.2.2/src/npw-wrapper.c:1924):invoke_NPP_SetWindow: assertion failed: (rpc_method_invoke_possible(plugin->connection))
*** NSPlugin Wrapper *** WARNING:(/usr/ports/www/nspluginwrapper/work/nspluginwrapper-1.2.2/src/npw-wrapper.c:2164):invoke_NPP_NewStream: assertion failed: (rpc_method_invoke_possible(plugin->connection))
*** NSPlugin Wrapper *** WARNING:(/usr/ports/www/nspluginwrapper/work/nspluginwrapper-1.2.2/src/npw-wrapper.c:2164):invoke_NPP_NewStream: assertion failed: (rpc_method_invoke_possible(plugin->connection))
*** NSPlugin Wrapper *** WARNING:(/usr/ports/www/nspluginwrapper/work/nspluginwrapper-1.2.2/src/npw-wrapper.c:1974):invoke_NPP_GetValue: assertion failed: (rpc_method_invoke_possible(plugin->connection))
*** NSPlugin Wrapper *** WARNING: unhandled variable 11 in NPP_GetValue()
*** NSPlugin Wrapper *** WARNING:(/usr/ports/www/nspluginwrapper/work/nspluginwrapper-1.2.2/src/npw-wrapper.c:1855):invoke_NPP_Destroy: assertion failed: (rpc_method_invoke_possible(plugin->connection))
*** NSPlugin Wrapper *** WARNING:(/usr/ports/www/nspluginwrapper/work/nspluginwrapper-1.2.2/src/npw-wrapper.c:1855):invoke_NPP_Destroy: assertion failed: (rpc_method_invoke_possible(plugin->connection))
*** NSPlugin Wrapper *** ERROR: NPP_SetWindow() wait for reply: Message timeout
*** NSPlugin Wrapper *** WARNING:(/usr/ports/www/nspluginwrapper/work/nspluginwrapper-1.2.2/src/npw-wrapper.c:1924):invoke_NPP_SetWindow: assertion failed: (rpc_method_invoke_possible(plugin->connection))
*** NSPlugin Wrapper *** WARNING:(/usr/ports/www/nspluginwrapper/work/nspluginwrapper-1.2.2/src/npw-wrapper.c:2164):invoke_NPP_NewStream: assertion failed: (rpc_method_invoke_possible(plugin->connection))
*** NSPlugin Wrapper *** WARNING:(/usr/ports/www/nspluginwrapper/work/nspluginwrapper-1.2.2/src/npw-wrapper.c:1974):invoke_NPP_GetValue: assertion failed: (rpc_method_invoke_possible(plugin->connection))
*** NSPlugin Wrapper *** WARNING: unhandled variable 11 in NPP_GetValue()
*** NSPlugin Wrapper *** WARNING:(/usr/ports/www/nspluginwrapper/work/nspluginwrapper-1.2.2/src/npw-wrapper.c:1855):invoke_NPP_Destroy: assertion failed: (rpc_method_invoke_possible(plugin->connection))

Josh Rickmar said on 2009-01-17 03:42:31:

Wow, nice tutorial. Just tried it my 7.1 installation, and it works great!

The only problem that I ran into was that I had to remove Gnash before it would work. Even with Gnash disabled, Flash wouldn't work.

Daniel Sledzinski said on 2009-01-17 23:03:52:

Hi

Really nice and useful tutorial. Finally i don't have to use wine + FF to watch YouTube ;-)

One more thing - maybe this will be helpful for all having browser hangs problems - I've noticed that i was having that problem till i disabled Flashblock add-on in Firefox. Since then its working really stable.

Thomas said on 2009-01-18 15:37:14:

Yay! - Yet again I get to jump through hoops to get simple things to work! Yay I am so happy!

*sighs*

F this - I am installing Linux.

Milton said on 2009-01-24 17:57:27:

Thank you for the very easy and trivial to perform procedure. Worked fine with Firefox 2.0.20 as well. Nice to have Flash back to lower my daily productivity.

Mike said on 2009-01-28 21:47:50:

I went through this and got flash working. Although the quality was horrible, youtube would work for about 10 seconds, and if I try to stop the video it hangs firefox. I do appreciate the work that goes into getting this headed in the right direction though.

A12 said on 2009-01-28 23:50:46:

> pkg_info -R -x linux_base

Information for linux_base-fc-4_14:

Required by:
nvidia-driver-177.80

> sysctl -a | grep linux

compat.linux.osrelease: 2.4.2

Any ideas what should I do? Should I install linux_base-fc8 and change compat.linux.osrelease anyway?

Aragon Gouveia said on 2009-01-30 15:06:38:

@Mike, that is unusual. It should work better than you describe. Quality is superb for me. The only major hang up is stability. I can pause and unpause Youtube videos no problem, but I can't use the seekbar in Youtube without hanging Firefox. Most other video sites work flawlessly for me. Incidentally, it is not Firefox that hangs, it's npviewer. If you bind a shortcut to 'killall npviewer.bin' you can recover from a Flash hang and hit F5 to refresh the page and get going again quickly.

@A12, if you add OVERRIDE_LINUX_BASE_PORT=f8 to /etc/make.conf and change compat.linux.osrelease, you can install the nvidia-driver port (not package) and it'll depend on linux_base-f8.

Rod Johnson said on 2009-02-01 19:09:01:

First I want to say things for provide a easy to follow solution for getting Flash working in FreeBSD (without using the Linux version of firefox).

I've tried these instructions on a few laptops with differing results and got an error message the same as user (silicium said on 2009-01-16 22:37:14:). I found that when going to googles video page videos.google.com and after getting an Adobe scripting error, that flash video suddenly started to work everywhere (including sound). The computers I have this running on are too older to play flash movies very well at all (running Pentium II 300 MHz with 160 MB RAM, and 4.5 GB HD), but for users that don't get this working on the first try (to visit Youtube pages), I would try Google video first. I don't why this would be, but I've replicated this solution a few times now and it seems consistent.

ArLi Weng said on 2009-02-04 07:01:18:

i need help... mail back pls.

#uname -a
FreeBSD absd-nb.f13 7.1-RELEASE-p2 FreeBSD 7.1-RELEASE-p2 #0: Tue Feb 3 08:11:18 CST 2009 root@absd-nb.f13:/usr/obj/usr/src/sys/ArLi_F8 i38

#pkg_info |grep linux
linux-atk-1.9.1_1 Accessibility Toolkit, Linux/i386 binary
linux-cairo-1.0.2 Linux cairo binary
linux-expat-1.95.8 Linux/i386 binary port of Expat XML-parsing library
linux-flashplugin-9.0r152 Adobe Flash Player NPAPI Plugin
linux-fontconfig-2.2.3_7 Linux/i386 binary of Fontconfig
linux-gtk2-2.6.10_1 GTK+ library, version 2.X, Linux binary
linux-jpeg-6b.34 RPM of the JPEG lib
linux-openssl-0.9.7f SSL and crypto library (Linux Version)
linux-pango-1.10.2_1 Linux pango binary
linux-png-1.2.8_2 RPM of the PNG lib
linux-tiff-3.7.1 TIFF library, Linux/i386 binary
linux-xorg-libs-6.8.2_5 Xorg libraries, linux binaries
linux_base-f8-8_11 Base set of packages needed in Linux mode (for i386/amd64)

#kldstat
Id Refs Address Size Name
1 15 0xc0400000 75e168 kernel
2 3 0xc0b5f000 27694 linux.ko
3 1 0xc0b87000 153d4 snd_hda.ko
4 2 0xc0b9d000 4937c sound.ko
5 1 0xc0be7000 71185c nvidia.ko
6 1 0xc667d000 7000 linprocfs.ko

error message when i use firefox3 browse with any flash page:

(npviewer.bin:38164): Gtk-WARNING **: Locale not supported by C library.
Using the fallback 'C' locale.

(npviewer.bin:38164): Gdk-WARNING **: GdkWindow 0x2000020 unexpectedly destroyed

(npviewer.bin:38164): Gdk-WARNING **: GdkWindow 0x200001f unexpectedly destroyed

(npviewer.bin:38164): Gdk-WARNING **: GdkWindow 0x200001e unexpectedly destroyed

(npviewer.bin:38164): Gdk-WARNING **: GdkWindow 0x2000003 unexpectedly destroyed
The program 'npviewer.bin' received an X Window System error.
This probably reflects a bug in the program.
The error was 'RenderBadPicture (invalid Picture parameter)'.
(Details: serial 257 error_code 176 request_code 153 minor_code 7)
(Note to programmers: normally, X errors are reported asynchronously;
that is, you will receive the error a while after causing it.
To debug your program, run it with the --sync command line
option to change this behavior. You can then get a meaningful
backtrace from your debugger if you break on the gdk_x_error() function.)
*** NSPlugin Wrapper *** ERROR: NPP_Destroy() wait for reply: Message timeout
*** NSPlugin Wrapper *** ERROR: NPObject 0x2c3a8210 is no longer valid!

Zsolt Kúti said on 2009-02-07 17:34:39:

Here is my share on my 7.1/i386 box to the mix. I can't confirm the effect of videos.google.com. Both that and youtube either work or not. Couldn't see a pattern. Killing npviewer.bin seems not to enough, FF3 needs restart. After that there is a good chance that the just frozen flash video starts working till the next problem.

markus said on 2009-02-24 14:34:14:

For everyone having the problem with npviewer.bin.......
Try switching back to linux_base-fc4. I had the npviewer.bin problem as well, having to manually kill it every time i watched a video. I decided to take a look at the
FreeBSD HandBook to see if offered any solutions, and it does not mention needing linux_base-f8 to get linux-flashplayer9 working with native firefox3. I just reverted back to the default linux_base, and now flash videos play flawlessly, stopping a video and starting another etc... does not freeze the browser anymore!

If you're having the issue, this is what i did....
Run sysctl compat.linux.osrelease=2.4.2, Add compat.linux.osrelease=2.4.2 to /etc/sysctl.conf. REMOVE OVERRIDE_LINUX_BASE_PORT=f8 FROM /etc/make.conf.
uninstalled linux_base-f8, reinstall linux_base-fc4
Run /etc/rc.d/abi start
Run /etc/rc.d/sysctl start
Run nspluginwrapper -v -a -i

I dont know if every thing i did was necessary, but i was getting kernel too old error trying to redo the pluginwrapper command after changing sysctl values back,
after uninstalling f8, i got an error that a file was missing, so i ran make install -DFORCE_PKG_REGISTER clean on the linux_base-fc4 port and the subsequent commands to get that to work.

If any of these steps were unnecessary, I'm sure someone can point that out.

amygdala said on 2009-02-25 16:47:18:

Neither of the MASTER_SITES in www/linux-flashplugin9 are valid.

When FreeBSD users try to download flash from http://www.adobe.com/shockwave/download/alternates/?promoid=DTEHI it says,

"Sorry, your platform is not supported."

Could someone please point me to a browser/platform independent location to download install_flash_player_9.tar.gz or tell me how I can set Firefox or Seamonkey to tell Macromedia that my OS is Linux?

Zsolt Kúti said on 2009-02-25 20:29:44:

In www/linux-flashplugin dir run maka makesum and try installing the port again.

Zsolt Kúti said on 2009-02-25 20:30:49:

Sorry for the typo, make makesum .

Zsolt Kúti said on 2009-02-25 20:46:28:

markus! I did as you adviced, and even if it's not perfect much better now. I discovered something which can be a problem for others, too. For skype sysctl.conf needs an entry compat.linux.osrelease=2.6.16. This makes flash crazy. When I got this out, flash 9 started to work.

markus said on 2009-02-26 01:04:03:

Zsolt Kúti,
Actually you have pointed out a mistake i made in my post.
I did indeed just remove compat.linux.osrelease=2.6.16 from sysctl.conf, "compat.linux.osrelease=2.4.2" is the default and does not need to be added to it
Sorry about that to anyone else that has followed my post, you only need to remove or comment "compat.linux.osrelease=2.6.16" in sysctl.conf.

amygdala said on 2009-02-26 04:32:02:

You now need to Spoof OS to d/l flash from Adobe:

With Firefox or Mozilla type about:config in the address box.

Go to general.useragent.extra.seamonkey click on the 'value' part, and paste the following, including parenthesis, after SeaMonkey/1.1.14:

(X11; U; Linux i686; en-US; rv:1.8)

The full general.useragent.extra.seamonkey string should read, for example, 'SeaMonkey/1.1.14 (X11; U; Linux i686; en-US; rv:1.8)'.

Now go to Adobe's flash download page (http://get.adobe.com/flashplayer/) and it will let you download flash 10 for linux.

There's been some suggestions that java will not correctly install if you are spoofing the browser agent so I recommend after spoofing adobe you change it back.

new B said on 2009-02-27 19:37:39:

amygdala,

on my installation they key is under general.useragent.extra.firefox, other than that, i was able to download flash 10 from adobe....
Any hints as to how to go about installing it?

Thunder said on 2009-02-27 23:14:31:

U all making it hard just swap your distinfo file in the ports and run with it

thunder# cat distinfo
MD5 (flashplugin/9.0r152/install_flash_player_9.tar.gz) = 10f06f6a7aac488f4ce6a06f18e3d107
SHA256 (flashplugin/9.0r152/install_flash_player_9.tar.gz) = fe7a55f86faf663b36befa19848ddd28f808666d5cf7b14311599128c6d85fb7
SIZE (flashplugin/9.0r152/install_flash_player_9.tar.gz) = 3057882
MD5 (flashplugin/9.0r152/libflashsupport.so) = c034ff03c92f94b2938062b6bbc02669
SHA256 (flashplugin/9.0r152/libflashsupport.so) = d5c943e5a59016dcfeab5016d701e1e5e08fb30e8780d239053fec175b89d1e1
SIZE (flashplugin/9.0r152/libflashsupport.so) = 44752

new B said on 2009-03-03 16:03:40:

Thunder,
i was able to get linux flash 10 installed with nspluginwrapper, by using linux_base-f8, and copying some *.so files from linux-firefox install into /usr/local/lib/nspluginwrapper/i386/linux
However.... firefox3 (native) just freezes when opening pages with flash content.
Any ideas on how to get this to work?

Niko said on 2009-03-04 20:25:29:

Hi "new B"

how did you make it work?
What version of freebsd you use ?

Thanks,
Niko

new B said on 2009-03-13 02:30:41:

Niko,

I didn't make flash 10 work, i was able to install it by altering the distinfo file for flashplugin9 to suit the flash10 i downloaded from the site.
I think had to copy some .so files from linux-firefox to get nspluginwrapper to install it to npwrapper.libflashplayer.so.
It did not work for me, only froze firefox when i tried to view videos
Thats why i asked if anyone had any ideas to get it to work,
I am currently using flashplugin9 from the ports.

Ren said on 2009-03-13 19:12:59:

markus, thanks a lot. I use compat.linux.osrelease=2.4.2 and it works great.

Max ID said on 2009-03-16 09:08:25:

Thanks. All works perfectly

RaiulBaztepo said on 2009-03-31 19:19:41:

Hello!
Very Interesting post! Thank you for such interesting resource!
PS: Sorry for my bad english, I'v just started to learn this language ;)
See you!
Your, Raiul Baztepo

ryan said on 2009-04-24 05:12:37:

hmm, nothing in about:plugins for me... could it be because i installed firefox3 after i followed all your instructions?

neostrider said on 2009-04-25 08:05:00:

This worked for me using Flash player 10 in the latest ports...

File name: npwrapper.libflashplayer.so
Shockwave Flash 10.0 r22

I tried to use 9 but had the sound problem... so I pkg_deleted it and built www/linux-f8-flashplayer10

Note thou that I did have to do the

cd /usr/local/lib/firefox3/plugins && ln -s /usr/local/lib/browser_plugins/npwrapper.libflashplayer.so npwrapper.libflashplayer.so

Because of the ports change to the install of firefox3.

Now sound works fine.

Peter Doyle said on 2009-05-06 02:42:45:

This has saved me from abandoning FreeBSD altogether. Worked a dream. YouTube here we go. I had to Pkg_delete curl and re-install, after which I had no problems. I needed to do the plugin aliases like you said. I'm using Firefox 3.0.5 port and I am not getting the screen picture you mention in the about:plugins bit in step 2.

Excellent bit of work on your part, well done.

PD

Mark Hartkemeyer said on 2009-05-23 15:02:59:

Thanks so much for this article.

Harald Weis said on 2009-07-11 20:52:46:

Thank you very much indeed for your work, Aragon Gouveia.
There is a problem though with nspluginwrapper build which stops because:
===>>> Dependency check complete for x11-toolkits/linux-f8-pango
www/nspluginwrapper >> x11-toolkits/linux-f8-gtk2 >> x11-toolkits/linux-f8-pango

===> Cleaning for linux-f8-pango-1.18.4_1

===> linux-f8-pango-1.18.4_1 has known vulnerabilities:
=> pango -- integer overflow.
Reference: <http://portaudit.FreeBSD.org/4b172278-3f46-11de-becb-001cc0377035.html>
=> Please update your ports tree and try again.
*** Error code 1

Stop in /usr/ports/x11-toolkits/linux-f8-pango.

===>>> make failed for x11-toolkits/linux-f8-pango
===>>> Aborting update

I know I could set 'DISABLE_VULNERABILITIES=yes', but I don't like the idea.
There is no safe workaround ?

Richard Kolkovich said on 2009-07-19 06:21:56:

Worked great for me using Flash 10 on 7.2 - thanks!

Couple caveats I had:
- have to disable FlashBlock
- if you switch between versions, make sure to killall npviewer.bin

Mit Rowe said on 2009-08-05 18:33:43:

Holy crap it works!

Freebsd 7.2 i386, FC10, Firefox 3.5, GNOME2, etc etc

You rock.

-Mit

Mikhail said on 2009-08-16 16:20:34:

Yes, the plugin registers and the browser does try to use it....

Using it, however, does not work most of the time -- the entire browser hangs for a while, while the npviewer.bin executable can be observed in top(1).

After a while the browser gives up on npviewer.bin and shows the page without the flash-content... This is with flash9. There is no port of flash10, AFAIK.

I thought, this is due to particular sites using incompatible codecs or some such, but, upon browser restart, the same site (or YouTube page) could open fine, while another -- that just worked before -- would hang the browser.

I ended up disabling flash in Firefox3 and only using it with Konqueror. Konqueror uses a new process per window, so, when one window hangs due to flash, ONLY THAT window needs to be restarted -- not the entire session like Firefox.

Using nspluginwrapper with the npdf.so plugin seems to work a lot better, so it is, probably, due to flash being compiled with some hacks, that break on FreeBSD...

Larry Maloney said on 2009-08-18 19:40:28:

I've had the sound problem with flash, using BSD 7.2, Linux FC8, nspluginwrapper, and linux-flashplugin9.

I have a work around that you can try, if you have the same problem. At least with FC8 and or FC10.

Seems that the sound problem has to do with linux-f8-openssl.

I was able to deinstall linux-f8-openssl, and install linux-openssl, and the sound works.

Give that a try.

FreeBSDLover said on 2009-08-21 23:58:25:

nice work. worked a charm.

raphael said on 2009-09-06 07:12:54:

NIIICEEEE MANNNN !!! VERY NIIICEEEEE

Georgi Bonev said on 2009-09-24 22:46:53:

Well well - at last the latest flash working on FreeBSD.. not native, but working like a charm - thx
That guide was the best from all Ive seen. Nice work

Gerard said on 2009-09-28 18:55:01:

Finally it worked, I tried some other approaches mentioned out there, but this finally pushed it over the edge. Only difference is that I used emulators/linux_base-fc4 on FreeBSD 7.2 (as was stated in the FreeBSD handbook). Symlinking the so in /usr/local/lib/firefox3/plugins finally did the trick for me after trying about every other tutorial out there :)

Great! One step closer to a fully functional FreeBSD desktop :)

MiAnuncio said on 2009-11-02 11:40:46:

En mi www.mianuncio.org/flash se muestra como correr Flash en Firefox

SIFE said on 2009-11-24 08:47:22:

Salamo Alikom
LoadPlugin: failed to initialize shared library /usr/local/lib/npapi/linux-flashplugin/libflashplayer.so [/lib/libgcc_s.so.1: version GLIBC_2.0 required by /usr/local/lib/npapi/linux-flashplugin/libflashplayer.so not found]
LoadPlugin: failed to initialize shared library /usr/local/lib/npapi/linux-flashplugin/libflashplayer.so [/lib/libgcc_s.so.1: version GLIBC_2.0 required by /usr/local/lib/npapi/linux-flashplugin/libflashplayer.so not found]
i get this after runing firefox3.5.5 from command line , i try change it or make symbol link to it ,but this does not make flash palyer work for me .

Leave a comment