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

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

  1. Sunday, 25 August 2024 11:05
    Онлайн казино 888 starz зеркало актуальное https://888starz.shop/
  2. Sunday, 25 August 2024 12:51
    In the immediate postoperative period, symptoms of sinus pain, increased nasal obstruction and postnasal drip may persist and also a decrease in sense of smell may occur buy priligy pills abortus was isolated from 80 of these horses
  3. Sunday, 25 August 2024 13:47
    Этого я не говорил.
    created to maintain decentralized finance (defi), decentralized applications (dapps) and smart contracts, the Solana http://mpsamp.com/bbs/board.php?bo_table=free&wr_id=269230 which works on basis of unique hybrid proof-of-stake mechanisms and proof-of-history for fast and secure transaction processing.
  4. Sunday, 25 August 2024 13:57
    Лучший выбор для аренды автобуса в Санкт-Петербурге, арендовать для экскурсии.
    Выгодные предложения на аренду автобуса в Санкт-Петербурге, пользуйтесь нашими услугами.
    Комфортабельные автобусы для аренды в СПб, езжайте с комфортом.
    Проведите незабываемое мероприятие с арендованным автобусом в СПб, весело и ярко.
    Удобный трансфер в Санкт-Петербурге на автобусе, быстро и безопасно.
    Корпоративный праздник на нашем автобусе в СПб, солидно и интересно.
    Экскурсия на комфортабельном автобусе в Санкт-Петербурге, увлекательно и запоминающе.
    Организуйте школьную экскурсию с арендованным автобусом в СПб, весело и обучающе.
    Транспортировка гостей на свадьбу в Санкт-Петербурге на арендованном автобусе, сказочно и беззаботно.
    Советы по выбору автобуса для проката в Санкт-Петербурге, полезные советы от наших экспертов.
    Экономные варианты аренды автобуса в СПб, со всеми выгодами.
    Полный список услуг при аренде автобуса в СПб, ознакомьтесь перед заказом.
    Аренда автобуса с водителем в СПб: плюсы и минусы, объективный обзор.
    Анализ цен на аренду автобуса в Санкт-Петербурге: где дешевле, сравнение тарифов.
    Прокат мини-автобусов для узкого круга пассажиров в СПб, компактно и удобно.
    Прокат автобуса для музыкального фестиваля в СПб, безопасно и комфортно.
    Аренда автобуса для корпоративного веселья в Санкт-Петербурге
    аренда автобуса с водителем спб https://arenda-avtobusa-v-spb.ru/ .
  5. Sunday, 25 August 2024 14:15
    Shiba Inu, commonly referred to as the "Dogecoin hatchet man," is a meme-based cryptocurrency that has gained significant popularity in arrears to its vibrant community and meme-driven appeal. Launched in August 2020, Shiba Inu operates on the Ethereum blockchain as an ERC-20 token. Without considering its fun-loving origins, the concoct has evolved to include its own decentralized reciprocity, ShibaSwap, and plans in place of tomorrow developments like Shibarium, a layer-2 solution. With its dedicated following, Shiba Inu continues to provoke waves in the crypto world, proving that on a par meme coins can organize sedate ambitions.

    https://otvetiok.ru
    https://forum.bee-link.com/home.php?mod=space&username=ShibaInumix
    https://forum.ordcom.net/member.php?action=profile&uid=6573
    https://google-pluft.us/forums/profile.php?id=527516
    https://volkhp.ru
    http://rdcvw.com/space-uid-327499.html
    http://www.kiripo.com/forum/member.php?action=profile&uid=1155493
    https://rezonans-m.ru
    http://www.baohaibbs.com.cn/home.php?mod=space&uid=40648
    http://bbs.py27.com/home.php?mod=space&uid=400214
  6. Sunday, 25 August 2024 14:37
    Detailed drug knowledge. Drug essentials explained.
    buy propecia at walmart
    Complete medicine overview. Medication guide available.
  7. Sunday, 25 August 2024 14:44
    One of the main attractions of boomerang wetten is its attractive welcome bonuses, which give new players an excellent head start. With up to 500€ in extra cash and frequent promotions, there’s always something to anticipate. The casino is focused to offering a safe and secure environment, using advanced encryption technologies to protect your data and transactions.
  8. Sunday, 25 August 2024 16:00
    Boomerang Casino is an thrilling digital platform built for those who seek exciting gaming experiences in a secure and intuitive interface. The platform offers a extensive range of options, featuring traditional slots, live games, and various card games. Serving an international audience, boomerang online casino offers multi-language support and a selection of transaction options, including debit cards, e-wallets, and digital currencies.
  9. Sunday, 25 August 2024 16:25
    Аренда экскаватора погрузчика в Москве, по выгодным ценам.
    Выбор экскаватора-погрузчика в Москве, только у нас.
    Выбор прокатных услуг в Москве, находится здесь.
    Быстро и удобно, в столице.
    Выберите лучший вариант для своего проекта, выбирайте качество.
    Аренда экскаватора-погрузчика в Москве: плюсы и минусы, в столице.
    Срочная аренда экскаватора-погрузчика в Москве, заказывайте доступную технику.
    Советы по выбору техники для строительства, в Москве.
    Выбор оптимального проката техники, в Москве.
    Выбор качественного проката, в Москве.
    Плюсы аренды экскаватора-погрузчика в Москве, в нашем сервисе.
    Советы по оформлению проката, в Москве.
    Выбор качественного оборудования для строительства, в Москве.
    Плюсы и минусы проката техники, в столице.
    Современные возможности аренды, у нас в сервисе.
    Срочная аренда экскаватора-погрузчика в Москве: где заказать?, у нас в сервисе.
    Где арендовать экскаватор-погрузчик в Москве с выгодой?, у нас в сервисе.
    Выбор экскаватора-погрузчика в Москве: где найти лучшее предложение?, в столице.
    аренда экскаватора погрузчика в москве https://arenda-ekskavatora-pogruzchika197.ru/ .