Who's OnlineWe have 44 guests online
Help support us
|How to run a serious OpenSim at home Part 1|
|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.
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 easynews.com
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.
Just like windows, once you install the Ubuntu, you want to update it.
Run the command:
sudo apt-get update
sudo apt-get dist-upgrade
These can take a bit to run, depending on how many updates there are.
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:
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 192.168.1.180
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 www.google.com -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.
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 = 192.168.1.180
After that we will want to restart mysql with this command:
sudo /etc/init.d/mysql restart
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.
GRANT ALL PRIVILEGES ON OpenSim.* TO root@IPOFOpenSimCOMPUTER IDENTIFIED BY 'MySQLRootPassword'
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|