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

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

  1. Saturday, 22 June 2024 17:26
    Hello everybody!
    Expert Opinions & Analysis! Dive deeper into the news with expert opinions and analysis. Understand the impact of current events with insights from industry leaders and analysts.
    Very good thematic site - https://gsroups.com

    vacation
    local news
    national news
    headline news
    cooking techniques
    travel tips for couples
    health tips
    travel safety

    Goog luck!
  2. Saturday, 22 June 2024 18:02
    Можно ли сочетать биоревитализацию с другими косметологическими процедурами? Да, биоревитализацию можно сочетать с другими процедурами, такими как ботокс, филлеры и пилинги, но это должно быть согласовано с врачом
    биоревитализация препараты рейтинг https://www.biorevitalizaciyaa.ru .
  3. Saturday, 22 June 2024 18:19
    Привет, дорогой читатель!
    Приобретите диплом института или колледжа недорого с доставкой по РФ и гарантией качества без предварительной оплаты!
    http://id.nan-net.jp/system/login/link.cgi?jump=http://arena-diplomov.com/
    https://c2c.buzz/index.php?do=/public/blog/view/id_119668/title_/
    http://forumkasino.bestff.ru/viewtopic.php?id=2508#p5111
    http://pokypke.flybb.ru/topic330.html
    http://allonlinesport.ru/kupit-nastoyashhiy-diplom-vyisshego-uchebnogo-zavedeniya-rossii/
  4. Saturday, 22 June 2024 19:07
    Good day!
    Luxury Travel Experiences! Indulge in the finer things with our luxury travel recommendations. Discover high-end hotels, gourmet dining, and exclusive experiences.
    Very good thematic site - https://mail-grups.com

    international cuisine
    hacks
    investment opportunities
    travel tips for couples
    finance
    lead generation
    technology tips
    luxury travel

    Goog luck!
  5. Saturday, 22 June 2024 20:32

    Can you tell us more about this? I'd like to find out more details.

    forum.trackbase.net/members/21965-sonnick84?vmid=2440 
    bpelena.org.ua/perevod-telefonnyh-razgovorov/ 
    cogita.site/news/otchety/andrei-scherbak.-gosudarstvo-i-malyi-biznes-ruka-dayuschaya-i-ruka-karayuschaya 
    www.italian-style.ru/Nasha_kompanija/forum/?PAGE_NAME=profile_view&UID=54311 
    tygyoga.com/home/blog_details/88 
  6. Saturday, 22 June 2024 20:59
    We know how to increase your financial stability. https://t.me/cryptaxbot/11
  7. Saturday, 22 June 2024 23:42
    Привет!
    Израильские стартапы: инновации и достижения
    В последние годы Израиль стал мировым лидером в области стартапов и инноваций. В этом разделе вы найдете самые свежие новости о новых технологиях, стартапах и изобретениях из Израиля. Узнайте о последних достижениях в области медицины, IT, агротехнологий и многом другом. Читайте о том, как израильские компании меняют мир и какие инновации готовятся к выпуску в ближайшем будущем.

    Все самое лучшее на сайте https://isra.news/category/israel/
    Новости спорта

    новости мира
    последние новости Израиля
    новости Израиля за день

    Удачи!
  8. Saturday, 22 June 2024 23:46
    Доброго!
    Хотите быть в курсе всех событий Кропивницкого? Наш новостной портал предлагает оперативные и достоверные новости о жизни города. От культурных мероприятий до экономических новостей - все это вы найдете у нас. Оставайтесь с нами!
    Все самое лучшее на сайте https://0522.kr.ua/
    Новости Украины за день


    последние новости Кропивницкого
    Новости Кропивницкого сегодня
    новости Украины сегодня

    Удачи!
  9. Sunday, 23 June 2024 00:04
    mouse sepw1 gene orf cdna clone expression plasmid, c-myc tag - купить онлайн в интернет-магазине химмед
    Tegs: 4- allyloxy -2-bromo-5-ethoxybenzoic acid - купить онлайн в интернет-магазине химмед
    2- 2-bromo-6-ethoxy-4-formylphenoxy -n- 3- trifluoromethyl phenyl acetamide - купить онлайн в интернет-магазине химмед
    ethyl 4- 5-oxo-3- trifluoromethyl -4,5-dihydro-1h-pyrazol-1-yl benzoate - купить онлайн в интернет-магазине химмед

    mouse cyp2a12 gene orf cdna clone expression plasmid, n-flag tag - купить онлайн в интернет-магазине химмед https://chimmed.ru/products/mouse-cyp2a12-gene-orf-cdna-clone-expression-plasmid-n-flag-tag-id=1652323
  10. Sunday, 23 June 2024 01:56
  11. Sunday, 23 June 2024 05:00

    Лучшие компании по проведению строительного аудита в Москве, которые заслуживают доверия.
    Аудит строительно-монтажных работ гарантирует соответствие выполненных работ проектной документации и стандартам. http://audit-stroitelnykh-rabot.ru/ .
  12. Sunday, 23 June 2024 05:44

    Hi friends, how is everything, and what you desire to say regarding this paragraph, in my view its genuinely awesome in support of me.

    www.vietnammm.com/kr/restaurants/An-Tam 
    kinogonews.ru/page/5 
    ediblehomegardensresorts.com/index.php?do=/public/user/blogs/name_Alanpoe/page_7/ 
    51.15.223.140/forum/member.php?tab=visitor_messaging&u=76509&page=6 
    landenopqqo.dailyblogzz.com/22644541/the-smart-trick-of-marketing-that-no-one-is-discussing