User:Devalnor/DevalnorWorkNotes

From OpenSimulator

< User:Devalnor(Difference between revisions)
Jump to: navigation, search
(Install FreeBSD on VMWARE)
 
Line 58: Line 58:
 
     svn co http://opensimulator.org/svn/opensim/trunk trunk
 
     svn co http://opensimulator.org/svn/opensim/trunk trunk
  
Download LibSL
+
Warning: Instructions for libsl are outdated, see updated ones on [[Troubleshooting#System.DllNotFoundException:_lib32.2Flibopenjpeg-dotnet-2.1.3.0-dotnet-1-i686|FAQ section about libopenjpeg-mono]]
     svn co svn://opensecondlife.org/libsl/trunk libsl
+
#Download LibSL
 
+
     # svn co svn://opensecondlife.org/libsl/trunk libsl
 
+
#Install gmake, compile and copy
Install gmake, compile and copy
+
 
     pkg_add -r gmake
 
     pkg_add -r gmake
     gmake
+
     # gmake
     cp /usr/local/opensim/libsl/openjpeg-libsl/libopenjpeg-libsl-2.1.2.0.so /usr/local/opensim/trunk/bin/
+
     # cp /usr/local/opensim/libsl/openjpeg-libsl/libopenjpeg-libsl-2.1.2.0.so /usr/local/opensim/trunk/bin/
  
 
Install ODE
 
Install ODE

Latest revision as of 21:42, 5 March 2012


[edit] Install FreeBSD on VMWARE

VMWARE based : http://www.thoughtpolice.co.uk/vmware/#freebsd6.3

Change default language for the console (it's optional default config is ok):

      1. Edit /root/.login.conf
      2. Add the lines
         me:\
         :charset=ISO-8859-1:\
         :lang=de_DE.ISO8859-1: (example given for German)

Change keyboard for the console:

   Run sysinstall, then Configure> Console

Networking

   Run sysinstall, then Configure> Networking> Interfaces> lnc0. Let it DHCP probe for an address.
   Set hostname="localhost" in /etc/rc.conf

Setup SSH

   Set sshd_enabled="YES"
   Edit /etc/sshd/sshd_config
   Set PermitRootLogin yes (Yes I know it's bad... but at this time using OpenSim is also unsecure too ;-)

Apply software updates (notes there is not port collection installed)

   For core software (i.e. not in FreeBSD ports), run freebsd-update fetch && freebsd-update install
   For software installed from FreeBSD ports, look at the portupgrade tool (see pkg_info portupgrade)

Install Usefull Utils

   pkg_add -r wget
   pkg_add -r python

Install Subversion

   pkg_add -r subversion
   

Install Mono

   pkg_add -r mono

Install nant

   pkg_add -r nant

Install sqlite3

   pkg_add -r sqlite3

Install libgdiplus

   pkg_add -r libgdiplus

Reload the $path for /usr/local/bin

   csh (Reload the $path for /usr/local/bin)

Create the install dir

   cd /usr/local
   mkdir opensim 

Download the SVN Trunk

   svn co http://opensimulator.org/svn/opensim/trunk trunk

Warning: Instructions for libsl are outdated, see updated ones on FAQ section about libopenjpeg-mono

#Download LibSL
   # svn co svn://opensecondlife.org/libsl/trunk libsl
#Install gmake, compile and copy
   pkg_add -r gmake
   # gmake
   # cp /usr/local/opensim/libsl/openjpeg-libsl/libopenjpeg-libsl-2.1.2.0.so /usr/local/opensim/trunk/bin/

Install ODE

   svn co http://opensimulator.org/svn/opensim-libs/trunk opensim-libs
   cd opensim-libs/unmanaged/OpenDynamicsEngine/
   ./configure --enable-soname  (Devalnor : --enabled-shared do not exist)
   cd /ode/src
   make
   mv ./libode.so /usr/local/opensim/trunk/bin/


Run Prebuild

   cd /usr/loca/opensim/trunk
   ./runprebuild.sh

Run Nant

  nant

Run Opensim

  cd /usr/local/opensim/trunk/bin
  mono OpenSim.exe

[edit] Install OpenSim in Jail

Because OpenSim is a Alpha project naturally it's unsecure to use it in production environment. For region owner in grid mode (Like OSGrid, Francogrid and others) the jail solution (or chroot) is needed to secure the base system.

This a draft : how to install OpenSim on FreeBSD in a jail service.

First make sure that you have all the sources in /usr/src use sysintall to download it or SVN.

setenv D /usr/jail/opensim
mkdir -p $D
cd /usr/src
make world DESTDIR=$D (will take time... take a coffee... watch a movie or call your girlfriend... take a coffee again... and it's done)
cd etc/
make distribution DESTDIR=$D
mount_devfs devfs $D/dev

Next Coming Soon

Personal tools
General
About This Wiki