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

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

  1. Saturday, 15 June 2024 15:08
    Dragon money — это платформа для азартных игр, где каждый найдет что-то по вкусу. Промокоды помогут улучшить ваш игровой опыт. Ассортимент игр здесь удовлетворит даже самых требовательных игроков. В этом сообществе доступно множество бездепозитных промокодов.
  2. Saturday, 15 June 2024 16:30
    A beloved National Park Service ranger died when he tripped, fell and struck his head on a rock during an annual astronomy festival in southwestern Utah, park officials said over the weekend.
    kraken14.at
    Tom Lorig was 78 when he died after the incident at Bryce Canyon National Park late Friday.
    kraken13.at
    https://kraken-16.at
    He was known for his extensive work as a ranger and volunteer at 14 National Park Service sites, including Yosemite National Park, Carlsbad Caverns National Park and Dinosaur National Monument, the park service said in a statement Saturday.

    “Tom Lorig served Bryce Canyon, the National Park Service, and the public as an interpretive park ranger, forging connections between the world and these special places that he loved,” Bryce Canyon Superintendent Jim Ireland said in the statement.
  3. Saturday, 15 June 2024 16:45
    Привет студенты!

    Хорошо быть студентом, пока не придет пора писать диплом, что и произошло со мной, но не стоит отчаиваться, ведь есть хорошие компании что помогают с написанием и сдачей диплома на хорошие оценки!
    Изначально искал информацию про купить дипломы о высшем образовании стоимость, купить диплом о высшем образовании 2023, куплю диплом о среднем образовании в красноярске, купить диплом среднее специальное москва, купить диплом лесника, потом попал на https://www.arusak-diploms-srednee.ru/ и там решили все мои учебные заботы!
    Удачи и хороших оценок!

    купить диплом среднего специального
    купить диплом в ленинск-кузнецком
    куплю диплом о среднем образовании недорого
    купить диплом в новочеркасске
    аттестат купить в нижневартовске
    кто купил диплом о среднем образовании
    диплом массажиста государственного образца купить
    купил диплом в переходе
    куплю диплом дней
    купить диплом в тамбове
  4. Saturday, 15 June 2024 18:47

    Привет, друзья!
    Всегда считал, что покупка диплома о высшем образовании — это миф. Но, оказалось, что все возможно! Сначала искал информацию по теме: купить диплом в озёрске, купить диплом в майкопе, купить диплом машиниста, купить диплом массажиста, купить диплом геодезиста, а затем перешел на дипломы вузов. Подробнее можно узнать здесь: https://themepacific.com/support/users/lutroduyda/
    Оказалось, что все возможно и официально, с упрощенными программами обучения. Теперь у меня диплом московского вуза нового образца, и я рекомендую вам воспользоваться этим шансом!
    Удачи и хороших оценок!
  5. Saturday, 15 June 2024 19:11

    Hi there! This post couldn't be written any better! Reading through this post reminds me of my old room mate! He always kept chatting about this. I will forward this write-up to him. Fairly certain he will have a good read. Thanks for sharing!
    http://www.forum.pankeewa.org.ru/viewtopic.php?p=249664&highlight=

    купить диплом в новочебоксарске
    http://clskuntsevo.ru

    купить диплом в череповце
  6. Saturday, 15 June 2024 19:15

    Keep on working, great job!
    купить диплом в твери
    http://ddtzd.ru
    http://1matematiki.ru
    http://referat-diplom.ru

    купить диплом в норильске
  7. Saturday, 15 June 2024 21:52
    Men dating men experience out of, consistency, and the beauty of relationships in their own unique way.
    https://hentai0day.com
    In a superb that embraces range and inclusivity, same-sex relationships have ground their place. Men who fixture men navigate the joys and challenges of building expressive connections based on authenticity and complementary understanding. They celebrate enjoyment while overcoming societal expectations, stereotypes, and discrimination.
    https://amateurxxx.one
    Communication and emotional intimacy disport oneself a crucial role in their relationships, fostering trust and deepening their bond. As society progresses towards justice, it is distinguished to recognize and respect the friendship shared between men dating men, embracing their unequalled experiences and contributions to the tapestry of human connections.
  8. Sunday, 16 June 2024 00:00
    В современном мире, где диплом - это начало отличной карьеры в любой области, многие ищут максимально быстрый путь получения качественного образования. Факт наличия документа об образовании переоценить невозможно. Ведь диплом открывает дверь перед всеми, кто желает начать трудовую деятельность или продолжить обучение в университете.
    Предлагаем оперативно получить этот необходимый документ. Вы имеете возможность приобрести диплом, что становится отличным решением для всех, кто не смог завершить образование или потерял документ. Каждый диплом изготавливается аккуратно, с максимальным вниманием ко всем элементам, чтобы в итоге получился 100% оригинальный документ.
    Преимущество такого решения состоит не только в том, что вы сможете быстро получить диплом. Процесс организовывается комфортно и легко, с профессиональной поддержкой. От выбора необходимого образца до консультации по заполнению личных данных и доставки по стране — все находится под абсолютным контролем опытных специалистов.
    Для тех, кто хочет найти быстрый и простой способ получить требуемый документ, наша компания готова предложить отличное решение. Приобрести диплом - значит избежать продолжительного обучения и сразу переходить к своим целям, будь то поступление в университет или старт карьеры.
    http://seoklan.ru
    http://akadem-minstroy.ru
    http://books4study.info
    http://sfu.su
    http://r-diplom.ru
  9. Sunday, 16 June 2024 00:43

    Good day! Do you use Twitter? I'd like to follow you if that would be okay. I'm undoubtedly enjoying your blog and look forward to new updates.
    купить диплом инженера механика
    http://hackspace-spb.ru
    http://damdesign.ru
    http://mixnutrition.ru

    купить диплом инженера по охране труда