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

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

  1. Saturday, 06 July 2024 03:35

    Здравствуйте!
    Хочу поделиться своим опытом по заказу аттестата ПТУ. Думал, что это невозможно, и начал искать информацию в интернете по теме: купить диплом в нижнем новгороде, купить диплом отзывы, купить диплом в каменске-уральском, купить диплом менеджера, купить диплом в ялте. Постепенно углубляясь в тему, нашел отличный ресурс здесь: https://tropicplants.forumkz.ru/viewtopic.php?id=4656#p21075
    http://torica.4adm.ru/viewtopic.php?f=6&t=1329
    http://forum-pmr.net/member.php?u=42748
    https://zarabotok.userforum.ru/viewtopic.php?id=6496#p16824
    https://animalprotect.org/forum/index.php?topic=86229.0
    и остался очень доволен!
    Теперь у меня есть диплом сварщика о среднем специальном образовании, и я обеспечен на всю жизнь!
    Удачи!
  2. Saturday, 06 July 2024 03:57
    Владеете лазерным принтером и МФУ в Киевской области и ищете методы уменьшения расходов на печать? Обратите внимание на товары магазина и сервсиного центра ПринтерсХАБ.

    Ассортимент картриджей представляет собой доступные всем альтернативы оригинальным, что позволяет многократно экономить, сохраняя качество печати.

    Мы гарантируем надежность и высокое качество наших картриджей для разнообразных моделей принтеров и МФУ.

    Не теряйте время и денежные средства на дорогие оригинальные картриджи. Переходите на более экономные варианты и начинайте уменьшать расходы, не ущемляя качество.

    Хотите узнать больше? Покупайте оригинальные картриджи https://printershub.com.ua/ru/kartridzhi
  3. Saturday, 06 July 2024 08:53
    Hello! pharmacy rx one excellent web site.
  4. Saturday, 06 July 2024 10:57
    Здравствуйте!
    Наши специалисты предлагают быстро и выгодно заказать диплом, который выполняется на бланке ГОЗНАКа и заверен мокрыми печатями, водяными знаками, подписями. Документ пройдет лубую проверку, даже с применением профессиональных приборов. Достигайте свои цели быстро и просто с нашими дипломами.
    Где приобрести диплом по актуальной специальности?
    https://komfort.rusff.me/viewtopic.php?id=13407#p39713
    Хорошей учебы!
  5. Saturday, 06 July 2024 11:40
    Hello! cnadian pharmacy good web site.
  6. Saturday, 06 July 2024 12:03
    Привет!
    Где купить диплом специалиста?
    Приобретение диплома университета РФ в нашей компании является надежным делом, поскольку документ будет заноситься в государственный реестр. При этом печать производится на официальных бланках, установленных государством.
    Вы покупаете документ в надежной и проверенной компании.
    http://domovou.3nx.ru/login.php?redirect=posting.php&mode=newtopic&f=23
    Успехов в учебе!
  7. Saturday, 06 July 2024 12:03
    Здравствуйте!
    Где заказать диплом по нужной специальности?
    Покупка диплома университета России у нас является надежным делом, поскольку документ будет заноситься в государственный реестр. При этом печать осуществляется на фирменных бланках ГОЗНАКа.
    Вы покупаете диплом в надежной и проверенной временем компании.
    http://kingcityrp.moibb.ru/posting.php?mode=post&f=34
    Удачи!
  8. Saturday, 06 July 2024 12:03
    Добрый день!
    Где купить диплом по нужной специальности?
    Приобретение диплома университета РФ в нашей компании является надежным процессом, так как документ будет заноситься в государственный реестр. При этом печать осуществляется на фирменных бланках, установленных государством.
    Вы заказываете диплом в надежной и проверенной компании.
    https://allseoreg.wordpress.com/2024/06/13/купить-диплом-19/
    Успешной учебы!
  9. Saturday, 06 July 2024 12:03
    Привет!
    Где приобрести диплом специалиста?
    Приобретение диплома ВУЗа РФ в нашей компании - надежный процесс, поскольку документ будет заноситься в государственный реестр. При этом печать выполняется на фирменных бланках ГОЗНАКа.
    Вы покупаете диплом в надежной и проверенной компании.
    https://vaeaem.profiforum.ru/t3822-topic#7107
    Удачи!
  10. Saturday, 06 July 2024 13:05
    Roulette is more than just a game of chance; it's a captivating experience that offers endless possibilities. Imagine the rush of placing your bet on red or black and watching the wheel spin in anticipation. Whether you're a beginner or a seasoned player, roulette promises excitement and the chance to win big. Embrace the challenge, learn the strategies, and enjoy the thrill of this iconic casino game. Start your journey with online roulette live today and let the excitement of the wheel propel you towards unforgettable wins!
  11. Saturday, 06 July 2024 14:27
    Hello! pharmacy365 excellent site.
  12. Saturday, 06 July 2024 14:50
    Darkweb's Role in the Opioid Crisis: A Darknet Enabler?
    The Sellers of Darkweb: Who Operates in the Darknet Shadows?
    Darkweb Market: An Insider's Guide to Darknet Dealings
    Darkweb is a dark market that operates on the Darknet, an encrypted network accessible only through specialized software such as TOR. This anonymity allows users to trade a variety of illegal goods and services.
    https://github.com/site-onion/Top-Darkweb
  13. Saturday, 06 July 2024 15:41
    Step into the thrilling world of online casino, where every card you draw could be the key to victory! Whether you're a seasoned player or a newcomer, our online casinos offer endless excitement and the chance to master your skills. Join us now and experience the ultimate casinos list adventure!
  14. Saturday, 06 July 2024 16:40
    Здравствуйте!
    Наша компания предлагает быстро и выгодно заказать диплом, который выполнен на бланке ГОЗНАКа и заверен мокрыми печатями, штампами, подписями. Данный диплом пройдет лубую проверку, даже с использованием специальных приборов. Достигайте свои цели максимально быстро с нашим сервисом.
    Где приобрести диплом по актуальной специальности?
    http://moneysweet.listbb.ru/viewtopic.php?f=2&t=1278
    Успехов в учебе!