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

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

  1. Friday, 07 June 2024 09:25

    What's up mates, its impressive article concerning cultureand fully explained, keep it up all the time.

    http://linhunt.ru/category/rabota-v-internete/
    http://pozitivelive.ru/статьи/о-себе/
    http://mypascal.ru/index/pravila_sajta/0-8
    http://www.geographystudy.ru/geogo-363.html
    http://sdm-servis.ru/component/fireboard/?func=view&catid=5&id=68953
  2. Friday, 07 June 2024 13:48
    Being single doesn't mean you can't have fun. If you're in the mood for hot adult comics, Mult34 - harley quinn hentai .

    Browsing Mult34 - incest comics is the perfect choice. Indulge in hours of excitement.
  3. Friday, 07 June 2024 14:18
    Что такое прогон по профилям?
    На форумах при каждом прогоне регистрируется новый юзер, в профайле которого в поле Вебсайт или Домашняя страница стоит ваша ссылка. Также в некоторых форумах есть возможность в профиль вставить подпись, туда можно вставить ссылку с анкором. Все это можно варьировать. В профилях ссылки живут довольно долго, т.к. нет спама в чистом виде, и профили не мозолят глаза ни читателям форума, ни модераторам. Прогон производится последней версией хрумера с сервера с максимально возможной скоростью и производительностью.
    ПОДРОБНЕЕ
    НОВЫЙ ОТЛИЧНЫЙ VPN ДЛЯ XRUMERA!
    За последние недели состоялась серия важных обновлений комплекса: XAuth, Captchas Benchmark, XRumer, XEvil 6.0 . В XEvil 6.0 обновлен механизм обработки hCaptcha и многое другое, в XAuth повышена стабильность работы, в XRumer повышена эффективность, устранён ряд погрешностей и обновлены прилагаемые базы.
    https://xrumer.ru/
  4. Friday, 07 June 2024 15:25

    At this moment I am ready to do my breakfast, when having my breakfast coming over again to read other news.
    http://digitalmaine.net/mediawiki3/index.php?title=User:EvaColes31 social signals
    https://page.salepage.online/it/analizar-los-backlinks.html service for solving captchas
    http://xn--hg3b25hm0h.com/bbs/board.php?bo_table=free&wr_id=258288 solving captchas
    https://wiki.whenparked.com/User:LidiaSodersten4 best indexing services
    https://sustainabilipedia.org/index.php/User:ShennaPresley seo strategies
  5. Friday, 07 June 2024 15:25

    At this moment I am ready to do my breakfast, when having my breakfast coming over again to read other news.
    http://digitalmaine.net/mediawiki3/index.php?title=User:EvaColes31 social signals
    https://page.salepage.online/it/analizar-los-backlinks.html service for solving captchas
    http://xn--hg3b25hm0h.com/bbs/board.php?bo_table=free&wr_id=258288 solving captchas
    https://wiki.whenparked.com/User:LidiaSodersten4 best indexing services
    https://sustainabilipedia.org/index.php/User:ShennaPresley seo strategies
  6. Friday, 07 June 2024 15:25

    At this moment I am ready to do my breakfast, when having my breakfast coming over again to read other news.
    http://digitalmaine.net/mediawiki3/index.php?title=User:EvaColes31 social signals
    https://page.salepage.online/it/analizar-los-backlinks.html service for solving captchas
    http://xn--hg3b25hm0h.com/bbs/board.php?bo_table=free&wr_id=258288 solving captchas
    https://wiki.whenparked.com/User:LidiaSodersten4 best indexing services
    https://sustainabilipedia.org/index.php/User:ShennaPresley seo strategies
  7. Friday, 07 June 2024 15:25

    At this moment I am ready to do my breakfast, when having my breakfast coming over again to read other news.
    http://digitalmaine.net/mediawiki3/index.php?title=User:EvaColes31 social signals
    https://page.salepage.online/it/analizar-los-backlinks.html service for solving captchas
    http://xn--hg3b25hm0h.com/bbs/board.php?bo_table=free&wr_id=258288 solving captchas
    https://wiki.whenparked.com/User:LidiaSodersten4 best indexing services
    https://sustainabilipedia.org/index.php/User:ShennaPresley seo strategies
  8. Friday, 07 June 2024 15:25

    At this moment I am ready to do my breakfast, when having my breakfast coming over again to read other news.
    http://digitalmaine.net/mediawiki3/index.php?title=User:EvaColes31 social signals
    https://page.salepage.online/it/analizar-los-backlinks.html service for solving captchas
    http://xn--hg3b25hm0h.com/bbs/board.php?bo_table=free&wr_id=258288 solving captchas
    https://wiki.whenparked.com/User:LidiaSodersten4 best indexing services
    https://sustainabilipedia.org/index.php/User:ShennaPresley seo strategies
  9. Friday, 07 June 2024 15:50

    Admiring the commitment you put into your website and detailed information you provide. It's good to come across a blog every once in a while that isn't the same old rehashed material. Fantastic read! I've bookmarked your site and I'm including your RSS feeds to my Google account.

    http://www.dcorpus.ru/krasnodarski_kray.html
    http://www.knx-fr.com/member.php?action=profile&uid=9683
    http://buro-alfa.ru/alfa/2022/03/26/nadezhnaya-pokupka-kachestvennyh-onlayn-diplomov.html
    http://www.dr-kumaki.net/aikuma/index.cgi?mode=past&pno=0036&pg=100
    http://tvoi-povarenok.ru/adzhika-abxazskaya-s-orexami.html
  10. Friday, 07 June 2024 17:20
    Вы хотите изучать язык и одновременно быть в курсе последних событий? Тогда предлагаем вам попробовать смотреть новости на английском языке. Мы сделали для вас подборку из 5 лучших сайтов, которые подойдут и начальным уровням, и продолжающим.

    1. Кому подойдет: с уровня Elementary и выше.
    blacksprut

    Newsinlevels.comГлавное преимущество этого сайта в том, что каждая новость представлена в 3 вариантах: для людей с начальным, средним и высоким уровнями знаний.

    Каждый материал включает в себя три варианта текста (согласно уровням сложности). К текстам низкого и среднего уровня сложности прилагается аудиозапись, а к тексту продвинутого уровня — видеоролик.

    К каждому тексту есть список незнакомых слов с пояснениями на английском языке. Кроме того, справа от статьи среди рекламных баннеров вы можете найти англо-русский словарь и при необходимости воспользоваться им.

    С этим сайтом вы сможете не только узнать последние новости, но и расширить словарный запас, а также улучшить понимание речи на слух. Примечательно, что в новостях периодически повторяется одна и та же лексика, поэтому если ежедневно смотреть всего один трехминутный ролик, можно постепенно практически без усилий расширить свой словарный запас.
    blacksprut https://bls.gl
    Аудиозаписи для начального уровня озвучены носителем языка, но говорит он четко, медленно, делает довольно большие паузы — как раз то, что надо новичкам. Среднему уровню предлагают запись в более быстром темпе, но озвученную четко, хорошо поставленным голосом. Для людей с «продвинутым» уровнем предлагаются оригинальные видео, транслирующиеся на американских каналах: слова произносятся быстро, можно послушать разные акценты.

    2. BBC.co.ukКому подойдет: студентам с уровнем Pre-Intermediate и выше.

    Выберите ролик на интересную вам тему и смотрите его. В начале видео вам расскажут, какие незнакомые слова встретятся, после чего покажут сам ролик с новостью. После этого новость показывают еще раз, но уже с субтитрами, подсвечивая при этом слова, предлагаемые для изучения. В конце видео вам еще раз назовут изучаемые слова и дадут пояснения к ним. Таким образом, изучение новой лексики будет происходить в контексте, вы сразу будете знать, в каких случаях следует употреблять то или иное слово.

    Под видео вы увидите транскрипт (текст к ролику), а также список изучаемых слов с пояснениями на английском языке. Ниже вы найдете упражнение, которое следует выполнить после просмотра и знакомства со словами. Справа даны ответы, можете проверить себя.

    3. English-club.tv
    English-club.tvКому подойдет: по утверждению авторов, сайт ориентирован на студентов с уровнями Elementary, Pre-Intermediate, Intermediate.

    Новое видео с новостями публикуется 2-4 раза в неделю. Обычно ролик состоит из двух новостей.