{"id":469,"date":"2015-02-16T18:18:21","date_gmt":"2015-02-16T18:18:21","guid":{"rendered":"https:\/\/www.avacon.org\/handbook\/?page_id=469"},"modified":"2020-04-29T20:12:39","modified_gmt":"2020-04-29T20:12:39","slug":"grid-add-new-region","status":"publish","type":"page","link":"https:\/\/www.avacon.org\/handbook\/chapter-10\/grid-add-new-region\/","title":{"rendered":"Grid Add New Region"},"content":{"rendered":"<h1>HOW TO ADD A NEW REGION TO THE AVACON GRID<\/h1>\n<p><strong>1. Place the new regions<\/strong> where they will be located on the <a href=\"https:\/\/docs.google.com\/a\/avacon.org\/spreadsheet\/ccc?key=0AsIYiro012bsdFZ3QXdvRkhEazcwLW5kMVBHR3czT3c#gid=0\" target=\"_blank\" rel=\"noopener noreferrer\">AvaCon Grid Region Map<\/a><\/p>\n<p><strong>2. Edit each region square on the map<\/strong> to the correct Region Name, Center, UDP Port (increment up from last port used, goes in regions.ini), TCP port (increment up from last port used, goes in opensim.ini), Estate name, and ID (all lower case, use a &#8211; for spaces).<\/p>\n<p><strong>3. Go to the MySQL screen<\/strong> to create a new database for the new region<\/p>\n<p>at the mysql console type &#8220;create database &lt;name&gt;;&#8221;<\/p>\n<p><strong>4. On the AvGrid server<\/strong>, create a copy of an existing region folder from \/home\/avgrid\/grid_01\/configs<\/p>\n<p><strong>5. Rename the folder<\/strong> to the region-ID (all lower case, use a &#8211; for spaces) to match the region name.<\/p>\n<p><strong>6. Edit \/home\/avgrid\/grid_01\/configs\/[region-ID]\/Regions\/regions.ini<\/strong><\/p>\n<p>&#8211; Name the region as it will appear on the Grid map<br \/>\n&#8211; Grab a new random UUID from http:\/\/www.famkruithof.net\/uuid\/uuidgen and paste into RegionUUID =<br \/>\n&#8211; Enter the grid Location coordinates from the AvaCon Grid Region Map<br \/>\n&#8211; Enter the UDP port from the AvaCon Grid Region Map in Internal Port =<\/p>\n<p>&nbsp;<\/p>\n<p><strong>7. Edit \/home\/avgrid\/grid_01\/configs\/[region-ID]\/opensim.ini<\/strong><\/p>\n<p>&#8211; Search for &#8220;http_listener_port =&#8221; and change the port # to the TCP port listed in AvaCon Grid Region Map<\/p>\n<p>&#8211; Search for &#8220;Include-Architecture =&#8221; edit string replace copied region name with new [region-ID]<\/p>\n<p>&#8211; Search for &#8220;PIDFile =&#8221; edit string replace copied region name with new [region-ID]<\/p>\n<p>&#8211; Search for &#8220;regionload_regionsdir=&#8221; edit string replace copied region name with new [region-ID]<\/p>\n<p>&nbsp;<\/p>\n<p><strong>8. Edit \/home\/avgrid\/grid_01\/configs\/[region-ID]\/config-include\/FlotsamCache.ini<\/strong><\/p>\n<p>&#8211; Change CacheDirectory = \/home\/avgrid\/grid_01\/region_cache\/[region-ID]<\/p>\n<p>&nbsp;<\/p>\n<p><strong>9. Edit \/home\/avgrid\/grid_01\/configs\/[region-ID]\/config-include\/GridCommon.ini<\/strong><\/p>\n<p>&#8211; change Connection String &gt; enter new database name [region-ID]<\/p>\n<p>&#8211; change Include-FlotsamCache = edit string replace copied region name with new [region-ID]<\/p>\n<p>&nbsp;<\/p>\n<p><strong>10. Edit \/home\/avgrid\/grid_01\/configs\/[region-ID]\/config-include\/GridHypergrid.ini<\/strong><\/p>\n<p>&#8211; Change Include-Common = edit string replace copied region name with new [region-ID]<\/p>\n<p>&nbsp;<\/p>\n<p><strong>11. Go to \/home\/avgrid\/grid_01\/bin<\/strong><\/p>\n<p>&#8211; make a copy of an existing [region].sh file<\/p>\n<p>&#8211; rename to [region-id].sh<\/p>\n<p>&#8211; In while string, replace old region name with [region-ID] in both places<\/p>\n<p>&#8211; Make sure owner can Read Write Execute on the .sh file<\/p>\n<p><strong>12. To make new screen tabs<\/strong><\/p>\n<p>ctrl+a c<br \/>\nto name the tab<br \/>\nits ctrl+a shift+a<br \/>\nyou should see the focus go to the name you can just backspace and type in whatever and hit enter<\/p>\n<p><strong>13. To launch region<\/strong><\/p>\n<p>go to \/home\/avgrid\/grid_01\/bin<br \/>\ntype .\/[region-ID].sh<\/p>\n<p><strong>14. Add to backup schema<\/strong><\/p>\n<p>in \/home\/avgrid\/grid_01\/00-Backups<br \/>\nthere are two shell scripts<br \/>\ndaily-backups.sh<br \/>\nand robust-backup.sh<br \/>\nyou want daily-backups.sh<br \/>\nits pretty self explanatory once you see it<br \/>\nbasically just copy and paste a line and edit it for new db&#8217;s<\/p>\n","protected":false},"excerpt":{"rendered":"<p>HOW TO ADD A NEW REGION TO THE AVACON GRID 1. Place the new regions where they will be located on the AvaCon Grid Region Map 2. Edit each region square on the map to the correct Region Name, Center, UDP Port (increment up from last port used, goes in regions.ini), TCP port (increment up [&hellip;]<\/p>\n","protected":false},"author":2,"featured_media":0,"parent":241,"menu_order":0,"comment_status":"closed","ping_status":"open","template":"","meta":{"footnotes":""},"class_list":["post-469","page","type-page","status-publish","hentry"],"_links":{"self":[{"href":"https:\/\/www.avacon.org\/handbook\/wp-json\/wp\/v2\/pages\/469","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.avacon.org\/handbook\/wp-json\/wp\/v2\/pages"}],"about":[{"href":"https:\/\/www.avacon.org\/handbook\/wp-json\/wp\/v2\/types\/page"}],"author":[{"embeddable":true,"href":"https:\/\/www.avacon.org\/handbook\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/www.avacon.org\/handbook\/wp-json\/wp\/v2\/comments?post=469"}],"version-history":[{"count":5,"href":"https:\/\/www.avacon.org\/handbook\/wp-json\/wp\/v2\/pages\/469\/revisions"}],"predecessor-version":[{"id":505,"href":"https:\/\/www.avacon.org\/handbook\/wp-json\/wp\/v2\/pages\/469\/revisions\/505"}],"up":[{"embeddable":true,"href":"https:\/\/www.avacon.org\/handbook\/wp-json\/wp\/v2\/pages\/241"}],"wp:attachment":[{"href":"https:\/\/www.avacon.org\/handbook\/wp-json\/wp\/v2\/media?parent=469"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}