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

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

  1. Friday, 21 June 2024 06:23

    Hi there it's me, I am also visiting this web page daily, this web site is truly fastidious and the visitors are genuinely sharing pleasant thoughts.
    купить диплом в калининграде
    https://drc.uog.edu.et/life-is-good/
    https://ssa.ru/forum/kupit-diplom-v-moskve-konfidencialno.html
    http://topnewsgadget.ru/kupite-diplom-i-realizuyte-svoi-professionalnyie-mechtyi
    http://freedomrp.getbb.ru/viewtopic.php?f=110&t=652
    http://bahchisaray.org.ua/index.php?showtopic=33212

    купить диплом в верхней пышме
  2. Friday, 21 June 2024 08:31
    Hello everybody!
    E-commerce for Small Businesses! Take your small business online and reach a global audience. Explore the benefits of e-commerce and how to set up your own online store.
    Very good thematic site - https://mail-grups.com

    marketing
    travel blog tips
    investments
    investigative journalism
    health tips
    entrepreneurial success
    entertainment news
    news today

    Goog luck!
  3. Friday, 21 June 2024 08:45
    Привет, дорогой читатель!
    Приобретите диплом ВУЗа по выгодной цене с доставкой по всей России без предоплаты!
    https://forum.l2gavno.ru/threads/kupit-diplom-u220l.1689/
    https://www.unidocs.ru/product/russkoe-menju-ilona-fedotova/reviews/
    http://sensemi.getbb.ru/viewtopic.php?f=6&t=503
    http://maxima.2ua.in.ua/viewtopic.php?f=3&t=5124
    https://sur.ly/i/diplomsagroups.com/
  4. Friday, 21 June 2024 09:15

    Good day! This post couldn't be written any better! Reading through this post reminds me of my previous room mate! He always kept talking about this. I will forward this write-up to him. Pretty sure he will have a good read. Thanks for sharing!
    http://forum.analysisclub.ru/index.php/topic,141052.0.html?PHPSESSID=c392b465868cc21a0323fd66d50b43ea

    купить диплом в москве
    http://damdesign.ru

    купить диплом в благовещенске
  5. Friday, 21 June 2024 09:56

    Do you have a spam problem on this site; I also am a blogger, and I was wondering your situation; we have developed some nice practices and we are looking to swap methods with other folks, be sure to shoot me an email if interested.

    mypenza.ru/forum/index.php?showtopic=54674&mode=linear 
    www.zarya.lg.ua/news/495779 
    pronutritionstore.in/view/Pronutrition-Biotin-with-High-Potency-Formula-added-Vitamin-C-Citrus-Bioflavonoid-Concentrate-120-Vegan-Capsules-for-Hair-Skin-Nails-270395 
    benhvienthammyasean.com/cau-chuyen-asean 
    www.lineamaison.ru/index.php?ukey=linkexchange&did=33&le_categoryID=0&page=1&show_all=yes%D0%92%C2%A0 
  6. Friday, 21 June 2024 12:24
    В мире, где медицинские технологии и информационные ресурсы становятся все более значимыми, портал darmed.kz представляет собой одну из ведущих онлайн-платформ в Казахстане, которая объединяет медицинские услуги, информацию и инновации для пациентов и медицинских работников. Этот портал предоставляет широкие возможности для улучшения качества медицинского обслуживания и повышения уровня здоровья населения. В этой статье мы рассмотрим основные особенности и преимущества портала darmed.kz.

    Интуитивно понятный интерфейс и доступность информации

    Одним из главных преимуществ портала darmed.kz является его удобный и понятный интерфейс. Пользователи могут легко найти нужную информацию о различных заболеваниях, методах лечения и профилактики. Портал предлагает структурированную информацию, которая помогает быстро найти ответы на интересующие вопросы. Разделы портала как iherb промокод.

    Образовательные ресурсы для медицинских работников

    Для медицинских работников портал darmed.kz предлагает широкий спектр образовательных ресурсов. Вебинары, онлайн-курсы и семинары помогают врачам и медицинским специалистам повышать квалификацию, узнавать о новейших методах диагностики и лечения, обмениваться опытом с коллегами. Это способствует повышению уровня медицинской помощи и развитию профессиональных навыков специалистов.

    База данных медицинских учреждений и специалистов

    На портале darmed.kz представлена обширная база данных медицинских учреждений и специалистов. Пользователи могут найти информацию о клиниках, больницах, диагностических центрах и врачах различных специальностей. Это позволяет быстро выбирать медицинское учреждение или специалиста, ориентируясь на отзывы других пациентов и рейтинг. Также доступна информация о предоставляемых услугах и ценах, что помогает сделать осознанный выбор.

    Актуальные новости и статьи

    Портал darmed.kz регулярно обновляется и предоставляет пользователям актуальные второе кесарево сечение. Это помогает пользователям быть в курсе последних тенденций и заботиться о своем здоровье на основе проверенной и актуальной информации.

    Инновационные решения и перспективы развития

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

    Заключение

    Медицинский портал darmed.kz представляет собой инновационную и многофункциональную платформу, объединяющую широкий спектр услуг и возможностей для пациентов и медицинских работников. Удобный интерфейс, доступ к онлайн-консультациям, записи на прием, образовательным ресурсам и актуальной информации делают этот портал незаменимым помощником в вопросах здоровья. Интерактивные сервисы и мобильное приложение обеспечивают доступ к услугам в любое время и в любом месте, а сообщество и форум создают условия для общения и поддержки. Darmed.kz продолжает развиваться и внедрять новые технологии, что делает его одним из ведущих медицинских порталов в Казахстане и надежным партнером в вопросах заботы о здоровье и благополучии.
  7. Friday, 21 June 2024 12:40

    Hi there to all, the contents existing at this web page are actually amazing for people knowledge, well, keep up the good work fellows.
    купить диплом в иркутске
    https://iqtorg.ru/forum/user/18359/
    http://uktuliza.ru/forum/?PAGE_NAME=profile_view&UID=17593
    https://antidroga.interno.gov.it/logo-governo-italiano-bianco-top-panel/
    http://kutejnikovo-61.ru/forum/messages/forum1/topic222/message221/?result=new#message221
    https://go.southernct.edu/realtalk/episodes-list/real-talk-the-past-present-and-future-of-cancel-culture/

    купить диплом преподавателя