FreeBSD Firefox with Flash 10
  Jul 07, 2009

Adobe has always denied FreeBSD native flash support, but you can use Linux emulation to get Adobe Flash 10 working on a FreeBSD system with a few simple steps. Although it might have its occasional quirks, Flash works pretty well with anything I have ever thrown at it. It gets better every update!

Install Firefox

Obviously, we need Firefox so install the latest Firefox if you do not already have (if it isn't listed in pkg_info)

  1. # /usr/ports/www/firefox35
  2. # make install clean distclean

If using FreeBSD 7.x or lower, you need to load a kernel module for everything to work.

  1. # kldload sem
  2. # echo 'sem_load="YES"' >> /boot/loader.conf

FreeBSD Linux Compatibility

If you do not already have Linux compatibility enabled, enable it now! You can either load the Kernel module itself or compile it directly into the Kernel. We will also add the necessary options to /etc/rc.conf so that Linux compatibility gets loaded at start-up from now on.

  1. # kldload linux
  2. # echo 'linux_load="YES"' >> /boot/loader.conf
  3. # echo 'linux_enable="YES"' >> /etc/rc.conf
  4. # echo 'linproc /compat/linux/proc linprocfs rw 0 0' >> /etc/fstab
  5. # mount /compat/linux/proc

If using FreeBSD 7.x or lower, you need to specify a newer Linux kernel to emulate.

2.6.16 is now the default as of FreeBSD 8.0

  1. # sysctl compat.linux.osrelease=2.6.16
  2. compat.linux.osrelease: 2.6.16 -> 2.6.16
  3. # echo 'compat.linux.osrelease=2.6.16' >> /etc/sysctl.conf

Install & Configure linux_base-f10

  1. # cd /usr/ports/emulators/linux_base-f10
  2. # make install clean distclean

If using FreeBSD 7.x or lower, add the following to /etc/make.conf!

  1. # echo 'OVERRIDE_LINUX_BASE_PORT=f10' >> /etc/make.conf
  2. # echo 'OVERRIDE_LINUX_NONBASE_PORTS=f10' >> /etc/make.conf

Install Flash 10

Flash 10 is awesomely supported now if you have a recent system codebase. If you have big troubles, try Flash 9.

  1. # cd /usr/ports/www/linux-f10-flashplugin10
  2. # make install clean distclean

Install & Run nspluginwrapper

nspluginwrapper allows you to "wrap" (NPAPI) plugins, further allowing them run on multiple platforms that they were not originally intended for.

  1. # /usr/ports/www/nspluginwrapper
  2. # make install clean distclean
  3. # rehash

Integrate into Firefox 3

nspluginwrapper installs interesting files in /usr/local/lib/browswer_plugins. Since the target plugin directory for Firefox 3.x is /usr/local/lib/firefox3/plugins, we need to simply create a symbolic link to the files we need.

  1. # nspluginwrapper -v -i /usr/local/lib/npapi/linux-f10-flashplugin/libflashplayer.so
  2. # cd /usr/local/lib/firefox3/plugins
  3. # ln -s /usr/local/lib/browser_plugins/npwrapper.libflashplayer.so

Verify Flash Plugin is Installed with Firefox

To make sure the Flash plugin was detected by Firefox, close all instances for Firefox. You can even run killall -9 firefox-bin (as a normal user) at a terminal if you want to be extra sure or if you have problems later.

Now that we have Firefox up, go to about:plugins in the URL bar. This is a listing of all loaded plugins.

Firefox with Flash plugin loaded

Hopefully you have the plugins loaded by now. Now, visit a website that you know has Flash!

If not, double check your steps... maybe restart the computer and start fresh.




Post a New Comment

Name

Message

Security
Code

        (case insensitive & space between words)


Posted Comments
anonymous  Sep 27, 2011
cialis farmacia precio cialis en farmacias. comprar cialis farmacia <a href=http://comprarcialisgenericoenespana.bligoo.es/cialis>cialis contrareembolso</a> precio cialis 20 mg