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. Thursday, 19 September 2024 05:16
    Профессиональная чистка матрасов: путь к здоровому сну
    Химчистка премиум матрасов - Химчистка премиум матрасов - .
  2. Thursday, 19 September 2024 05:16
    Советы по защите матраса из латекса от загрязнений
    Химчистка латексных матрасов - https://www.himchistka-lateks-matras.ru .
  3. Thursday, 19 September 2024 05:16

    Как сделать химчистку матраса от мочи быстрой и простой?, для идеального результата.
    химчистка матраса от мочи ребенка http://www.mocha-clean-matras.ru/ .
  4. Thursday, 19 September 2024 05:16
    Тайны успешной химчистки поролоновых изделий
    Химчистка поролоновых матрасов - himchistka-porolon-matras.ru .
  5. Thursday, 19 September 2024 05:17
    Очистка матраса от клопов: наши советы, которые работают.
    Химчистка матрасов от клопов - https://klopy-himchistka-matras.ru/ .
  6. Thursday, 19 September 2024 05:37
    There are many popular live sex cam sites that cater to all different preferences and desires. Some of the most popular ones include Chaturbate, MyFreeCams, LiveJasmin, and Flirt4Free.

    Chaturbate is known for its diverse selection of cam models, ranging from amateur performers to professional porn stars. It offers a unique "tip-based" system, where viewers can tip the performers for special requests or to show their appreciation.

    MyFreeCams is a popular choice for those looking for a more personalized experience, as many of the models offer private shows for a fee. It also has a large community aspect, with forums and chat rooms for viewers to interact with each other and the models.

    LiveJasmin is known for its high-quality video and audio, making it a top choice for viewers who value a visually stimulating experience. It also has a wide range of categories, allowing viewers to easily find the type of performer they are looking for.

    Flirt4Free is a popular site for those looking for a more intimate and interactive experience. It offers a variety of features such as cam-to-cam shows and interactive sex toys, making it a favorite among viewers who enjoy a more immersive experience.

    Overall, these live sex cam sites offer a diverse range of performers and features to cater to all types of desires and preferences. Their popularity shows that the demand for live sex cams continues to grow as people seek out new and exciting forms of sexual entertainment.

    https://okwave.jp/profile/u3129958.html
    https://anotepad.com/notes/tj8ne4ef
    https://tubeteencam.com/user/qadidasq199519981954/profile
    https://cannabis.net/user/156816
    https://tubeteencam.com/user/couton1990/profile
  7. Thursday, 19 September 2024 06:27
    Увлекательное казино Cryptoboss ждет вас, играйте и выигрывайте вместе с лучшим криптовалютным казино, возможность выиграть крупный джекпот, попробуйте удачу в казино Cryptoboss, Cryptoboss casino – ваш путь к успеху, Cryptoboss casino - ваш лучший выбор, испытайте свою удачу в казино Cryptoboss, участвуйте в захватывающих играх в Cryptoboss casino, удивительные возможности в казино от Cryptoboss, Cryptoboss casino - ваш путь к криптовалютному успеху, встречайте новый уровень криптовалютных ставок в Cryptoboss casino, играйте на криптовалютных волнах вместе с Cryptoboss, Cryptoboss casino - ваш ключ к фортуне, встречайте криптовалютного короля в казино, выигрывайте крупные суммы с Cryptoboss casino, Cryptoboss casino - гарант криптовалютных побед.
    скачать cryptoboss cryptoboss вход .
  8. Thursday, 19 September 2024 06:33
    Попробуйте свои силы в казино от Cryptoboss, играйте и выигрывайте вместе с королем криптовалютных игр, возможность выиграть крупный джекпот, попробуйте удачу в казино Cryptoboss, стать криптобоссом легко с Cryptoboss casino, Cryptoboss casino - ваш лучший выбор, ипотека доверия с Cryptoboss casino, Cryptoboss casino – ваша площадка для побед, удивительные возможности в казино от Cryptoboss, играйте и выигрывайте с лучшим криптовалютным казино, встречайте новый уровень криптовалютных ставок в Cryptoboss casino, Cryptoboss casino - ваш путеводитель в мире криптовалютных игр, Cryptoboss casino - ваш ключ к фортуне, следуйте за лидером с Cryptoboss casino, Cryptoboss casino - ваше казино удачи, присоединяйтесь к лидерам в мире криптовалютных игр с Cryptoboss casino.
    сайт cryptoboss casino сайт cryptoboss casino .
  9. Thursday, 19 September 2024 06:49
  10. Thursday, 19 September 2024 06:49
  11. Thursday, 19 September 2024 06:58
  12. Thursday, 19 September 2024 07:01
    Привет романтикам и любителям казино!
    Ищете актуальное зеркало Cryptoboss Casino? Наше рабочее зеркало на сегодня предоставляет надежный доступ к вашему любимому казино. Обновите свои ссылки для комфортной игры.
    Ссылка на Казино здесь - https://www.motorola-profi.ru/
    cryptoboss casino официальный зеркало
    cryptoboss зеркало вход
    криптобосс casino зеркало
    cryptoboss casino рабочее зеркало
    cryptoboss зеркало рабочее на сегодня

    cryptoboss casino зеркало на сегодня

    Хороших гонораров!
  13. Thursday, 19 September 2024 07:04
    Попробуйте свои силы в казино от Cryptoboss, играйте и выигрывайте вместе с королем криптовалютных игр, криптовалютные ставки для настоящих боссов, освойте мир криптовалютных игр в казино Cryptoboss, выиграть криптовалюты легко в Cryptoboss casino, играйте на крипто-максимуме вместе с Cryptoboss, испытайте свою удачу в казино Cryptoboss, эксклюзивное казино для ценителей криптовалют, взломай банк с Cryptoboss casino, Cryptoboss casino - ваш путь к криптовалютному успеху, революция в криптовалютных играх с Cryptoboss casino, большие выигрыши ждут вас в Cryptoboss casino, Cryptoboss casino - ваш ключ к фортуне, следуйте за лидером с Cryptoboss casino, выигрывайте крупные суммы с Cryptoboss casino, Cryptoboss casino - гарант криптовалютных побед.
    криптобосс сайт cryptoboss casino cryptoboss casino ru .
  14. Thursday, 19 September 2024 07:13