<?xml version="1.0"?>
<?xml-stylesheet type="text/css" href="http://opensimulator.org/skins/common/feed.css?303"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
		<id>http://opensimulator.org/api.php?action=feedcontributions&amp;feedformat=atom&amp;user=Taftr</id>
		<title>OpenSimulator - User contributions [en]</title>
		<link rel="self" type="application/atom+xml" href="http://opensimulator.org/api.php?action=feedcontributions&amp;feedformat=atom&amp;user=Taftr"/>
		<link rel="alternate" type="text/html" href="http://opensimulator.org/wiki/Special:Contributions/Taftr"/>
		<updated>2026-05-15T10:49:08Z</updated>
		<subtitle>User contributions</subtitle>
		<generator>MediaWiki 1.19.9</generator>

	<entry>
		<id>http://opensimulator.org/wiki/Network_Settings</id>
		<title>Network Settings</title>
		<link rel="alternate" type="text/html" href="http://opensimulator.org/wiki/Network_Settings"/>
				<updated>2009-10-14T19:05:06Z</updated>
		
		<summary type="html">&lt;p&gt;Taftr: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;{{Template:Quicklinks}}&lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
&lt;br /&gt;
OpenSim/Grid can be pretty tricky when it comes to setting it up on a private network this document covers what OpenSim needs in terms of network resources.&lt;br /&gt;
&lt;br /&gt;
==Ports used by OpenSim==&lt;br /&gt;
&lt;br /&gt;
===Grid===&lt;br /&gt;
&lt;br /&gt;
* TCP/8000 - Reserved &lt;br /&gt;
* TCP/8001 - Grid Server - Regions and other grid services talk to this&lt;br /&gt;
* TCP/8002 - User Server and Login Services - Clients, Regions, and other grid services talk to this&lt;br /&gt;
* TCP/8003 - Asset Services - Regions and other grid services talk to this&lt;br /&gt;
* TCP/8004 - Inventory Services - Regions and other grid services talk to this&lt;br /&gt;
* TCP/8005 - Reserved (Dispatch Services)&lt;br /&gt;
* TCP/8006 - Messaging Server&lt;br /&gt;
&lt;br /&gt;
''* TCP/8895 - no longer needed for region to region communications''&lt;br /&gt;
&lt;br /&gt;
==These ports must be open on any box running a simulator that attaches to a grid:==&lt;br /&gt;
&lt;br /&gt;
* UDP+TCP/9000 - Default First Simulator - grid, regions, and clients talk to these&lt;br /&gt;
* UDP+TCP/9001 - Default Second Simulator - grid, regions, and clients talk to these&lt;br /&gt;
* UDP+TCP/900x - Each next simulator...&lt;br /&gt;
&lt;br /&gt;
''* TCP/8895 - no longer needed for region to region communications''&lt;br /&gt;
===StandAlone===&lt;br /&gt;
* UDP+TCP/9000 - Everything runs on this port&lt;br /&gt;
&lt;br /&gt;
===Initial setup===&lt;br /&gt;
* Check your /bin/Regions/default.xml&lt;br /&gt;
It shows something like this:&lt;br /&gt;
&amp;lt;source lang =xml&amp;gt;&lt;br /&gt;
&amp;lt;Config sim_UUID=&amp;quot;1e988108-76ec-45db-b89e-4ba98905681c&amp;quot; sim_name=&amp;quot;mysimname&amp;quot; sim_location_x=&amp;quot;1000&amp;quot; sim_location_y=&amp;quot;1000&amp;quot; &lt;br /&gt;
internal_ip_address=&amp;quot;192.168.2.101&amp;quot; internal_ip_port=&amp;quot;9000&amp;quot; allow_alternate_ports=&amp;quot;false&amp;quot; &lt;br /&gt;
external_host_name=&amp;quot;82.73.39.77&amp;quot; master_avatar_uuid=&amp;quot;00000000-0000-0000-0000-000000000000&amp;quot; &lt;br /&gt;
estate_covanant_uuid=&amp;quot;00000000-0000-0000-0000-000000000000&amp;quot; &lt;br /&gt;
master_avatar_first=&amp;quot;test&amp;quot; master_avatar_last=&amp;quot;user&amp;quot; master_avatar_pass=&amp;quot;******&amp;quot; /&amp;gt;&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
* Retrieve your [http://www.ip-adress.com/ external_host_name]&lt;br /&gt;
* Get your internal_ip_address (ipconfig for windows, or ifconfig for linux)&lt;br /&gt;
* Make sure the settings match&lt;br /&gt;
&lt;br /&gt;
If you have a router in front of your internet-modem, check out ''NAT and Port Forwarding''.&lt;br /&gt;
Else you're good to go.&lt;br /&gt;
&lt;br /&gt;
==NAT and Port Forwarding ==&lt;br /&gt;
=== Straightforward ===&lt;br /&gt;
&lt;br /&gt;
If your host does not have a public IP address (eg it is hidden behind a home router) you will have issues hosting grid and region servers if you plan on connecting clients to it on both sides of the router, however this can be worked around through the use of port forwarding and ip-redirecting.This will also correct issues where the client hangs at region handshake.&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
*Set internal_ip_address to your local LAN-ip(e.g. 192.168.2.1) (region xml-file) &lt;br /&gt;
*Set the external_host_name to your external IP-Address (Not a hostname, since DNS-resolving doesn't work properly) (region xml-file) &lt;br /&gt;
*Forward the appropriate ports to the OpenSim-server on both UDP and TCP (router-setup) &lt;br /&gt;
*Open appropriate ports on the OpenSim-server's firewall on both UDP and TCP&amp;lt;br&amp;gt;&lt;br /&gt;
*Reroute traffic for '''Linux:''' &lt;br /&gt;
**iptables -t nat -A OUTPUT --dst '''''EXTERNAL_IP''''' -p tcp --dport 9000:9010 -j DNAT --to-destination '''INTERNAL_IP''' &lt;br /&gt;
**iptables -t nat -A OUTPUT --dst '''''EXTERNAL_IP''''' -p udp --dport 9000:9010 -j DNAT --to-destination '''''INTERNAL_IP'''''&lt;br /&gt;
**service iptables restart&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Those iptables lines will redirect any traffic going to '''''EXTERNAL_IP''''' on ports 9000 to 9010 to I'''''NTERNAL_IP'''''. The internal ip is the LAN-IP of your server, and External ip is your internet IP. ''Use the above iptables command on all internal machines'' except your gateway/router. This assumes your gateway/router machine does not also host your sim. This also assume you have a default ACCEPT policy on your internal machines. So to connect from within your LAN, use the above iptables commands to reroute the traffic to the server internal ip. &lt;br /&gt;
&lt;br /&gt;
*Reroute traffic for '''Windows:''' &lt;br /&gt;
**netsh (this method needs experimentation and elaboration. Please see the [[Talk:Network Settings|Discussion page]] for some guesswork on where to start) &lt;br /&gt;
***note from paulieFlomar: I tried using Windows built-in tools like FireWall, netsh, and IP Security Policy. My experience with these tools was unsuccessful. I then tried to create an outgoing rule with some third-party firewall products. I tried ZoneAlarm and Sunbelt Firewall. Neither of these products would allow me to create outgoing rules. Finally, I tried creating an outgoing rule in my Linux IP Tables firewall. This worked. I created 2 rules which I placed in a firewall script, before my NAT rule. The rules were:&lt;br /&gt;
&lt;br /&gt;
iptables -t nat -A PREROUTING --dst '''''EXTERNAL_IP''''' -p tcp --dport 9000:9010 -j DNAT --to-destination '''''INTERNAL_IP''''' &lt;br /&gt;
&lt;br /&gt;
iptables -t nat -A PREROUTING --dst '''''EXTERNAL_IP''''' -p udp --dport 9000:9010 -j DNAT --to-destination '''''INTERNAL_IP''''' &lt;br /&gt;
&lt;br /&gt;
These rules worked. I can now access my region from my LAN. &lt;br /&gt;
&lt;br /&gt;
Optional: &lt;br /&gt;
&lt;br /&gt;
*Register an external domain-name (for external connections) &lt;br /&gt;
*Use Bind for internal domain-name resolving&lt;br /&gt;
&lt;br /&gt;
===DynDNS loopback===&lt;br /&gt;
&lt;br /&gt;
This method was used and successfully tested using www.dyndns.com (creates a virtual domain for your pc/ip, like yourcomputer.ath.cx) as loopback for devices on a LAN with three machines (pentium 2.8ghz running windows xp - internet server , amd opteron running ubuntu 7.10 64bit - as opensim server - and MacBook with OSX 10.4.11 - as client), a modem (thomson/alcatel speedtouch 330) and a mini-switch (which brand no one ever heard of). The connection of these machines is made as following: Modem -&amp;gt; Win Pc -&amp;gt; Switch -&amp;gt; Mac and Ubuntu. Dyndns is used to loopback to the Win Pc, and then it forwards the request to the internal LAN opensim server, which grants everything for the client. As for the client, if he is inside the private LAN then he is now actually someone on the internet requesting for access to the opensim server. Thus, if the client is someone on the internet then he will be treated like that. Tricky ? Further details ahead:&lt;br /&gt;
&lt;br /&gt;
Method:&lt;br /&gt;
* Set the simulator listening IP address to your dyndns domain - edit ''opensim/bin/Regions/default.xml''; and change the external_host_name to   ''external_host_name=&amp;quot;yourcomputer.ath.cx&amp;quot;''. Leave internal_ip_address &amp;quot;0.0.0.0&amp;quot; and port &amp;quot;9000&amp;quot;.&lt;br /&gt;
* Set the client (SecondLife Viewer) -loginuri to &amp;quot;yourcomputer.ath.cx:8002&amp;quot; (the port used was 8002, yours can be different if you configured it that way) - i didnt used the  -loginserver flag also.&lt;br /&gt;
* Port Forward the above ports on the internet server (in this case, win xp). You do so by creating exceptions in Windows Firewall for the above mentioned ports, and for both connections: Internet Connection and LAN - this keeps the ports open for the web requests to travel over the private network.&lt;br /&gt;
* Edit &amp;quot;hosts&amp;quot; file (on windows, this is C:\Windows\System32\Drivers\etc\hosts and on Unix-type systems, this is /etc/hosts) entry on your internet server (in this case, win xp box) and  add the following line: ''xxx.xxx.xxx.xxx&amp;lt;nowiki&amp;gt;&amp;amp;nbsp;&amp;amp;nbsp;&amp;amp;nbsp;&amp;amp;nbsp;&amp;lt;/nowiki&amp;gt; yourcomputer.ath.cx''. Of course, xxx.xxx.xxx.xxx is your opensim server internal LAN IP.&lt;br /&gt;
&lt;br /&gt;
yourcomputer.ath.cx is now available for everyone to connect and you may login with the client!&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
===DynDNS and the free IPCop Linux Firewall===&lt;br /&gt;
&lt;br /&gt;
Here an other way with the IPCop Linux Firewall, DynDNS and a OpenSimulator server&lt;br /&gt;
&lt;br /&gt;
* Setup an IPCop firewall with 3 interfaces (red, green, orange) and put the OpenSimulator server on the orange interface (all OpenSimulator server's on one Linux box). Red is the internet, green is your lan.&lt;br /&gt;
* Setup the DynDNS service on the IPCop Firewall.&lt;br /&gt;
* change the external_host_name in the default.xml to the DynDNS name&lt;br /&gt;
* do'nt change the internal_ip_address in the default.XML, it should be 0.0.0.0  &lt;br /&gt;
* if there, delete all loopbacks in /etc/hosts only 127.0.0.1 should be localhost&lt;br /&gt;
* customize the Port Forwarding on the IPCop Firewall (8002 TCP, 9000 UDP/TCP and for every additonal region 900X UDP/TCP). Port forwarding should be set to the (orange) interface adress of the OpenSimulator Box&lt;br /&gt;
&lt;br /&gt;
Then it should be possible to conenct from inside the LAN (green) and it is also possible to conenct from the internet (over the red interface).&lt;br /&gt;
(well, the inside-lan connections are also made now over the RED interface, but infact, this is in the same ISP network, it should be quit fast ;-) &lt;br /&gt;
* Attention : the ports on the IPCop Firewall must also be open if you connect from inside (green) to your OpenSimulator Grid !&lt;br /&gt;
&lt;br /&gt;
If you are using the OS WebGui, do'nt forget to set the &amp;quot;SMTP AUTH&amp;quot; in your email server. Most of the dynamic IPs are blocked at ISP level so the new users do'nt get any confirmation email.&lt;br /&gt;
&lt;br /&gt;
This was tested with the Hippo OpenSim Viewer and with the Login URL :  http://DynDNSName:8002&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
===Local connections with ZyXEL DSL modem/router and NAT/Port Forwarding===&lt;br /&gt;
&lt;br /&gt;
This solution works with the ZyXEL Prestige 660ME-61 DSL Router. It may work with other models made by ZyXEL. &lt;br /&gt;
&lt;br /&gt;
Method:&lt;br /&gt;
* Connect by TELNET to your ZyXEL DSL modem. Use the same IP address that you would if you were using the web interface. For example, the default ip on most Embarq ZyXEL DSL modems is 192.168.2.1. &lt;br /&gt;
&lt;br /&gt;
 telnet 192.168.2.1&lt;br /&gt;
&lt;br /&gt;
* Enter your password. If you do not know it, try just pressing &amp;lt;ENTER&amp;gt; or ask your ISP for the password. They may or may not give it to you. &lt;br /&gt;
&lt;br /&gt;
* Select menu option &amp;quot;24. System Maintenance&amp;quot; from the menu. &lt;br /&gt;
&lt;br /&gt;
                    Copyright (c) 1994 - 2004 ZyXEL Communications Corp.&lt;br /&gt;
                              Prestige 660ME-61 Main Menu&lt;br /&gt;
     Getting Started                      Advanced Management&lt;br /&gt;
       1. General Setup                     21. Filter Set Configuration&lt;br /&gt;
       2. WAN Backup Setup                  22. SNMP Configuration&lt;br /&gt;
       3. LAN Setup                         23. System Password&lt;br /&gt;
       4. Internet Access Setup             24. System Maintenance&lt;br /&gt;
                                            25. IP Routing Policy Setup&lt;br /&gt;
     Advanced Applications                  26. Schedule Setup&lt;br /&gt;
       11. Remote Node Setup&lt;br /&gt;
       12. Static Routing Setup&lt;br /&gt;
       15. NAT Setup                        99. Exit&lt;br /&gt;
                          Enter Menu Selection Number:&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
* Select menu option &amp;quot;8. Command Interpreter Mode&amp;quot; from the menu&lt;br /&gt;
&lt;br /&gt;
                          Menu 24 - System Maintenance&lt;br /&gt;
                         1.  System Status&lt;br /&gt;
                         2.  System Information and Console Port Speed&lt;br /&gt;
                         3.  Log and Trace&lt;br /&gt;
                         4.  Diagnostic&lt;br /&gt;
                         5.  Backup Configuration&lt;br /&gt;
                         6.  Restore Configuration&lt;br /&gt;
                         7.  Upload Firmware&lt;br /&gt;
                         8.  Command Interpreter Mode&lt;br /&gt;
                         9.  Call Control&lt;br /&gt;
                         10. Time and Date Setting&lt;br /&gt;
                         11. Remote Management&lt;br /&gt;
                          Enter Menu Selection Number:&lt;br /&gt;
&lt;br /&gt;
* At the prompt type &amp;quot;ip nat loopback on&amp;quot;.&lt;br /&gt;
&lt;br /&gt;
 Copyright (c) 1994 - 2004 ZyXEL Communications Corp.&lt;br /&gt;
 Sprint &amp;gt; ip nat loopback on &lt;br /&gt;
&lt;br /&gt;
* At the prompt type &amp;quot;exit&amp;quot;.&lt;br /&gt;
&lt;br /&gt;
 Sprint&amp;gt; exit&lt;br /&gt;
&lt;br /&gt;
* Select menu option &amp;quot;99. Exit&amp;quot;&lt;br /&gt;
&lt;br /&gt;
* Follow all other steps for configuring and starting your server as outlined in [http://opensimulator.org/wiki/Main_Page#Getting_Started_with_OpenSim Getting Started].&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
===Local connections with the DLink GamerLounge Extreme N router===&lt;br /&gt;
Networking and router configurations have been responsible for 98% of all trouble I have had setting up and operating OpenSimulator region server software. Insuring that you have a capable router properly configured should be the first thing on the list of configuration checkpoints for a smooth and trouble-free path to OpenSimulator software operations in GridMode.&lt;br /&gt;
&lt;br /&gt;
Below is a series of screen snapshots with the key pages of my router configuration interface with proper settings displayed.&lt;br /&gt;
&lt;br /&gt;
The settings below assume that you have an otherwise working connection and do not touch on such subjects as port conflicts or logging your network onto your ISP's provider network.&lt;br /&gt;
&lt;br /&gt;
{|&lt;br /&gt;
|[[image:router config snapshot1.png|250px|thumb|'''1.Status''']]&lt;br /&gt;
|[[image:router config snapshot2.png|250px|thumb|'''2.Advanced &amp;gt; Gaming''']]&lt;br /&gt;
|[[image:router config snapshot3.png|250px|thumb|'''3.Routing''']]&lt;br /&gt;
|}&lt;br /&gt;
{|&lt;br /&gt;
|[[image:router config snapshot4.png|250px|thumb|'''4.firewall''']]&lt;br /&gt;
|[[image:router config snapshot5.png|250px|thumb|'''5.Advanced network settings''']]&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
* provided that all information supplied in ~opensim/bin/OpenSim.ini and in your ~opensim/Regions/*.xml are properly configured, this should have you up and running.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
===Local and Internet connections with Linux iptables and NAT/Port Forwarding===&lt;br /&gt;
&amp;lt;!-- Contributed by Tony Maro tony@maro.net http://www.ossramblings.com - this is a subset example based on a much larger script I use and I haven't tested this code specifically, but it _should_ work right ;-) --&amp;gt;&lt;br /&gt;
Please don't copy this verbatim - much more should go into a firewall setup, but this will at a bare minimum get NAT working with forwarding to your OpenSim server from both inside and outside your LAN.&lt;br /&gt;
&lt;br /&gt;
Example firewall.sh script:&lt;br /&gt;
&amp;lt;source lang =bash&amp;gt;&lt;br /&gt;
echo 1 &amp;gt; /proc/sys/net/ipv4/ip_forward&lt;br /&gt;
echo 1 &amp;gt; /proc/sys/net/netfilter/nf_conntrack_tcp_be_liberal&lt;br /&gt;
echo 0 &amp;gt; /proc/sys/net/ipv4/conf/all/accept_redirects&lt;br /&gt;
echo 0 &amp;gt; /proc/sys/net/ipv4/conf/all/accept_source_route&lt;br /&gt;
echo 0 &amp;gt; /proc/sys/net/ipv4/conf/all/send_redirects&lt;br /&gt;
echo 1 &amp;gt; /proc/sys/net/ipv4/conf/all/log_martians&lt;br /&gt;
echo 1 &amp;gt; /proc/sys/net/ipv4/conf/all/rp_filter&lt;br /&gt;
modprobe nf_conntrack_ftp&lt;br /&gt;
modprobe nf_nat_ftp&lt;br /&gt;
&lt;br /&gt;
INT = &amp;quot;eth0&amp;quot; # your internal network card on the firewall&lt;br /&gt;
EXT = &amp;quot;eth1&amp;quot; # Your external network card on the firewall&lt;br /&gt;
IPTABLES = &amp;quot;/sbin/iptables&amp;quot; # Path to your iptables executable&lt;br /&gt;
&lt;br /&gt;
OPENSIMEXT = &amp;quot;66.102.1.103/32&amp;quot; # Example external IP - replace with yours&lt;br /&gt;
OPENSIMINT = &amp;quot;192.168.1.240/32&amp;quot; # Internal IP of your OpenSim server&lt;br /&gt;
INTSUBNET = &amp;quot;192.168.1.0/24&amp;quot; # Your internal subnet range&lt;br /&gt;
&lt;br /&gt;
# Flush rules when we are restarting the script&lt;br /&gt;
$IPTABLES -F&lt;br /&gt;
$IPTABLES -F -t nat&lt;br /&gt;
$IPTABLES -F -t mangle&lt;br /&gt;
&lt;br /&gt;
# Set up sane defaults&lt;br /&gt;
$IPTABLES -P INPUT DROP&lt;br /&gt;
$IPTABLES -P OUTPUT ACCEPT&lt;br /&gt;
$IPTABLES -P FORWARD DROP&lt;br /&gt;
&lt;br /&gt;
# Allow all connections from inside the network to the firewall on all ports&lt;br /&gt;
$IPTABLES -A INPUT -i $INT -j ACCEPT&lt;br /&gt;
# Allow all outbound connections from the inside.  Much better to limit this...&lt;br /&gt;
$IPTABLES -A FORWARD -o $EXT -j ACCEPT&lt;br /&gt;
&lt;br /&gt;
# Configure basic NAT&lt;br /&gt;
$IPTABLES -A FORWARD -i $EXT -m state --state RELATED,ESTABLISHED -j ACCEPT&lt;br /&gt;
$IPTABLES -t nat -A POSTROUTING -o $EXT -j SNAT --to-source $OUTNAT&lt;br /&gt;
&lt;br /&gt;
# Configure forwarding for OpenSim (you need to add ports if you are not running in standalone&lt;br /&gt;
#   or if you are running more than one region)&lt;br /&gt;
$IPTABLES -A PREROUTING -p tcp -d $OPENSIMEXT --dport 9000 -j DNAT --to-destination $OPENSIMINT&lt;br /&gt;
$IPTABLES -A PREROUTING -p udp -d $OPENSIMEXT --dport 9000 -j DNAT --to-destination $OPENSIMINT&lt;br /&gt;
&lt;br /&gt;
# Now for the magical juice that lets inside users and outside users both access your server&lt;br /&gt;
# Configure to allow internal network users to access the OpenSim server using the &lt;br /&gt;
# external IP address.  This fixes failing to connect to regions over UDP due to NAT config&lt;br /&gt;
# Make sure you configure the proper external IP for each of your regions&lt;br /&gt;
$IPTABLES -t nat -A PREROUTING -i $INT -s $INTSUBNET -d $OPENSIMEXT -j DNAT --to-destination $OPENSIMINT&lt;br /&gt;
$IPTABLES -t nat -A POSTROUTING -o $INT -s $INTSUBNET -d $OPENSIMINT -j DNAT --to-source $OPENSIMEXT&lt;br /&gt;
&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
NOTE: Contrary to what is displayed above, DHCP services are not required to operate OpenSimulator server software.&lt;br /&gt;
[[Category:Users]]&lt;/div&gt;</summary>
		<author><name>Taftr</name></author>	</entry>

	<entry>
		<id>http://opensimulator.org/wiki/Configuration</id>
		<title>Configuration</title>
		<link rel="alternate" type="text/html" href="http://opensimulator.org/wiki/Configuration"/>
				<updated>2009-10-14T18:57:08Z</updated>
		
		<summary type="html">&lt;p&gt;Taftr: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;__NOTOC__&lt;br /&gt;
{{Template:Quicklinks}}&lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
== OpenSim Command line options ==&lt;br /&gt;
To run OpenSim in somewhat customized environments it's often helpful to modify the programs behaviour via command line arguments.&lt;br /&gt;
OpenSim knows a just a few of these as most parts of the behaviour are controlled via an .INI-File (see below).&lt;br /&gt;
&lt;br /&gt;
The following command line switches are known:&lt;br /&gt;
{| border=&amp;quot;1&amp;quot;&lt;br /&gt;
! Switch !! Meaning/Behaviour&lt;br /&gt;
|-&lt;br /&gt;
| background ||&lt;br /&gt;
|-&lt;br /&gt;
| gridmode || If =true forces OpenSim.exe to operate in grid mode. If =false forces OpenSim.exe to operate in standalone mode. If omitted defaults to OpenSim.ini setting.&lt;br /&gt;
|-&lt;br /&gt;
| gui || &amp;quot;old-style&amp;quot; console&lt;br /&gt;
|-&lt;br /&gt;
| inidirectory || &lt;br /&gt;
|-&lt;br /&gt;
| inifile || changes the name (Path) of the inifile. See below for details&lt;br /&gt;
|-&lt;br /&gt;
| inimaster || allows to read in a master config file. See below for details&lt;br /&gt;
|-&lt;br /&gt;
| physics ||&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
==OpenSim configuration file==&lt;br /&gt;
The simulator configuration is managed using a file called [[OpenSim.ini]]. This file is used regardless of whether the sim is running in standalone or grid mode. Detailed information on the options available for setttings in this file can be found [[OpenSim.ini|here]].&lt;br /&gt;
Please note, that the name OpenSim.ini can be changed via command line arguments (see above).  Also, note that the default download does not include an OpenSim.ini file, but rather provides an example file.  To get started editing your ini file, please cd into opensim/bin/ and copy OpenSim.ini.example to OpenSim.ini.&lt;br /&gt;
&lt;br /&gt;
It is also possible to distribute the inifile settings over two files. This is useful if you want to run several OpenSim processes where most of your settings are identical but some settings differ.&lt;br /&gt;
The master file is read first, then the inifile is read. Settings given in the inifile overrule settings given in the master file.&lt;br /&gt;
The master file has the same format and the same keywords as the inifile, so the same documentation applies.&lt;br /&gt;
&lt;br /&gt;
==Standard config in Windows==&lt;br /&gt;
===0.6.6 Release Information===&lt;br /&gt;
This release had some bugs with default automatic configuration on the first startup of OpenSim.exe.  bin/Regions/default.xml (region configuration file) is not automatically created in the main directory.  Therefore, you must manually create this file.  Here is an example.&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
&amp;lt;Root&amp;gt;&lt;br /&gt;
  &amp;lt;Config sim_UUID=&amp;quot;UUID&amp;quot; sim_name=&amp;quot;NAME&amp;quot; sim_location_x=&amp;quot;1000&amp;quot; sim_location_y=&amp;quot;1000&amp;quot;&lt;br /&gt;
 internal_ip_address=&amp;quot;IP_ADDRESS_OF_SERVER&amp;quot; internal_ip_port=&amp;quot;9000&amp;quot; allow_alternate_ports=&amp;quot;false&amp;quot;&lt;br /&gt;
 external_host_name=&amp;quot;DNS_NAME_OF_SERVER&amp;quot; master_avatar_uuid=&amp;quot;00000000-0000-0000-0000-000000000000&amp;quot;&lt;br /&gt;
 estate_covanant_uuid=&amp;quot;00000000-0000-0000-0000-000000000000&amp;quot; master_avatar_first=&amp;quot;FIRST_NAME&amp;quot;&lt;br /&gt;
 master_avatar_last=&amp;quot;SECOND_NAME&amp;quot; master_avatar_pass=&amp;quot;PASSWORD&amp;quot; /&amp;gt;&lt;br /&gt;
&amp;lt;/Root&amp;gt;&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
You must change UUID, NAME, IP_ADDRESS_OF_SERVER, DNS_NAME_OF_SERVER, FIRST_NAME, SECOND_NAME and PASSWORD to your own values.&lt;br /&gt;
(I noticed than IP_ADDRESS_OF_SERVER should be set to real IP not to 127.0.0.1)&lt;br /&gt;
&lt;br /&gt;
'''Summary''':&lt;br /&gt;
&lt;br /&gt;
*Run OpenSim0.6.6Setup.exe and install OpenSim in Windows&lt;br /&gt;
*Run OpenSim.exe and enter default values - record them!&lt;br /&gt;
*Shutdown simulator (command: shutdown)&lt;br /&gt;
*Create default.xml with copy of above&lt;br /&gt;
*Change values in default.xml with recoded values&lt;br /&gt;
*Be sure default.xml be in main directory (same with OpenSim.ini)&lt;br /&gt;
*Run again OpenSim.exe&lt;br /&gt;
*Connect with viewer&lt;br /&gt;
&lt;br /&gt;
===Running OpenSim in 64 bit Windows on the future 0.6.7 release===&lt;br /&gt;
[[Image:Exclamation.png|left]]&lt;br /&gt;
In Git revision 077d01, the default physics engine for OpenSim was changed to the ODE engine.  This is because ODE is by far the most advanced physics engine.  Unfortunately, it has the drawback in that it's library is not compilable under 64bit.  Therefore, 64 bit Windows users may need to run &lt;br /&gt;
&lt;br /&gt;
 OpenSim.32BitLaunch.exe&lt;br /&gt;
&lt;br /&gt;
instead of &lt;br /&gt;
&lt;br /&gt;
 OpenSim.exe&lt;br /&gt;
&lt;br /&gt;
To launch their region simulator.&lt;br /&gt;
&lt;br /&gt;
An alternative is to use the basicphysics engine instead or one of the other alternative physics engines bundled with OpenSim, though all these are far less functional than ODE.&lt;br /&gt;
&lt;br /&gt;
== Logging ==&lt;br /&gt;
Usually you don't have a debugger and the source code at hand when a situation comes up. OpenSim does some logging to give you information about how it works.&lt;br /&gt;
This is done by use of the [http://logging.apache.org/log4net/index.html log4net-package]. The obvious console output of OpenSim as well as the OpenSim.log output are done via this package and come readily configured out of the box. But you can also make extended use of all other options this package can give you.&lt;br /&gt;
&lt;br /&gt;
OpenSim makes use of the .NET System.Configuration API which means that the file that holds all the logging configuration is bin/OpenSim.exe.config .&lt;br /&gt;
&lt;br /&gt;
More information on how to configure log4net can be found on the [http://logging.apache.org/log4net/release/manual/configuration.html log4net web pages].&lt;br /&gt;
&lt;br /&gt;
==Database==&lt;br /&gt;
Opensim's supports the following database-engines:&lt;br /&gt;
* SQLite (default - a lightweight database that comes bundled with OpenSim and can be used without requiring any extra configuration.  It is mostly intended to get you up and running quickly, not for production use.)&lt;br /&gt;
* MySQL (fully supported)&lt;br /&gt;
* MSSQL (partially supported - some recent OpenSim features may not yet be implemented)&lt;br /&gt;
* Postgresql (fully supported - Still in Beta phase but working)&lt;br /&gt;
&lt;br /&gt;
More information on database support can be found on the [[OpenSim Database support]] page.&lt;br /&gt;
&lt;br /&gt;
==Script engine==&lt;br /&gt;
OpenSim supports multiple script engines. See [[ScriptEngines]] for details&lt;br /&gt;
&lt;br /&gt;
==Permissions Configuration==&lt;br /&gt;
OpenSim has a quite elaborate set of permissions. See [[OpenSim:Permissions(Server)]] for details.&lt;br /&gt;
&lt;br /&gt;
==Standalone vs. Grid==&lt;br /&gt;
We recommend that you first get OpenSim running in standalone mode before you attempt to connect it to a grid, either your own grid or a public grid.  An OpenSim configuration consists of regions (run by region simulators) and 5 core backend services (which manage users, the grid, assets, inventories, and grid-wide messaging, collectively known as UGAIM).&lt;br /&gt;
&lt;br /&gt;
A system running in '''standalone mode''' (that is, one  with OpenSim.ini configured such that gridmode = false) -- also known as &amp;quot;sandbox mode&amp;quot; -- runs everything (all UGAIM services and one or more regions) in a single executable (OpenSim.exe).  External regions cannot be added to an OpenSim running in this mode.&lt;br /&gt;
&lt;br /&gt;
In '''grid mode''', the five services ([[User Server|User]], [[Grid Server|Grid]], [[Asset Server|Asset]], [[Inventory Server|Inventory]], [[Messaging Server|Messaging]], or UGAIM) are not part of the region server.  This means that they can be run either on the same machine or spread out across multiple computers.  In this mode, OpenSim.exe serves one or more regions, which communicate with the core servers.  This mode even allows region servers run by other people on their own machines to connect, if you wish.&lt;br /&gt;
&lt;br /&gt;
Naturally, this means that running in grid mode is somewhat more complicated than running in standalone mode.  It requires an understanding of UUID, X,Y location, server handshake passwords, estates and estate owners, and a couple of other settings. These are not difficult, but do require a little more care in setting things up.&lt;br /&gt;
&lt;br /&gt;
If you want to run a grid of your own (either private or public) you would start the core services up before connecting a region simulator.  If you want to connect your region server to a grid that someone else is running, you need only start the region server in grid mode (with the necessary security keys and location information mentioned in the last paragraph).&lt;br /&gt;
&lt;br /&gt;
OpenSim.exe responds to various command line arguments. These include &amp;quot;-inifile&amp;quot;, &amp;quot;-configfile&amp;quot;, &amp;quot;-gridmode&amp;quot;, &amp;quot;-physics&amp;quot;, &amp;quot;-config&amp;quot; &amp;amp; &amp;quot;-noverbose&amp;quot;. When starting OpenSim in either Windows or Linux, one could, for example, add &amp;quot;-physics=OpenDynamicsEngine&amp;quot; to run the OpenDynamicsEngine instead of basicphysics, or use &amp;quot;-gridmode=true&amp;quot; to force opensim.exe to run as a region server (the rest of the grid services have their own executables).  As many of these settings are normally controlled by OpenSim.ini, most users (especially in standalone mode) will not add any command line arguments.&lt;br /&gt;
&lt;br /&gt;
=== Standalone mode  ===&lt;br /&gt;
&lt;br /&gt;
When you start OpenSim in standalone mode, it will ask you several questions at the console. The first set of prompts that start with &amp;quot;NETWORK SERVERS INFO&amp;quot;, you can just hit return to accept the defaults if you will be running in standalone mode. The prompts that start with &amp;quot;DEFAULT REGION CONFIG&amp;quot; are where you need to start paying attention. Some are self-explanatory. Here are explanations for the others:&amp;lt;br&amp;gt; &lt;br /&gt;
&lt;br /&gt;
*Grid Location. OpenSim regions can be placed anywhere on a 65536 by 65536 grid. In standalone mode, it is safe to leave these X and Y locations at their defaults for the first region (additional regions will need different coordinates, of course). &lt;br /&gt;
*Filename for local storage. Safe to leave at default. &lt;br /&gt;
*Internal IP address; This should always be 0.0.0.0 (0.0.0.0 means &amp;quot;listen for connections on any interface&amp;quot;, basically a wildcard) if you want to access this server from the internet or another server on your internal network, this should be the IP&amp;amp;nbsp;address assigned to the OpenSim Server. You should also set up the server to Use a Static IP address, and not DHCP &lt;br /&gt;
*Internal IP port for incoming UDP client connection. You can make this any port you want, but it is safe to leave at the default 9000. Each region on your server must have a unique port&amp;lt;br&amp;gt; &lt;br /&gt;
*External host name. If you will only be attaching to your sim from a SecondLife client on the same machine, you can leave this at the default 127.0.0.1. If you will be wanting to connect to it from a client on another machine or the internet, this should be the External IP Address of your router, not the Domain Name. (Hmm - Tried hostname (the one resolved by dns) and it worked out oke.) &lt;br /&gt;
*Be aware of [http://osgrid.org/forums/viewtopic.php?f=5&amp;amp;t=400&amp;amp;start=0&amp;amp;st=0&amp;amp;sk=t&amp;amp;sd=a loopback] problems when Running viewer &amp;amp;amp; server(s) on the same machine (LAN) by using the &amp;quot;external&amp;quot; configuration. (&amp;lt;u&amp;gt;'''You might notice endless waiting for region handshake'''&amp;lt;/u&amp;gt;.) See also [http://opensimulator.org/wiki/Troubleshooting troubleshoot hints] &lt;br /&gt;
*If your having Connectivity problems. [http://opensimulator.org/wiki/Network_Settings Be sure to read the Network Configuration Page]. This is important if you see Region handshake issues.&lt;br /&gt;
&lt;br /&gt;
To connect to your new sim, start up secondlife with the following command line switches: &lt;br /&gt;
&lt;br /&gt;
 '''Client on same machine as OpenSim:''' -loginuri http://127.0.0.1:9000/ -loginpage http://127.0.0.1:9000/?method=login &lt;br /&gt;
 &lt;br /&gt;
 Client on different machine or internet:''' -loginuri http://external_ip:9000/ -loginpage http://external_ip:9000/?method=login'''&lt;br /&gt;
&lt;br /&gt;
To create a user: &lt;br /&gt;
&lt;br /&gt;
type create user &amp;amp;lt;first&amp;amp;gt; &amp;amp;lt;last&amp;amp;gt; &amp;amp;lt;password&amp;amp;gt; &amp;amp;lt;x_loc&amp;amp;gt; &amp;amp;lt;y_loc&amp;amp;gt; in the server console.&amp;lt;br&amp;gt;&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
===Grid mode===&lt;br /&gt;
You want to run your own grid. Great! Assuming that you already got your sim running in standalone mode, here is what you need to do:&amp;lt;br&amp;gt;&lt;br /&gt;
1. Current builds of OpenSim grid mode are using mysql to store the grid information. You must have this installed and configured if you want to run your own grid. See [[mysql-config]] for more information.&amp;lt;br&amp;gt;&lt;br /&gt;
 &lt;br /&gt;
 &lt;br /&gt;
   [[Image:Exclamation.png|left]]&lt;br /&gt;
 NOTE: The grid servers are in the process of being redesigned. Therefore, there is a &amp;quot;legacy&amp;quot; way&lt;br /&gt;
 and a new way of starting things. The most up to date information can be found in the configuration&lt;br /&gt;
 file examples in your OpenSim kit.&lt;br /&gt;
 &lt;br /&gt;
 The new system consists of services and connectors that are run in a server shell (Basic Universal&lt;br /&gt;
 Server Technology, R.O.B.U.S.T.)&lt;br /&gt;
 &lt;br /&gt;
&lt;br /&gt;
For information on running the legacy servers, see [[LegacyServers]]&lt;br /&gt;
&lt;br /&gt;
===Starting the grid services===&lt;br /&gt;
Currently, R.O.B.U.S.T has connectors for the asset and inventory functionality. Therefore, some of the legacy servers are still required to run. Following the steps below will get you up and running in no time!&lt;br /&gt;
&lt;br /&gt;
* Configure the user server&lt;br /&gt;
::Start OpenSim.Grid.UserServer.exe&lt;br /&gt;
::You will be asked a number of configuration questions. If the grid servers are all on one machine, most defaults are safe to use, just press enter for all questions except fot the defult inventory server. The default inventory server needs to be given as http://127.0.0.1:8003, because R.O.B.U.S.T uses only one port.&lt;br /&gt;
::The user server will then load and display it's prompt:&lt;br /&gt;
 User#&lt;br /&gt;
* Configure the grid server&lt;br /&gt;
::Start OpenSim.Grid.GridServer.exe&lt;br /&gt;
::Again, you will be asked a few questions and it's safe to accept the defaults if all servers are run on one machine. You will then see the grid server prompt:&lt;br /&gt;
 Grid#&lt;br /&gt;
* Configure R.O.B.U.S.T.&lt;br /&gt;
::Copy OpenSim.Server.ini.example to OpenSim.Server.ini&lt;br /&gt;
::(on version 0.6.6 copy OpenSim.Services.ini.example to OpenSim.Services.ini - then use OpenSim.Services instead OpenSim.Server)&lt;br /&gt;
::Don't forget change ConnectionString accordingly your database settings.&lt;br /&gt;
Linux&lt;br /&gt;
 bin$ cp OpenSim.Server.ini.example OpenSim.Server.ini&lt;br /&gt;
Windows&lt;br /&gt;
 C:\OpenSim\bin&amp;gt; copy OpenSim.Server.ini.example OpenSim.Server.ini&lt;br /&gt;
For more information on the R.O.B.U.S.T. configuration file, refer to [[R.O.B.U.S.T.]]&lt;br /&gt;
 &lt;br /&gt;
::Start OpenSim.Server.exe&lt;br /&gt;
The server will start up it's asset and inventory components and display the R.O.B.U.S.T prompt:&lt;br /&gt;
 R.O.B.U.S.T.#&lt;br /&gt;
* Configure the message server&lt;br /&gt;
::Start OpenSim.Grid.MessagingServer.exe&lt;br /&gt;
::Answer the configuration questions. Again, if all servers are run on the same machine, it's safe to press enter for all questions&lt;br /&gt;
::The server will start and present you with it's prompt:&lt;br /&gt;
 Messaging#&lt;br /&gt;
&lt;br /&gt;
===Starting the regions===&lt;br /&gt;
When using R.O.B.U.S.T., a setting that was not needed in standalone mode needs to be changed from it's default.&lt;br /&gt;
Open OpenSim.ini and find the section titled [Network]. Change the inventory_server_url to read http://127.0.0.1:8003.&lt;br /&gt;
 [Network]&lt;br /&gt;
 inventory_server_url = &amp;quot;http://127.0.0.1:8003&amp;quot;&lt;br /&gt;
&lt;br /&gt;
Next, find the [Architecture] section, comment out the line that says &lt;br /&gt;
 Include-Standalone    = &amp;quot;config-include/Standalone.ini&amp;quot;&lt;br /&gt;
and uncomment the line saying &lt;br /&gt;
 Include-Grid         = &amp;quot;config-include/Grid.ini&lt;br /&gt;
&lt;br /&gt;
save OpenSim.ini, and go into the config-include directory.&lt;br /&gt;
copy the following files &lt;br /&gt;
 GridCommon.ini.example to GridCommon.ini&lt;br /&gt;
 CenomeCache.ini.example to CenomeCache.ini&lt;br /&gt;
 FlotsamCache.ini.example to FlotsamCache.ini&lt;br /&gt;
&lt;br /&gt;
Open all these files (Grid.ini, GridCommon.ini, CenomeCache.ini and FlotsamCache.ini) and edit to suit your needs&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
You should now be ready to start up your sim. The mode that OpenSim.exe starts in is normally controlled by a setting in your OpenSim.ini.  It defaults to standalone mode if that setting is not specified or the file is not found.  If you wish, you can force opensim to start in gridmode on the command line as follows:&lt;br /&gt;
 OpenSim.exe -gridmode=true&lt;br /&gt;
or:&lt;br /&gt;
 mono OpenSim.exe -gridmode=true&lt;br /&gt;
With any luck, everything will come up without too many errors.&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Go to the UserServer console, and type 'create user' to create a new avatar. It will prompt you for the name and password, and the X and Y of the sim that should be his home location. Use 1000 and 1000, or wherever you told your sim to live when you brought it up in standalone mode. At the console of any of these servers, you should be able to type 'help' to get a list of commands.&lt;br /&gt;
&lt;br /&gt;
You should now be able to connect to your new grid with your secondlife client. You need to tell your client to point at the UserServer rather than directly at the sim, though:&lt;br /&gt;
 secondlife -loginuri http://127.0.0.1:8002/&lt;br /&gt;
8002 is the default port for the UserServer, and that IP address should be changed to the server you are running the UserServer on, if they are not all on the same box.  Happy OpenSimming!&amp;lt;br&amp;gt;&lt;br /&gt;
''Note: if you are using Windows Vista, remember to start servers as Admin. If not it will prompt you an error in console like &amp;quot;Error - Access denied&amp;quot;''&lt;br /&gt;
&lt;br /&gt;
==Multiple regions==&lt;br /&gt;
Using Physical Prim with the OpenDynamicsEngine on *nix, it's recommended that you set your stack reserve level higher then default with the following command;&lt;br /&gt;
&amp;lt;tt&amp;gt;ulimit -s 262144&amp;lt;/tt&amp;gt; Or, run the opensim-ode.sh to start up OpenSimulator.&lt;br /&gt;
&lt;br /&gt;
A powerful region generator is available at: [[RegionGenerator]]&lt;br /&gt;
&lt;br /&gt;
For running multiple regions on the same box, you simply make multiple copies of the 'default.xml' file inside the &amp;lt;tt&amp;gt;bin/Regions/&amp;lt;/tt&amp;gt; directory.  You can do this by typing &amp;lt;tt&amp;gt;create region&amp;lt;/tt&amp;gt; at the OpenSim command prompt, using the script &amp;lt;tt&amp;gt;make.php&amp;lt;/tt&amp;gt; in &amp;lt;tt&amp;gt;share/regions&amp;lt;/tt&amp;gt;, or you can generate the files by hand.&lt;br /&gt;
&lt;br /&gt;
If you want to create the files by hand:&lt;br /&gt;
&lt;br /&gt;
:first copy the default.xml file in the &amp;lt;tt&amp;gt;bin/Regions&amp;lt;/tt&amp;gt; directory, and name them anything you want (I name mine region.x.y.xml, where region is the name of the region, and x and y are the grid coords.)&lt;br /&gt;
:Open each xml file and edit the uuid (a generator can be found at [http://www.famkruithof.net/uuid/uuidgen uuidgen webpage] or on unix, use the uuidgen command), region name, x &amp;amp; y positions, and internal IP port.&lt;br /&gt;
&lt;br /&gt;
'''IMPORTANT!'''  Regardless of the method you use to create your new region, the UUID, name, and grid coordinates ''must'' be unique for each region on a grid.  The port assignment must be unique for each region that is running on a particular machine. The internal IP ''address'' and external host name must be the same for all regions.&lt;br /&gt;
&lt;br /&gt;
Note that &amp;lt;tt&amp;gt;sim_location_x&amp;lt;/tt&amp;gt; and &amp;lt;tt&amp;gt;sim_location_y&amp;lt;/tt&amp;gt; should be adjacent integers if you want your regions to be adjacent, so you can run back and forth between them.  '''IMPORTANT: THESE GRID COORDINATES ARE ''NOT'' IN METERS.  THEY ARE SIM POSITIONS.'''  (1000, 1000) is next to (1001,1000), (1000, 1001), and so forth.  1256, 2000, 2048 and similar values are '''not''' adjacent to 1000, they are very far away, so you would not see your sims from one another.&lt;br /&gt;
&lt;br /&gt;
Once you have 2 or more xml files in the bin/Regions folder, running a ''single'' copy of &amp;lt;tt&amp;gt;OpenSim.exe&amp;lt;/tt&amp;gt; will start up all of your sims! If you come across any errors, there is most likely an error in your xml files.&lt;br /&gt;
&lt;br /&gt;
As of 6-Feb-2008, take care NOT to leave editor backup copies of the files in this directory e.g. emacs style backup names like Regionname.xml~. These are loaded by opensim.exe as if they are legitimate region descriptions, and will therefore give errors indicating you are trying to re-use the socket for that region.&lt;br /&gt;
&lt;br /&gt;
==Attaching your sim to someone else's grid==&lt;br /&gt;
To set up the region server (i.e., &amp;lt;tt&amp;gt;OpenSim.exe&amp;lt;/tt&amp;gt;) to connect to an external grid, you should edit the &amp;lt;tt&amp;gt;OpenSim.ini&amp;lt;/tt&amp;gt; file in the &amp;lt;tt&amp;gt;bin&amp;lt;/tt&amp;gt; directory.  In that file, there is a &amp;lt;tt&amp;gt;[Network]&amp;lt;/tt&amp;gt; section with URLs for the grid, user, and asset servers, as well as send and receive keys (for a basic level of security).  The addresses and send/receive keys will vary depending on the grid you are connecting to, and the grid operator should tell you what values to use.&lt;br /&gt;
&lt;br /&gt;
The other file you may have to change is in your &amp;lt;tt&amp;gt;bin/Regions&amp;lt;/tt&amp;gt; directory. This is where your individual region config files are. If you only have one region, it will by default be called &amp;lt;tt&amp;gt;default.xml&amp;lt;/tt&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
This can be edited with any text editor. The grid owner may tell you what X and Y location you can place your sim at (you can't have multiple sims at the same location on the grid). If so, the fields you will need to change in this file are &amp;lt;tt&amp;gt;sim_location_x&amp;lt;/tt&amp;gt; and &amp;lt;tt&amp;gt;sim_location_y&amp;lt;/tt&amp;gt;.  And the &amp;lt;tt&amp;gt;external_host_name&amp;lt;/tt&amp;gt; should be set to the hostname or IP address of your simulation server (i.e., the machine that is running &amp;lt;tt&amp;gt;OpenSim.exe&amp;lt;/tt&amp;gt;).&lt;br /&gt;
A list of public grids that you can attach your sim to is at [[OpenSim: Grids]]&lt;br /&gt;
&lt;br /&gt;
==Running==&lt;br /&gt;
&lt;br /&gt;
===StandAlone===&lt;br /&gt;
'''&amp;lt;u&amp;gt;Windows&amp;lt;/u&amp;gt;'''&lt;br /&gt;
 cd bin&lt;br /&gt;
 OpenSim.exe&lt;br /&gt;
On Windows Vista, it may be necessary to explicitly &amp;quot;Run as administrator&amp;quot; for opensim.exe to accept connections from a client, even when running as an administrator user. Navigate to the opensim\bin directory, right click opensim.exe, and select &amp;quot;Run as administrator&amp;quot;.&lt;br /&gt;
Connect: opensim://localhost:9000 , or opensim://127.0.0.1:9000, or opensim://myipadress:9000&lt;br /&gt;
&lt;br /&gt;
'''&amp;lt;u&amp;gt;Linux&amp;lt;/u&amp;gt;'''&lt;br /&gt;
 cd bin&lt;br /&gt;
 mono OpenSim.exe&lt;br /&gt;
&lt;br /&gt;
'''&amp;lt;u&amp;gt;OSX&amp;lt;/u&amp;gt;'''&lt;br /&gt;
 cd bin&lt;br /&gt;
 mono OpenSim.exe&lt;br /&gt;
&lt;br /&gt;
===Local Grid===&lt;br /&gt;
'''&amp;lt;u&amp;gt;Windows&amp;lt;/u&amp;gt;'''&lt;br /&gt;
 cd bin&lt;br /&gt;
 OpenSim.Grid.UserServer.exe&lt;br /&gt;
 OpenSim.Grid.GridServer.exe&lt;br /&gt;
 OpenSim.Grid.AssetServer.exe&lt;br /&gt;
 OpenSim.Grid.InventoryServer.exe&lt;br /&gt;
 OpenSim.Grid.MessagingServer.exe&lt;br /&gt;
 OpenSim.exe&lt;br /&gt;
&lt;br /&gt;
'''&amp;lt;u&amp;gt;Linux&amp;lt;/u&amp;gt;'''&lt;br /&gt;
 cd bin&lt;br /&gt;
 mono OpenSim.Grid.UserServer.exe&lt;br /&gt;
 mono OpenSim.Grid.GridServer.exe&lt;br /&gt;
 mono OpenSim.Grid.AssetServer.exe&lt;br /&gt;
 mono OpenSim.Grid.InventoryServer.exe&lt;br /&gt;
 mono OpenSim.Grid.MessagingServer.exe&lt;br /&gt;
 mono OpenSim.exe&lt;br /&gt;
&lt;br /&gt;
'''&amp;lt;u&amp;gt;OSX&amp;lt;/u&amp;gt;'''&lt;br /&gt;
 cd bin&lt;br /&gt;
 mono OpenSim.Grid.UserServer.exe&lt;br /&gt;
 mono OpenSim.Grid.GridServer.exe&lt;br /&gt;
 mono OpenSim.Grid.AssetServer.exe&lt;br /&gt;
 mono OpenSim.Grid.InventoryServer.exe&lt;br /&gt;
 mono OpenSim.Grid.MessagingServer.exe&lt;br /&gt;
 mono OpenSim.exe&lt;br /&gt;
Connect: opensim://myipaddress:9000&lt;br /&gt;
&lt;br /&gt;
===Note About Mono===&lt;br /&gt;
If you're using mono, you should increase the value of the mono environment variable MONO_THREADS_PER_CPU from its default of 5 to some number that works for your sim. The exact number depends on many factors including: the number of CPUs in your machine, what else you use that machine for, how many regions you have in your sim, how many of them are adjacent, how many scripts you have, and how many avatars you expect to serve at the same time. As a reference, Wright Plaza in OSGrid, which is running as a single region on a sim and routinely hosts meetings with 20 avatars, uses the value 125. &lt;br /&gt;
&lt;br /&gt;
If this number is too low, the operation of your sim will start to break in all sorts of different ways. A common symptom is the freezing of all activity upon login of a new avatar. Other symptoms are a lot more subtle.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== Configuration of region modules ==&lt;br /&gt;
* [[IRCBridgeModule]]&lt;br /&gt;
* [[Freeswitch_Module]]&lt;br /&gt;
* [[Offline Messaging]]&lt;br /&gt;
&lt;br /&gt;
== Configuration of Metaverse Exchange Protocol (MXP) ==&lt;br /&gt;
* [[Metaverse Exchange Protocol]]&lt;br /&gt;
&lt;br /&gt;
== Configuration of Web Server and Pages==&lt;br /&gt;
OpenSim contains a web server that can serve up a variety of pages.  Some which come from external files and some are generated internally.&lt;br /&gt;
* [[External Files]]&lt;br /&gt;
* [[Internally Generated]]&lt;/div&gt;</summary>
		<author><name>Taftr</name></author>	</entry>

	<entry>
		<id>http://opensimulator.org/wiki/Configuration</id>
		<title>Configuration</title>
		<link rel="alternate" type="text/html" href="http://opensimulator.org/wiki/Configuration"/>
				<updated>2009-10-14T18:52:03Z</updated>
		
		<summary type="html">&lt;p&gt;Taftr: /* Standalone mode */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;__NOTOC__&lt;br /&gt;
{{Template:Quicklinks}}&lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
== OpenSim Command line options ==&lt;br /&gt;
To run OpenSim in somewhat customized environments it's often helpful to modify the programs behaviour via command line arguments.&lt;br /&gt;
OpenSim knows a just a few of these as most parts of the behaviour are controlled via an .INI-File (see below).&lt;br /&gt;
&lt;br /&gt;
The following command line switches are known:&lt;br /&gt;
{| border=&amp;quot;1&amp;quot;&lt;br /&gt;
! Switch !! Meaning/Behaviour&lt;br /&gt;
|-&lt;br /&gt;
| background ||&lt;br /&gt;
|-&lt;br /&gt;
| gridmode || If =true forces OpenSim.exe to operate in grid mode. If =false forces OpenSim.exe to operate in standalone mode. If omitted defaults to OpenSim.ini setting.&lt;br /&gt;
|-&lt;br /&gt;
| gui || &amp;quot;old-style&amp;quot; console&lt;br /&gt;
|-&lt;br /&gt;
| inidirectory || &lt;br /&gt;
|-&lt;br /&gt;
| inifile || changes the name (Path) of the inifile. See below for details&lt;br /&gt;
|-&lt;br /&gt;
| inimaster || allows to read in a master config file. See below for details&lt;br /&gt;
|-&lt;br /&gt;
| physics ||&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
==OpenSim configuration file==&lt;br /&gt;
The simulator configuration is managed using a file called [[OpenSim.ini]]. This file is used regardless of whether the sim is running in standalone or grid mode. Detailed information on the options available for setttings in this file can be found [[OpenSim.ini|here]].&lt;br /&gt;
Please note, that the name OpenSim.ini can be changed via command line arguments (see above).  Also, note that the default download does not include an OpenSim.ini file, but rather provides an example file.  To get started editing your ini file, please cd into opensim/bin/ and copy OpenSim.ini.example to OpenSim.ini.&lt;br /&gt;
&lt;br /&gt;
It is also possible to distribute the inifile settings over two files. This is useful if you want to run several OpenSim processes where most of your settings are identical but some settings differ.&lt;br /&gt;
The master file is read first, then the inifile is read. Settings given in the inifile overrule settings given in the master file.&lt;br /&gt;
The master file has the same format and the same keywords as the inifile, so the same documentation applies.&lt;br /&gt;
&lt;br /&gt;
==Standard config in Windows==&lt;br /&gt;
===0.6.6 Release Information===&lt;br /&gt;
This release had some bugs with default automatic configuration on the first startup of OpenSim.exe.  bin/Regions/default.xml (region configuration file) is not automatically created in the main directory.  Therefore, you must manually create this file.  Here is an example.&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
&amp;lt;Root&amp;gt;&lt;br /&gt;
  &amp;lt;Config sim_UUID=&amp;quot;UUID&amp;quot; sim_name=&amp;quot;NAME&amp;quot; sim_location_x=&amp;quot;1000&amp;quot; sim_location_y=&amp;quot;1000&amp;quot;&lt;br /&gt;
 internal_ip_address=&amp;quot;IP_ADDRESS_OF_SERVER&amp;quot; internal_ip_port=&amp;quot;9000&amp;quot; allow_alternate_ports=&amp;quot;false&amp;quot;&lt;br /&gt;
 external_host_name=&amp;quot;DNS_NAME_OF_SERVER&amp;quot; master_avatar_uuid=&amp;quot;00000000-0000-0000-0000-000000000000&amp;quot;&lt;br /&gt;
 estate_covanant_uuid=&amp;quot;00000000-0000-0000-0000-000000000000&amp;quot; master_avatar_first=&amp;quot;FIRST_NAME&amp;quot;&lt;br /&gt;
 master_avatar_last=&amp;quot;SECOND_NAME&amp;quot; master_avatar_pass=&amp;quot;PASSWORD&amp;quot; /&amp;gt;&lt;br /&gt;
&amp;lt;/Root&amp;gt;&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
You must change UUID, NAME, IP_ADDRESS_OF_SERVER, DNS_NAME_OF_SERVER, FIRST_NAME, SECOND_NAME and PASSWORD to your own values.&lt;br /&gt;
(I noticed than IP_ADDRESS_OF_SERVER should be set to real IP not to 127.0.0.1)&lt;br /&gt;
&lt;br /&gt;
'''Summary''':&lt;br /&gt;
&lt;br /&gt;
*Run OpenSim0.6.6Setup.exe and install OpenSim in Windows&lt;br /&gt;
*Run OpenSim.exe and enter default values - record them!&lt;br /&gt;
*Shutdown simulator (command: shutdown)&lt;br /&gt;
*Create default.xml with copy of above&lt;br /&gt;
*Change values in default.xml with recoded values&lt;br /&gt;
*Be sure default.xml be in main directory (same with OpenSim.ini)&lt;br /&gt;
*Run again OpenSim.exe&lt;br /&gt;
*Connect with viewer&lt;br /&gt;
&lt;br /&gt;
===Running OpenSim in 64 bit Windows on the future 0.6.7 release===&lt;br /&gt;
[[Image:Exclamation.png|left]]&lt;br /&gt;
In Git revision 077d01, the default physics engine for OpenSim was changed to the ODE engine.  This is because ODE is by far the most advanced physics engine.  Unfortunately, it has the drawback in that it's library is not compilable under 64bit.  Therefore, 64 bit Windows users may need to run &lt;br /&gt;
&lt;br /&gt;
 OpenSim.32BitLaunch.exe&lt;br /&gt;
&lt;br /&gt;
instead of &lt;br /&gt;
&lt;br /&gt;
 OpenSim.exe&lt;br /&gt;
&lt;br /&gt;
To launch their region simulator.&lt;br /&gt;
&lt;br /&gt;
An alternative is to use the basicphysics engine instead or one of the other alternative physics engines bundled with OpenSim, though all these are far less functional than ODE.&lt;br /&gt;
&lt;br /&gt;
== Logging ==&lt;br /&gt;
Usually you don't have a debugger and the source code at hand when a situation comes up. OpenSim does some logging to give you information about how it works.&lt;br /&gt;
This is done by use of the [http://logging.apache.org/log4net/index.html log4net-package]. The obvious console output of OpenSim as well as the OpenSim.log output are done via this package and come readily configured out of the box. But you can also make extended use of all other options this package can give you.&lt;br /&gt;
&lt;br /&gt;
OpenSim makes use of the .NET System.Configuration API which means that the file that holds all the logging configuration is bin/OpenSim.exe.config .&lt;br /&gt;
&lt;br /&gt;
More information on how to configure log4net can be found on the [http://logging.apache.org/log4net/release/manual/configuration.html log4net web pages].&lt;br /&gt;
&lt;br /&gt;
==Database==&lt;br /&gt;
Opensim's supports the following database-engines:&lt;br /&gt;
* SQLite (default - a lightweight database that comes bundled with OpenSim and can be used without requiring any extra configuration.  It is mostly intended to get you up and running quickly, not for production use.)&lt;br /&gt;
* MySQL (fully supported)&lt;br /&gt;
* MSSQL (partially supported - some recent OpenSim features may not yet be implemented)&lt;br /&gt;
* Postgresql (fully supported - Still in Beta phase but working)&lt;br /&gt;
&lt;br /&gt;
More information on database support can be found on the [[OpenSim Database support]] page.&lt;br /&gt;
&lt;br /&gt;
==Script engine==&lt;br /&gt;
OpenSim supports multiple script engines. See [[ScriptEngines]] for details&lt;br /&gt;
&lt;br /&gt;
==Permissions Configuration==&lt;br /&gt;
OpenSim has a quite elaborate set of permissions. See [[OpenSim:Permissions(Server)]] for details.&lt;br /&gt;
&lt;br /&gt;
==Standalone vs. Grid==&lt;br /&gt;
We recommend that you first get OpenSim running in standalone mode before you attempt to connect it to a grid, either your own grid or a public grid.  An OpenSim configuration consists of regions (run by region simulators) and 5 core backend services (which manage users, the grid, assets, inventories, and grid-wide messaging, collectively known as UGAIM).&lt;br /&gt;
&lt;br /&gt;
A system running in '''standalone mode''' (that is, one  with OpenSim.ini configured such that gridmode = false) -- also known as &amp;quot;sandbox mode&amp;quot; -- runs everything (all UGAIM services and one or more regions) in a single executable (OpenSim.exe).  External regions cannot be added to an OpenSim running in this mode.&lt;br /&gt;
&lt;br /&gt;
In '''grid mode''', the five services ([[User Server|User]], [[Grid Server|Grid]], [[Asset Server|Asset]], [[Inventory Server|Inventory]], [[Messaging Server|Messaging]], or UGAIM) are not part of the region server.  This means that they can be run either on the same machine or spread out across multiple computers.  In this mode, OpenSim.exe serves one or more regions, which communicate with the core servers.  This mode even allows region servers run by other people on their own machines to connect, if you wish.&lt;br /&gt;
&lt;br /&gt;
Naturally, this means that running in grid mode is somewhat more complicated than running in standalone mode.  It requires an understanding of UUID, X,Y location, server handshake passwords, estates and estate owners, and a couple of other settings. These are not difficult, but do require a little more care in setting things up.&lt;br /&gt;
&lt;br /&gt;
If you want to run a grid of your own (either private or public) you would start the core services up before connecting a region simulator.  If you want to connect your region server to a grid that someone else is running, you need only start the region server in grid mode (with the necessary security keys and location information mentioned in the last paragraph).&lt;br /&gt;
&lt;br /&gt;
OpenSim.exe responds to various command line arguments. These include &amp;quot;-inifile&amp;quot;, &amp;quot;-configfile&amp;quot;, &amp;quot;-gridmode&amp;quot;, &amp;quot;-physics&amp;quot;, &amp;quot;-config&amp;quot; &amp;amp; &amp;quot;-noverbose&amp;quot;. When starting OpenSim in either Windows or Linux, one could, for example, add &amp;quot;-physics=OpenDynamicsEngine&amp;quot; to run the OpenDynamicsEngine instead of basicphysics, or use &amp;quot;-gridmode=true&amp;quot; to force opensim.exe to run as a region server (the rest of the grid services have their own executables).  As many of these settings are normally controlled by OpenSim.ini, most users (especially in standalone mode) will not add any command line arguments.&lt;br /&gt;
&lt;br /&gt;
=== Standalone mode  ===&lt;br /&gt;
&lt;br /&gt;
When you start OpenSim in standalone mode, it will ask you several questions at the console. The first set of prompts that start with &amp;quot;NETWORK SERVERS INFO&amp;quot;, you can just hit return to accept the defaults if you will be running in standalone mode. The prompts that start with &amp;quot;DEFAULT REGION CONFIG&amp;quot; are where you need to start paying attention. Some are self-explanatory. Here are explanations for the others:&amp;lt;br&amp;gt; &lt;br /&gt;
&lt;br /&gt;
*Grid Location. OpenSim regions can be placed anywhere on a 65536 by 65536 grid. In standalone mode, it is safe to leave these X and Y locations at their defaults for the first region (additional regions will need different coordinates, of course). &lt;br /&gt;
*Filename for local storage. Safe to leave at default. &lt;br /&gt;
*Internal IP address; This should always be 0.0.0.0 (0.0.0.0 means &amp;quot;listen for connections on any interface&amp;quot;, basically a wildcard) if you want to access this server from the internet or another server on your internal network, this should be the IP&amp;amp;nbsp;address assigned to the OpenSim Server. You should also set up the server to Use a Static IP address, and not DHCP &lt;br /&gt;
*Internal IP port for incoming UDP client connection. You can make this any port you want, but it is safe to leave at the default 9000. Each region on your server must have a unique port&amp;lt;br&amp;gt; &lt;br /&gt;
*External host name. If you will only be attaching to your sim from a SecondLife client on the same machine, you can leave this at the default 127.0.0.1. If you will be wanting to connect to it from a client on another machine or the internet, this should be the External IP Address of your router, not the Domain Name. (Hmm - Tried hostname (the one resolved by dns) and it worked out oke.) &lt;br /&gt;
*Be aware of [http://osgrid.org/forums/viewtopic.php?f=5&amp;amp;t=400&amp;amp;start=0&amp;amp;st=0&amp;amp;sk=t&amp;amp;sd=a loopback] problems when Running viewer &amp;amp;amp; server(s) on the same machine (LAN) by using the &amp;quot;external&amp;quot; configuration. (&amp;lt;u&amp;gt;'''You might notice endless waiting for region handshake'''&amp;lt;/u&amp;gt;.) See also [http://opensimulator.org/wiki/Troubleshooting troubleshoot hints]&lt;br /&gt;
&lt;br /&gt;
To connect to your new sim, start up secondlife with the following command line switches: &lt;br /&gt;
&lt;br /&gt;
 '''Client on same machine as OpenSim:''' -loginuri http://127.0.0.1:9000/ -loginpage http://127.0.0.1:9000/?method=login &lt;br /&gt;
 &lt;br /&gt;
 Client on different machine or internet:''' -loginuri http://external_ip:9000/ -loginpage http://external_ip:9000/?method=login'''&lt;br /&gt;
&lt;br /&gt;
To create a user: &lt;br /&gt;
&lt;br /&gt;
type create user &amp;amp;lt;first&amp;amp;gt; &amp;amp;lt;last&amp;amp;gt; &amp;amp;lt;password&amp;amp;gt; &amp;amp;lt;x_loc&amp;amp;gt; &amp;amp;lt;y_loc&amp;amp;gt; in the server console.&amp;lt;br&amp;gt;&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
===Grid mode===&lt;br /&gt;
You want to run your own grid. Great! Assuming that you already got your sim running in standalone mode, here is what you need to do:&amp;lt;br&amp;gt;&lt;br /&gt;
1. Current builds of OpenSim grid mode are using mysql to store the grid information. You must have this installed and configured if you want to run your own grid. See [[mysql-config]] for more information.&amp;lt;br&amp;gt;&lt;br /&gt;
 &lt;br /&gt;
 &lt;br /&gt;
   [[Image:Exclamation.png|left]]&lt;br /&gt;
 NOTE: The grid servers are in the process of being redesigned. Therefore, there is a &amp;quot;legacy&amp;quot; way&lt;br /&gt;
 and a new way of starting things. The most up to date information can be found in the configuration&lt;br /&gt;
 file examples in your OpenSim kit.&lt;br /&gt;
 &lt;br /&gt;
 The new system consists of services and connectors that are run in a server shell (Basic Universal&lt;br /&gt;
 Server Technology, R.O.B.U.S.T.)&lt;br /&gt;
 &lt;br /&gt;
&lt;br /&gt;
For information on running the legacy servers, see [[LegacyServers]]&lt;br /&gt;
&lt;br /&gt;
===Starting the grid services===&lt;br /&gt;
Currently, R.O.B.U.S.T has connectors for the asset and inventory functionality. Therefore, some of the legacy servers are still required to run. Following the steps below will get you up and running in no time!&lt;br /&gt;
&lt;br /&gt;
* Configure the user server&lt;br /&gt;
::Start OpenSim.Grid.UserServer.exe&lt;br /&gt;
::You will be asked a number of configuration questions. If the grid servers are all on one machine, most defaults are safe to use, just press enter for all questions except fot the defult inventory server. The default inventory server needs to be given as http://127.0.0.1:8003, because R.O.B.U.S.T uses only one port.&lt;br /&gt;
::The user server will then load and display it's prompt:&lt;br /&gt;
 User#&lt;br /&gt;
* Configure the grid server&lt;br /&gt;
::Start OpenSim.Grid.GridServer.exe&lt;br /&gt;
::Again, you will be asked a few questions and it's safe to accept the defaults if all servers are run on one machine. You will then see the grid server prompt:&lt;br /&gt;
 Grid#&lt;br /&gt;
* Configure R.O.B.U.S.T.&lt;br /&gt;
::Copy OpenSim.Server.ini.example to OpenSim.Server.ini&lt;br /&gt;
::(on version 0.6.6 copy OpenSim.Services.ini.example to OpenSim.Services.ini - then use OpenSim.Services instead OpenSim.Server)&lt;br /&gt;
::Don't forget change ConnectionString accordingly your database settings.&lt;br /&gt;
Linux&lt;br /&gt;
 bin$ cp OpenSim.Server.ini.example OpenSim.Server.ini&lt;br /&gt;
Windows&lt;br /&gt;
 C:\OpenSim\bin&amp;gt; copy OpenSim.Server.ini.example OpenSim.Server.ini&lt;br /&gt;
For more information on the R.O.B.U.S.T. configuration file, refer to [[R.O.B.U.S.T.]]&lt;br /&gt;
 &lt;br /&gt;
::Start OpenSim.Server.exe&lt;br /&gt;
The server will start up it's asset and inventory components and display the R.O.B.U.S.T prompt:&lt;br /&gt;
 R.O.B.U.S.T.#&lt;br /&gt;
* Configure the message server&lt;br /&gt;
::Start OpenSim.Grid.MessagingServer.exe&lt;br /&gt;
::Answer the configuration questions. Again, if all servers are run on the same machine, it's safe to press enter for all questions&lt;br /&gt;
::The server will start and present you with it's prompt:&lt;br /&gt;
 Messaging#&lt;br /&gt;
&lt;br /&gt;
===Starting the regions===&lt;br /&gt;
When using R.O.B.U.S.T., a setting that was not needed in standalone mode needs to be changed from it's default.&lt;br /&gt;
Open OpenSim.ini and find the section titled [Network]. Change the inventory_server_url to read http://127.0.0.1:8003.&lt;br /&gt;
 [Network]&lt;br /&gt;
 inventory_server_url = &amp;quot;http://127.0.0.1:8003&amp;quot;&lt;br /&gt;
&lt;br /&gt;
Next, find the [Architecture] section, comment out the line that says &lt;br /&gt;
 Include-Standalone    = &amp;quot;config-include/Standalone.ini&amp;quot;&lt;br /&gt;
and uncomment the line saying &lt;br /&gt;
 Include-Grid         = &amp;quot;config-include/Grid.ini&lt;br /&gt;
&lt;br /&gt;
save OpenSim.ini, and go into the config-include directory.&lt;br /&gt;
copy the following files &lt;br /&gt;
 GridCommon.ini.example to GridCommon.ini&lt;br /&gt;
 CenomeCache.ini.example to CenomeCache.ini&lt;br /&gt;
 FlotsamCache.ini.example to FlotsamCache.ini&lt;br /&gt;
&lt;br /&gt;
Open all these files (Grid.ini, GridCommon.ini, CenomeCache.ini and FlotsamCache.ini) and edit to suit your needs&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
You should now be ready to start up your sim. The mode that OpenSim.exe starts in is normally controlled by a setting in your OpenSim.ini.  It defaults to standalone mode if that setting is not specified or the file is not found.  If you wish, you can force opensim to start in gridmode on the command line as follows:&lt;br /&gt;
 OpenSim.exe -gridmode=true&lt;br /&gt;
or:&lt;br /&gt;
 mono OpenSim.exe -gridmode=true&lt;br /&gt;
With any luck, everything will come up without too many errors.&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Go to the UserServer console, and type 'create user' to create a new avatar. It will prompt you for the name and password, and the X and Y of the sim that should be his home location. Use 1000 and 1000, or wherever you told your sim to live when you brought it up in standalone mode. At the console of any of these servers, you should be able to type 'help' to get a list of commands.&lt;br /&gt;
&lt;br /&gt;
You should now be able to connect to your new grid with your secondlife client. You need to tell your client to point at the UserServer rather than directly at the sim, though:&lt;br /&gt;
 secondlife -loginuri http://127.0.0.1:8002/&lt;br /&gt;
8002 is the default port for the UserServer, and that IP address should be changed to the server you are running the UserServer on, if they are not all on the same box.  Happy OpenSimming!&amp;lt;br&amp;gt;&lt;br /&gt;
''Note: if you are using Windows Vista, remember to start servers as Admin. If not it will prompt you an error in console like &amp;quot;Error - Access denied&amp;quot;''&lt;br /&gt;
&lt;br /&gt;
==Multiple regions==&lt;br /&gt;
Using Physical Prim with the OpenDynamicsEngine on *nix, it's recommended that you set your stack reserve level higher then default with the following command;&lt;br /&gt;
&amp;lt;tt&amp;gt;ulimit -s 262144&amp;lt;/tt&amp;gt; Or, run the opensim-ode.sh to start up OpenSimulator.&lt;br /&gt;
&lt;br /&gt;
A powerful region generator is available at: [[RegionGenerator]]&lt;br /&gt;
&lt;br /&gt;
For running multiple regions on the same box, you simply make multiple copies of the 'default.xml' file inside the &amp;lt;tt&amp;gt;bin/Regions/&amp;lt;/tt&amp;gt; directory.  You can do this by typing &amp;lt;tt&amp;gt;create region&amp;lt;/tt&amp;gt; at the OpenSim command prompt, using the script &amp;lt;tt&amp;gt;make.php&amp;lt;/tt&amp;gt; in &amp;lt;tt&amp;gt;share/regions&amp;lt;/tt&amp;gt;, or you can generate the files by hand.&lt;br /&gt;
&lt;br /&gt;
If you want to create the files by hand:&lt;br /&gt;
&lt;br /&gt;
:first copy the default.xml file in the &amp;lt;tt&amp;gt;bin/Regions&amp;lt;/tt&amp;gt; directory, and name them anything you want (I name mine region.x.y.xml, where region is the name of the region, and x and y are the grid coords.)&lt;br /&gt;
:Open each xml file and edit the uuid (a generator can be found at [http://www.famkruithof.net/uuid/uuidgen uuidgen webpage] or on unix, use the uuidgen command), region name, x &amp;amp; y positions, and internal IP port.&lt;br /&gt;
&lt;br /&gt;
'''IMPORTANT!'''  Regardless of the method you use to create your new region, the UUID, name, and grid coordinates ''must'' be unique for each region on a grid.  The port assignment must be unique for each region that is running on a particular machine. The internal IP ''address'' and external host name must be the same for all regions.&lt;br /&gt;
&lt;br /&gt;
Note that &amp;lt;tt&amp;gt;sim_location_x&amp;lt;/tt&amp;gt; and &amp;lt;tt&amp;gt;sim_location_y&amp;lt;/tt&amp;gt; should be adjacent integers if you want your regions to be adjacent, so you can run back and forth between them.  '''IMPORTANT: THESE GRID COORDINATES ARE ''NOT'' IN METERS.  THEY ARE SIM POSITIONS.'''  (1000, 1000) is next to (1001,1000), (1000, 1001), and so forth.  1256, 2000, 2048 and similar values are '''not''' adjacent to 1000, they are very far away, so you would not see your sims from one another.&lt;br /&gt;
&lt;br /&gt;
Once you have 2 or more xml files in the bin/Regions folder, running a ''single'' copy of &amp;lt;tt&amp;gt;OpenSim.exe&amp;lt;/tt&amp;gt; will start up all of your sims! If you come across any errors, there is most likely an error in your xml files.&lt;br /&gt;
&lt;br /&gt;
As of 6-Feb-2008, take care NOT to leave editor backup copies of the files in this directory e.g. emacs style backup names like Regionname.xml~. These are loaded by opensim.exe as if they are legitimate region descriptions, and will therefore give errors indicating you are trying to re-use the socket for that region.&lt;br /&gt;
&lt;br /&gt;
==Attaching your sim to someone else's grid==&lt;br /&gt;
To set up the region server (i.e., &amp;lt;tt&amp;gt;OpenSim.exe&amp;lt;/tt&amp;gt;) to connect to an external grid, you should edit the &amp;lt;tt&amp;gt;OpenSim.ini&amp;lt;/tt&amp;gt; file in the &amp;lt;tt&amp;gt;bin&amp;lt;/tt&amp;gt; directory.  In that file, there is a &amp;lt;tt&amp;gt;[Network]&amp;lt;/tt&amp;gt; section with URLs for the grid, user, and asset servers, as well as send and receive keys (for a basic level of security).  The addresses and send/receive keys will vary depending on the grid you are connecting to, and the grid operator should tell you what values to use.&lt;br /&gt;
&lt;br /&gt;
The other file you may have to change is in your &amp;lt;tt&amp;gt;bin/Regions&amp;lt;/tt&amp;gt; directory. This is where your individual region config files are. If you only have one region, it will by default be called &amp;lt;tt&amp;gt;default.xml&amp;lt;/tt&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
This can be edited with any text editor. The grid owner may tell you what X and Y location you can place your sim at (you can't have multiple sims at the same location on the grid). If so, the fields you will need to change in this file are &amp;lt;tt&amp;gt;sim_location_x&amp;lt;/tt&amp;gt; and &amp;lt;tt&amp;gt;sim_location_y&amp;lt;/tt&amp;gt;.  And the &amp;lt;tt&amp;gt;external_host_name&amp;lt;/tt&amp;gt; should be set to the hostname or IP address of your simulation server (i.e., the machine that is running &amp;lt;tt&amp;gt;OpenSim.exe&amp;lt;/tt&amp;gt;).&lt;br /&gt;
A list of public grids that you can attach your sim to is at [[OpenSim: Grids]]&lt;br /&gt;
&lt;br /&gt;
==Running==&lt;br /&gt;
&lt;br /&gt;
===StandAlone===&lt;br /&gt;
'''&amp;lt;u&amp;gt;Windows&amp;lt;/u&amp;gt;'''&lt;br /&gt;
 cd bin&lt;br /&gt;
 OpenSim.exe&lt;br /&gt;
On Windows Vista, it may be necessary to explicitly &amp;quot;Run as administrator&amp;quot; for opensim.exe to accept connections from a client, even when running as an administrator user. Navigate to the opensim\bin directory, right click opensim.exe, and select &amp;quot;Run as administrator&amp;quot;.&lt;br /&gt;
Connect: opensim://localhost:9000 , or opensim://127.0.0.1:9000, or opensim://myipadress:9000&lt;br /&gt;
&lt;br /&gt;
'''&amp;lt;u&amp;gt;Linux&amp;lt;/u&amp;gt;'''&lt;br /&gt;
 cd bin&lt;br /&gt;
 mono OpenSim.exe&lt;br /&gt;
&lt;br /&gt;
'''&amp;lt;u&amp;gt;OSX&amp;lt;/u&amp;gt;'''&lt;br /&gt;
 cd bin&lt;br /&gt;
 mono OpenSim.exe&lt;br /&gt;
&lt;br /&gt;
===Local Grid===&lt;br /&gt;
'''&amp;lt;u&amp;gt;Windows&amp;lt;/u&amp;gt;'''&lt;br /&gt;
 cd bin&lt;br /&gt;
 OpenSim.Grid.UserServer.exe&lt;br /&gt;
 OpenSim.Grid.GridServer.exe&lt;br /&gt;
 OpenSim.Grid.AssetServer.exe&lt;br /&gt;
 OpenSim.Grid.InventoryServer.exe&lt;br /&gt;
 OpenSim.Grid.MessagingServer.exe&lt;br /&gt;
 OpenSim.exe&lt;br /&gt;
&lt;br /&gt;
'''&amp;lt;u&amp;gt;Linux&amp;lt;/u&amp;gt;'''&lt;br /&gt;
 cd bin&lt;br /&gt;
 mono OpenSim.Grid.UserServer.exe&lt;br /&gt;
 mono OpenSim.Grid.GridServer.exe&lt;br /&gt;
 mono OpenSim.Grid.AssetServer.exe&lt;br /&gt;
 mono OpenSim.Grid.InventoryServer.exe&lt;br /&gt;
 mono OpenSim.Grid.MessagingServer.exe&lt;br /&gt;
 mono OpenSim.exe&lt;br /&gt;
&lt;br /&gt;
'''&amp;lt;u&amp;gt;OSX&amp;lt;/u&amp;gt;'''&lt;br /&gt;
 cd bin&lt;br /&gt;
 mono OpenSim.Grid.UserServer.exe&lt;br /&gt;
 mono OpenSim.Grid.GridServer.exe&lt;br /&gt;
 mono OpenSim.Grid.AssetServer.exe&lt;br /&gt;
 mono OpenSim.Grid.InventoryServer.exe&lt;br /&gt;
 mono OpenSim.Grid.MessagingServer.exe&lt;br /&gt;
 mono OpenSim.exe&lt;br /&gt;
Connect: opensim://myipaddress:9000&lt;br /&gt;
&lt;br /&gt;
===Note About Mono===&lt;br /&gt;
If you're using mono, you should increase the value of the mono environment variable MONO_THREADS_PER_CPU from its default of 5 to some number that works for your sim. The exact number depends on many factors including: the number of CPUs in your machine, what else you use that machine for, how many regions you have in your sim, how many of them are adjacent, how many scripts you have, and how many avatars you expect to serve at the same time. As a reference, Wright Plaza in OSGrid, which is running as a single region on a sim and routinely hosts meetings with 20 avatars, uses the value 125. &lt;br /&gt;
&lt;br /&gt;
If this number is too low, the operation of your sim will start to break in all sorts of different ways. A common symptom is the freezing of all activity upon login of a new avatar. Other symptoms are a lot more subtle.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== Configuration of region modules ==&lt;br /&gt;
* [[IRCBridgeModule]]&lt;br /&gt;
* [[Freeswitch_Module]]&lt;br /&gt;
* [[Offline Messaging]]&lt;br /&gt;
&lt;br /&gt;
== Configuration of Metaverse Exchange Protocol (MXP) ==&lt;br /&gt;
* [[Metaverse Exchange Protocol]]&lt;br /&gt;
&lt;br /&gt;
== Configuration of Web Server and Pages==&lt;br /&gt;
OpenSim contains a web server that can serve up a variety of pages.  Some which come from external files and some are generated internally.&lt;br /&gt;
* [[External Files]]&lt;br /&gt;
* [[Internally Generated]]&lt;/div&gt;</summary>
		<author><name>Taftr</name></author>	</entry>

	</feed>