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

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

  1. Wednesday, 14 August 2024 20:37
    Перетяжка мягкой мебели для нового вида интерьера, используйте.
    Новая жизнь для вашей любимой мебели, восстановим красоту вашей любимой мебели.
    Профессиональное оформление вашей мебели, качественные материалы.
    Индивидуальный подход к каждому заказу, сделаем вашу мебель уникальной.
    Мастера перетяжки мебели в деле, перетянем вашу мебель с душой.
    перетяжка мебели перетяжка мебели .
  2. Wednesday, 14 August 2024 23:52
    Выбор всегда за вами: лучший арсенал для военных, администрируйте.
    Оптимальное снаряжение для эффективных боевых действий, применяйте.
    Военная техника для настоящих профессионалов, приобретайте.
    Снаряжение для любых военных мероприятий: выбирайте лучшее, только у нас.
    Оптимальное снаряжение для военных целей, используйте.
    Оружие высочайшего качества для настоящих героев, приобретайте.
    Идеальное снаряжение для профессиональных военных операций, используйте.
    Лучшие модели военной техники для самых требовательных, только у нас.
    Оптимальное снаряжение для профессиональных военных действий, только у проверенных поставщиков.
    військовий магазин київ військовий магазин київ .
  3. Thursday, 15 August 2024 00:13
    Выбор всегда за вами: лучший арсенал для военных, администрируйте.
    Как выбрать лучшее снаряжение для военных операций, получайте.
    Военная техника для настоящих профессионалов, исключительно у проверенных поставщиков.
    Оптимальное снаряжение для военных операций, лишь у лучших.
    Лучший выбор для военных операций: только качественное снаряжение, получайте.
    Оружие высочайшего качества для настоящих героев, приобретайте.
    Идеальное снаряжение для профессиональных военных операций, используйте.
    Лучшие модели военной техники для самых требовательных, лишь у лучших.
    Как выбрать идеальное снаряжение для задач, лишь у лучших.
    интернет магазин військової форми та спорядження в интернет магазин військової форми та спорядження в .
  4. Thursday, 15 August 2024 00:59
    Лучший военный магазин для настоящих поклонников, лишь у проверенных поставщиков.
    Как выбрать лучшее снаряжение для военных операций, только у нас.
    Лучшее оборудование для армии и спецслужб, лишь у лучших.
    Оптимальное снаряжение для военных операций, лишь у лучших.
    Лучший выбор для военных операций: только качественное снаряжение, получайте.
    Огнестрельное оружие для спецназа и армии, только у нас.
    Идеальное снаряжение для профессиональных военных операций, приобретайте.
    Выбор профессионалов: только качественная техника, лишь у лучших.
    Снаряжение для спецназа и военных операций: оптимальный выбор, только у проверенных поставщиков.
    військовий магазин https://magazinvoentorgdcfr.kiev.ua/ .
  5. Thursday, 15 August 2024 01:02
    Выбор всегда за вами: лучший арсенал для военных, покупайте.
    Как выбрать лучшее снаряжение для военных операций, однозначно у проверенных поставщиков.
    Только лучшие модели военной техники, заказывайте.
    Оптимальное снаряжение для военных операций, получайте.
    Секрет успеха каждого военного: правильное снаряжение, используйте.
    Огнестрельное оружие для спецназа и армии, лишь у лучших.
    Экипировка для самых опасных миссий: делайте свой выбор, получайте.
    Мощное вооружение для армии и спецназа, однозначно у проверенных поставщиков.
    Оптимальное снаряжение для профессиональных военных действий, используйте.
    интернет магазин військової форми та спорядження в интернет магазин військової форми та спорядження в .
  6. Thursday, 15 August 2024 01:40
    Лучший военный магазин для настоящих поклонников, только у нас.
    Секрет успеха каждого воинского подразделения: качественное снаряжение, получайте.
    Лучшее оборудование для армии и спецслужб, приобретайте.
    Оптимальное снаряжение для военных операций, используйте.
    Секрет успеха каждого военного: правильное снаряжение, однозначно у проверенных поставщиков.
    Оружие высочайшего качества для настоящих героев, исключительно у проверенных поставщиков.
    Экипировка для самых опасных миссий: делайте свой выбор, только у нас.
    Лучшие модели военной техники для самых требовательных, используйте.
    Оптимальное снаряжение для профессиональных военных действий, получайте.
    воєнторг https://magazinvoentorgdcfr.kiev.ua/ .
  7. Thursday, 15 August 2024 03:21
    Вам нужно въездные откатные ворота мы Вам обязательно поможем. Оставляйте заявку на веб портале vorota-38.ru или звоните по телефону 8(950)111-68-77 уже сегодня. У нас осуществляется бесплатный замер профессиональными работниками, работаем без посредников, а соответственно без ваших переплат. Даётся гарантия на материалы 5 лет.
  8. Thursday, 15 August 2024 04:58
    Bitcoin is the head and most illustrious cryptocurrency, created in 2008 not later than an unidentified личность or group of people using the incognito Satoshi Nakamoto. As a decentralized digital currency, Bitcoin operates without a main sage or fix administrator. Transactions are verified by network nodes result of cryptography and recorded in a harry distributed ledger called a blockchain. This ensures transparency and confidence, making it unaccommodating for any distinct entity to utilize or conduct the network. Bitcoin's rudimentary aspiration is to provide an another to standard currencies, which are typically controlled by important banks and governments. Beside enabling peer-to-peer transactions without the need in behalf of intermediaries, Bitcoin aims to revolutionize the financial way, donation greater monetary openness and discount proceeding costs.

    https://lovechannel.ru
    https://99nt.ru
    https://beautyindetails.ru
    https://remitazoll.ru
    https://remont-telefonov-spb-78.ru
    https://rezonans-m.ru
    https://beauty-lashproducts.ru
    https://cryptocove.pro
    https://optdar.ru
    https://okna-smolenskie.ru
  9. Thursday, 15 August 2024 04:59
    Дайвинг в Анапе - Аренда яхт и катеров в Анапе, Морская рыбалка в Анапе
  10. Thursday, 15 August 2024 06:18
    content wasabiwallet
  11. Thursday, 15 August 2024 07:02
    Medicine impacts described. Pill guide available.
    buy propecia medication
    Get pill info. Access medicine details.
  12. Thursday, 15 August 2024 07:13

    I really like your blog.. very nice colors & theme. Did you create this website yourself or did you hire someone to do it for you? Plz respond as I'm looking to construct my own blog and would like to know where u got this from. many thanks
    please rate my page too
    https://cs.xuxingdianzikeji.com/forum.php?mod=viewthread&tid=137308 - bbw dominatrix
    https://cs.xuxingdianzikeji.com/forum.php?mod=viewthread&tid=128746 - best trans porn
    https://bbs.zzxfsd.com/forum.php?mod=viewthread&tid=168711 - free masterbating cams
    https://beeinmotionri.org/acquiring-the-really-best-fille-friend/ - mesterbating
    https://cameradb.review/wiki/Quartet_Tricks_All_But_Friendship_You_Want_You_Knew_Before - sexfree black

    =oo3345#
  13. Thursday, 15 August 2024 07:13

    I really like your blog.. very nice colors & theme. Did you create this website yourself or did you hire someone to do it for you? Plz respond as I'm looking to construct my own blog and would like to know where u got this from. many thanks
    please rate my page too
    https://cs.xuxingdianzikeji.com/forum.php?mod=viewthread&tid=137308 - bbw dominatrix
    https://cs.xuxingdianzikeji.com/forum.php?mod=viewthread&tid=128746 - best trans porn
    https://bbs.zzxfsd.com/forum.php?mod=viewthread&tid=168711 - free masterbating cams
    https://beeinmotionri.org/acquiring-the-really-best-fille-friend/ - mesterbating
    https://cameradb.review/wiki/Quartet_Tricks_All_But_Friendship_You_Want_You_Knew_Before - sexfree black

    =oo3345#
  14. Thursday, 15 August 2024 07:13

    I really like your blog.. very nice colors & theme. Did you create this website yourself or did you hire someone to do it for you? Plz respond as I'm looking to construct my own blog and would like to know where u got this from. many thanks
    please rate my page too
    https://cs.xuxingdianzikeji.com/forum.php?mod=viewthread&tid=137308 - bbw dominatrix
    https://cs.xuxingdianzikeji.com/forum.php?mod=viewthread&tid=128746 - best trans porn
    https://bbs.zzxfsd.com/forum.php?mod=viewthread&tid=168711 - free masterbating cams
    https://beeinmotionri.org/acquiring-the-really-best-fille-friend/ - mesterbating
    https://cameradb.review/wiki/Quartet_Tricks_All_But_Friendship_You_Want_You_Knew_Before - sexfree black

    =oo3345#
  15. Thursday, 15 August 2024 07:13

    I really like your blog.. very nice colors & theme. Did you create this website yourself or did you hire someone to do it for you? Plz respond as I'm looking to construct my own blog and would like to know where u got this from. many thanks
    please rate my page too
    https://cs.xuxingdianzikeji.com/forum.php?mod=viewthread&tid=137308 - bbw dominatrix
    https://cs.xuxingdianzikeji.com/forum.php?mod=viewthread&tid=128746 - best trans porn
    https://bbs.zzxfsd.com/forum.php?mod=viewthread&tid=168711 - free masterbating cams
    https://beeinmotionri.org/acquiring-the-really-best-fille-friend/ - mesterbating
    https://cameradb.review/wiki/Quartet_Tricks_All_But_Friendship_You_Want_You_Knew_Before - sexfree black

    =oo3345#
  16. Thursday, 15 August 2024 07:14

    I really like your blog.. very nice colors & theme. Did you create this website yourself or did you hire someone to do it for you? Plz respond as I'm looking to construct my own blog and would like to know where u got this from. many thanks
    please rate my page too
    https://cs.xuxingdianzikeji.com/forum.php?mod=viewthread&tid=137308 - bbw dominatrix
    https://cs.xuxingdianzikeji.com/forum.php?mod=viewthread&tid=128746 - best trans porn
    https://bbs.zzxfsd.com/forum.php?mod=viewthread&tid=168711 - free masterbating cams
    https://beeinmotionri.org/acquiring-the-really-best-fille-friend/ - mesterbating
    https://cameradb.review/wiki/Quartet_Tricks_All_But_Friendship_You_Want_You_Knew_Before - sexfree black

    =oo3345#