pavement

User:Sidetone/linuxcompat

From FreeBSDwiki
Jump to: navigation, search

Configuration steps for enabling Linux compatibility, necessary for using Flash Player made for Linux. Work in progress, steps:

For custom, non-specific linux package and up to date setups, we may be able to do without the following packages: linux_base-f10, or linux_base-gentoo-stage3

linux_base-c6 might make it easier to install; complete instructions if there are more than the configurations below. Still a trial and error processes to figure it out. Got it to work in the past, either I forgot exactly how to do it, or the way to do it changed.

/etc/

/etc/fstab

linproc         /compat/linux/proc    linprocfs  rw    0   0
#possibly the two below
fdesc           /dev/fd               fdescfs    rw    0   0
proc            /proc                 procfs     rw    0   0

/etc/rc.conf

linux_enable="YES"

/etc/devfs.conf

link /tmp shm

/etc/sysctl.conf

compat.linux.osrelease=2.6.18

/compat/linux/

/compat/linux/ should have at least the following sub-directories: etc/ lib/ proc/ usr/

% cd /compat/linux/
% mkdir etc/ lib/ proc/ usr/

/compat/linux/etc/yp.conf

domainname	mydomain.com  # this is your network's domain-name without localhost
ypserver	localhost  # my.yp.server

/compat/linux/etc/nsswitch.conf

passwd:     files nis
shadow:     files nis
group:      files nis
hosts:	    files nis dns


Flashplayer

The Flashplayer library file belongs in /usr/local/lib/browser_plugins/.

The easiest way to install flashplayer is to compile the package linux-c6-flashplugin11:

/usr/ports/www/linux-c6-flashplugin11
make install clean

This should install other linux-c6 dependencies.

Run the following for a library plugin to be found by firefox:

nspluginwrapper -v -a -i

Or to upgrade from a previous installed Flash plugin:

nspluginwrapper -v -a -u
Personal tools