Installing and Running Hypergrid

From OpenSimulator

(Difference between revisions)
Jump to: navigation, search
m (Configuration for OpenSimulator 0.6.x)
(Add access section)
 
(34 intermediate revisions by 6 users not shown)
Line 1: Line 1:
 
{{Quicklinks}}
 
{{Quicklinks}}
  
== Installing & Running OpenSim in Hypergrid Mode ==
+
These are instructions for setting up the [[Hypergrid]] in OpenSimulator's standalone and grid architectures.
The setup for hypergrid differs depending on whether you run OpenSim as a standalone or as a grid. There also came considerable changes with version 0.7. If you are using an older version 0.6.x of OpenSimulator, then refer to [[#Configuration for OpenSimulator 0.6.x]] further down this page.
+
  
== Configuration ==
+
Before OpenSimulator 0.7.6, the HomeURI and Gatekeeper entries had to be added separately in individual modules and services configuration sectios.
In order for OpenSimulator to be accessible in the hypergrid, you must use an externally visible IP address or domain name. You also may need to set up port forwarding for all ports (TCP and UDP) that OpenSimulator and the regions use. Typically, these are port 8002 for an installation running in grid mode and port 9000 for standalones. Regions typically use ports starting at 9000. For more information, see [[Network Settings]].
+
  
=== Standalone ===
+
However, there is now a more convenient way to do this by configuring these parameters just once in a new [Hypergrid] section of the appropriate configuration files (e.g. bin/config-include/StandaloneCommon.ini for the standalone architecture and bin/config-include/GridCommon.ini and bin/Robust.HG.ini for the grid architecture).
 +
 
 +
Below follow specific instructions when using the standalone architecture and when using the grid architecture.  Finally, there is a section for actions that need to be performed in both architectures.
 +
 
 +
=Installation=
 +
 
 +
== Standalone ==
 +
 
 +
=== bin/OpenSim.ini ===
 
The configuration for hypergrid is activated in section [Architecture] in file OpenSim.ini. Ensure that the line for Include-HGStandalone is the only one that is uncommented in this section:
 
The configuration for hypergrid is activated in section [Architecture] in file OpenSim.ini. Ensure that the line for Include-HGStandalone is the only one that is uncommented in this section:
 
<source lang="ini">[Architecture]
 
<source lang="ini">[Architecture]
Line 16: Line 22:
 
     ;Include-SimianGrid  = "config-include/SimianGrid.ini"</source>
 
     ;Include-SimianGrid  = "config-include/SimianGrid.ini"</source>
  
In StandaloneCommon.ini the network addresses in sections [LoginService] and [GatekeeperService] must be changed to your external network address:
+
=== bin/config-include/StandaloneCommon.ini ===
<source lang="ini">[LoginService]
+
The StandaloneHypergrid.ini will then go on to include the StandaloneCommon.ini file in the same directory. This is where Hypergrid settings will be included.
    ; ... (other settings in this section) ...
+
    HomeURI = "http://example.com:9000"
+
    GatekeeperURI = "http://example.com:9000"
+
    InventoryServerURI = "http://example.com:9000"
+
    AssetServerURI = "http://example.com:9000"
+
  
[GatekeeperService]
+
There are two steps to this configuration.
    ; ... (other settings in this section) ...
+
    ExternalName = "http://example.com:9000"</source>
+
   
+
If you want to use a different port with these addresses, then you must adjust the HTTP listener port in section [Network] in OpenSim.ini, too:
+
<source lang="ini">[Network]
+
    ; ... (other settings in this section) ...
+
    http_listener_port = 9000
+
</source>
+
  
As a last step, the regions must be configured according to the previous changes. See [[#Region Setup for both Grid and Standalone]].
+
==== Step 1: Set HomeURI and GatekeeperURI in [Hypergrid] section ====
  
=== Grid ===
+
As both the simulator and grid services are running in the same process in standalone mode, Hypergrid can be configured by putting your externally accessible address in the [Hypergrid] section.
To enable hypergrid for a grid, both the Robust server and the region servers (simulators) must be configured approprietly.
+
  
==== Robust Server ====
+
For example, in
The Robust server is started with configuration file Robust.HG.ini instead of Robust.ini. If this file does not yet exist in your installation, create it by making a copy of Robust.HG.ini.example. Make the changes appropriate for your environment (e.g. adjust the database connection string). For hypergrid, the following settings are relevant:
+
 
+
<source lang="ini">[LoginService]
+
    ; ... (other settings in this section) ...
+
    HomeURI = "http://example.com:8002"
+
    GatekeeperURI = "http://example.com:8002"
+
    InventoryServerURI = "http://example.com:8002"
+
    AssetServerURI = "http://example.com:8002"
+
  
[GatekeeperService]
+
<source lang="ini">
    ; ... (other settings in this section) ...
+
[Hypergrid]
    ExternalName = "http://example.com:8002"
+
  ; Uncomment the variables in this section only if you are in
</source>
+
  ; Hypergrid configuration. Otherwise, ignore.
  
If you want to change the port(s) used with these addresses, you will also need to adjust the ports in parameter ''''ServiceConnectors'''' in section [Startup] and probably the port configured in section [Network] as well.
+
    ;# {HomeURI} {Hypergrid} {The Home URL of this world} {}
 +
  ;; If this is a standalone world, this is the address of this instance.
 +
  ;; If this is a grided simulator, this is the address of the external robust server that
 +
  ;; runs the UserAgentsService.
 +
  ;; For example http://myworld.com:9000 or http://myworld.com:8002
 +
  ;; This is a default that can be overwritten in some sections.
 +
  HomeURI = "http://127.0.0.1:9000"
  
After these adjustments, the Robust server can be started. On Windows/.NET:
+
    ;# {GatekeeperURI} {Hypergrid} {The URL of the gatekeeper of this world} {}
Robust -inifile=Robust.HG.ini
+
  ;; If this is a standalone world, this is the address of this instance.
Or, with Mono (e.g. on Linux or OSX):
+
  ;; If this is a grided simulator, this is the address of the external robust server
mono Robust.exe -inifile=Robust.HG.ini
+
  ;; that runs the Gatekeeper service.
 
+
  ;; For example http://myworld.com:9000 or http://myworld.com:8002
==== Simulator ====
+
  ;; This is a default that can be overwritten in some sections.
The region servers (simulators) that connect to the Robust server read their configuration from file OpenSim.ini. To activate hypergrid for them, the line for Include-HGGrid in section [Architecture] must be uncommented:
+
   GatekeeperURI = "http://127.0.0.1:9000"
<source lang="ini">[Architecture]
+
    ;Include-Standalone    = "config-include/Standalone.ini"
+
    ;Include-HGStandalone = "config-include/StandaloneHypergrid.ini"
+
    ;Include-Grid        = "config-include/Grid.ini"
+
    Include-HGGrid      = "config-include/GridHypergrid.ini"
+
    ;Include-SimianGrid   = "config-include/SimianGrid.ini"
+
</source>
+
   
+
=== Region Setup for both Grid and Standalone ===
+
Finally, all your regions must use the same external address that is set for GatekeeperService, for example:
+
<source lang="ini">[Region One]
+
    ; ... (other settings in this section) ...
+
    ExternalHostName = "example.com"
+
 
</source>
 
</source>
   
 
For the ports which are used by your regions, TCP and UDP requests must be forwarded through any firewall that is securing your network.
 
  
== Configuration for OpenSimulator 0.6.x ==
+
you need to replace "127.0.0.1" with your external IP or fully qualified domain name (FQDN).  For instance, if your FQDN was example.com, your entries would be
{{obsolete}}
+
=== Installing ===
+
  
Checkout OpenSim, prebuild and build as normal or Download and install Binary Packages from the [[Main Page|MAIN&nbsp;Page ]]<br>If you're running your opensim in '''Grid Mode''' mode with&nbsp;servers on other machines, you&nbsp;only need to modify your OpenSim.ini to enable HyperGrid.  
+
<source lang="ini">
 +
[Hypergrid]
 +
  HomeURI = "http://example.com:9000"
 +
  GatekeeperURI = "http://example.com:9000"
 +
</source>
  
If you're running in standalone and you want it to be network-able, or if you have your grid on loopback (127.0.0.1) change all the [Network] server addresses to. See below.
+
==== Step 2: Set SRV_* addresses in [LoginService] ====
  
=== EXAMPLE Network Sections ===
+
In addition to the [Hypergrid] entries, the same domain names or IP addresses need to be set in the [LoginService] section of StandaloneCommon.ini.
  
==== Default Example, Network Settings for a Stand Alone:  ====
+
For example, in
  
<source lang="ini">[Network]
+
<source lang="ini">
http_listener_port = 9000
+
[LoginService]
 +
    SRV_HomeURI = "http://127.0.0.1:9000"   
 +
    SRV_InventoryServerURI = "http://127.0.0.1:9000"
 +
    SRV_AssetServerURI = "http://127.0.0.1:9000"
 +
    SRV_ProfileServerURI = "http://127.0.0.1:9000"
 +
    SRV_FriendsServerURI = "http://127.0.0.1:9000"
 +
    SRV_IMServerURI = "http://127.0.0.1:9000"
 +
</source>
  
grid_server_url = "http://example.com:9000"
+
all the SRV_* entries need to be replaced with your externally accessible IP or fully qualified domain name (FQDN).  So again, if your domain was example.com, these entries become
  
grid_send_key = null
+
<source lang="ini">
grid_recv_key = null
+
[LoginService]
 +
    SRV_HomeURI = "http://example.com:9000"   
 +
    SRV_InventoryServerURI = "http://example.com:9000"
 +
    SRV_AssetServerURI = "http://example.com:9000"
 +
    SRV_ProfileServerURI = "http://example.com:9000"
 +
    SRV_FriendsServerURI = "http://example.com:9000"
 +
    SRV_IMServerURI = "http://example.com:9000"
 +
</source>
  
user_server_url = "http://example.com:9000"
+
==== Step 3: Change http_listener_port in bin/OpenSim.ini if necessary ====
 +
Port 9000 is the default port for a standalone.  If you wanted to use a different port then you will have to change both the ports in this section and the HTTP port used by OpenSimulator in the [Network] section of OpenSim.ini.
  
user_send_key = null
+
<source lang="ini">
user_recv_key = null
+
[Network]
 +
    http_listener_port = 9000
 +
</source>
  
asset_server_url = "http://example.com:9000"
+
=== bin/Regions/*.ini ===
  
inventory_server_url = "http://example.com:9000"
+
As a last step, the regions must be configured so that they supply external addresses that are the same as the Hypergrid addresses (e.g. example.com). See [[#Region Setup for both Grid and Standalone]].
messaging_server_url = "http://example.com:9000"</source>
+
  
==== Default Example, Network Settings for a Grided Server====
+
== Grid ==
 +
'''Note: These instructions are still under construction. They need to be changed to incorporate the [Hypergrid] setting shortcut detailed in the standalone section'''.
  
<source lang="ini">[Network]
+
To enable hypergrid for a grid, both the Robust server and the region servers (simulators) must be configured appropriately.
http_listener_port = 9000
+
 
+
grid_server_url = "http://example.com:8001"
+
grid_send_key = null
+
grid_recv_key = null
+
 
+
user_server_url = "http://example.com:8002"
+
user_send_key = null
+
user_recv_key = null
+
 
+
asset_server_url = "http://example.com:8003"
+
inventory_server_url = "http://example.com:8003"
+
messaging_server_url = "http://example.com:8006"</source>
+
 
+
==== Network Settings&nbsp;for OSGrid Attched Servers:  ====
+
 
+
<source lang="ini">[Network]
+
http_listener_port = 9000
+
grid_server_url = "http://osgrid.org:8001" ;default 8003
+
grid_send_key = "1234"
+
grid_recv_key = "1234"
+
 
+
user_server_url = "http://osgrid.org:8002"
+
user_send_key = "1234"
+
user_recv_key = "1234"
+
 
+
asset_server_url = "http://assets.osgrid.org:8003"
+
inventory_server_url = "http://osgrid.org:8004" ;default 8003
+
messaging_server_url = "http://osgrid.org:8006"</source>
+
 
+
==== Modifications needed to be applied to OpenSim.ini to enable Hypergrid  ====
+
 
+
- Change the following line at the top of the OpenSim.ini
+
<pre>hypergrid = false to true</pre>
+
- NEXT, Add or Modify the ### WORLD MAP Section as shown
+
 
+
<source lang="ini">; ##
+
; ## WORLD MAP
+
; ##
+
 
+
WorldMapModule = "WorldMap"
+
MapImageModule = "MapImageModule"
+
WorldMapModule = "HGWorldMapModule" ;NOT INCLUDED IN DEFAULT OpenSim.ini.EXAMPLE</source>
+
 
+
''Information: HGWorldMapModule will, after teleporting to another grid, clean up tiles in your map left over from the grid on which you were previously.''
+
 
+
- NEXT, Modify the [Archictecture] Section at the bottom
+
 
+
Uncomment the appropriate Include-HG* = line by removing the semi colon and making sure that is the only ONE uncommented. (example shows for a Stand Alone HG enabled installation)  
+
  
 +
=== Simulator ===
 +
The region servers (simulators) that connect to the Robust server read their configuration from file OpenSim.ini. To activate hypergrid for them, the line for Include-HGGrid in the section [Architecture] of OpenSim.ini must be uncommented:
 
<source lang="ini">[Architecture]
 
<source lang="ini">[Architecture]
;Include-Standalone = "config-include/Standalone.ini" ; DEFAULT UNCOMMENTED
+
    ;Include-Standalone   = "config-include/Standalone.ini"
Include-HGStandalone = "config-include/StandaloneHypergrid.ini"
+
    ;Include-HGStandalone = "config-include/StandaloneHypergrid.ini"
;Include-Grid = "config-include/Grid.ini"
+
    ;Include-Grid         = "config-include/Grid.ini"
;Include-HGGrid = "config-include/GridHypergrid.ini"</source>&nbsp;
+
    Include-HGGrid       = "config-include/GridHypergrid.ini"
 +
    ;Include-SimianGrid  = "config-include/SimianGrid.ini"
 +
</source>
  
Your OpenSimulator instance should now be ready for inbound &amp; outbound Hypergrid use
+
In config-include/GridCommon.ini the network addresses in the following sections must be changed to your external network address:
 +
<source lang="ini">
 +
[GridService]
 +
    ; === HG ONLY ===
 +
    ;; Change this to the address of your Gatekeeper service
 +
    ;; (usually bundled with the rest of the services in one
 +
    ;; Robust server in port 8002, but not always)
 +
    Gatekeeper="http://mygridserver.com:8002"
  
== The 4096 Regions Limit  ==
+
[Messaging]
Due to a viewer issue, teleports to destinations that are more than 4096 regions away in any direction will not work as expected. Most viewers will do the teleport but the destination region will not be rendered and thus remain invisible to you. What this means in practice is that if you wish to teleport from a region located at cell coordinates (1000, 1000) you cannot go beyond (5095, 5095). To reach destinations that are placed at farer locations, you should either place your own region closer to the destination, or use some intermediate region that is reachable from both your region and the destination region.
+
    ; === HG ONLY ===  
 +
    ;; Change this to the address of your Gatekeeper service
 +
    ;; (usually bundled with the rest of the services in one
 +
    ;; Robust server in port 8002, but not always)
 +
    Gatekeeper = "http://mygridserver.com:8002"
  
Refer to [[Public Hypergrid Nodes]] to see some known grids and standalones and where they are located.  
+
[HGInventoryAccessModule]
 +
    ;
 +
    ; === HG ONLY ===
 +
    ; Change this to your server
 +
    ; accessible from other grids
 +
    ;
 +
    HomeURI = "http://mygridserver.com:8002"
 +
    Gatekeeper = "http://mygridserver.com:8002"
  
== Important Notes ==
+
[UserAgentService]
Make sure you have a 'home' set. If your home region doesn't exist, the hyperlink TPs may not work. To set your home, go to one of your local regions and "Set Home" from the viewer.  
+
    ;
 +
    ; === HG ONLY ===
 +
    ; Change this to your user agent server (HG robust)
 +
    ;
 +
    UserAgentServerURI = "http://mygridserver.com:8002"
  
To Enable scripted Teleporting between regions, standalone, HyperGrid etc, you can use osTeleportAgent function, Example here: [[OsTeleportAgent|OsTeleportAgent]]
+
</source>
  
== Linking regions (Optional) ==
+
=== Robust Services ===
 +
The Robust server is started with configuration file Robust.HG.ini instead of Robust.ini. If this file does not yet exist in your installation, create it by making a copy of Robust.HG.ini.example. Make the changes appropriate for your environment (e.g. adjust the database connection string). For hypergrid, the following settings are relevant:
 +
 
 +
<source lang="ini">
 +
[LoginService]
 +
    GatekeeperURI = "http://127.0.0.1:8002"
  
=== Method 1 ===
+
    SRV_HomeURI = "http://127.0.0.1:8002"
 +
    SRV_InventoryServerURI = "http://127.0.0.1:8002"
 +
    SRV_AssetServerURI = "http://127.0.0.1:8002"
 +
    SRV_ProfileServerURI = "http://127.0.0.1:8002/user"
 +
    SRV_FriendsServerURI = "http://127.0.0.1:8002"
 +
    SRV_IMServerURI = "http://127.0.0.1:8002"
  
On the console, type for example:
+
[GatekeeperService]
<pre>link-region &lt;Xloc&gt; &lt;Yloc&gt; http://osl2.nac.uci.edu:9006/</pre>
+
    ; ... (other settings in this section) ...
Use Xloc and Yloc that make sense to your world, i.e. close to your regions, but not adjacent. Replace <nowiki>http://osl2.nac.uci.edu:9006/</nowiki> with the URL (i.e. protocol, domain name/ip address, and http_listener_port) of the simulator where the region is running you want to link to.
+
    ExternalName = "http://127.0.0.1:8002"
You can link to a specific region within an instance, by using the name of the region at the end, for example:
+
<pre>link-region &lt;Xloc&gt; &lt;Yloc&gt; http://osl2.nac.uci.edu:9006/ UCI Welcome</pre>
+
The above syntax is the preferred one for this console command starting with revision r/14611 (commit 72748746; this will be in release 0.7.1). The following syntax was used before and is still supported but deprecated in current  (development) versions of OpenSimulator:
+
<pre>link-region &lt;Xloc&gt; &lt;Yloc&gt; osl2.nac.uci.edu:9006</pre> or <pre>link-region 997 997 osl2.nac.uci.edu:9006:UCI Welcome</pre>
+
Please note that this older syntax uses just the hostname without a protocol specification like <nowiki>http://</nowiki> and a colon instead of a space to append a region name.
+
  
=== Method 2  ===
+
[HGInventoryService]
 +
    HomeURI = "http://127.0.0.1:8002"
  
There is also some initial support for reading the links from a xml file.  
+
; * The interface that local users get when they are in other grids.
 +
; * This restricts the access that the rest of the world has to
 +
; * the assets of this world.
 +
; *
 +
[HGAssetService]
 +
    HomeURI = "http://127.0.0.1:8002"
 +
</source>
  
Use the console command: link-region &lt;URI&gt; [&lt;excludeList&gt;]  
+
If you want to change the port(s) used with these addresses, you will also need to adjust the ports in parameter ''''ServiceConnectors'''' in section [Startup] and probably the port configured in section [Network] as well.
  
The uri can be either the path of a local xml file or a xml document on a http server.  
+
After these adjustments, the Robust server can be started. On Windows/.NET:
 +
Robust -inifile=Robust.HG.ini
 +
Or, with Mono (e.g. on Linux or OSX):
 +
mono Robust.exe -inifile=Robust.HG.ini
  
The format of the xml file is:  
+
== Grid and Standalone ==
 +
Finally, all your regions must use the same external address that is set for GatekeeperService, for example:
 +
<source lang="ini">[Region One]
 +
    ; ... (other settings in this section) ...
 +
    ExternalHostName = "example.com"
 +
</source>
  
<source lang="xml"><Nini>
+
= Access =
<Section Name="Region1">
+
<Key Name="xloc" Value="1002"/>
+
<Key Name="yloc" Value="1006" />
+
<Key Name="externalPort" Value="9006" />
+
<Key Name="externalHostName" Value="osl2.nac.uci.edu" />
+
<Key Name="localName" Value="OSGrid-Gateway" />
+
<Key Name="real-xloc" Value="10222"/> //optional field that gives the region's real location on its home grid
+
<Key Name="real-yloc" Value="10265" /> //optional field that gives the region's real location on its home grid
+
</Section>
+
<Section Name="Region2">
+
...
+
</Section>
+
...
+
</Nini></source>
+
  
[Note] The section names can be anything you want, but they all should be different and have no spaces in the name.  
+
If users are to reach your Hypergrid installation from outside your LAN, they must be able to reach all the required ports and addresses.  For a home installation, this means forwarding TCP and UDP requests through your router and any installed firewalls.  See [[Network Settings]] for the required ports and addresses.
  
==== ExcludeList: ====
+
If you or other users also need to enter your Hypergrid installation from the same LAN, they also need to be able to resolve the External Hostname even if this is an Internet address (WAN) rather than a LAN address. Not all routers have this capability.  For more information on this, please see [[NAT Loopback Routers]].
  
The exclude list is a single string paramater with the format: excludeList:&lt;SectionName&gt;[;&lt;SectionName&gt;]
+
= Previous Instructions =
  
This means that while reading from the xml file any sections that are listed in the excludeList will be ignored and no HyperGrid link created for them.  
+
[[Installing and Running Hypergrid On OpenSimulator 0.7.3 to 0.7.5]]
  
This could allow, link lists to be created on a webserver that everyone could add their own regions to, and then they just make sure they add their own section name(s) to the exclude list on their own region(s).  
+
[[Installing and Running Hypergrid On OpenSimulator 0.7.2 to 0.7]]
  
So for example, someone might create a editable online list for the up coming OpenSimulator's 2nd birthday. Which might look something like:
+
[[Installing and Running Hypergrid On OpenSimulator 0.6.9]]
  
<source lang="xml"><Nini>
+
= Additional References =
<Section Name="OSGrid-Party">
+
<Key Name="xloc" Value="1002"/>
+
<Key Name="yloc" Value="1006" />
+
<Key Name="externalPort" Value="9006" />
+
<Key Name="externalHostName" Value="osl2.nac.uci.edu" />
+
<Key Name="localName" Value="OSGrid-Gateway" />
+
</Section>
+
<Section Name="UCIGrid-Party">
+
...
+
</Section>
+
</Nini></source> I could then add my own region to the list with the section name "MW-Party". Then when I startup that region that I want to be part of this hypergrid, I use the command:
+
<pre>"link-region &lt;URI of xml file&gt; excludeList:MW-Party"</pre>
+
This is so that my region doesn't try to create a hyper link to itself.
+
  
=== Method 3 (dynamic)  ===
+
Implemented osFunctions: [[OSSL Implemented]]
  
Starting in r8193, if you're in an HG-enabled region, you'll be able to dynamically link sims, and TP there, in any one of these ways (and probably more). All you need to know is the target address, e.g. from the list below.
+
Enabling osFunctions: [[OSSL Enabling Functions]]
  
1) Type for example secondlife://ucigrid04.nacs.uci.edu:9007/ in the chat box, pull up the chat history and click on that link
+
HyperGrid Security: [[Hypergrid Security]]
  
2) Pull up the map and search for things like ucigrid04.nacs.uci.edu:9007
+
Banning Foreign Users in Hypergrid: [[Banning Foreign Users in Hypergrid]]
  
3) Using the embedded browser visit pages that have links like '''secondlife://ucigrid04.nacs.uci.edu:9007'''/ (there's one up at http://www.ics.uci.edu/~lopes/hypergrid/test.html)
+
Public HyperGrid Nodes Listing: [[Public Hypergrid Nodes]]  
 
+
Again, you can link to a specific region within an instance by adding the name of that region at the end, like this: '''secondlife://ucigrid04.nacs.uci.edu:9007:Gateway 7000/'''
+
 
+
=== Checking the 4096 Regions Limit ===
+
Due to the [[#The 4096 Regions Limit|4096 Regions Limit]], there is a check in OpenSimulator since version 0.7.0.1 which verifies that the intended link will be within reach of any of your regions. If none of the regions in your grid or standalone is located within a distance radius of 4096 regions from the region to be linked, then the link will be rejected. You can disable this check in StandaloneCommon.ini (for standalones) or Robust.HG.ini (for grids) with
+
<source lang="ini">[GridService]
+
      Check4096 = false</source>
+
 
+
=== Persistent Linked Regions ===
+
With grid mode, methods 1 and 2 will work on both the Robust console and the region console. On the region console, linked regions will not be stored in the database and will vanish when the region is shut down. Regions that are linked on the Robust console will be persistent over restarts until they are explicitly removed with unlink-region.
+
 
+
== Listing linked regions ==
+
 
+
To see a list of all linked regions, use the following command on the console (available since 0.7.1 r/13457, also in 0.7-post-fixes):
+
<pre>show hyperlinks</pre>
+
 
+
== Unlinking regions ==
+
 
+
On the console, use the command:
+
<pre>unlink-region &lt;local region name&gt;</pre>
+
 
+
As local region name you should use what command <tt>show hyperlinks</tt> shows for the region that you want to unlink, for example
+
 
+
<pre>unlink-region http://osl2.nac.uci.edu:9006/</pre>
+
 
+
With OpenSimulator revisions before r/14611 (i.e. before release 0.7.1), the syntax is a little different, for example
+
<pre>unlink-region osl2.nac.uci.edu:9006</pre>
+
 
+
Please note that region names can only have a maximum length of 32 characters when using MySQL as a database. If a linked region has a longer name, it will be truncated. The unlink-region command will only find a region, if the name is also truncated to a maximum length of 32 characters. This limit has been extended to 128 characters for the full local region name in OpenSimulator 0.7.1 (since r/14611).
+
 
+
== Additional References ==
+
 
+
Implemented osFunctions: [[OSSL Implemented|OSSL Implemented]]
+
 
+
Enabling osFunctions: [[OSSL Enabling Functions|OSSL Enabling Functions]]
+
 
+
HyperGrid Security: [[Hypergrid Security|Hypergrid Security]]
+
 
+
Banning Foreign Users in Hypergrid: [[Banning Foreign Users in Hypergrid|Banning Foreign Users in Hypergrid]]
+
 
+
Public HyperGrid Nodes Listing: [[Public Hypergrid Nodes|Public Hypergrid Nodes]]  
+
  
 
Hypergrid Inventory Access: [[Hypergrid Inventory Access|Hypergrid Inventory Access (proposal)]]  
 
Hypergrid Inventory Access: [[Hypergrid Inventory Access|Hypergrid Inventory Access (proposal)]]  
  
CATEGORY: [[:Category:Hypergrid|Hypergrid]]<br>
+
CATEGORY: [[:Category:Hypergrid|Hypergrid]]<br />
 
+
  
 
[[Category:Hypergrid]]
 
[[Category:Hypergrid]]

Latest revision as of 14:34, 21 July 2014

These are instructions for setting up the Hypergrid in OpenSimulator's standalone and grid architectures.

Before OpenSimulator 0.7.6, the HomeURI and Gatekeeper entries had to be added separately in individual modules and services configuration sectios.

However, there is now a more convenient way to do this by configuring these parameters just once in a new [Hypergrid] section of the appropriate configuration files (e.g. bin/config-include/StandaloneCommon.ini for the standalone architecture and bin/config-include/GridCommon.ini and bin/Robust.HG.ini for the grid architecture).

Below follow specific instructions when using the standalone architecture and when using the grid architecture. Finally, there is a section for actions that need to be performed in both architectures.

Contents

[edit] Installation

[edit] Standalone

[edit] bin/OpenSim.ini

The configuration for hypergrid is activated in section [Architecture] in file OpenSim.ini. Ensure that the line for Include-HGStandalone is the only one that is uncommented in this section:

[Architecture]
    ;Include-Standalone    = "config-include/Standalone.ini"
    Include-HGStandalone = "config-include/StandaloneHypergrid.ini"
    ;Include-Grid         = "config-include/Grid.ini"
    ;Include-HGGrid       = "config-include/GridHypergrid.ini"
    ;Include-SimianGrid   = "config-include/SimianGrid.ini"

[edit] bin/config-include/StandaloneCommon.ini

The StandaloneHypergrid.ini will then go on to include the StandaloneCommon.ini file in the same directory. This is where Hypergrid settings will be included.

There are two steps to this configuration.

[edit] Step 1: Set HomeURI and GatekeeperURI in [Hypergrid] section

As both the simulator and grid services are running in the same process in standalone mode, Hypergrid can be configured by putting your externally accessible address in the [Hypergrid] section.

For example, in

[Hypergrid]
  ; Uncomment the variables in this section only if you are in
  ; Hypergrid configuration. Otherwise, ignore.
 
    ;# {HomeURI} {Hypergrid} {The Home URL of this world} {}
  ;; If this is a standalone world, this is the address of this instance.
  ;; If this is a grided simulator, this is the address of the external robust server that
  ;; runs the UserAgentsService.
  ;; For example http://myworld.com:9000 or http://myworld.com:8002
  ;; This is a default that can be overwritten in some sections.
  HomeURI = "http://127.0.0.1:9000"
 
    ;# {GatekeeperURI} {Hypergrid} {The URL of the gatekeeper of this world} {}
  ;; If this is a standalone world, this is the address of this instance.
  ;; If this is a grided simulator, this is the address of the external robust server
  ;; that runs the Gatekeeper service.
  ;; For example http://myworld.com:9000 or http://myworld.com:8002
  ;; This is a default that can be overwritten in some sections.
  GatekeeperURI = "http://127.0.0.1:9000"

you need to replace "127.0.0.1" with your external IP or fully qualified domain name (FQDN). For instance, if your FQDN was example.com, your entries would be

[Hypergrid]
  HomeURI = "http://example.com:9000"
  GatekeeperURI = "http://example.com:9000"

[edit] Step 2: Set SRV_* addresses in [LoginService]

In addition to the [Hypergrid] entries, the same domain names or IP addresses need to be set in the [LoginService] section of StandaloneCommon.ini.

For example, in

[LoginService]
    SRV_HomeURI = "http://127.0.0.1:9000"    
    SRV_InventoryServerURI = "http://127.0.0.1:9000"
    SRV_AssetServerURI = "http://127.0.0.1:9000"
    SRV_ProfileServerURI = "http://127.0.0.1:9000"
    SRV_FriendsServerURI = "http://127.0.0.1:9000"
    SRV_IMServerURI = "http://127.0.0.1:9000"

all the SRV_* entries need to be replaced with your externally accessible IP or fully qualified domain name (FQDN). So again, if your domain was example.com, these entries become

[LoginService]
    SRV_HomeURI = "http://example.com:9000"    
    SRV_InventoryServerURI = "http://example.com:9000"
    SRV_AssetServerURI = "http://example.com:9000"
    SRV_ProfileServerURI = "http://example.com:9000"
    SRV_FriendsServerURI = "http://example.com:9000"
    SRV_IMServerURI = "http://example.com:9000"

[edit] Step 3: Change http_listener_port in bin/OpenSim.ini if necessary

Port 9000 is the default port for a standalone. If you wanted to use a different port then you will have to change both the ports in this section and the HTTP port used by OpenSimulator in the [Network] section of OpenSim.ini.

[Network]
    http_listener_port = 9000

[edit] bin/Regions/*.ini

As a last step, the regions must be configured so that they supply external addresses that are the same as the Hypergrid addresses (e.g. example.com). See #Region Setup for both Grid and Standalone.

[edit] Grid

Note: These instructions are still under construction. They need to be changed to incorporate the [Hypergrid] setting shortcut detailed in the standalone section.

To enable hypergrid for a grid, both the Robust server and the region servers (simulators) must be configured appropriately.

[edit] Simulator

The region servers (simulators) that connect to the Robust server read their configuration from file OpenSim.ini. To activate hypergrid for them, the line for Include-HGGrid in the section [Architecture] of OpenSim.ini must be uncommented:

[Architecture]
    ;Include-Standalone    = "config-include/Standalone.ini"
    ;Include-HGStandalone = "config-include/StandaloneHypergrid.ini"
    ;Include-Grid         = "config-include/Grid.ini"
    Include-HGGrid       = "config-include/GridHypergrid.ini"
    ;Include-SimianGrid   = "config-include/SimianGrid.ini"

In config-include/GridCommon.ini the network addresses in the following sections must be changed to your external network address:

[GridService]
    ; === HG ONLY === 
    ;; Change this to the address of your Gatekeeper service
    ;; (usually bundled with the rest of the services in one 
    ;; Robust server in port 8002, but not always)
    Gatekeeper="http://mygridserver.com:8002"
 
[Messaging]
    ; === HG ONLY === 
    ;; Change this to the address of your Gatekeeper service
    ;; (usually bundled with the rest of the services in one 
    ;; Robust server in port 8002, but not always)
    Gatekeeper = "http://mygridserver.com:8002"
 
[HGInventoryAccessModule]
    ;
    ; === HG ONLY ===
    ; Change this to your server
    ; accessible from other grids
    ;
    HomeURI = "http://mygridserver.com:8002"
    Gatekeeper = "http://mygridserver.com:8002"
 
[UserAgentService]
    ;
    ; === HG ONLY ===
    ; Change this to your user agent server (HG robust)
    ;
    UserAgentServerURI = "http://mygridserver.com:8002"

[edit] Robust Services

The Robust server is started with configuration file Robust.HG.ini instead of Robust.ini. If this file does not yet exist in your installation, create it by making a copy of Robust.HG.ini.example. Make the changes appropriate for your environment (e.g. adjust the database connection string). For hypergrid, the following settings are relevant:

[LoginService]
    GatekeeperURI = "http://127.0.0.1:8002"
 
    SRV_HomeURI = "http://127.0.0.1:8002"
    SRV_InventoryServerURI = "http://127.0.0.1:8002"
    SRV_AssetServerURI = "http://127.0.0.1:8002"
    SRV_ProfileServerURI = "http://127.0.0.1:8002/user"
    SRV_FriendsServerURI = "http://127.0.0.1:8002"
    SRV_IMServerURI = "http://127.0.0.1:8002"
 
[GatekeeperService]
    ; ... (other settings in this section) ...
    ExternalName = "http://127.0.0.1:8002"
 
[HGInventoryService]
    HomeURI = "http://127.0.0.1:8002"
 
; * The interface that local users get when they are in other grids.
; * This restricts the access that the rest of the world has to
; * the assets of this world.
; *
[HGAssetService]
    HomeURI = "http://127.0.0.1:8002"

If you want to change the port(s) used with these addresses, you will also need to adjust the ports in parameter 'ServiceConnectors' in section [Startup] and probably the port configured in section [Network] as well.

After these adjustments, the Robust server can be started. On Windows/.NET:

Robust -inifile=Robust.HG.ini

Or, with Mono (e.g. on Linux or OSX):

mono Robust.exe -inifile=Robust.HG.ini

[edit] Grid and Standalone

Finally, all your regions must use the same external address that is set for GatekeeperService, for example:

[Region One]
    ; ... (other settings in this section) ...
    ExternalHostName = "example.com"

[edit] Access

If users are to reach your Hypergrid installation from outside your LAN, they must be able to reach all the required ports and addresses. For a home installation, this means forwarding TCP and UDP requests through your router and any installed firewalls. See Network Settings for the required ports and addresses.

If you or other users also need to enter your Hypergrid installation from the same LAN, they also need to be able to resolve the External Hostname even if this is an Internet address (WAN) rather than a LAN address. Not all routers have this capability. For more information on this, please see NAT Loopback Routers.

[edit] Previous Instructions

Installing and Running Hypergrid On OpenSimulator 0.7.3 to 0.7.5

Installing and Running Hypergrid On OpenSimulator 0.7.2 to 0.7

Installing and Running Hypergrid On OpenSimulator 0.6.9

[edit] Additional References

Implemented osFunctions: OSSL Implemented

Enabling osFunctions: OSSL Enabling Functions

HyperGrid Security: Hypergrid Security

Banning Foreign Users in Hypergrid: Banning Foreign Users in Hypergrid

Public HyperGrid Nodes Listing: Public Hypergrid Nodes

Hypergrid Inventory Access: Hypergrid Inventory Access (proposal)

CATEGORY: Hypergrid

Personal tools
General
About This Wiki