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. Sunday, 23 June 2024 16:45
    Rybelsus - Quick and Easy Weight Lass

    According to randomised controlled trials, you start losing weight immediately after taking Rybelsus. After one month, the average weight loss on Rybelsus is around 2kg; after two months, it’s over 3kg.

    What does Rybelsus do to your body?

    Rybelsus (oral semaglutide) is a GLP-1 receptor agonist. It mimics a fullness hormone called GLP-1.

    Rybelsus reduces appetite and hunger by interacting with the brain’s appetite control centre, the hypothalamus. This effect on the brain helps you eat fewer calories and starts almost immediately after taking the pill.

    However, you might notice your hunger levels rising and falling in the first 4-5 weeks you take Rybelsus.

    It can take around 4-5 weeks for Rybelsus to reach a level in the body we call a steady state. A steady state is when the drug’s levels in the body remain consistent rather than spiking and falling.

    Interestingly, this initial weight loss is no different to other weight loss treatments or the impact of diet interventions on weight loss. The real effect of oral semaglutide is seen beyond three months.

    Oral semaglutide is a long-acting medication that’s started at a lower dose to reduce the number and severity of side effects as it’s built up to a higher maintenance dose.

    https://true-pill.top/rybelsus.html
  2. Sunday, 23 June 2024 16:45
    Rybelsus - Quick and Easy Weight Lass

    According to randomised controlled trials, you start losing weight immediately after taking Rybelsus. After one month, the average weight loss on Rybelsus is around 2kg; after two months, it’s over 3kg.

    What does Rybelsus do to your body?

    Rybelsus (oral semaglutide) is a GLP-1 receptor agonist. It mimics a fullness hormone called GLP-1.

    Rybelsus reduces appetite and hunger by interacting with the brain’s appetite control centre, the hypothalamus. This effect on the brain helps you eat fewer calories and starts almost immediately after taking the pill.

    However, you might notice your hunger levels rising and falling in the first 4-5 weeks you take Rybelsus.

    It can take around 4-5 weeks for Rybelsus to reach a level in the body we call a steady state. A steady state is when the drug’s levels in the body remain consistent rather than spiking and falling.

    Interestingly, this initial weight loss is no different to other weight loss treatments or the impact of diet interventions on weight loss. The real effect of oral semaglutide is seen beyond three months.

    Oral semaglutide is a long-acting medication that’s started at a lower dose to reduce the number and severity of side effects as it’s built up to a higher maintenance dose.

    https://true-pill.top/rybelsus.html
  3. Sunday, 23 June 2024 20:22
    Здравствуйте!
    Новости Украины и мира: все, что нужно знать о главных событиях дня. Следите за развитием событий в режиме реального времени.
    Все самое лучшее на сайте https://smi.in.ua/nauka/
    Новости Украины лента

    новости Украины видео
    новости за день
    новости шоу бизнеса

    Удачи!
  4. Sunday, 23 June 2024 21:56
    Привет!
    Кропивницкий - это город, где всегда что-то происходит. Будьте в курсе всех новостей - от социальных инициатив до важных экономических изменений. Мы предоставляем подробные и достоверные отчеты о жизни нашего города.
    Все самое лучшее на сайте https://bomba.kr.ua/
    Новости Кропивницкого главные

    Новости Украины лента
    новости Украины за день
    Главные новости Украины

    Удачи!
  5. Sunday, 23 June 2024 22:21

    What's up to all, how is everything, I think every one is getting more from this website, and your views are pleasant for new people.

    brgdiamond.vn/en/services-residential/ 
    bbs.blueplatform.org/space-uid-31463.html 
    chaussure-lumineuse.fr/chaussure-led-basket-lumineuse-pour-enfant-chaussure-lumineuse/ 
    tirserwis-lublin.pl/mapka.html 
    vitz.ru/forums/index.php?autocom=gallery&req=si&img=2680 
  6. Sunday, 23 June 2024 22:33

    Hey I know this is off topic but I was wondering if you knew of any widgets I could add to my blog that automatically tweet my newest twitter updates. I've been looking for a plug-in like this for quite some time and was hoping maybe you would have some experience with something like this. Please let me know if you run into anything. I truly enjoy reading your blog and I look forward to your new updates.
    http://uniquetattoo.ru/anchor

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

    купить диплом в артеме
  7. Monday, 24 June 2024 00:31
    Archetyp Market
    https://github.com/MarketArchetyp/Link
  8. Monday, 24 June 2024 01:22
    Охрана труда онлайн обучение safetysystemsgroup.com

    Что касается охрана труда обучение 24 приходите в нашу организацию. Звоните по контактному телефону +7(800)302-82-49 или подайте заявку обратный звонок. Наш профессиональный работник приедет к Вам и осуществит инструментальные измерения, сроком от 5ти рабочих дней. Наши основные услуги: производственный экологический контроль, инженерно экологические изыскания, обучение по охране труда и другие.
  9. Monday, 24 June 2024 05:42

    I loved as much as you will receive carried out right here. The sketch is attractive, your authored subject matter stylish. nonetheless, you command get got an nervousness over that you wish be delivering the following. unwell unquestionably come further formerly again as exactly the same nearly a lot often inside case you shield this increase.

    lovisribca.ru/search.php 
    www.tovery.net/guestbook.asp?user=okokok&Page=3 
    flora-online.ru/glavnaya/tsvetyi-na-1-sentyabrya-2/ 
    www.topfoto.ru/index.php?links_exchange=yes&page=36&show_all=yes 
    lolipopnews.ru/page/9 
  10. Monday, 24 June 2024 05:44
    ALCOHOL DELIVERY

    We are a Toronto-based company that offers dial-a-bottle service and deliver beverages to all parts of the city.

    You won’t ever need to leave your house to repurchase alcohol if you choose a reliable alcohol delivery Toronto service like ours.

    Why? Because we have a variety of alcoholic beverage alternatives for you to pick from.

    Explore our online liquor selection, select the kind and brand of alcohol, then click the place order button. Then what?

    Your order will be delivered immediately to your home or workplace location.
  11. Monday, 24 June 2024 08:44
    В нашем мире, где диплом становится началом удачной карьеры в любой области, многие ищут максимально быстрый путь получения качественного образования. Наличие документа об образовании трудно переоценить. Ведь именно он открывает двери перед людьми, стремящимися начать профессиональную деятельность или учиться в каком-либо институте.
    Наша компания предлагает быстро получить этот необходимый документ. Вы сможете купить диплом, и это становится удачным решением для всех, кто не смог завершить образование или утратил документ. Любой диплом изготавливается аккуратно, с максимальным вниманием к мельчайшим нюансам. В результате вы получите 100% оригинальный документ.
    Преимущество подобного подхода заключается не только в том, что можно максимально быстро получить диплом. Процесс организован комфортно и легко, с нашей поддержкой. Начиная от выбора подходящего образца до консультаций по заполнению персональной информации и доставки по стране — все под абсолютным контролем опытных мастеров.
    Всем, кто хочет найти оперативный способ получения требуемого документа, наша компания предлагает выгодное решение. Заказать диплом - значит избежать длительного обучения и не теряя времени перейти к своим целям: к поступлению в ВУЗ или к началу удачной карьеры.
    http://ruscuisineambassador.ru
    http://turgenev-2018.ru
    http://diplomgos.info/
    http://git-ugra.ru
    http://unikum-student.ru
  12. Monday, 24 June 2024 09:37
    Почему стоит доверить чистку драгоценных мебельных предметов специалистам.
    Профессиональная химчистка антикварной мебели — сохраните семейные ценности. ximchistka-antikvarnoj-mebeli.ru .