DaemonForums  

Go Back   DaemonForums > FreeBSD > FreeBSD General

FreeBSD General Other questions regarding FreeBSD which do not fit in any of the categories below.

Reply
 
Thread Tools Display Modes
  #1   (View Single Post)  
Old 14th October 2008
vmhobbes vmhobbes is offline
New User
 
Join Date: Oct 2008
Posts: 3
Thanked 1 Time in 1 Post
Default Flash 9 (COMPAT_LINUX) on CURRENT with native Firefox 3

Hi, I got Flash 9 with sound working on FreeBSD-CURRENT/linux_base-f8/native Firefox 3.0.3. (Tested on YouTube). For those who'd like to try it for themselves, here's what I did:

Enable Linux compatibility in rc.conf , then run
# /etc/rc.d/abi restart

Add this to /etc/make.conf:
Code:
OVERRIDE_LINUX_BASE_PORT=f8
Then add this to /etc/fstab:
Code:
linproc         /compat/linux/proc      linprocfs        rw       0 0
...and mount it:
# mount /compat/linux/proc

Make sure the output of 'sysctl compat.linux.osrelease' says 2.6.16 (It's the default in -CURRENT, but hey, it wouldn't hurt to see, right? )

Install (not necessarily in order):
- emulators/linux_base-f8
- www/linux-flashplugin9
- www/nspluginwrapper
- www/firefox3 (of course )

After everything is installed:
% nspluginwrapper -i /usr/local/lib/npapi/linux-flashplugin/libflashplayer.so

Check that Firefox recognizes the plugin, if it does, try to view a YouTube video. Hope this helps.

Addendum 10/15/2008: Sometimes npviewer.bin crashes, which prevents further viewing of Flash on the current Firefox session. If this happens, try killing all npviewer.bin processes, then reload the page.
Reply With Quote
  #2   (View Single Post)  
Old 21st October 2008
mdh's Avatar
mdh mdh is offline
Real Name: Matt D. Harris
FreeBSD 2.2.6 User
 
Join Date: Oct 2008
Location: West Virginia
Posts: 139
Thanked 8 Times in 8 Posts
Default

Ever try it on RELENG_7, by any chance? Do you know of substantial differences in 8 that make it impossible on RELENG_7?
Reply With Quote
  #3   (View Single Post)  
Old 24th October 2008
ninjatux's Avatar
ninjatux ninjatux is offline
Real Name: Baqir Majlisi
Spam Deminer
 
Join Date: May 2008
Location: Antarctica
Posts: 293
Thanked 15 Times in 15 Posts
Default

All the work from FreeBSD-8 to make this possible has already been MFCed to 7-STABLE, so it shouldn't be very difficult.
__________________
"UNIX is basically a simple operating system, but you have to be a genius to understand the simplicity."
MacBook Pro (Darwin 9), iMac (Darwin 9), iPod Touch (Darwin 9), Dell Optiplex GX620 (FreeBSD 7.1-STABLE)
Reply With Quote
  #4   (View Single Post)  
Old 26th October 2008
Business_woman's Avatar
Business_woman Business_woman is offline
lieutenant
 
Join Date: May 2008
Posts: 45
Thanked 2 Times in 2 Posts
Default

Hmm, my output of sysctl compat.linux.osrelease is 2.4 even though i run 7.1 prerelease. How can i fix that
__________________
I like cookies...
Reply With Quote
  #5   (View Single Post)  
Old 26th October 2008
richardpl richardpl is offline
Spam Deminer
 
Join Date: May 2008
Location: Croatia
Posts: 284
Thanked 25 Times in 24 Posts
Default

# sysctl compat.linux.osrelease=2.6
But that have sense only if you are installing linux_base-f8, and not something older.
Reply With Quote
  #6   (View Single Post)  
Old 27th October 2008
Business_woman's Avatar
Business_woman Business_woman is offline
lieutenant
 
Join Date: May 2008
Posts: 45
Thanked 2 Times in 2 Posts
Default

Is that a knob i can change just like that?

Doesn't it have to do with the base system?
__________________
I like cookies...
Reply With Quote
  #7   (View Single Post)  
Old 27th October 2008
Oliver_H's Avatar
Oliver_H Oliver_H is offline
Real Name: Oliver Herold
UNIX lover
 
Join Date: May 2008
Location: Germany
Posts: 429
Thanked 26 Times in 22 Posts
Default

That's a sysctl variable and you can change it temporary with sysctl compat.linux.osrelease=2.6.16 or permanently in /etc/sysctl.conf. Of course you have to load linux.ko with kldload linux or in /boot/loader.conf with linux_load="YES".
__________________
use UNIX or die :-)
Reply With Quote
  #8   (View Single Post)  
Old 28th October 2008
ninjatux's Avatar
ninjatux ninjatux is offline
Real Name: Baqir Majlisi
Spam Deminer
 
Join Date: May 2008
Location: Antarctica
Posts: 293
Thanked 15 Times in 15 Posts
Default

All works well with awesome stability on PC-BSD 7.0.1.
__________________
"UNIX is basically a simple operating system, but you have to be a genius to understand the simplicity."
MacBook Pro (Darwin 9), iMac (Darwin 9), iPod Touch (Darwin 9), Dell Optiplex GX620 (FreeBSD 7.1-STABLE)
Reply With Quote
  #9   (View Single Post)  
Old 28th October 2008
Oliver_H's Avatar
Oliver_H Oliver_H is offline
Real Name: Oliver Herold
UNIX lover
 
Join Date: May 2008
Location: Germany
Posts: 429
Thanked 26 Times in 22 Posts
Default

Well stability in terms of no kernel panic, following the mailing list you will see that you have to kill npviewer.bin once in a while. As far as I can see, my wifes machine (PCBSD 7.0.1) doesn't behave different. Would be otherwise somewhat a miracle, I'm following stable and current. Furthermore f8 behaves quiet well, but it has got some quirks therefore we will see it as linux_base in FreeBSD 8 first.

But as always it's a big step forward for FreeBSD on the desktop, imho a major drawback in the past.
__________________
use UNIX or die :-)
Reply With Quote
Old 28th October 2008
ninjatux's Avatar
ninjatux ninjatux is offline
Real Name: Baqir Majlisi
Spam Deminer
 
Join Date: May 2008
Location: Antarctica
Posts: 293
Thanked 15 Times in 15 Posts
Default

I haven't had to kill npviewer.bin yet, but nspluginwrapper is buggy software. I've encountered the behavior you describe on Linux and Solaris.
__________________
"UNIX is basically a simple operating system, but you have to be a genius to understand the simplicity."
MacBook Pro (Darwin 9), iMac (Darwin 9), iPod Touch (Darwin 9), Dell Optiplex GX620 (FreeBSD 7.1-STABLE)
Reply With Quote
Old 28th October 2008
Oliver_H's Avatar
Oliver_H Oliver_H is offline
Real Name: Oliver Herold
UNIX lover
 
Join Date: May 2008
Location: Germany
Posts: 429
Thanked 26 Times in 22 Posts
Default

>nspluginwrapper is buggy software

Yes to some degree, but in the beginning it was just a way to use Flash on Linux 64bit. At the moment the devs try to develop some kind of a sandbox for Flash and the development version is already some steps ahead.
__________________
use UNIX or die :-)
Reply With Quote
Old 5th November 2008
anomie's Avatar
anomie anomie is offline
Local
 
Join Date: Apr 2008
Location: Texas
Posts: 446
Thanked 69 Times in 46 Posts
Default

I'm tacking on this (closely related) article I spotted on freebsdnews.net today:

Flash 9 for FreeBSD 7.1
http://crnl.org/blog/2008/11/01/flash-9-for-freebsd-71
__________________
Kill your t.v.
Reply With Quote
Old 5th November 2008
Business_woman's Avatar
Business_woman Business_woman is offline
lieutenant
 
Join Date: May 2008
Posts: 45
Thanked 2 Times in 2 Posts
Default

Hmm,

Code:
 /usr/local/lib/nspluginwrapper/i386/npviewer.bin: error while loading shared libraries: libX11.so.6: cannot open shared object file. No such file or directory
=/
__________________
I like cookies...
Reply With Quote
Old 5th November 2008
adamk adamk is offline
Spam Deminer
 
Join Date: May 2008
Posts: 250
Thanked 5 Times in 8 Posts
Default

So this seems to work pretty well. The only issue I've encountered, which isn't directly related to the flash plugin, is that when trying to view videos on cnn.com, I get a "This CNN.com feature does not currently support the platform you are using."

Obviously CNN is detecting that I'm using firefox on FreeBSD. If I use linux-firefox, it works just fine. Is there anyway to get firefox to mask itself as another browser on another platform?

Adam
Reply With Quote
Old 5th November 2008
bsddaemon bsddaemon is offline
Slack Daemon
 
Join Date: Oct 2008
Posts: 35
Thanked 3 Times in 3 Posts
Default

If you wanna mask your FX as a Linux version:

- Enter about:config in address bar
- Create new entry "general.useragent.override" with string value "Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv:1.9a8) Gecko/2007100619 GranParadiso/3.0a8"
__________________
...then the God created man...
Reply With Quote
Old 5th November 2008
adamk adamk is offline
Spam Deminer
 
Join Date: May 2008
Posts: 250
Thanked 5 Times in 8 Posts
Default

Thanks for the tip :-)

That does change the useragent that shows up in our apache server log files, so I know that it's working. Unfortunately, cnn.com must be using some other method of checking the platform, because I still get the same message.

Oh well... Stupid CNN.

Adam
Reply With Quote
Old 6th November 2008
kasse kasse is offline
Fdisk Soldier
 
Join Date: Jun 2008
Posts: 67
Thanked 0 Times in 0 Posts
Default

I seem to have a problem with libgtk-x11-2.0.so.0 when I run
Code:
nspluginwrapper -i /usr/local/lib/npapi/linux-flashplugin/libflashplayer.so
i get
Code:
/usr/local/lib/nspluginwrapper/i386/linux/npviewer.bin: error while loading shared libraries: libgtk-x11-2.0.so.0: cannot open shared object file: No such file or directory
nspluginwrapper: no appropriate viewer found for /usr/local/lib/npapi/linux-flashplugin/libflashplayer.so
since I have the file /usr/local/lib/libgtk-x11-2.0.so.0,
I wonder
1) is the "lib-path"(whatever that concept/variable that may be) not including /usr/local/lib and how does one set this?
2) is it asking for the linux version of libgtk-x11-2.0.so.0, I followed the steps by vmhobbes, why am I missing this file?

EDIT: It works when I install x11-toolkits/linux-gtk2, but why was this missing when I followed the steps?
How do I find out which .so file it asks for ldd nspluginwrapper only shows some libc.so.7 => /lib/libc.so.7 (0x28081000)
so that I would know libgtk-x11.d.d.d it asks for?

Last edited by kasse; 6th November 2008 at 11:27 PM.
Reply With Quote
Old 7th November 2008
kasse kasse is offline
Fdisk Soldier
 
Join Date: Jun 2008
Posts: 67
Thanked 0 Times in 0 Posts
Default

This is a question about the above with 7.0-release, whether you have to have 7.0-stable or current.
When I try to load a page with flash content the system seems to hang, two npviewer.bin processes take up ~30% of WCPU in top, the remaining 30% are syslogd. It goes crazy and in /var/log/messages I find this crazy stuff. There seems to be some solution to this from some mailinglist:
Quote:
Em Thursday 12 June 2008 07:55:55 Tsu-Fan Cheng escreveu:

hi all,
i have this weird log in my /var/log/messages, it keeps showing

Jun 12 06:53:36 kernel: linux_sys_futex: unknown op
Jun 12 06:53:36 kernel: 128
Jun 12 06:53:36 kernel: linux_sys_futex: unknown op 128

and it seems to have something to do with my flash plugin, as I kill
npviewer, this message goes away, does anyone know why?? thanks !!
_______________________________________________
freebsd-questions@xxxxxxxxxxx mailing list
http://lists.freebsd.org/mailman/lis...ebsd-questions
To unsubscribe, send any mail to
"freebsd-questions-unsubscribe@xxxxxxxxxxx"


You may be running linux_base-f8 with 7.0-RELEASE, isn't it?

linux_base-f8 uses some futex functions present only in STABLE. To get rid of
it you could update to 7-STABLE, or, as I do, just copy linux_futex.c and
linux_futex.h from CURRENT or STABLE into sys/compat/linux and rebuild your
kernel, while keep using 7.0-RELEASE.

- --
Aline de Freitas -
So if I compile in this in a new kernel, would this imply that I get into the "risky-business" associated with stable and current. Or does this just affect the linux part of the programs running i.e. no total emergency?
Reply With Quote
Old 7th November 2008
ninjatux's Avatar
ninjatux ninjatux is offline
Real Name: Baqir Majlisi
Spam Deminer
 
Join Date: May 2008
Location: Antarctica
Posts: 293
Thanked 15 Times in 15 Posts
Default

Should be fine.
__________________
"UNIX is basically a simple operating system, but you have to be a genius to understand the simplicity."
MacBook Pro (Darwin 9), iMac (Darwin 9), iPod Touch (Darwin 9), Dell Optiplex GX620 (FreeBSD 7.1-STABLE)
Reply With Quote
Old 9th November 2008
kasse kasse is offline
Fdisk Soldier
 
Join Date: Jun 2008
Posts: 67
Thanked 0 Times in 0 Posts
Default

Quote:
Originally Posted by ninjatux View Post
Should be fine.
thanks, I copied in the linux_futex from 7stable and remade a kernel, but it does not work. Atleast now it is just firefox that hangs.

I guess no one has explicitly said that this works, but would you know what might be wrong. What did they do in PCBSD to get it running?
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
OpenBSD4.5 current to current... valorisa OpenBSD Installation and Upgrading 7 6th June 2009 09:26 AM
State of Native Java in NetBSD? shep NetBSD Package System (pkgsrc) 1 2nd June 2009 08:13 AM
Flash for firefox finally? drhowarddrfine FreeBSD General 8 23rd August 2008 08:53 AM
firefox, linux-flash, nspluginwrapper, and youtube? neurosis FreeBSD Ports and Packages 16 15th August 2008 06:46 AM


All times are GMT. The time now is 08:12 AM.


Powered by vBulletin® Version 3.8.4
Copyright ©2000 - 2014, Jelsoft Enterprises Ltd.
Content copyright © 2007-2010, the authors
Daemon image copyright ©1988, Marshall Kirk McKusick