OpenSim Walkthru How to run a serious OpenSim at home Part 1

OpenSim Categories

Who's Online

We have 12 guests online

Users Online


Help support us

How to run a serious OpenSim at home Part 1 PDF Print E-mail
OpenSim - Walkthru
Written by Skidz Tweak   
Friday, 20 March 2009 05:23
I found a lot of documentation on this subject already, but I thought I would throw my own guide out there as well. I wanted to go from beginning to end of setting up a well configured, highly robust, and easy to expand OpenSim.
To do this I will be running it on 2 separate boxes. One box will be a Ubuntu server install (oh its not that hard), and a window 2000 box for the OpenSim itself.

First we want to get our mysql server up and running and configured. We will be running this on a Ubuntu server. I choose Ubuntu because I have some past experience with it and its very stable not to mention free.

Step 1

First you will want to download the Ubuntu server ISO:

1. Be sure to click "Server Edition"
2. a great server to use is always
3. Burn the ISO to a cd
4. Find a computer to put this on (we will call it mySQL1, why? because we can!)
* NOTE: We are installing an OS here so it will wipe everything off the computer you are going to use.
* I am only using about 18 gig drive for mine. The install when finished is just about 1 gig leaving plenty of place left for the database
* Virtual machines are also a great idea. I am actually using this on a large machine running ESX server 3i

Now, I could go through entire process of telling you how to install it, but instead I will point you to this page which does a great job of installing exactly what we need. You will want to do everything it says in this tutorial. Be sure to install LAMP, and openSSH server as well as mentioned in it.

Step 2

Just like windows, once you install the Ubuntu, you want to update it.

Run the command:
sudo apt-get update

Then run:
sudo apt-get dist-upgrade

These can take a bit to run, depending on how many updates there are.

Step 3

Configure your mySQL1 network.

First thing we want to do is set up this computer so it uses a static IP address, instead of a dynamic one from your router. How you set up your network of course could vary.

So you will want to type in the command:
sudo nano /etc/network/interfaces

You can now move your cursor around the screen with your arrows. Below where it says "# The primary network interface" you want to place something like this:
auth eth0
iface eth1 inet static

You will need to change the ip address to the appropriate ones for your network. In the configureation above mySQL1 ip address will be

Press ctrl+o to save then enter and finally ctrl+x to exit

You will now want to restart your network on this computer with this command:
sudo /etc/init.d/networking restart

Lets test to ensure that you have the network still working. First lets do a ping:
ping -c 4

If your ping times out, something went wrong.

You can also double check your settings with the command:

You may also need to go to your router and enter your static ip under the dhcp settings. I had a problem where the mySQL1 would switch back to a DHCP ip address until I did that.

Step 4

Now lets configure the mySql database. Since you installed the LAMP its already installed for us.

Run the command:
sudo nano /etc/mysql/my.cnf

This opens the my.cnf file for you to edit. Using the arrows move down the file tell you reach "bind-address" and change this to the mySQL1 ip address.
bind-address =

After that we will want to restart mysql with this command:
sudo /etc/init.d/mysql restart

Step 5

Creating the database

First we need to connect to the mysql database server. You do that with this command:
mysql -u root -p -h localhost

You will be prompted for the mysql root users password. You would have provided this during the initial install of the Ubuntu and should not be confused with the Ubuntu root password.

Now we need to create the database. Be sure to remember to include the ";" at the end.
create database opensim;

Now finally we need to give permissions for the computer you will run the OpenSim server on to connect to your mySQL1 computer.
To do this, you will need to replace "IPOFOpenSimCOMPUTER" with the ipaddress of the computer you will be running OpenSim on. If you don't know it yet, I would come back to this later when you do.
To disconnect from mysql just type:


In the next part of this series will will explore setting up the OpenSim itself. It is much easier than what you just did, so if you made it this far, your well on your way.
Last Updated on Sunday, 12 April 2009 08:29


0 #6 Abstract Jigsaw 2010-04-07 20:04

lets assume your using a windows system follow these instructions to get your ip config.

*Bring up the run box normally the window key and R does it.

*type in "CMD" press enter a black screen appears.

*in the black box type ipconfig -all

look through that data for:
IPv4 Address
Subnet Mask
Default Gateway

theres your info...

if you want to set a different ip address (it will need to be you servers one) its simply a matter of changing the last number so

where * is anything from (2 to 254) as long as another computer does not have that address.

hope this helps :-)
0 #5 Quad 2010-01-15 07:35
Anyone wanna gimmie a hand? :cry:
0 #4 Skidz Tweak 2009-08-05 01:33
Hi Ted...
The values I used in step three were for my network. You may have to addapt the values to your network. For example. If your routers IP address is instead of (like mine is). you would want to change the something like this instead:
auth eth0
iface eth1 inet static

Its hard to explain these settings, but they are very specific to your network. If you want a windows machine, you can see an example of these values on that computer by doing a Start/run/CMD/ipconfig

Ipconfig is a lot like ifconfig for linux. You can compare what your windows box has that works, to your linux box that is now broken. They can't be exactly the same. Each has to have its own IP address.
0 #3 CrazyTed 2009-08-04 18:05 ping is timing out at the bottom of step 3. What can I do to figure out where I'm going wrong here?

Great guide, btw; just wish I wasn't such a dunce. :/
0 #2 Romaq Rosher 2009-05-03 10:01
You are missing a ';' on the last line of SQL before the quit; :-)
0 #1 Romaq Rosher 2009-05-03 09:58
Missing a ';' on the end of that last line of SQL before quit; :-)

Skidz Partz Shopping

Your cart is empty

Skidz Partz Blog RSS

Skidz Partz

SkidzPartz Login


Should the TMat 4.0 be made of Mesh? This does not mean it will support mesh, just made of mesh..

CB Workflows