Flash and Java for Google Chromium in FreeBSD 8

According to the official FreeBSD handbook (Ch 7.2 Browsers), perform the following steps to have a Java and Flash capable Chromium browser for FreeBSD 8:

As root:

# portmaster www/chromium \ java/openjdk6 \ java/icedtea-web \ www/nspluginwrapper \ www/linux-f10-flashplugin10

Then:

# mkdir -p /usr/local/share/chromium/plugins

# ln -s /usr/local/lib/IcedTeaPlugin.so /usr/local/share/chromium/plugins/

# ln -s /usr/local/lib/npapi/linux-f10-flashplugin/libflashplayer.so \ /usr/local/lib/browser_plugins/

The Linux process file system, linprocfs(5) has to be mounted on /compat/linux/proc:

# mount -t linprocfs linproc /compat/linux/proc

To mount the proc fs at each system boot, in /etc/fstab, have:

1
linproc    /compat/linux/proc  linprocfs   rw  0   0

As a user:

% nspluginwrapper -v -a -i