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

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

  1. Sunday, 14 July 2024 08:58
    Drug impacts explained. Detailed pill knowledge.
    stromectol price
    Get medicine facts. Drug reactions explained.
  2. Sunday, 14 July 2024 10:16
    smartblip home gadgets https://smartblip.com best price
  3. Sunday, 14 July 2024 11:15
    hop over to these guys ethereum etf
  4. Sunday, 14 July 2024 11:28
    The whole school thought I was going to star on Drake and Josh: In second grade, I told everyone that I was leaving school before next semester to move to Hollywood to play Megan’s cousin from Vermont on Drake and Josh. At first I just told my best friend, but then the whole school found out. I had people coming up to me and asking me for my autograph and a teacher even asked for a picture with me. When I showed up on the first day of school in third grade, I told everyone that the show was going off the air after the season finished (even though I had no knowledge of when it was ending), and so they wouldn’t need me. AND THE SHOW ENDED AFTER THAT SEASON AND EVERYONE BELIEVED ME UP UNTIL LIKE 6TH GRADE BUT NOW MY BEST FRIEND WILL NEVER LET ME FORGET ABOUT IT AND I’M SO ANGRY. More stories here https://is.gd/AdEQ1h
  5. Sunday, 14 July 2024 12:50
    Добрый день!
    Мы можем предложить дипломы психологов, юристов, экономистов и любых других профессий по доступным ценам.
    Мы можем предложить документы техникумов, которые находятся в любом регионе России. Вы можете купить диплом за любой год, в том числе документы старого образца СССР. Дипломы и аттестаты выпускаются на бумаге высшего качества. Это дает возможности делать настоящие дипломы, которые не отличить от оригинала. Документы заверяются всеми необходимыми печатями и подписями.
    Где купить диплом по актуальной специальности?
    007brush.com/collections/vendors/products/sk-120mm-fan-bundle.html
  6. Sunday, 14 July 2024 13:00
    Привет, друзья!
    Мы можем предложить дипломы любых профессий по разумным ценам. Стоимость будет зависеть от определенной специальности, года выпуска и университета.
    Где купить диплом специалиста?
    Купить диплом ВУЗа
    https://landik-diploms-srednee.ru/kupit-diplom-v-krasnodare  
    Хорошей учебы!
  7. Sunday, 14 July 2024 13:41
    Comprehensive drug resource. Medicine resource available.
    buy ivermectin cream
    Pill info here. Drug reactions explained.
  8. Sunday, 14 July 2024 14:13
    Здравствуйте!
    Где заказать диплом специалиста?
    Купить документ института можно в нашей компании в Москве. Мы предлагаем документы об окончании любых университетов России. Вы сможете получить необходимый диплом по любой специальности, любого года выпуска, в том числе документы образца СССР. Даем 100% гарантию, что при проверке документов работодателем, каких-либо подозрений не появится.
    https://windigof.ru/blog/windigo-na-vystavke-auto-show-2017/
    Успехов в учебе!
  9. Sunday, 14 July 2024 15:17

    Здравствуйте!
    Задумался а действительно можно купить диплом государственного образца в Москве, и был удивлен, все реально и главное официально!
    Сначала серфил в сети и искал такие темы как: купить диплом о высшем образовании, где купить диплом среднем, купить свидетельство о рождении, купить диплом в уссурийске, купить диплом в кинешме, получил базовую информацию.
    Остановился в итоге на материале купить диплом в обнинске, https://www.hip-hop.ru/forum/id298234-worksale
    Удачи!
  10. Sunday, 14 July 2024 15:24
    Привет!
    Где купить диплом специалиста?
    Приобрести документ ВУЗа можно в нашей компании в столице. Мы оказываем услуги по продаже документов об окончании любых ВУЗов России. Вы получите необходимый диплом по любым специальностям, включая документы Советского Союза. Гарантируем, что в случае проверки документа работодателями, каких-либо подозрений не возникнет.
    http://thesanacorp.com/international-partership.htm
    Удачи!
  11. Sunday, 14 July 2024 18:16
    Get info now. Overdose effects detailed.
    top ed drugs
    Medicine essentials explained. Drug trends described.
  12. Sunday, 14 July 2024 21:31
    Здравствуйте!
    Где заказать диплом по необходимой специальности?
    Мы предлагаем документы ВУЗов, которые расположены на территории всей России. Можно приобрести диплом за любой год, указав подходящую специальность и хорошие оценки за все дисциплины. Дипломы делаются на бумаге высшего качества. Это позволяет делать государственные дипломы, которые не отличить от оригиналов. Они будут заверены необходимыми печатями и подписями.
    Мы изготавливаем дипломы психологов, юристов, экономистов и других профессий по приятным тарифам.
    https://ast-diplomas.com/kupit-diplom-moskva
    Рады оказать помощь!<u><b></b></u>