In this exemple of configuration i'll use:
For the database the user opensim with the password DB_Password. (Chose whatever you want instead)
For the domain name replace domain.com by your own.

Dependency installation:
Before installing OpenSim you need Mono, MySQL and unzip.

sudo apt install gnupg ca-certificates
sudo apt-key adv --keyserver hkp://keyserver.ubuntu.com:80 --recv-keys 3FA7E0328081BFF6A14DA29AA6A19B38D3D831EF
echo "deb https://download.mono-project.com/repo/ubuntu stable-focal main" | sudo tee /etc/apt/sources.list.d/mono-official-stable.list
sudo apt update
sudo apt dist-upgrade
sudo apt install mono-complete mysql-server unzip


MySQL configuration:

sudo nano /etc/mysql/my.cnf


Add the following lines before:
!includedir /etc/mysql/conf.d/
!includedir /etc/mysql/mysql.conf.d/

[mysqld]
default_storage_engine = InnoDB
disable_log_bin
innodb_buffer_pool_size = 2G
innodb_log_file_size = 256M
innodb_log_buffer_size = 16M
innodb_flush_method = O_DIRECT
innodb_flush_log_at_trx_commit = 0
innodb_buffer_pool_instances = 2
default-authentication-plugin=mysql_native_password


Restart MySQL:

sudo service mysql restart
sudo mysql_secure_installation -u root -p


Database creation:

sudo mysql
mysql> create database opensim;
mysql> create user opensim identified by 'DB_Password';
mysql> create user 'opensim'@'localhost' identified by 'DB_Password';
mysql> GRANT ALL PRIVILEGES ON opensim.* TO 'opensim'@'localhost';
mysql> FLUSH PRIVILEGES;


Check the opensim account is mysql_native_password and disconnect from MySQL:

mysql> SELECT user,authentication_string,plugin,host FROM mysql.user;
mysql> \q


Download and Extract OpenSim:

cd ~
wget http://opensimulator.org/dist/OpenSim-LastAutoBuild.zip
mkdir ~/HG
unzip OpenSim-LastAutoBuild.zip -d HG/


Grid configuration:

cd ~/HG/bin
cp Robust.HG.ini.example Robust.HG.ini
cp OpenSim.ini.example OpenSim.ini
cp config-include/GridCommon.ini.example config-include/GridCommon.ini
cp config-include/osslEnable.ini.example config-include/osslEnable.ini


Edit the Robust.HG.ini file

nano -c ~/HG/bin/Robust.HG.ini


Edit the lines 28 - 240 - 620 - 623 - 834
Uncomment 104 - 106 - 111 - 191 - 198 - 731

	[Const]
28		BaseURL = "http://domain.com"

	[ServiceList]
104 OfflineIMServiceConnector = "${Const|PrivatePort}/OpenSim.Addons.OfflineIM.dll:OfflineIMServiceRobustConnector" 106 GroupsServiceConnector = "${Const|PrivatePort}/OpenSim.Addons.Groups.dll:GroupsServiceRobustConnector" 111 UserProfilesServiceConnector = "${Const|PublicPort}/OpenSim.Server.Handlers.dll:UserProfilesConnector" [Hypergrid] 191 HomeURI = "${Const|BaseURL}:${Const|PublicPort}" 198 GatekeeperURI = "${Const|BaseURL}:${Const|PublicPort}" [DatabaseService] 240 ConnectionString = "Data Source=localhost;Database=opensim;User ID=opensim;Password=DB_Password;Old Guids=true;SslMode=None;" [GridInfoService] 620 gridname = "NOM DE LE GRID" 623 gridnick = "nom_de_la_grid" [UserAgentService] 731 ShowUserDetailsInHGProfile = True [UserProfilesService] 834 Enabled = true


Launch Robust and make sure there is no errors:

mono ~/HG/bin/Robust.exe -inifile=Robust.HG.ini


In the Robust console create the first user:

R.O.B.U.S.T.# create user
First name [Default]: Ludo
Last name [User]: Davis
Password:
Email []:
User ID (enter for random) []:
Model name []:


Quit Robust with the quit command

R.O.B.U.S.T.# quit


Edit the OpenSim.ini file

nano -c ~/HG/bin/OpenSim.ini


Edit the lines: 53 - 1164 - 1179 - 1141 - 1202
Uncomment: 356 - 773 - 778 - 782 - 787 - 795 - 1152 - 1192 - 1276 - 1313
Comment: 1310

	[Const]
53		BaseHostname = "domain.com"

	[Map]
356		GenerateMaptiles = true

	[Messaging]
773		OfflineMessageModule = "Offline Message Module V2"
778		OfflineMessageURL = ${Const|PrivURL}:${Const|PrivatePort}
782		StorageProvider = OpenSim.Data.MySQL.dll
787		MuteListModule = MuteListModule
792		ForwardOfflineGroupMessages = true

	[Groups]
1141		Enabled = true
1152		Module = "Groups Module V2"
1164		ServicesConnectorModule = "Groups HG Service Connector"
1179		GroupsServerURI = ${Const|BaseURL}:${Const|PrivatePort}
1192		MessagingModule = "Groups Messaging Module V2"
1202		MessageOnlineUsersOnly = true

	[UserProfiles]
1276		ProfileServiceURL = "${Const|BaseURL}:${Const|PublicPort}"

	[Architecture]
1310		; Include-Architecture = "config-include/Standalone.ini"
1313		Include-Architecture = "config-include/GridHypergrid.ini"

 

Edit the GridCommon.ini file

nano -c ~/HG/bin/config-include/GridCommon.ini


Edit the line19
Uncomment 16 - 49
Comment 9

	[DatabaseService]
9		; Include-Storage = "config-include/storage/SQLiteStandalone.ini";
16		StorageProvider = "OpenSim.Data.MySQL.dll"
19		ConnectionString = "Data Source=localhost;Database=opensim;User ID=opensim;Password=DB_Password;Old Guids=true;SslMode=None;"

	[Hypergrid]
49		GatekeeperURI = "${Const|BaseURL}:${Const|PublicPort}"


Firewall configuration:

sudo ufw allow "OpenSSH"
sudo ufw allow 8002/tcp
sudo ufw allow 9000/tcp
sudo ufw allow 9000:9100/udp
sudo ufw enable


If the server is behind a router:
Create a NAT for ports 8002 in TCP and 9000-9100 TCP/UDP
Example:


NAT reflection must be enable.
Example:


You need to edit the Region.ini file with the external IP (not the domain name) and internal.

InternalAddress = IP_INTERNE
ExternalHostName = IP_EXTERNE


Create a route:

iptables -t nat -A OUTPUT --dst IP_EXTERNE -p tcp --dport 9000:9100 -j DNAT --to-destination IP_INTERNE
iptables -t nat -A OUTPUT --dst IP_EXTERNE -p udp --dport 9000:9100 -j DNAT --to-destination IP_INTERNE

16398 thoughts on “Install OpenSim 0.9.2.2 in Grid mode on Ubuntu 20.04”

  1. Friday, 07 June 2024 17:32
    Если вам нужен потребительский кредит, канал Потребительские кредиты - вся информация – ваш лучший помощник. Мы собрали все предложения банков, рассказали о рисках и нюансах. Удобно, просто и информативно. Подписывайтесь и будьте финансово грамотными!
  2. Friday, 07 June 2024 17:47

    For the reason that the admin of this website is working, no question very quickly it will be well-known, due to its quality contents.

    http://pikucha.ru/santexnika/polotencesushitel-i-stoyak/kuvshinka-rakovina.html
    http://oldsite.profbez.ru/shop/index.php?links_exchange=yes&show_all=yes
    http://oteplicah.ru/drugoe/armirovanie-fundamenta
    http://kontinent124.ru/page/3
    http://poperechny.net/interesnie-fakti.html
  3. Friday, 07 June 2024 19:47

    Howdy! This post couldn't be written any better! Reading through this post reminds me of my old room mate! He always kept talking about this. I will forward this post to him. Pretty sure he will have a good read. Thanks for sharing!

    http://llflot.ru/ekonomika/kak-prevratit-tank-v-korovu.html
    http://cavale.enseeiht.fr/redmine/issues/215
    http://d-harms.ru/articles/chto-podarit-na-rozhdenie-rebenka.html
    http://mel-ok24.ru/kino/v-ofise-zelenskogo-prigrozili-kitau-agressivnoi-reakciei-v-slychae-pomoshi-rossii.html
    http://ветерантюмгео.рф/novosti-meropriyatiya/page/4/
  4. Friday, 07 June 2024 21:46

    you are in point of fact a excellent webmaster. The web site loading velocity is amazing. It seems that you are doing any unique trick. Furthermore, The contents are masterpiece. you have done a magnificent activity in this topic!

    http://novinkimebeli.ru/dachnyj-stol/
    http://animalprotect.org/forum/index.php?action=profile;u=4799;area=showposts;sa=topics;start=30
    http://seeiptv.ru/instrukciya-po-nastrojke-pulta-rostelekom/
    http://stroymix-v.ru/poleznye-sovety/tehnicheskie-novinki-i-prognozy-v-sfere.html
    http://kontinent124.ru/page/3
  5. Friday, 07 June 2024 23:45

    What's up to all, how is all, I think every one is getting more from this web page, and your views are fastidious for new people.

    http://avtomanuali.ru/main/179-ustroystvo-obsluzhivanie-i-rem.html
    http://siberica96.ru/gay_ce_bolse_y_vyigryvae_e_bolse_nasi_soperniki_oya_prerva_nasu_seriyu.html
    http://stlouisbluesclub.com/read-blog/339_what-should-i-pay-attention-to-when-buying-a-diploma-or-certificate.html
    http://www.prairiebarncottage.com/product/dark-floral-birch-serving-tray/
    http://mini-server.ru/books/37-tcp-ip/573-check-routing
  6. Saturday, 08 June 2024 01:44

    Keep this going please, great job!

    http://occ24.ru/preimushhestva-pokupki-attestata/
    http://i-efremov.ru/osnovnie-dati-zhizni-i-tvorchestva.html
    http://opt-dostawka.ru/preimushhestva-obrazovaniya-v-rossii-dlya-inostrannyx-studentov/
    http://www.ozelenitel-armavir.ru/page_proizvodstvo-tsvetochnoj-rassady.html
    http://seeiptv.ru/instrukciya-po-nastrojke-pulta-rostelekom/
  7. Saturday, 08 June 2024 03:44

    Good day! This post couldn't be written any better! Reading this post reminds me of my old room mate! He always kept chatting about this. I will forward this write-up to him. Pretty sure he will have a good read. Thanks for sharing!

    http://www.prosmi.ru/catalog/184
    http://gss-mo.ru/inter-vklyuchit-nyukuri-v-sdelku-po-vidmeru.html
    http://www.indianhighcaste.com/read-blog/331_we-buy-a-university-diploma-on-the-internet-expert-recommendations.html
    http://cheat-v2.ru/dota/atf-pokinul-quest-esports.html
    http://nkrs.rsko.cz/phpbb/posting.php?mode=quote&f=118&p=3700764
  8. Saturday, 08 June 2024 05:45

    I savor, result in I discovered just what I was taking a look for. You've ended my four day lengthy hunt! God Bless you man. Have a nice day. Bye

    http://mirledi24.ru/page/119
    http://bestnews.lv/news/pokupka_diploma_kakuju_professiju_vybrat/2022-02-26-4072
    http://minix3.ru/man/man8/tcpd.8.html
    http://www.artem-energo.ru/forums.php?m=posts&p=16434
    http://pro-parovoz.ru/index.php/component/k2/97-база-паровоза.html
  9. Saturday, 08 June 2024 06:16
    эскорт модели - эскорт москва вакансии, эскорт сайт
  10. Saturday, 08 June 2024 07:48

    Just desire to say your article is as astounding. The clearness in your submit is just nice and that i can suppose you're a professional in this subject. Fine along with your permission let me to grab your RSS feed to keep updated with drawing close post. Thanks a million and please continue the rewarding work.

    http://nehomesdeaf.org/polezno-znat/kak-napisat-diplomnuju-po-pravu/
    http://sevastopolkino.ru/details.php?image_id=2514
    http://poiskstariny.ru/category/kladoiskatelstvo/zona-poiska/
    http://www.ssangyong-echoauto.ru/lenta-31.html
    http://inmogl.ru/2017/04/obnovit-sberbank.html