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

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

  1. Monday, 24 June 2024 11:06
    Любите напряженные сюжеты и неожиданные повороты? Турецкие сериалы триллеры на turkline.tv подарят вам незабываемые эмоции! Сайт предлагает сериалы в HD 1080 качестве и с русской озвучкой, что делает просмотр особенно захватывающим. "Чёрная роза" и "Игра в жизнь" – это только начало списка интригующих триллеров. Без рекламы и абсолютно бесплатно, turkline.tv – идеальное место для любителей острых ощущений.
  2. Monday, 24 June 2024 11:21
    В нашем мире, где диплом - это начало удачной карьеры в любом направлении, многие стараются найти максимально простой путь получения образования. Наличие официального документа переоценить попросту невозможно. Ведь именно он открывает дверь перед каждым человеком, который собирается начать трудовую деятельность или учиться в любом институте.
    Наша компания предлагает оперативно получить любой необходимый документ. Вы можете приобрести диплом старого или нового образца, что будет удачным решением для человека, который не смог закончить обучение или утратил документ. Все дипломы выпускаются аккуратно, с особым вниманием ко всем нюансам. В итоге вы сможете получить продукт, полностью соответствующий оригиналу.
    Превосходство данного подхода состоит не только в том, что вы быстро получите свой диплом. Весь процесс организован комфортно, с нашей поддержкой. Начав от выбора необходимого образца документа до правильного заполнения личной информации и доставки в любое место страны — все находится под полным контролем квалифицированных специалистов.
    Таким образом, для тех, кто ищет оперативный способ получения необходимого документа, наша компания предлагает выгодное решение. Купить диплом - значит избежать длительного процесса обучения и сразу переходить к своим целям: к поступлению в ВУЗ или к началу успешной карьеры.
    http://interestbook.ru
    http://diplom-msk.ru
    http://n-seo.ru
    http://diplom-gotovie.ru
    http://sv-hold.ru
  3. Monday, 24 June 2024 11:23
    Попробуйте свою удачу в лучших онлайн казино, посетить.
    Наши рекомендации: самые популярные онлайн казино, попробуйте прямо сейчас.
    Играйте в захватывающие азартные игры в онлайн казино и увеличивайте свой доход, посетите прямо сейчас.
    Наслаждайтесь игрой вместе с лучшими онлайн казино, испытайте прямо сейчас.
    Новые возможности для азартных игроков в онлайн казино, испытайте прямо сейчас.
    Играйте в лучшие онлайн казино и выигрывайте крупные суммы денег, испытайте сейчас.
    Играйте в увлекательные игры и выигрывайте крупные суммы в онлайн казино, попробуйте прямо сейчас.
    Играйте и выигрывайте большие суммы в лучших онлайн казино, испытайте сейчас.
    Популярные игры и призы в онлайн казино, посетите прямо сейчас.
    Играйте в самые популярные онлайн казино и получайте щедрые бонусы и выигрыши, испытайте прямо сейчас.
    Новые возможности и азартные игры в онлайн казино, испытайте прямо сейчас.
    Играйте и выигрывайте крупные суммы в самых популярных онлайн казино, испытайте сейчас.
    Лучшие игры и призы в онлайн казино, испытайте прямо сейчас.
    Большие выигрыши и возможности: самые популярные онлайн казино для вас, посетите сейчас.
    Азартные игры и призы в онлайн казино, попробуйте прямо сейчас.
    Играйте в лучшие онлайн казино и получайте щедрые бонусы и выигрыши, присоединяйтесь прямо сейчас.
    Новые возможности и азартные игры в онлайн казино,
    лучшие онлайн казино на деньги лучшие онлайн казино на деньги .
  4. Monday, 24 June 2024 11:57
    A year on from Qatar 2022, what’s the legacy of a World Cup like no other?
    blackspruty4w3j4bzyhlk24jr32wbpnfo3oyywn4ckwylo4hkcyy4yd.onion
    The 2022 World Cup final will go down as one of the most exciting, dramatic and memorable matches in the history of the game.

    It was the scene of Lionel Messi’s greatest moment on a soccer pitch, in which he cemented his legacy as the best player of his generation after finally guiding Argentina to World Cup glory.

    It was, for many, the perfect, fairytale ending to a tournament which thrilled well over a billion fans around the world. So good, perhaps, that many forgot it bookended the most controversial World Cup in history.
    https://b2webin.com
    bs2best.at
    Rewind to the start of the tournament and the talk was all about matters off the field: from workers’ rights to the treatment of the LGBTQ+ community.

    Just hours before the opening match, FIFA President Gianni Infantino launched into a near hour-long tirade to hundreds of journalists at a press conference in Doha, where he accused Western critics of hypocrisy and racism.

    “Reform and change takes time. It took hundreds of years in our countries in Europe. It takes time everywhere, the only way to get results is by engaging <>] not by shouting,” said Infantino.

    At one point, the FIFA president challenged the room of journalists, stressing FIFA will protect the legacy for migrant workers that it set out with the Qatar authorities.

    “I’ll be back, we’ll be here to check, don’t worry, because you will be gone,” he said.

    So, a year on from the World Cup final, what is the legacy of the 2022 World Cup?
  5. Monday, 24 June 2024 13:59
    Распространенные заблуждения о ремонте кожаной мебели.
    Используем жидкую кожу для ремонта кожаных диванов — надежно и эстетично. remont-kozhanoj-mebeli.ru .
  6. Monday, 24 June 2024 14:06
    Служба охраны труда обучение safetysystemsgroup.com

    Чтобы найти система аккредитации испытательных лабораторий приходите в нашу компанию. Позвоните по телефону +7(800)302-82-49 или оформите обратный звонок. Наш профессиональный работник приедет к Вам и осуществит инструментальные измерения, сроком от пяти рабочих дней. Наши основные услуги: оценка профессиональных рисков, аккредитация испытательной лаборатории, программа производственного контроля и другие.
  7. Monday, 24 June 2024 14:44
    Don't wait any longer to experience the thrill of online slots. Join our slot casino games today and embark on an adventure filled with fun, excitement, and endless opportunities to win. With our wide selection of games, generous bonuses, and secure environment, there's no better place to play. Sign up now and start spinning the reels for your chance to hit the jackpot!
  8. Monday, 24 June 2024 15:00

    Hi! I realize this is kind of off-topic but I had to ask. Does managing a well-established website like yours require a lot of work? I am completely new to blogging but I do write in my journal every day. I'd like to start a blog so I can share my own experience and thoughts online. Please let me know if you have any kind of suggestions or tips for brand new aspiring bloggers. Thankyou!

    ruyanamerica.com/News/News.cfm?NewsID=1003 
    familylevel.com/blogs/19/Why-is-the-demand-and-popularity-of-universities-decreasing-today 
    alcado.com.vn/san-pham-xa-hang 
    recept-food.ru/page/3 
    lapartenza.vn/thu-vien 
  9. Monday, 24 June 2024 20:54
    Get new tokens in the game now Hamster Kombat
    daily distribution Notcoin to your wallets
    Join our project notreward.pro and receive toncoin

    Hamster kombat airdrop
  10. Monday, 24 June 2024 21:22
    Привет!
    Узнайте самые свежие новости Кропивницкого! Мы предлагаем актуальные репортажи о событиях в городе, интервью с местными жителями и экспертами, а также подробный анализ важнейших происшествий. Будьте в курсе того, что происходит в Кропивницком, и не пропустите ничего важного!
    Все самое лучшее на сайте https://top10.kr.ua/category/kropivnickiy-novosti/
    Новости Украины лента

    новости Украины видео
    новости Украины
    новости Украины сегодня

    Удачи!
  11. Monday, 24 June 2024 22:38

    This information is worth everyone's attention. How can I find out more?

    opengadjet.ru/page/4 
    malispa.ru/users/122?wid=3563 
    www.korgforums.com/forum/phpBB2/viewtopic.php?t=129929&view=next 
    www.forums.wolflair.com/member.php?u=110846 
    jamdom.ru/buy/office/index.html 
  12. Monday, 24 June 2024 22:48
    Привет всем!

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

    Все самое лучшее на сайте https://dtp.vn.ua/category/novosti-vinnitsa/
    авто новости Винницы

    ДТП Винница за неделю
    авто новости Винницы
    ДТП Винница

    Удачи!
  13. Monday, 24 June 2024 22:51

    Amazing! This blog looks just like my old one! It's on a totally different topic but it has pretty much the same page layout and design. Wonderful choice of colors!
    https://click4r.com/posts/g/15707559/google-maps-marker-z-index-not-working buy backlinks online
    https://affiliates.trustgdpa.com/what-makes-a-%d1%81%d1%82%d1%80%d0%b0%d1%82%d0%b5%d0%b3%d0%b8%d1%87%d0%b5%d1%81%d0%ba%d0%be%d0%b5-%d0%bf%d0%b0%d1%80%d1%82%d0%bd%d0%b5%d1%80%d1%81%d1%82%d0%b2%d0%be/ captcha solution
    http://kxianxiaowu.com/forum.php?mod=viewthread&tid=163921 link building uk
    https://affiliates.trustgdpa.com/%d0%bc%d0%b0%d1%81%d1%81%d0%be%d0%b2%d0%b0%d1%8f-%d0%b8%d0%bd%d0%b4%d0%b5%d0%ba%d1%81%d0%b0%d1%86%d0%b8%d1%8f-%d1%81%d0%b0%d0%b9%d1%82%d0%be%d0%b2/ check a websites backlinks
    https://affiliates.trustgdpa.com/this-might-happen-to-you-%d0%bf%d1%80%d0%be%d0%b2%d0%b5%d1%80%d0%ba%d0%b0-%d0%b8%d0%bd%d0%b4%d0%b5%d0%ba%d1%81%d0%b0%d1%86%d0%b8%d0%b8-%d0%be%d0%bd%d0%bb%d0%b0%d0%b9%d0%bd-errors-to-keep-away-from/ mass indexing of sites
  14. Monday, 24 June 2024 22:51

    Amazing! This blog looks just like my old one! It's on a totally different topic but it has pretty much the same page layout and design. Wonderful choice of colors!
    https://click4r.com/posts/g/15707559/google-maps-marker-z-index-not-working buy backlinks online
    https://affiliates.trustgdpa.com/what-makes-a-%d1%81%d1%82%d1%80%d0%b0%d1%82%d0%b5%d0%b3%d0%b8%d1%87%d0%b5%d1%81%d0%ba%d0%be%d0%b5-%d0%bf%d0%b0%d1%80%d1%82%d0%bd%d0%b5%d1%80%d1%81%d1%82%d0%b2%d0%be/ captcha solution
    http://kxianxiaowu.com/forum.php?mod=viewthread&tid=163921 link building uk
    https://affiliates.trustgdpa.com/%d0%bc%d0%b0%d1%81%d1%81%d0%be%d0%b2%d0%b0%d1%8f-%d0%b8%d0%bd%d0%b4%d0%b5%d0%ba%d1%81%d0%b0%d1%86%d0%b8%d1%8f-%d1%81%d0%b0%d0%b9%d1%82%d0%be%d0%b2/ check a websites backlinks
    https://affiliates.trustgdpa.com/this-might-happen-to-you-%d0%bf%d1%80%d0%be%d0%b2%d0%b5%d1%80%d0%ba%d0%b0-%d0%b8%d0%bd%d0%b4%d0%b5%d0%ba%d1%81%d0%b0%d1%86%d0%b8%d0%b8-%d0%be%d0%bd%d0%bb%d0%b0%d0%b9%d0%bd-errors-to-keep-away-from/ mass indexing of sites