OpenSim 0.9.0 on FreeBSD 11.1
OpenSim 0.9.0 on FreeBSD 11.1
Note: This page is under construction!
Documentation for running OpenSim on FreeBSD has been very outdated with the most recent information refering to FreeBSD version 6.2 and outdated instructions for trying to make it work. After a little trial and error, I've come up with the following to get OpenSim 0.9.0.0 (release) and FreeBSD 11.1-p10 to run in Standalone as well as Grid mode with all the latest ports required off the Ports Tree to make it work.
In the past, I ran into issues with lang/mono and core dumps, memory leaks and so on, but now it seems that there have been some improvements with mono and also with the OpenSim developers to deliver a reliable platform that even works on FreeBSD.
To get started, setup a FreeBSD system running version 11.1 amd64. I use vmWare to create a virtual machine for this configured with 1536MB Ram, 2 CPU cores and 32GB of diskspace. Use GPT for the partitions and accept the default sizes for boot, swap and root.
After the initial base install of FreeBSD 11.1, run the updates:
[root@opensim01 ~]# freebsd-update fetch [root@opensim01 ~]# freebsd-update install |
Reboot after the updates have been installed.
Install the following packages using pkg install <package name>:
pkg install git pkg install apache24 pkg install percona56-client pkg install screen pkg install php56 pkg install mod_php56 pkg install mono pkg install libgdiplus pkg install openjpeg pkg install cmake pkg install automake pkg install libtool pkg install gmake pkg install php56-xmlrpc pkg install php56-curl pkg install php56-mysqli pkg install gcc |
Next, we need to edit some files to add support for the OpenSim platform:
Edit /boot/loader.conf and add the following:
linux_load="YES" |
Copy php.ini-production to php.ini:
cp /usr/local/etc/php.ini-production /usr/local/etc/php.ini |
Edit /etc/rc.conf and add the following:
# # LINUX COMPATIBILITY # linux_enable="YES" |