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)
- # /usr/ports/www/firefox35
- # make install clean distclean
If using FreeBSD 7.x or lower, you need to load a kernel module for everything to work.
- # kldload sem
- # 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.
- # kldload linux
- # echo 'linux_load="YES"' >> /boot/loader.conf
- # echo 'linux_enable="YES"' >> /etc/rc.conf
- # echo 'linproc /compat/linux/proc linprocfs rw 0 0' >> /etc/fstab
- # 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
- # sysctl compat.linux.osrelease=2.6.16
- compat.linux.osrelease: 2.6.16 -> 2.6.16
- # echo 'compat.linux.osrelease=2.6.16' >> /etc/sysctl.conf
Install & Configure linux_base-f10
- # cd /usr/ports/emulators/linux_base-f10
- # make install clean distclean
If using FreeBSD 7.x or lower, add the following to /etc/make.conf!
- # echo 'OVERRIDE_LINUX_BASE_PORT=f10' >> /etc/make.conf
- # 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.
- # cd /usr/ports/www/linux-f10-flashplugin10
- # 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.
- # /usr/ports/www/nspluginwrapper
- # make install clean distclean
- # 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.
- # nspluginwrapper -v -i /usr/local/lib/npapi/linux-f10-flashplugin/libflashplayer.so
- # cd /usr/local/lib/firefox3/plugins
- # 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.
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.
- Tags
- AI (1)
- ALIX (1)
- digitalfoo.net (2)
- embedded (6)
- FreeBSD (30)
- Java (1)
- Linux (26)
- misc (7)
- my projects (1)
- MySQL (2)
- NanoBSD (3)
- opensource (7)
- perl (1)
- PHP (3)
- programming (11)
- Python (1)
- security (4)
- Archives
- 2011
- February (1)
- March (1)
- June (1)
- July (1)
- August (1)
- 2010
- June (5)
- July (2)
- December (4)
- April (6)
- March (2)
- May (1)
- August (2)
- October (1)
- November (1)
- 2009
- August (7)
- July (8)
- April (4)
- May (4)
- December (2)
- June (1)
- September (1)
- November (4)
- October (1)
- Web Tools
- Index
- dig-shovel Live
- SQL Injection Encoder
- Links
-

