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

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

  1. Saturday, 08 June 2024 09:51

    Thanks for every other wonderful article. The place else may anybody get that type of info in such a perfect way of writing? I have a presentation next week, and I am on the search for such information.

    http://arhive.stpku.ru/index.php?option=com_content&view=article&id=255&Itemid=115
    http://rusnord.ru/press/pochemu_luchshe_kupit_vysshee_obrazovanie_v_rossii_011.htmВ
    http://neogen.pl/public-comment-on-the-national-monument-review-2/comment-page-1747/
    http://kip-world.ru/programmiruemoe-rele-oven-pishem-soft-v-srede-owen-logic.html
    http://podlemore.moy.su/news/2015-00
  2. Saturday, 08 June 2024 10:49
    Всем игроманам привет!
    jvspin казино официальный сайт зеркало предлагает уникальные возможности для всех любителей азартных игр. Если вас как и меня интересует дживиспин казино скачать, jvspin мобильная версия или jvspin casino бонус коды, то самое время прочитать здесь par-lab.ru подробнее об jvspin официальный. Узнайте все о последних новинках и бонусах jvspin казино официальный сайт и начните свой путь к крупным выигрышам прямо сейчас!
    Более подробно на https://t.me/s/jvspin_zerkalo
    Удачи и профитов!

    дживиспин казино скачать
    jvspin казино зеркало
    дживиспин зеркало
    jvspin официальный
    jvspin casino зеркало
  3. Saturday, 08 June 2024 11:15
    Всем игроманам привет!
    Если вас как и меня интересует игорный клуб лев официальный, lev casino зеркало или казино лев официальный сайт регистрация, то самое время прочитать здесь takumi-method.biz подробнее об игровые автоматы казино лев.

    Более подробно на https://t.me/s/zerkalo_lev
    Удачи и профитов!

    лев слоты
    лев игровой клуб
    казино лев официальный сайт регистрация
    вулкан лев казино
    игровые автоматы лев официальный сайт
  4. Saturday, 08 June 2024 11:41
    Муж на час услуга вызвать мужа на час
  5. Saturday, 08 June 2024 11:53

    Hello to every body, it's my first go to see of this weblog; this webpage consists of remarkable and genuinely good material in support of readers.

    http://unicred.ru/obuchenie_parapsihologii/
    http://ok-gid.ru/stat-hranitelem-avatarii-odnoklassnikah/
    http://pro-parovoz.ru/index.php/component/k2/97-база-паровоза.html
    http://brizfitness.ru/glikemicheskij-indeks-produktov-tablica/
    http://samoychiteli.ru/document3196.html
  6. Saturday, 08 June 2024 12:27
    Зачем выбирать дом из бруса 9х12 | Преимущества строительства дома из бруса 9х12 | Выбор кровельных материалов для дома из бруса 9х12 | Секреты уютного интерьера в доме из бруса 9х12 | Выбор фундамента для дома из бруса 9х12 | Типы фундаментов для дома из бруса 9х12 | Дизайн ландшафта для дома из бруса 9х12 | Новинки в строительстве домов из бруса 9х12 | Для комфортного отдыха: зона lounge в доме из бруса 9х12 | Расходы на строительство дома из бруса 9х12
    одноэтажный дом из бруса 9х12 https://domizbrusa-9x12spb.ru/ .
  7. Saturday, 08 June 2024 13:48
    Обзор камнерезного станка Helmut ST350-800 - https://machinetechsolutions.ru/obzor-kamnereznogo-stanka-helmut-st350-800-2/ Подробный обзор камнерезного станка Helmut ST350-800: технические характеристики, преимущества и советы по использованию.
  8. Saturday, 08 June 2024 13:58

    Simply desire to say your article is as surprising. The clearness in your post is just spectacular and i could assume you're an expert on this subject. Fine with your permission let me to grab your feed to keep up to date with forthcoming post. Thanks a million and please keep up the rewarding work.

    http://www.aescalaproyectos.es/portfolio-view/armarios/
    http://rmcrb.ru/sveden/employees
    http://electri4ka.com/4s2/41.html
    http://rl-critic.ru/histeo/belinsk.html
    http://harry-harrison.ru/films/index.html
  9. Saturday, 08 June 2024 14:52
    cp gal



    ==> rlys.nl/cgrJ03 <==

    ==> biturl.top/iABRFr <==
  10. Saturday, 08 June 2024 16:04

    It's amazing for me to have a web site, which is useful designed for my know-how. thanks admin

    http://allgamed.ru/news/alien_shuter_nachalo_vtorzhenija_skachat_besplatno_polnuju_versiju_kljuch_k_igre_ne_nuzhen/2010-11-25-27
    http://www.euusedgoodstrading.com/read-blog/190_we-purchase-a-university-diploma-online-expert-tips.html
    http://varenierecepty.ru/595-varene-iz-irgi.html
    http://www.limousine101.ru/podmoskove/zvenigorod/
    http://amisite.ru/phpBB2/memberlist.php?mode=joined&order=ASC&start=6900
  11. Saturday, 08 June 2024 16:10

    Хотите "убить" веб-сайт вашего конкурента? Мы можем помочь.
    Применяем надежные технологии:
    - Устраняем интернет-сайты по каким угодно ключевым запросам.
    - Тысячи спамных беклинков.
    - Непрерывный спам главного емейла компании письмами с рассылками
    - Понижение позиций веб-сайта в поисковиках по самым коммерческим ключам.
    - Применяем секретные технологии. Это известно лишь нашим специалистам. Опыт работы больше десяти лет.
    - 100% гарантируем возврат денежных средств через три месяца.
    - Стопроцентный отчет.
    - Конфиденциальность нашей работы. Никто не узнает про вас и нашу деятельность.

    Стоимость услуги 7700py.
    Отчётность.
    Оплата: Yoo.Деньги, Bitcoin, МИР, Visa, MasterCard...
    Принимаем USDT
    Telgrm: https://t.me/exrumer
    Skype: Loves.Ltd
    https://xrumer.cc/
    Только этот.
  12. Saturday, 08 June 2024 16:17