Saturday, March 31, 2012

Running your Own Region - Part 1

This is going to be the first of several posts about running your OpenSim region in OSGrid.  This session we will talking about setting up your server and installing Mono.


Purpose:  The purpose of this document is to properly document how to setup an OpenSim Linux server to host an OSGrid Region.  In this example we will be using CentOS 5.6 as the core operating system.  This example is also done using a Rackspace Cloud Server, the steps should be the same for any other VPS(Virtual Private Server)

Formating:  In an attempt to make this as easy as possible to follow I’m edited the fomating on the input and output from the server.

Commands entered into the server though your terminal will be displayed like this.

Command output from your server in the terminal will be displayed like this.

Setting up the Server - Installing Mono






After  your Server has been created.  Log in as root, and create user ‘opensim’.  then issue the command to set a password for the user opensim.

useradd opensim
passwd opensim
Changing password for user opensim.
New UNIX password:
Retype new UNIX password:
passwd: all authentication tokens updated successfully.

While logged in as root user run updates on the server

yum update

When that is complte set up the repository to install a version of Mono that will support OpenSim version 0.7.x

To see what version of Mono is in your Yum Repoisotorys run the following command.

yum info mono-core
Loaded plugins: fastestmirror
Loading mirror speeds from cached hostfile
 * base: mirror.ubiquityservers.com
 * extras: mirror.ubiquityservers.com
 * updates: yum.singlehop.com
Available Packages
Name       : mono-core
Arch       : x86_64
Version    : 1.2.4
Release    : 2.el5.centos
Size       : 11 M
Repo       : extras
Summary    : The Mono CIL runtime, suitable for running .NET code
URL        : http://www.mono-project.com/
License    : GPL, LGPL, MIT X11
Description: This package contains the core of the Mono runtime including its
           : Virtual Machine, Just-in-time compiler, C# compiler, security
           : tools and libraries (corlib, XML, System.Security, ZipLib,
           : I18N, Cairo and Mono.*).


Since we running a more stable operating system, it contains an older verion of Mono.  Therefore we will need to update servers repositories to install a newer Mono binaries.  To do this we will run the following commands.

cd /etc/yum.repos.d
sudo nano mono.repo

This will open the nano text editor and and create a new file, mono.repo.  Add the following lines to that file.

[mono]
name = novell-mono
baseurl=http://ftp.novell.com/pub/mono/download-stable/RHEL_5/
enabled=1
gpgcheck=0

Type CTRL+X then Y then Enter to save the file

If your running a 32-bit version of CentOS then add the following lines into your console/terminal window followed by Enter.

sudo yum install mono-addon-core.i386 mono-addon-data.i386 mono-addon-data-sqlite.i386  mono-addon-extras.i386 mono-addon-web.i386 mono-addon-winforms.i386 mono-addon-libgdiplus0.i386

If your running a 64-bit version of CentOS then add the following lines into your console/terminal window followed by Enter..

sudo yum install mono-addon-core.x86_64 mono-addon-data.x86_64 mono-addon-data-sqlite.x86_64 mono-addon-extras.x86_64 mono-addon-web.x86_64 mono-addon-winforms.x86_64 mono-addon-libgdiplus0.x86_64

Then press Enter again to confirm the package installation.

Yum will install mono into /opt/novell/mono, so you can create a symbolic link to /usr/bin :

ln -s /opt/novell/mono/bin/mono /usr/bin/mono

Mono is now installed and will run OpenSim.exe with out errors.

1 comment:

  1. I believe Mono is also available through EasyApache is you have WHM installed.

    So that is another option.

    ReplyDelete