Up to now, I have had my OpenSim region operating in Standalone Mode. It is now time to get it working in Grid Mode, in readiness for connecting to the OSGrid. I had a few problems getting this mode to work, but advice from Jenni in the #opensim irc channel had me up and running in no time. Here is the finished working procedure:
Step 1. Configure Opensim
Make a copy of your OpenSim.ini file, and rename the copy to OpenSim.ini.standalone (so you can go back later if you wish). Open your OpenSim.ini file, and in the [Startup] section make gridmode=true, then in the [Network] section change the following keys from 'null' to '1234' as follows: grid_send_key = "1234" grid_recv_key = "1234" user_send_key = "1234" user_recv_key = "1234" Save the OpenSim.ini file.
Step 2. Launch the UGAIM Services
In the bin folder, locate the following 5 server services, named the UGAIM services, after their initial letters:
Starting with the first (and the order is important), double-click to launch it. The console will pause to ask you some questions. You can accept the defaults for all, except the following:
Answer 1234 for all questions involving keys
Database connection string should look like this:
Data Source=localhost;Database=opensim;User ID=root;Password=xxxxxxx;
Note: I would type this database connection string out in advance, in notepad, then copy it to the clipboard, as you will have to paste this in to each of the 5 consoles, and will save you some work). Don't forget the final semicolon!
The UserServer will then generate an xml file (UserServer_Config.xml) with these settings in, which you can open in Notepad and edit. I only wanted to change the default_startup_message="Welcome to OGS" to "Welcome to Anubia"
Then start each of the other services, in the order given, accepting all the defaults, except answering 1234 for all questions involving keys. As with the UserServer service, xml files will be generated for each service.
Step 3. Launch OpenSim.exe.
When it has finished loading, you can connect.
Step 4. Configure the Viewer
To connect to your region in gridmode, you must make a change to your viewer. In SL, change the port number at the end of the Target from 9000 to 8002. Similarly, if you are using Hippo, go into Grids, select your grid (region) and change the Login URI port number from 9000 to 8002. You are now ready to connect.
Strangely, I failed to connect at first. On the second attempt (after a full restart of all the above services) I then got in, but only for a couple of seconds before the viewer crashed. Restarting the server services once more, and logging in with my viewer produced, 'You are already logged in' messages, but I persisted and kept trying to login, and restarting everything. Curiously, on the third or fourth attempt, everything worked, and I was in!
If you wish to revert to Standalone Mode, rename the OpenSim.ini file to OpenSim.ini.gridmode, and rename your OpenSim.ini.standalone file back to OpenSim.ini. Then change your Port number on your viewer from 8002 back to 9000, and you should be good to go (but again, strangely, it took me 2 or 3 attempst to get back in properly). You do not need to change any of the keys from '1234' back to 'null'.
The next tutorial will show you how to connect to the OSGrid.
Note: Each tutorial assumes you have completed the preceding one
- 01. Installing OpenSim
- 02. Connecting two Viewers to your Region
- 03. Remotely Connecting to a Standalone Sim
- 04. Migrating to MySQL
- 05. Working in Grid Mode
- 06. Connecting to the OSGrid
- 07. Using Hypergrid
- 08. Creating a Web Interface - Part 1/3
- 09. Creating a Web Interface - Part 2/3
- 10. Creating a Web Interface - Part 3/3
- 11. Using Money in OpenSim
- 12. Using Grid Info
- ▼ November (12)