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

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

  1. Friday, 26 January 2024 11:02
    Hi everyone

    One day my friend showed me an interesting and colorful game, just like from My childhood, fruit combinations, very fascinating and most importantly develops logic and luck, it does not oblige to anything and helps brighten up the time!
    Sweet Bonanza slot machine is powered by a built-in random number generator. This system operates with combinations that determine the results of the rounds. For many players, the random number generator is a kind of opponent that they strive to defeat using mathematical statistics, thinking about bets and attention to the details of the gameplay.
    The algorithm works completely randomly, taking into account the gaming experience of millions of players from different parts of the globe.
    You can play here https://sweet-bonanza-game.ru
    The task of a persistent player is to develop his own strategy, taking into account his desires and goals, in order to eventually get the top combination!

    Good luck friends!

    sweet bonan
    online casino sweet bonanza
    play sweet bonanza real money
    bonaza game
    bonanza max win

    sweet bonanza casino slot
    sweet bonanza sensational
    vavada sweet bonanza
    sweet bonanza free slot
    sweet bonanza es real
    great casino sweet bonanza
    sweet bonanza demo в рублях
  2. Friday, 26 January 2024 15:50
    На нашем сайте mikro-zaim-online.ru представлена ценная информация о микрозаймах, включая предложения займов под 0%. Виктор Гардиенов и Ольга Штернец, наши эксперты, проанализировали множество предложений от МФО и подготовили подробные руководства о том, как взять и вернуть микрокредит. Они также обсудили сложности и подводные камни, которые могут встретиться при взаимодействии с микрофинансовыми учреждениями. Их работа позволит вам сделать информированный и безопасный выбор. Подробности на https://mikro-zaim-online.ru/o-nas/
  3. Friday, 26 January 2024 19:41
    На сайте mikro-zaim-online.ru представлена важная информация о компаниях, предлагающих займы под 0%. Наши специалисты, включая Андрея Фролова и Екатерину Подольскую, тщательно изучили рынок микрокредитов, чтобы предложить вам наиболее выгодные варианты. Они также подготовили обширный материал о том, как правильно взять микрокредит, какие существуют способы его возврата, и описали потенциальные риски, связанные с микрофинансовыми услугами. Эти знания помогут вам сделать осознанный выбор и избежать неприятных сюрпризов. Подробнее на https://mikro-zaim-online.ru/o-nas/
  4. Saturday, 27 January 2024 11:16
    Erotoons.net invites you to a festival where the art of erotic comics is celebrated in all its glorious diversity. Our site is a carnival of colors, stories, and emotions, each comic a masterpiece curated for the adult man's discerning eye. Fans of every genre, from the subtle to the explicit, will find themselves at home among our vast collection. Here, every story is a performance, every page a spectacle, waiting to unfold its magic. Enter the festival where every visit is a journey through the most exquisite expressions of adult comics.

    If you're yearning for tales that ignite the senses, our gwen tennyson porn comics are what you need. Join us at Erotoons.net for an unforgettable journey.
  5. Saturday, 27 January 2024 16:08
    Erotoons.net: Where Fantasies Unfold for All. Imagine a haven where the lines of adult entertainment blur and converge, welcoming both men and women over 18 to a world of exquisite erotica. Here, each comic is a mosaic of passion, a tapestry woven with threads of fantasy and reality. This isn't just a website; it's a realm where every visit is free and every story is a key to unlock your deepest desires. Why roam in the mundane when Erotoons.net offers a free odyssey into the extraordinary?

    In search of a portal to a world of fantasy and passion? Erotoons.net is your gateway to the finest the incestibles porn comic , where every story is an adventure.
  6. Saturday, 27 January 2024 16:20
    Мой верный пес заболел, и ветеринар сказал, что нужно срочно начать лечение. Я обратился к постабанку и получил займ на карту, чтобы обеспечить пушистого друга всем необходимым для выздоровления.
  7. Saturday, 27 January 2024 22:30
    Здравствуйте! Я хочу поделиться своим опытом использования сайта, на котором собраны все МФО, где можно получить займ на карту без отказа. Это действительно удобно! Я нашел идеальный вариант для себя на этом ресурсе и получил деньги в кратчайшие сроки.
  8. Sunday, 28 January 2024 02:33
  9. Sunday, 28 January 2024 13:09
    Забота о недвижимости - это забота о радости. Утепление наружных стен - это не только модный облик, но и обеспечение сохранения тепла в вашем уютном уголке. Наш коллектив, специалисты в своем деле, предлагаем вам переделать ваш дом в прекрасное место для жизни.
    Наши проекты - это не просто тепловая обработка, это творческий подход к каждому деталю. Мы нацелены на совершенному сочетанию между внешним видом и практической ценностью, чтобы ваше жилье стало не только уютным и стильным, но и роскошным.
    И самое важное - доступные тарифы! Мы уверены, что высококачественные услуги не должны быть неприемлемо дорогими. Сколько стоит утепление фасада начинается всего от 1250 руб/кв. метр.
    Современные технологии и качественные материалы позволяют нам создавать теплоизоляцию, которая долго служит и надежна. Позабудьте о холоде стен и дополнительных затратах на отопление - наше утепление станет вашим надежной защитой от холода.
    Подробнее на официальном сайте
    Не откладывайте на потом заботу о удобстве в вашем жилище. Обращайтесь к квалифицированным специалистам, и ваш дом преобразится настоящим художественным творчеством, которое подарит вам не только тепло. Вместе мы создадим место для жизни, где вам будет по-настоящему уютно!
  10. Sunday, 28 January 2024 15:19
  11. Sunday, 28 January 2024 20:13
    Why settle for ordinary when you can experience the extraordinary at Erotoons.net? Our site doesn't just offer adult comics; we redefine them. Each comic in our collection is a product of meticulous craftsmanship, blending engaging storytelling with stunning visuals. This is not just entertainment; it's an art form. For those who seek more than the mundane, Erotoons.net is the only logical choice. Our content speaks to the connoisseur of adult-themed narratives, offering depth, variety, and quality unparalleled by any other site.

    Are you on the lookout for something more than just ordinary comics? Erotoons.net has just what you need with our exclusive rule 63 porn .
  12. Sunday, 28 January 2024 23:45
    Во время отпуска у меня закончились деньги, и я решил зайти в местное кафе. Оказалось, что они не принимают карту, и мне нужны были наличные. Я воспользовался сервисом и получил моментальный займ для продолжения отпуска.