OpenSim 0.9.0 on FreeBSD 11.1: Difference between revisions
No edit summary |
No edit summary |
||
| Line 7: | Line 7: | ||
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. | 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. | 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. I also use a separate server running MySQL Database server (percona56-server). Instructions for Standalone and Grid/Robust are included. | ||
After the initial base install of FreeBSD 11.1, run the updates: | After the initial base install of FreeBSD 11.1, run the updates: | ||
| Line 26: | Line 26: | ||
<nowiki> | <nowiki> | ||
pkg install git | pkg install git | ||
pkg install | pkg install wget | ||
pkg install | pkg install mysql56-client | ||
pkg install screen | pkg install screen | ||
pkg install mono | pkg install mono | ||
pkg install libgdiplus | pkg install libgdiplus | ||
| Line 38: | Line 36: | ||
pkg install libtool | pkg install libtool | ||
pkg install gmake | pkg install gmake | ||
pkg install gcc | |||
</nowiki> | |||
|} | |||
If you are running a Grid, also install the following on the Robust server: | |||
{| | |||
|- | |||
| | |||
<nowiki> | |||
pkg install apache24 | |||
pkg install php56 | |||
pkg install mod_php56 | |||
pkg install php56-xmlrpc | pkg install php56-xmlrpc | ||
pkg install php56-curl | pkg install php56-curl | ||
pkg install php56-mysqli | pkg install php56-mysqli | ||
</nowiki> | </nowiki> | ||
|} | |} | ||
| Line 74: | Line 83: | ||
# | # | ||
linux_enable="YES" | linux_enable="YES" | ||
</nowiki> | |||
|} | |||
Login to the MySQL Server and create the databases: | |||
{| | |||
|- | |||
| | |||
<nowiki> | |||
create database opensim01; | |||
grant all on opensim01.* to opensim01@'opensim01.yourdomain.com' identified by 'Passw0rd'; | |||
create database robust01; | |||
grant all on robust01.* to robust01@'robust01.yourdomain.com' identified by 'Passw0rd'; | |||
</nowiki> | |||
|} | |||
Download the opensim-0.9.0.0 binaries and source: | |||
{| | |||
|- | |||
| | |||
<nowiki> | |||
wget http://opensimulator.org/dist/opensim-0.9.0.0.tar.gz | |||
wget http://opensimulator.org/dist/opensim-0.9.0.0-source.tar.gz | |||
</nowiki> | |||
|} | |||
Extract the opensim-0.9.0.0.tar.gz and opensim-0.9.0.0-source.tar.gz files to / then create a link for opensim: | |||
{| | |||
|- | |||
| | |||
<nowiki> | |||
cp opensim-0.9.0.0.tar.gz / | |||
cp opensim-0.9.0.0-source.tar.gz / | |||
cd / | |||
gunzip opensim-0.9.0.0.tar.gz | |||
gunzip opensim-0.9.0.0-source.tar.gz | |||
tar -xvf opensim-0.9.0.0.tar | |||
tar -xvf opensim-0.9.0.0-source.tar | |||
rm opensim-0.9.0.0.tar opensim-0.9.0.0-source.tar | |||
ln -s /opensim-0.9.0.0 /opensim | |||
</nowiki> | </nowiki> | ||
|} | |} | ||
Revision as of 11:02, 10 May 2018
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. I also use a separate server running MySQL Database server (percona56-server). Instructions for Standalone and Grid/Robust are included.
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 wget pkg install mysql56-client pkg install screen pkg install mono pkg install libgdiplus pkg install openjpeg pkg install cmake pkg install automake pkg install libtool pkg install gmake pkg install gcc |
If you are running a Grid, also install the following on the Robust server:
pkg install apache24 pkg install php56 pkg install mod_php56 pkg install php56-xmlrpc pkg install php56-curl pkg install php56-mysqli |
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" |
Login to the MySQL Server and create the databases:
create database opensim01; grant all on opensim01.* to opensim01@'opensim01.yourdomain.com' identified by 'Passw0rd'; create database robust01; grant all on robust01.* to robust01@'robust01.yourdomain.com' identified by 'Passw0rd'; |
Download the opensim-0.9.0.0 binaries and source:
wget http://opensimulator.org/dist/opensim-0.9.0.0.tar.gz wget http://opensimulator.org/dist/opensim-0.9.0.0-source.tar.gz |
Extract the opensim-0.9.0.0.tar.gz and opensim-0.9.0.0-source.tar.gz files to / then create a link for opensim:
cp opensim-0.9.0.0.tar.gz / cp opensim-0.9.0.0-source.tar.gz / cd / gunzip opensim-0.9.0.0.tar.gz gunzip opensim-0.9.0.0-source.tar.gz tar -xvf opensim-0.9.0.0.tar tar -xvf opensim-0.9.0.0-source.tar rm opensim-0.9.0.0.tar opensim-0.9.0.0-source.tar ln -s /opensim-0.9.0.0 /opensim |