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

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

  1. Tuesday, 16 July 2024 16:42
    Здравствуйте!
    Приобрести диплом университета.
    Наш сервис предлагает приобрести диплом в высоком качестве, неотличимый от оригинала без использования дорогостоящего оборудования и опытного специалиста.
    Где приобрести диплом специалиста?
    http://www.forumklassika.ru/showthread.php?t=129420&p=1843653#post1843653
    Удачи!
  2. Tuesday, 16 July 2024 18:16
    купить диплом в ростове-на-дону ast-diplomas.com .
  3. Tuesday, 16 July 2024 18:16
    купить диплом 1997 ast-diplomas.com .
  4. Tuesday, 16 July 2024 18:16
    купить диплом техникума в тольятти ast-diplomas.com .
  5. Tuesday, 16 July 2024 19:52
    Здравствуйте!
    Заказать документ университета вы сможете у нас. Мы оказываем услуги по производству и продаже документов об окончании любых ВУЗов Российской Федерации.
    Наши специалисты предлагают быстро и выгодно приобрести диплом, который выполнен на оригинальной бумаге и заверен мокрыми печатями, водяными знаками, подписями. Диплом способен пройти любые проверки, даже при помощи специально предназначенного оборудования.
    http://msfo-soft.ru/msfo/forum/messages/forum30/topic10011/message278548/?result=new#message278548
    http://www.lada-vesta.net/showthread.php?p=467339#post467339
    https://knigigo.ru/?post_type=topic&p=17457
    http://forum.drustvogil-galad.si/index.php/topic,12725.new.html#new
    http://clindoeilinfo.com/a-peine-arrivee-parmi-les-reseaux-sociaux-lapplication-threads-serait-dans-le-collimateur-de-la-justice/#comment-79454/
  6. Tuesday, 16 July 2024 22:46
    Легализация перепланировки важна для соблюдения всех норм и законодательства. Наша компания предлагает помощь в узаконивании перепланировок, включая сбор и подачу документов, а также взаимодействие с контролирующими органами.

    Услуга узаконивание перепланировки обеспечит вам спокойствие и уверенность в том, что все изменения в вашем помещении соответствуют требованиям закона. Мы гарантируем быстрое и профессиональное выполнение всех необходимых процедур.
  7. Wednesday, 17 July 2024 01:31
    Find medicine info. Drug impacts explained.
    buy generic baclofen
    Get pill details. Drug facts provided.
  8. Wednesday, 17 July 2024 03:43
    Encryption and Security: Keeping Darkweb Market's Secrets
    Darkweb: A Glimpse into the Thriving Darknet Marketplace
    https://medium.com/@serpus18/top-darkweb-markets-c6ff08eeca4d
    Cryptocurrencies and Contraband: The Financial Backbone of Darkweb Market
    Darkweb Darknet Market is an online marketplace on the Darknet accessible through anonymous networks such as Tor. It is one of the oldest and most reliable darknet markets, providing access to various goods and services that cannot be found on the regular Internet.
    https://github.com/top-web-market/Best-darkweb-markets
  9. Wednesday, 17 July 2024 04:06
    Dedicated to Stream lovers !
    Step into the world of Limelight Stream, your go-to source for top-tier streaming entertainment. We bring you an extensive library of blockbuster movies, critically acclaimed TV shows, and live events that cater to all tastes and preferences. Our platform offers high-definition streaming, providing a visually stunning experience that keeps you engaged. With an intuitive design, finding your next favorite show is easy and enjoyable. Whether you’re at home or traveling, Limelight Stream ensures that you have access to quality entertainment on any device. Our advanced recommendation system personalizes your viewing experience, making it easy to discover new content that you’ll love. Start your streaming journey with http://www.limelight-stream.com/ today and experience entertainment like never before.

    Game streaming latency solutions
    Free game streaming software
    Game streaming software reviews
    Game streaming data usage
    How to stream games to phone

    Good luck!
  10. Wednesday, 17 July 2024 06:37
    Detailed drug knowledge. Find medication details.
    where buy baclofen
    Access drug details. Medication guide here.
  11. Wednesday, 17 July 2024 09:28
    www.NoxProxy.com | High Quality IPv6 Proxy | IPv6 proxy from Residential ISP or Mobile ISP

    - Virgin IPv6 Proxy (Private, Dedicated)
    - IPv6 Mobile or Residential Proxy
    - IPv6 HTTP or Socks5 proxy
    - High Speed IPv6 Proxy
    - High Quality IPv6 Proxy
    - Rotating IPv6 Proxy (Configurable)
    - Static IPv6 Proxy (Configurable)

    26 Geo Locations available:
    Australia - Brisbane
    Brazil - Palmas
    Canada - Montreal
    Colombia - Cali
    Djibouti - Djibouti City
    France - Lyon
    Germany - Munich
    Hong Kong - Hong Kong
    Hungary - Budapest
    India - Mumbai
    Indonesia - Jakarta
    Japan - Osaka
    Malaysia - Kuala Lumpur
    Netherlands - Amsterdam
    Philippines - Quezon City
    Poland - Warsaw
    Portugal - Porto
    Singapore - Singapore
    South Africa - KwaZulu-Natal
    Spain - Barcelona
    Sweden - Gothenburg
    Switzerland - Zurich
    Taiwan - Taipei City
    United Arab Emirates - Abu Dhabi
    United Kingdom - Birmingham
    United States - Huntsville

    www.NoxProxy.com
    Telegram: @NoxProxyIPv4IPv6
  12. Wednesday, 17 July 2024 10:53
    мунжаро сайт - мунжаро отзывы, mounjaro отзывы