Tuesday, August 16, 2011

FreeBSD 8.2 : Getting flash in Chromium browser.

I had posted previously about getting Flash in both Midori and Opera, and here too., which were the browsers I was using in FreeBSD at the time.
Now I'm using Chromium 13.0.782.107 and like it better than the other two because it's fast and allows favicon bookmarking. Yes, I know it has extensions, but quite honestly, I really don't have a lot of use for that stuff.
So, how do you get flash in Chromium?
Actually, it's just a matter of following the relevant section in the Handbook, which is not unusual. Nevertheless, I found this forum guide a little more convenient.
Essentially, the steps I followed were:

# echo 'linux_load="YES"' >> /boot/loader.conf
# echo 'linux_enable="YES"' >> /etc/rc.conf
Now , Reboot
# cd /usr/ports/emulators/linux_base-f10
# make install clean
# cd /usr/ports/www/linux-f10-flashplugin10
# make install clean

Add these two lines to /etc/fstab
linsys /usr/compat/linux/sys linsysfs rw 0 0
linproc /usr/compat/linux/proc linprocfs rw 0 0

# cd /usr/ports/www/nspluginwrapper && make install clean
# nspluginwrapper -v -i /usr/local/lib/npapi/linux-f10-flashplugin/libflashplayer.so

Now, create a plugins folder at /usr/local/share/chromium/plugins
and perform the following copy command (as root):

cp /usr/local/lib/browser_plugins/npwrapper.libflashplayer.so /usr/local/share/chromium/plugins/npwrapper.libflashplayer.so

Next, reboot, open Chromium and place 'about:plugins' in the address bar whereupon you should see the flash plugin (I have Shockwave Flash 10.3 r181).

No comments:

Post a Comment