28b0b HOW TO: Flash10 plugin, Firefox3 and FreeBSD 7.2 or higher - The FreeBSD Forums
The FreeBSD Forums  

Go Back   The FreeBSD Forums > Miscellaneous > Howtos & FAQs (Moderated)

Howtos & FAQs (Moderated) Would you like to share some of your solutions for certain problems? Tips or tricks? Post here. All new topics are automatically moderated.

Reply
 
Thread Tools Display Modes
  #1  
Old July 25th, 2009, 03:21
gr1ml0ck's Avatar
gr1ml0ck gr1ml0ck is offline
Junior Member
 
Join Date: Jun 2009
Posts: 32
Thanks: 8
Thanked 37 Times in 3 Posts
Default HOW TO: Flash10 plugin, Firefox3 and FreeBSD 7.2 or higher

I believe that you require linux compat8 or higher for this to work. I'm using linux compat f10 and it worked fine first time.
If you need to update your linux compat then just google or search the forums.

As a rule of thumb for me when doing a fresh install... I always immediately add the following lines to /etc/make.conf before adding ANY ports:

Code:
OVERRIDE_LINUX_BASE_PORT=f10
OVERRIDE_LINUX_NONBASE_PORTS=f10
From then on, when I build any linux ports they will depend automatically on the fedora 10 core.

And that all I'm going to cover on linux compatibility other than MAKE SURE ITS RUNNING!!! add 'linux_enable="YES"' to your /etc.rc.conf file.


1: check the above.

2: add this line to your /etc/fstab

Code:
   linproc   /usr/compat/linux/proc    linprocfs    rw   0    0
3: mount your linprocfs by typing the following at the terminal as root:

Code:
mount /usr/compat/linux/proc
NOTE: If /usr/compat/linux/proc does not exist you made need to create it using the '-p' option!

4: start some additional linux services (this can also be set in rc.conf) by typing the following at the terminal as root.

Code:
/etc/rc.d/abi start
/etc/rc.d/sysctl start
5: if you havnt already.. (tsk tsk!) update your ports and install the following ports:

Code:
  cd /usr/ports/www/linux-f10-flashplugin10 && make install clean
  cd /usr/ports/www/nspluginwrapper && make install clean
NOTE: As I am using the fedora 10 core emulation layer.. i am therefore using the f10 linux plugin. f8 users will want to use the f8-flashplugin10 port....obvioulsy.

6: close down firefox3 and find the file "libflashplayer.so" by typing the following at the terminal.

Code:
# find / -name libflashplayer.so
   /usr/local/lib/npapi/linux-f10-flashplugin/libflashplayer.so
Here is mine above in the npapi directory.

7: IMPORTANT.. at least I thought i was..... exit from super user mode and type the following command at the terminal:

Code:
nspluginwrapper -v -i /usr/local/lib/npapi/linux-f10-flashplugin/libflashplayer.so
8: Open up firefox3 and type "about:plugins" into the address bar and hit enter. voila! your plugins should appear as Shockwave Flash.

9: Go back to Youtube!!!
__________________
"Do or Do Not.... there is no try."

Last edited by DutchDaemon; October 6th, 2009 at 22:03. Reason: fixed error
Reply With Quote
The Following 33 Users Say Thank You to gr1ml0ck For This Useful Post:
alaric (March 24th, 2010), Alt (July 12th, 2010), curtisk (January 23rd, 2010), cyrille (April 20th, 2010), deranged (February 23rd, 2010), ericjansen (July 23rd, 2010), f-andrey (July 29th, 2009), FooBSDer (December 13th, 2009), foo_daemon (May 8th, 2010), gallon (June 8th, 2010), haidq (July 16th, 2010), hydra (July 25th, 2009), itsbrad212 (July 2nd, 2010), jotawski (December 27th, 2009), kalebman5000 (May 24th, 2011), ligregni (June 15th, 2010), miggir (April 19th, 2010), negotalles (August 9th, 2010), nhanquy (March 6th, 2010), Nightweaver (March 19th, 2011), norman881 (October 13th, 2011), overmind (September 28th, 2009), phantomssl (August 16th, 2011), RandomSF (October 27th, 2009), rbelk (September 27th, 2009), scottro (August 15th, 2010), sirving (December 7th, 2009), skangraf (September 18th, 2010), sossego (November 4th, 2009), trancercho (August 29th, 2010), VdoP (October 9th, 2010), zeiz (August 4th, 2009)
  #2  
Old July 25th, 2009, 09:26
jb_fvwm2 jb_fvwm2 is offline
Senior Member
 
Join Date: Nov 2008
Posts: 1,399
Thanks: 61
Thanked 147 Times in 131 Posts
Default

Btw (seamonkey) and (gnash) here enable youtube.
Although practically no other flash site that I
have tried (5 or so).
(Both rebuilt after the libjpeg version bump)
And no linux compat. layer yet.
Reply With Quote
  #3  
Old July 25th, 2009, 10:39
MG's Avatar
MG MG is offline
Member
 
Join Date: Nov 2008
Location: Netherlands
Posts: 191
Thanks: 5
Thanked 15 Times in 11 Posts
Default

Quote:
Originally Posted by jb_fvwm2 View Post
Btw (seamonkey) and (gnash) here enable youtube.
Although practically no other flash site that I
have tried (5 or so).
(Both rebuilt after the libjpeg version bump)
And no linux compat. layer yet.
Same here. Next thing I try is Firefox2.exe running on wine, but It eats too much cpu and memory.
Reply With Quote
  #4  
Old July 26th, 2009, 00:09
gr1ml0ck's Avatar
gr1ml0ck gr1ml0ck is offline
Junior Member
 
Join Date: Jun 2009
Posts: 32
Thanks: 8
Thanked 37 Times in 3 Posts
Default

Quote:
Originally Posted by jb_fvwm2 View Post
Btw (seamonkey) and (gnash) here enable youtube.
Although practically no other flash site that I
have tried (5 or so).
(Both rebuilt after the libjpeg version bump)
And no linux compat. layer yet.

I used Gnash (or tried to) for several months as a alternative to flash on BSD but found it to be way to buggy.. many sites simply wouldnt play ball which led to either sloppy loads, buggy loads or just non operational sites.

No linux compat layer yet? what do you mean by that?
__________________
"Do or Do Not.... there is no try."
Reply With Quote
  #5  
Old July 26th, 2009, 01:36
MG's Avatar
MG MG is offline
Member
 
Join Date: Nov 2008
Location: Netherlands
Posts: 191
Thanks: 5
Thanked 15 Times in 11 Posts
Default

I'll try this one.

Not ready installing yet, but issues until now:

The "linux-compat" ports is actually called emulators/linux_base-f10-10
needed for build:
kldload linux
sysctl compat.linux.osrelease=2.6.16

Build breaks because rpm2cpio is not found:
pkg_add -r rpm2cpio
Then build breaks again on wrong filename:
ln -s /usr/local/bin/rpm2cpio.pl /usr/local/bin/rpm2cpio
(don't know if this is good but at least the file exists now)

I seem to not have a mount_linprocfs command, but:
mount -t linprocfs linproc /usr/compat/linux/proc

Then linux-f10-flashplugin10 breaks with:
Code:
"/usr/ports/Mk/bsd.linux-apps.mk", line 413: Malformed conditional (${cyrus-sasl2_DETECT}=="")
"/usr/ports/Mk/bsd.linux-apps.mk", line 413: Malformed conditional (${openldap_DETECT}=="")
"/usr/ports/Mk/bsd.port.mk", line 6256: if-less endif
"/usr/ports/Mk/bsd.port.mk", line 6259: if-less endif
make: fatal errors encountered -- cannot continue
I need sleep now.

Last edited by DutchDaemon; July 26th, 2009 at 01:52. Reason: And you need [cmd] and [code] tags ...
Reply With Quote
  #6  
Old July 26th, 2009, 04:19
jb_fvwm2 jb_fvwm2 is offline
Senior Member
 
Join Date: Nov 2008
Posts: 1,399
Thanks: 61
Thanked 147 Times in 131 Posts
Default

Quote:
Originally Posted by gr1ml0ck View Post
I used Gnash (or tried to) for several months as a alternative to flash on BSD but found it to be way to buggy.. many sites simply wouldnt play ball which led to either sloppy loads, buggy loads or just non operational sites.

No linux compat layer yet? what do you mean by that?
It means that all I did was
Code:
pkg_add -r seamonkey
cd /usr/ports/graphics/gnash
make install && yell
or similar.
Sometime later, I discovered youtube worked.
(I forget if I configured paths after gnash, any)
"no linux compat layer" means I've never installed
any linux (like this thread mentions) compatability
ports.
Reply With Quote
  #7  
Old July 26th, 2009, 11:00
gr1ml0ck's Avatar
gr1ml0ck gr1ml0ck is offline
Junior Member
 
Join Date: Jun 2009
Posts: 32
Thanks: 8
Thanked 37 Times in 3 Posts
Default

You will not be able to use any linux compat functionality until you have successfully installed the emulation layer..

MG? Are you building the compat from ports or using pkg_add? What version of freebsd are you running? what WM are you using? I have a kind of cheat that I use to install linux compat during a fresh install.. maybe that will work on your box. I have never had the need to edit sysctl, nor create symlinks for any missing or removed files? If you dont mind installing skype (or any other linux ported programme) then all you need to do is make the changes (or create) /etc/make.conf as suggested in my post and simply build any linux based port.. it will them automagically build any dependent emulation with the criteria that you set in make.conf.

I use skype for comms with work collegues and so when I install that.. it also builds all of my linux compat for me for the fedora 10 core without me having to do anything other than edit make.conf, add 'linux_enable="YES"' to /etc/rc.conf and building skype from ports... hey presto.. i have working linux compat f10 within 20 mins on a decent connection and pc.
__________________
"Do or Do Not.... there is no try."
Reply With Quote
  #8  
Old August 8th, 2009, 10:25
CodeBlock's Avatar
CodeBlock CodeBlock is offline
Member
 
Join Date: Jul 2009
Location: United States
Posts: 218
Thanks: 21
Thanked 11 Times in 11 Posts
Default

Keep getting Firefox freezing up for a good 20-30 seconds, then:
Code:
*** NSPlugin Wrapper *** ERROR: NPP_New() wait for reply: Message timeout
...in my terminal.. swfdec works but no audio on some things (like most youtube videos, though for some reason a select few work).... Haven't tried gnash.
__________________
Proud FreeBSD 8-RELEASE user.

CodeBlock on irc.freenode.net and irc.eighthbit.net.

Last edited by DutchDaemon; August 8th, 2009 at 21:33. Reason: [code], not [quote]
Reply With Quote
  #9  
Old August 31st, 2009, 07:25
CodeBlock's Avatar
CodeBlock CodeBlock is offline
Member
 
Join Date: Jul 2009
Location: United States
Posts: 218
Thanks: 21
Thanked 11 Times in 11 Posts
Default

Well I fixed the issue in my previous post. The issue, I *think*, was related to me upgrading the linux compat to f10, before removing/renaming /usr/compat/linux... so I had different versions of different files, etc...

So I removed everything related to the linux compat install (linux-f10-*), moved /usr/compat/linux to /usr/compat/oldlinux, reinstalled -f10, flash 10, and nspluginwrapper... and everything worked fine, including audio on flash (which some people I recall, had issues with).

Hopefully this can help someone, not trying to dig up an old post, but be informative and helpful in case someone else has the same issue .
__________________
Proud FreeBSD 8-RELEASE user.

CodeBlock on irc.freenode.net and irc.eighthbit.net.

Last edited by CodeBlock; September 27th, 2009 at 08:49.
Reply With Quote
  #10  
Old September 20th, 2009, 15:54
jurrie jurrie is offline
Junior Member
 
Join Date: Nov 2008
Location: Netherlands
Posts: 28
Thanks: 3
Thanked 2 Times in 2 Posts
Default

Following this guide I got flash half working in opera 10.00 -- sound works, but video does not. At least I can play some of my songs-on-youtube bookmarks :-D
Reply With Quote
  #11  
Old September 27th, 2009, 03:54
krynn krynn is offline
Junior Member
 
Join Date: Nov 2008
Location: Seattle, WA
Posts: 7
Thanks: 7
Thanked 1 Time in 1 Post
Default

after following this I get really big CPU spikes when I visit a flash page (YouTube for example), and see the following errors on the terminal, anyone have any light they can shed on this?

I get this when I first visit the site:
Code:
(process:4117): Gtk-WARNING **: Locale not supported by C library.
	Using the fallback 'C' locale.
I then get this when I close the tab for the website:
Code:
*** NSPlugin Wrapper *** ERROR: NPP_Write() wait for reply: Message timeout
*** NSPlugin Wrapper *** 
WARNING:(/usr/ports/obj/usr/ports/www/nspluginwrapper/work/nspluginwrapper-1.2.2/src/npw-wrapper.c:2236):invoke_NPP_DestroyStream: 
assertion failed: (rpc_method_invoke_possible(plugin->connection))
*** NSPlugin Wrapper *** 
WARNING:(/usr/ports/obj/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))
Reply With Quote
  #12  
Old September 28th, 2009, 22:31
overmind overmind is offline
Member
 
Join Date: Nov 2008
Posts: 273
Thanks: 57
Thanked 20 Times in 14 Posts
Default

Hello

I followed your tutorial and in firefox 3.5 I could not see flash plugin using about:plugins.

Then I did:
Code:
cd /usr/local/lib/firefox3/plugins
ln -s /usr/local/lib/browser_plugins/npwrapper.libflashplayer.so npwrapper.libflashplayer.so
and now flash works.

Thank your for you tutorial and best regards. (you can update the tutorial with this tip)
Reply With Quote
The Following 4 Users Say Thank You to overmind For This Useful Post:
bsd10 (June 19th, 2010), ericjansen (July 27th, 2010), jailed (July 11th, 2010), magistr (June 23rd, 2010)
  #13  
Old October 2nd, 2009, 01:45
graedus's Avatar
graedus graedus is offline
Junior Member
 
Join Date: Nov 2008
Posts: 24
Thanks: 1
Thanked 3 Times in 2 Posts
Default

The symlink I did in order for nspluginwrapper to work as advertised was the one indicated on section 6.2.3 of the Handbook

Quote:
Under FreeBSD 8.X

Install the www/nspluginwrapper port. This port requires emulators/linux_base-f10 which is a large port.

The next step is to install the www/linux-f10-flashplugin10 port. This will install Flash 10.X, this version is known to run correctly under FreeBSD 8.X.

This version will require the following link to be created:
# ln -s /usr/local/lib/npapi/linux-f10-flashplugin/libflashplayer.so \
/usr/local/lib/browser_plugins/

Once the right Flash port, according to the FreeBSD version you run, is installed, the plugin must be installed by each user with nspluginwrapper:
% nspluginwrapper -v -a -i
My guess is that from 7.2 onward, this is the desired behavior.
__________________
Just another crazy UNIX snob.
FreeBSD 7.2-STABLE graedus@aspireone:/usr/obj/usr/src/sys/GENERIC i386
Reply With Quote
  #14  
Old October 6th, 2009, 12:11
narcolepsy narcolepsy is offline
Junior Member
 
Join Date: Nov 2008
Posts: 43
Thanks: 6
Thanked 0 Times in 0 Posts
Default problem getting flashplugin installed in 7.2

Are there any special tricks i have to perform to get f10 working properly in 7.2?

Code:
===>  linux-f10-flashplugin-10.0r32 bsd.linux-apps.mk test failed: The component openldap is not defined for LINUX_DIST_SUFFIX= (the 
corresponding variable openldap_FILE is not defined). This usually means that the current port should be used with non default linux base 
and/or infrastructure port(s).
*** Error code 1

Stop in /usr/ports/www/linux-f10-flashplugin10.
I get the above error when trying to install flashplugin.

Any info appreciated.

Last edited by DutchDaemon; October 6th, 2009 at 12:35.
Reply With Quote
  #15  
Old October 6th, 2009, 12:49
SirDice's Avatar
SirDice SirDice is offline
Moderator
 
Join Date: Nov 2008
Location: Rotterdam, Netherlands
Posts: 13,852
Thanks: 48
Thanked 2,061 Times in 1,890 Posts
Default

You're missing the lines in /etc/make.conf (see top of first post).
__________________
Senior UNIX Engineer at Unix Support Nederland
Experience is something you don't get until just after you need it.
Reply With Quote
  #16  
Old October 6th, 2009, 13:56
narcolepsy narcolepsy is offline
Junior Member
 
Join Date: Nov 2008
Posts: 43
Thanks: 6
Thanked 0 Times in 0 Posts
Default

No, they're definitely there. Should I do an export bla=f10?

Thx,
Reply With Quote
  #17  
Old October 6th, 2009, 14:00
SirDice's Avatar
SirDice SirDice is offline
Moderator
 
Join Date: Nov 2008
Location: Rotterdam, Netherlands
Posts: 13,852
Thanks: 48
Thanked 2,061 Times in 1,890 Posts
Default

Please post the output of
Code:
pkg_version -v | grep linux
__________________
Senior UNIX Engineer at Unix Support Nederland
Experience is something you don't get until just after you need it.
Reply With Quote
  #18  
Old October 6th, 2009, 14:10
narcolepsy narcolepsy is offline
Junior Member
 
Join Date: Nov 2008
Posts: 43
Thanks: 6
Thanked 0 Times in 0 Posts
Default

Code:
linux_base-f10-10_2                 =   up-to-date with port
It's the only line in there...
Reply With Quote
  #19  
Old October 6th, 2009, 15:18
SirDice's Avatar
SirDice SirDice is offline
Moderator
 
Join Date: Nov 2008
Location: Rotterdam, Netherlands
Posts: 13,852
Thanks: 48
Thanked 2,061 Times in 1,890 Posts
Default

Hmm... Still think it's an /etc/make.conf issue. Do you have any spaces in those lines?
__________________
Senior UNIX Engineer at Unix Support Nederland
Experience is something you don't get until just after you need it.
Reply With Quote
The Following User Says Thank You to SirDice For This Useful Post:
narcolepsy (October 6th, 2009)
  #20  
Old October 6th, 2009, 18:37
narcolepsy narcolepsy is offline
Junior Member
 
Join Date: Nov 2008
Posts: 43
Thanks: 6
Thanked 0 Times in 0 Posts
Default

was a typo in the first thing, the NONBASE_PORT= should have been NONBASE_PORTS=

Of course i should have been clever enough to spot it :/

Thanks for the help, flash now works (even the iplayer!)

Impressive, think that was the last gating factor to being able to use FreeBSD as both a server and desktop.

Cheers
Reply With Quote
  #21  
Old October 6th, 2009, 22:04
DutchDaemon's Avatar
DutchDaemon DutchDaemon is offline
Administrator
 
Join Date: Nov 2008
Location: Rotterdam, the Netherlands
Posts: 9,935
Thanks: 30
Thanked 1,932 Times in 1,351 Posts
Default

Quote:
Originally Posted by narcolepsy View Post
was a typo in the first thing, the NONBASE_PORT= should have been NONBASE_PORTS=
Changed that in OP's post.
__________________
FreeBSD Forums: Information for New Members | FreeBSD Forums Rules
FreeBSD Resources: The FreeBSD Handbook | Manuals | FAQ | Wiki
Before you post: How to ask questions the smart way
If you must know .. So, what does an Administrator/Moderator do?
---> Do not PM me with FreeBSD questions. I do not work here. <---
Reply With Quote
  #22  
Old October 18th, 2009, 15:19
krynn krynn is offline
Junior Member
 
Join Date: Nov 2008
Location: Seattle, WA
Posts: 7
Thanks: 7
Thanked 1 Time in 1 Post
Default

Figured out what I was doing wrong today. I am running 8.0-RC1 and I followed the original post pretty well only to find that mounting linproc in /compat/linux/proc is the solution for me. If it is mounted in /usr/compat/linux/proc like the original post says, flash will detect in the browser but not work at all.
Reply With Quote
  #23  
Old October 21st, 2009, 15:28
SPlissken's Avatar
SPlissken SPlissken is offline
Member
 
Join Date: Nov 2008
Location: France
Posts: 150
Thanks: 18
Thanked 6 Times in 6 Posts
Default

Ok my turn.

I was using flash 9 with FreeBSD 8.0-RC1 upgraded from version 7.2-STABLE with linux compat f8.

With 7.2-STABLE it was working quite great , except sometime , i have to kill -9 npviewer.bin when firefox was frozen.

Then i upgraded to FreeBSD 8.0 RC1 , it was still working but sometime firefox was crashing.

So i decided last night to follow this Howto , so i upgraded Firefox from version 3.0.3 to 3.5. I upgraded also from linux compat f8 to f10 by changing f8 to f10 in /etc/make.conf (before doing this i renamed usr/compat/linux to usr/compat/linux.old)
Then I followed this howto.
To build nspluginwrapper i had to deinstall several linux-xxx
Then at the end i achieved to build and upgrade all.
Firefox 3.5 is showing plugin flash 10 in about:plugins but
now ,youtube is showing black screen , firefox is freezing and .core is generated for firefox and npviewer.

May be i have to reboot , will see this evening as i m at work right now.
__________________
FreeBSD sp-freebsd 9.1-PRERELEASE FreeBSD 9.1-PRERELEASE #1: Sun Dec 23 18:57:51 CET 2012 root@sp-freebsd:/usr/obj/usr/src/sys/SPKERNEL amd64
Reply With Quote
  #24  
Old October 21st, 2009, 15:38
DutchDaemon's Avatar
DutchDaemon DutchDaemon is offline
Administrator
 
Join Date: Nov 2008
Location: Rotterdam, the Netherlands
Posts: 9,935
Thanks: 30
Thanked 1,932 Times in 1,351 Posts
Default

Personally, I would have removed all linux8 ports before changing the settings in /etc/make.conf and installing linux10.
__________________
FreeBSD Forums: Information for New Members | FreeBSD Forums Rules
FreeBSD Resources: The FreeBSD Handbook | Manuals | FAQ | Wiki
Before you post: How to ask questions the smart way
If you must know .. So, what does an Administrator/Moderator do?
---> Do not PM me with FreeBSD questions. I do not work here. <---
Reply With Quote
  #25  
Old October 21st, 2009, 16:19
SPlissken's Avatar
SPlissken SPlissken is offline
Member
 
Join Date: Nov 2008
Location: France
Posts: 150
Thanks: 18
Thanked 6 Times in 6 Posts
Default

Quote:
Originally Posted by DutchDaemon View Post
Personally, I would have removed all linux8 ports before changing the settings in /etc/make.conf and installing linux10.
Well , i m afraid that it's now a big spaghetti dish , and i m thinking about formating and doing a fresh install
__________________
FreeBSD sp-freebsd 9.1-PRERELEASE FreeBSD 9.1-PRERELEASE #1: Sun Dec 23 18:57:51 CET 2012 root@sp-freebsd:/usr/obj/usr/src/sys/SPKERNEL amd64
Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
java plugin not recognized in firefox3 mdg Installation and Maintenance of FreeBSD Ports or Packages 4 June 22nd, 2009 10:56
Firefox 3 & f8-Flash10 hangs when navigating away from page monty_hall Installation and Maintenance of FreeBSD Ports or Packages 3 June 14th, 2009 15:35
glitz installation needed by Firefox3 FreeBSD-6.0 gurukmlore Installation and Maintenance of FreeBSD Ports or Packages 7 June 12th, 2009 12:30
problem of java plugin and firefox3.x nicholas1918717 Installation and Maintenance of FreeBSD Ports or Packages 6 June 3rd, 2009 10:07
Flashplayer7 with KDE and FireFox3 H-300 Multimedia 5 January 2nd, 2009 22:23


All times are GMT +1. The time now is 03:21.


Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2013, vBulletin Solutions, Inc.
The mark FreeBSD is a registered trademark of The FreeBSD Foundation and is used by The FreeBSD Project with the permission of The FreeBSD Foundation.
Web protection and acceleration provided by CloudFlare
0