This forum uses cookies
This forum makes use of cookies to store your login information if you are registered, and your last visit if you are not. Cookies are small text documents stored on your computer; the cookies set by this forum can only be used on this website and pose no security risk. Cookies on this forum also track the specific topics you have read and when you last read them. Please confirm whether you accept or reject these cookies being set.

A cookie will be stored in your browser regardless of choice to prevent you being asked this question again. You will be able to change your cookie settings at any time using the link in the footer.

Eigene Eintwicklungsumgebung mit Ubuntu Server 20.04 LTS 64 Bit Version - Teil 11
#1
Heute möchte ich meine Standalone nun auch endlich an das HG anbinden. Es sind nur wenige Schritte.

Ich verwende zum Test nur insgesammt 4 Ports!

Das sind die 3 udp Ports (9010, 9011, 9012) für die Regionen und einen 9001 tcp Port.

Im Router konfiguriert Portweiterleitung Protokoll udp von 9010 an 9010
Im Router konfiguriert Portweiterleitung Protokoll udp von 9011 an 9011
Im Router konfiguriert Portweiterleitung Protokoll udp von 9012 an 9012
Im Router konfiguriert Portweiterleitung Protokoll tcp von 9001 an 9001

Ein Blick auf meine Regions.ini:

Ich verwende wie schon gesagt, hier nur die Ports 9001, 9010, 9011 und 9012.

Eine erste Anpassung ist in der Regions.ini erforderlich:

Unter ExternalHostName = mein DynDNS Name ohne http am Anfang eintragen. Dies gilt aber nur im LAN! Nicht im VPS verwenden!

[GermansTEST]

RegionUUID = 7517391a-7480-4296-a0c1-248a8a44845e
Location = 1000,1000
SizeX = 256
SizeY = 256
SizeZ = 256
InternalAddress = 0.0.0.0
InternalPort = 9010
ResolveAddress = False
ExternalHostName = mein DynDNS Name ohne http am Anfang
MaptileStaticUUID = 00000000-0000-0000-0000-000000000000

; [Testland2]
; RegionUUID = 8f02281f-coab-499c-af15-eb535b1399f2
; Location = 2000,2000
; SizeX = 256
; SizeY = 256
; SizeZ = 256
; InternalAddress = 0.0.0.0
; InternalPort = 9011
; ResolveAddress = False
; ExternalHostName = mein DynDNS Name ohne http am Anfang
; MaptileStaticUUID = 00000000-0000-0000-0000-000000000000

[sandbox]
RegionUUID = f73d48de-4865-49b3-8f4c-a7edcef9b638
Location = 3000,3000
SizeX = 256
SizeY = 256
SizeZ = 256
InternalAddress = 0.0.0.0
InternalPort = 9012
ResolveAddress = False
ExternalHostName = mein DynDNS Name ohne http am Anfang
MaptileStaticUUID = 00000000-0000-0000-0000-000000000000

In der OpenSim.ini abändern:

[Const]
    ; this section defines constants for grid services
    ; to simplify other configuration files default settings

    ;# {BaseHostname} {} {BaseHostname} {"example.com" "127.0.0.1"} "127.0.0.1"
    BaseHostname = "127.0.0.1"

    ;# {BaseURL} {} {BaseURL} {"http://${Const|BaseHostname}} "http://${Const|BaseHostname}"
    BaseURL = http://${Const|BaseHostname}

    ; If you run a grid, several services should not be availble to world, access to them should be blocked on firewall
    ; PrivatePort should closed at the firewall.

    ;# {PublicPort} {} {PublicPort} {8002 9000} "8002"
    PublicPort = "9001"

    ; you can also have them on a diferent url / IP
    ;# {PrivURL} {} {PrivURL} {"http://${Const|BaseURL}} "${Const|BaseURL}"
    PrivURL = ${Const|BaseURL}

    ;grid default private port 8003, not used in standalone
    ;# {PrivatePort} {} {PrivatePort} {8003} "8003"
    ; port to access private grid services.
    ; grids that run all their regions should deny access to this port
    ; from outside their networks, using firewalls
    ;PrivatePort = "8003"


Ganz unten in der .ini Include-Architecture = "config-include/StandaloneHypergrid.ini" Semikolon entfernen


[Architecture]
   
    ;# {Include-Architecture} {} {Choose one of the following architectures} {config-include/Standalone.in>
    ;; Uncomment one of the following includes as required.  For instance, to create a standalone OpenSim,
    ;; uncomment Include-Architecture = "config-include/Standalone.ini"
    ;;
    ;; Then you will need to copy and edit the corresponding *Common.example file in config-include/
    ;; that the referenced .ini file goes on to include.
    ;;
    ;; For instance, if you chose "config-include/Standalone.ini" then you will need to copy
    ;; "config-include/StandaloneCommon.ini.example" to "config-include/StandaloneCommon.ini" before
    ;; editing it to set the database and backend services that OpenSim will use.
    ;;
    ;Include-Architecture = "config-include/Standalone.ini"
    Include-Architecture = "config-include/StandaloneHypergrid.ini"
    ; Include-Architecture = "config-include/Grid.ini"
    ; Include-Architecture = "config-include/GridHypergrid.ini"
    ; Include-Architecture = "config-include/SimianGrid.ini"
    ; Include-Architecture = "config-include/HyperSimianGrid.ini"


Die StandaloneHypergrid.ini wird nur durchlaufen. Der Verweis zeigt ganz unten auf die StandaloneCommon.ini

Folgendes abändern in der  StandaloneCommon.ini: 


[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
    ;; This is a default that can be overwritten in some sections.
    HomeURI = "http://mein DynDNS Name:9001"

    ;# {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
    ;; This is a default that can be overwritten in some sections.
    GatekeeperURI = "http://mein DynDNS Name:9001"

Unter dem Abschnitt LoginService:

[LoginService]
   
WelcomeMessage = "Welcome, Avatar!"
    ;; If you have Gatekeeper set under [Hypergrid], no need to set it here, leave it commented
    ; GatekeeperURI = "${Const|BaseURL}:${Const|PublicPort}"

    SRV_HomeURI = "http://mein DynDNS Name:9001"
    SRV_InventoryServerURI = "http://mein DynDNS Name:9001"
    SRV_AssetServerURI = "http://mein DynDNS Name:9001"
    SRV_ProfileServerURI = "http://mein DynDNS Name:9001"
    SRV_FriendsServerURI = "http://mein DynDNS Name:9001"
    SRV_IMServerURI = "http://mein DynDNS Name:9001"

    ;; For Viewer 2
    MapTileURL = "${Const|BaseURL}:${Const|PublicPort}/"

Un hier noch den GridInfoService anpassen:

[GridInfoService]
    ; These settings are used to return information on a get_grid_info call.
    ; Client launcher scripts and third-party clients make use of this to
    ; autoconfigure the client and to provide a nice user experience. If you
    ; want to facilitate that, you should configure the settings here according
    ; to your grid or standalone setup.
    ;
    ; See http://opensimulator.org/wiki/GridInfo

    ; login uri: for grid this is the login server URI
    login = http://mein DynDNS Name:9001

    ; long grid name: the long name of your grid
    gridname = "Mein Grid Name"

    ; short grid name: the short name of your grid
    gridnick = "Mein Grid Name"

    ; login page: optional: if it exists it will be used to tell the client to use
    ; this as splash page. May also be served from an external web server, e.g. for
    ; information on a standalone
    welcome = http://meine URL zum Aufruf /

    ; helper uri: optional: if it exists it will be used to tell the client to use
    ;                      this for all economy related things
    ;economy = ${Const|BaseURL}/economy

    ; web page of grid: optional: page providing further information about your grid
    ;about = ${Const|BaseURL}/about

    ; account creation: optional: page providing further information about obtaining
    ;                            a user account on your grid
    ;register = ${Const|BaseURL}/register

Damit ist diese im LAN befindliche Standalone nun an das HG + Teleportfunktion angebunden.

Die Freigaben mit ufw allow sollten bekannt sein.

Für die Viewer haben wir nun auch eine neue login = http://mein DynDNS Name:9001

Im letzen Beitrag setzen wir die Heilige Kuh (ein Schelm, wer etwas anderes denkt) - Mutter *Robust* ganz oben mit eigener Datenbank auf.

Und das war's dann auch schon mit der Standalone.


   

Whew Coffee
Zitieren


Gehe zu:


Benutzer, die gerade dieses Thema anschauen: 1 Gast/Gäste