User:Devalnor/DevalnorWorkNotes

From OpenSimulator

< User:Devalnor(Difference between revisions)
Jump to: navigation, search
m
(Install FreeBSD on VMWARE)
 
(23 intermediate revisions by 3 users not shown)
Line 1: Line 1:
 +
__NOTOC__
 +
{{Template:Quicklinks}}
 +
<br />
 +
== Install FreeBSD on VMWARE ==
 
VMWARE based : http://www.thoughtpolice.co.uk/vmware/#freebsd6.3
 
VMWARE based : http://www.thoughtpolice.co.uk/vmware/#freebsd6.3
  
Change default language for the console:
+
Change default language for the console (it's optional default config is ok):
  
       1. Edit /home/USERNAME/.login.conf
+
       1. Edit /root/.login.conf
 
       2. Add the lines
 
       2. Add the lines
 
           me:\
 
           me:\
Line 14: Line 18:
 
Networking
 
Networking
 
     Run sysinstall, then Configure> Networking> Interfaces> lnc0. Let it DHCP probe for an address.
 
     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)
 
Apply software updates (notes there is not port collection installed)
Line 19: Line 29:
 
     For software installed from FreeBSD ports, look at the portupgrade tool (see pkg_info portupgrade)
 
     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
 
Install Subversion
 
     pkg_add -r subversion
 
     pkg_add -r subversion
     csh (Reload the $path for /usr/local/bin)
+
      
 
+
 
Install Mono
 
Install Mono
 
     pkg_add -r 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 [[Troubleshooting#System.DllNotFoundException:_lib32.2Flibopenjpeg-dotnet-2.1.3.0-dotnet-1-i686|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
 +
 +
== 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

Latest revision as of 22: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