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

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

  1. Monday, 29 July 2024 14:38
    Аренда автобуса с водителем в СПб: Ваш надежный выбор.

    Если вам нужно заказ автобуса в Санкт-Петербурге, sprinauto предлагает качественные услуги. Мы предлагаем заказ автобусов в СПб по доступным ценам.

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

    Для тех, кто ищет аренду автобуса в СПб, +78129251575 предлагает надежные транспортные услуги. Мы предоставляем вежливых и квалифицированных водителей, которые обеспечат безопасную и приятную поездку.

    Не откладывайте на завтра, арендуйте автобус прямо сейчас! Напишите нам по телефону +78129251575, чтобы получить подробную информацию и оформить заказ. СпринтурАвто – ваш надежный партнер для пассажирских перевозок в Санкт-Петербурге и за его пределами.
  2. Monday, 29 July 2024 14:47
    Аренда автобуса с водителем в СПб: Ваш надежный выбор.

    Если вам нужно аренда автобуса в Санкт-Петербурге, sprinauto предлагает лучшие условия. Мы предлагаем заказ автобусов в СПб по доступным ценам.

    Автобусные перевозки от спринтуравто - это безопасность и удобство. Вы можете арендовать автобус для перевозки людей по выгодной цене. Наша компания предоставляет широкий выбор транспортных средств, подходящие для любых нужд.

    Для тех, кто хочет заказать автобус для перевозки людей в СПб, sprinauto предлагает доступные цены и комфортные условия. Мы гарантируем профессиональных водителей, которые обеспечат безопасную и приятную поездку.

    Не откладывайте на завтра, арендуйте автобус прямо сейчас! Напишите нам по телефону +78129251575, чтобы получить подробную информацию и оформить заказ. СпринтурАвто – ваш надежный партнер для автобусных перевозок в Санкт-Петербурге и за его пределами.
  3. Monday, 29 July 2024 17:43
    Welcome to our platform, your leading source for all the newest news and information on the broadcasting landscape in the United Kingdom. Whether you're fascinated in telecasts, audio broadcasting, publishing, or online content, we deliver thorough coverage that keeps you aware about the key changes and shifts. From breaking articles to detailed analyses, our team of veteran journalists and industry professionals work ceaselessly to bring you the most precise and latest information - https://ukeventnews.uk/pretty-hate-machines-an-introduction-to-industrial/
    In addition to to updates, we present informative features and opinion pieces that delve into the nuances of the broadcasting industry. Our features cover a wide range of topics, including regulatory modifications, media ownership, and the impact of new innovations. We also showcase the successes and challenges faced by media professionals, offering a platform for voices from throughout the industry to be listened to and acknowledged.
    Stay in touch with the pulse of the UK media scene through our consistently updated content. Whether you're a media professional, a student, or simply a media enthusiast, our portal is designed to accommodate to your preferences and needs. Join our growing community of readers and ensure you're always in the know about the dynamic and constantly changing world of media in the United Kingdom.
  4. Monday, 29 July 2024 18:30
    How would you reate my boobs?

    [img=https://preview.redd.it/8a37vub5fxbd1.jpeg?auto=webp&s=90cba546185d6f812b340b02c22c9a71996adca1" alt="8a37vub5fxbd1.jpeg?auto=webp&s=90cba546185d6f812b340b02c22c9a71996adca1]
  5. Monday, 29 July 2024 18:49
    can zithromax be taken wirh azo urinary relief non prescription zithromax zithromax online prescription zithromax for ear infection in toddlers zithromax dose for cellulitis
  6. Monday, 29 July 2024 19:39
    Hello dear friend, I would like to offer placement of your link (or links) on different platforms of the internet such as: forums, blogs, comments and much more. . .

    Increase your Visibility Boost Your Seo Rank - Get Organic Traffic From Google. Ranking in Google isn’t hard. All you need is a healthy number of backlinks from referring domains that have authority and trust in Google’s eyes.

    This Backlinks Service Benefits:

    1. Easily get Google rankings

    2. Get a lot of traffic from Google

    3. You can earn from the website in different ways

    4. Increase Domain Authority (DA)

    Quality guaranteed !

    PRICE - 20$

    WebSite - https://goo.su/CHM5cJW
  7. Monday, 29 July 2024 22:25
    https://ses-moskva-sanepidemstantsiya.ru/ - дезинсекция от блох в квартире
    https://ses-moskva-sanepidemstantsiya.ru/ - дезинфекция клопов в квартире
    https://ses-moskva-sanepidemstantsiya.ru/ - служба дезинфекции от клопов
    https://ses-moskva-sanepidemstantsiya.ru/ - обработка от клопов в москве цена
    https://ses-moskva-sanepidemstantsiya.ru/ - московская санитарно эпидемиологическая служба
  8. Monday, 29 July 2024 23:57
    2-methyl-5-morpholinoaniline - купить онлайн в интернет-магазине химмед
    Tegs: n- 4-bromobutyl phthalimide; 98% - купить онлайн в интернет-магазине химмед
    4-bromo-2,6-di-tert-butylphenol, 98%; - купить онлайн в интернет-магазине химмед
    3-bromo-4-methoxybenzaldehyde, 98%; - купить онлайн в интернет-магазине химмед

    n- 3-cyano-4,5,6,7-tetrahydro-2-benzothienyl -3-phenylpropanamide - купить онлайн в интернет-магазине химмед https://chimmed.ru/products/n-3-cyano-4567-tetrahydro-2-benzothienyl-3-phenylpropanamide-id=4511598
  9. Tuesday, 30 July 2024 00:19
    Thank you for registering. Contact us again http://sheikah.org Okeygorandom ind5213479
  10. Tuesday, 30 July 2024 00:46


    Камины и печи: уют в вашем доме, быстрый поиск.
    Магазин печи и камины готов удовлетворить все ваши потребности в отоплении: https://www.magazin-kaminy.ru .
  11. Tuesday, 30 July 2024 01:42
    Межкомнатные двери рфд.рф

    Если Вы планировали найти лучшие межкомнатные двери в сети интернет, то прямо сейчас звоните нам. Наш телефон +7(919)012-34-98. Мы расположены по адресу: г. Ковров, ул. Муромская, д. 26 В. График работы с понедельника по пятницу с 8:00 до 17:00. Работаем в самые стремительные сроки и также быстро пытаемся выслать покупателю заказ. Скорее звоните и уже совсем скоро принимайте свои лучшие межкомнатные двери.