Linux Gridserver

From OpenSimulator

(Difference between revisions)
Jump to: navigation, search
Line 1: Line 1:
==Recommended Versions==
+
Since Linux-servers are cheaper(free), easier to customize and cheaper to scale, this tutorial will be focussed on linux. Most of it will work for Windoze-users too though.
* Mono 1.2.5.2 (.5.1 is unstable!)
+
* .NET 2.0
+
  
See also [[Ogltree_Install_Instructions]]
+
==Recommended Software and Versions==
 +
* Mono 1.9.1
 +
* OpenSSH
 +
* Nant
  
==Step 1: Install the software==
+
=Step 1: Create a suitable production direction structure=
We are going to install the opensim server(0.5 stable) in the /opt directory from the terminal...
+
su root
+
 
  cd /opt
 
  cd /opt
  svn co http://opensimulator.org/svn/opensim/tags/0.5.0-release opensim
+
  mkdir opensim opensim/production opensim/builds opensim/scripts opensim/library/ opensim/source opensim/backup
  
==Step 2: Binary/Library preparation==
+
==Step 2: Get the software==
* We build opensim, and create the proper directory structure for future updates...
+
We are going to install the latest and greatest opensim svn-server from the svn-trunk.
  cd opensim
+
cd /opt/opensim/builds
 +
svn info http://opensimulator.org/svn/opensim/trunk
 +
Now get the revision-number(4523 at the moment), and make a directory for it...
 +
mkdir 4487
 +
  cd 4487
 +
svn co http://opensimulator.org/svn/opensim/trunk .
 +
 
 +
==Step 3: Setup a first run==
 +
* We first build the binaries now
 
  sh ./runprebuild.sh
 
  sh ./runprebuild.sh
 
  nant
 
  nant
* After a succesful build, we are going to create additional directories...
+
* I hope for you that the build will be succesful. If not, check out your mono-version and check out if all dependencies are available. Now we copy the build to the production directory
  mkdir library
+
cd bin
  mkdir production
+
cp -R * /opt/opensim/production
mv OpenSim production
+
* Prepare the configuration-files
  mv bin production
+
cd /opt/opensim/production
 +
cp OpenSim.ini.example OpenSim.ini
 +
  cp mysql_connection.ini.example mysql_connection.ini
 +
* Setup mysql-storage in OpenSim.ini and mysql_connection.ini  
 +
* Run the iptables-script, to fix the router-loopback issue
 +
* Edit /etc/hosts.allow, and make sure it allows the service you are running (OpenSim thinks localhost is your LAN-IP, not the loopback-device). It should look something like:
 +
  ALL : 192.168.1. 127.0.0.1 localhost
 +
sshd: ALL
 +
 
 +
 
 +
 +
 
  
 
* Testrun opensim by executing it:
 
* Testrun opensim by executing it:
Line 30: Line 48:
 
==Step 3:Adding custom textures==
 
==Step 3:Adding custom textures==
 
Check out [[Inworld_Data|Inworld Data]]
 
Check out [[Inworld_Data|Inworld Data]]
 +
 +
 +
 +
See also [[Ogltree_Install_Instructions]]

Revision as of 09:56, 4 May 2008

Since Linux-servers are cheaper(free), easier to customize and cheaper to scale, this tutorial will be focussed on linux. Most of it will work for Windoze-users too though.

Contents

Recommended Software and Versions

  • Mono 1.9.1
  • OpenSSH
  • Nant

Step 1: Create a suitable production direction structure

cd /opt
mkdir opensim opensim/production opensim/builds opensim/scripts opensim/library/ opensim/source opensim/backup

Step 2: Get the software

We are going to install the latest and greatest opensim svn-server from the svn-trunk.

cd /opt/opensim/builds
svn info http://opensimulator.org/svn/opensim/trunk

Now get the revision-number(4523 at the moment), and make a directory for it...

mkdir 4487
cd 4487
svn co http://opensimulator.org/svn/opensim/trunk .

Step 3: Setup a first run

  • We first build the binaries now
sh ./runprebuild.sh
nant
  • I hope for you that the build will be succesful. If not, check out your mono-version and check out if all dependencies are available. Now we copy the build to the production directory
cd bin
cp -R * /opt/opensim/production
  • Prepare the configuration-files
cd /opt/opensim/production
cp OpenSim.ini.example OpenSim.ini
cp mysql_connection.ini.example mysql_connection.ini
  • Setup mysql-storage in OpenSim.ini and mysql_connection.ini
  • Run the iptables-script, to fix the router-loopback issue
  • Edit /etc/hosts.allow, and make sure it allows the service you are running (OpenSim thinks localhost is your LAN-IP, not the loopback-device). It should look something like:
ALL : 192.168.1. 127.0.0.1 localhost
sshd: ALL



  • Testrun opensim by executing it:
mono /opt/opensim/production/bin/OpenSim.exe

You will be asked to enter some initial settings. Just hit enter all the time, until the default region is served... You can try connecting the secondlife client by launching the executable like this:

/pathtoslclient/secondlife -loginuri http://localhost:9000 -loginpage http://localhost:9000/?method=login

Step 3:Adding custom textures

Check out Inworld Data


See also Ogltree_Install_Instructions

Personal tools
General
About This Wiki