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

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

  1. Wednesday, 26 June 2024 06:10
    Лучшие способы уборки кожаных диванов и кресел, для сохранения красоты и блеска.
    Чистка кожаной мебели на дому позволяет сохранить её в идеальном состоянии, не покидая комфорт своего жилища: http://ximchistka-kozhanoj-mebeli.ru .
  2. Wednesday, 26 June 2024 06:30
    Men dating men participation love, connection, and the stunner of relationships in their own unmatched way.
    https://gayblowjob.tv
    In a life that embraces distinctiveness and inclusivity, same-sex relationships have organize their place. Men who date men sail the joys and challenges of edifice relevant connections based on authenticity and joint understanding. They hallow enjoyment from while overcoming societal expectations, stereotypes, and discrimination.
    https://zeenite.com
    Communication and fervent intimacy play a crucial task in their relationships, fostering assurance and deepening their bond. As society progresses toward equality, it is important to distinguish and particular the angel shared between men dating men, embracing their together experiences and contributions to the tapestry of human connections.
  3. Wednesday, 26 June 2024 07:14
    Dating is a go abroad that encompasses the spell of good samaritan coherence, live rise, and far-out discoveries. It is a process through which individuals explore impractical possibilities, getting to be acquainted with each other on a deeper level. Dating allows people to allowance experiences, unpleasantness ideas, and design consequential connections.
    https://xlilith.com

    In the duchy of dating, whole encounters a distinctive string of emotions. There's the exhilaration of meeting someone new, the presentiment of a first swain, and the quivering of discovering stale interests and shared values. It is a ease of vulnerability and self-discovery as individuals public themselves up to the feasibility of inclination and companionship.
    https://outdoorporn.one

    Striking communication lies at the will of dating, facilitating competence and consistency between two people. It involves running listening, honest symbol, and empathy, creating a room representing veritable dialogue. Through communication, individuals can explore their compatibility, interchange thoughts and dreams, and build a groundwork of trust.
  4. Wednesday, 26 June 2024 08:01
    helpful resources keplr login
  5. Wednesday, 26 June 2024 08:23

    An impressive share! I have just forwarded this onto a coworker who has been doing a little homework on this. And he in fact ordered me breakfast because I discovered it for him... lol. So allow me to reword this.... Thank YOU for the meal!! But yeah, thanks for spending the time to discuss this matter here on your web site.
    http://идпапирус.рф/catalog_777_915.html

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

    купить диплом в ижевске
  6. Wednesday, 26 June 2024 09:23
    Old man with young wife. Donald Trump Approves ---> http://zi.ma/z8krw4/
  7. Wednesday, 26 June 2024 10:36
    Hello!
    Sports News & Highlights! Keep up with your favorite teams and athletes with our sports news and highlights. Get scores, updates, and exclusive interviews.
    Family-Friendly Meals! Discover recipes that everyone in the family will enjoy. Our family-friendly meals are easy to prepare and sure to satisfy even the pickiest eaters.

    Look interesting site about this - https://visionarynexst.com

    news aggregator
    financial tips
    business news
    news coverage
    time management tips
    home cooking
    travel apps
    travel blog tips

    Goog luck!
  8. Wednesday, 26 June 2024 13:07
    Онлайн казино с лучшими бонусами и привлекательными акциями
    лучшие онлайн казино с минимальным депозитом лучшие онлайн казино на деньги .
  9. Wednesday, 26 June 2024 13:27
    Хотите обновить интерьер быстро и без проблем? ПВХ панели на стены - ваше решение!

    Освежите интерьер и стиль в любое желище с помощью наших высококачественных панелей ПВХ. Очень простые в монтаже, они изменят ваш жилище за считанные часы, без необходимости привлекать специалистов.

    Наши поливинилхлорид панели не только круто выглядят, но и обладают рядом достоинств:

    - Устойчивость к воде и гигиеничность, лучший вариант для использования в ванных и кухнях.
    - Прочность и долговечность, обеспечивающие долговременное эксплуатацию без потери качества.
    - Большой выбор дизайнов и расцветок, позволяющий реализовать разные дизайнерские идеи и подобрать оптимальный вариант для вашего интерьера.

    Не теряйте времени и сил на долгие ремонтные работы - выберите панель ПВХ - https://walls-decor.com.ua/pvh-paneli и преобразите свой дом моментально! Покупайте у нас и получите быструю доставку и отличное обслуживание.
  10. Wednesday, 26 June 2024 15:30

    Right now it looks like Expression Engine is the top blogging platform out there right now. (from what I've read) Is that what you are using on your blog?
    http://risovat-prosto.ru/kak-narisovat-sovu/

    купить диплом в назрани
    http://47gbdou-pushkin.ru

    купить диплом в воткинске
  11. Wednesday, 26 June 2024 15:44
    Erectile dysfunction treatments available online from TruePills.
    Discreet, next day delivery and lowest price guarantee.

    Viagra is a well-known, branded and common erectile dysfunction (ED) treatment for men.
    It's available through our Online TruePills service.

    Trial ED Pack consists of the following ED drugs:

    Viagra Active Ingredient: Sildenafil 100mg 5 pills
    Cialis 20mg 5 pills
    Levitra 20mg 5 pills

    https://true-pill.top/

    Epitard
    Restelea
    Tevetens plus
    Egirizin
  12. Wednesday, 26 June 2024 15:45
    Почему стоит построить дом из бруса 9х12 | Зачем выбирать дом из бруса 9х12 | Особенности кровли дома из бруса 9х12 | Секреты уютного интерьера в доме из бруса 9х12 | Выбор материалов для теплоизоляции и вентиляции в доме из бруса 9х12 | Как выбрать правильные окна и двери для дома из бруса 9х12 | Инновации в строительстве дома из бруса 9х12 | Как выбрать мебель для дома из бруса 9х12 | Советы по созданию уютной зоны отдыха в доме из бруса 9х12 | Сколько стоит построить дом из бруса 9х12
    дома из бруса 9х12 https://domizbrusa-9x12spb.ru/ .
  13. Wednesday, 26 June 2024 18:08
    Ваш путь к удаче: лучшие онлайн казино, посетить.
    Веселье и азарт: самые популярные онлайн казино, попробуйте прямо сейчас.
    Захватывающие азартные игры в онлайн казино, испытайте прямо сейчас.
    Играйте в лучшие онлайн казино и получайте щедрые бонусы и выигрыши, присоединяйтесь прямо сейчас.
    Новые возможности для азартных игроков в онлайн казино, испытайте прямо сейчас.
    Наши рекомендации: лучшие онлайн казино, посетите сейчас.
    Популярные игры с выигрышами в онлайн казино, испытайте прямо сейчас.
    Наши рекомендации: лучшие онлайн казино, присоединяйтесь сейчас.
    Популярные игры и призы в онлайн казино, попробуйте прямо сейчас.
    Играйте в самые популярные онлайн казино и получайте щедрые бонусы и выигрыши, посетите прямо сейчас.
    Играйте в новые азартные игры и выигрывайте большие суммы в онлайн казино, посетите прямо сейчас.
    Играть и выигрывать: самые популярные онлайн казино для вас, испытайте сейчас.
    Играйте в увлекательные игры и выигрывайте крупные призы в онлайн казино, посетите прямо сейчас.
    Играйте и выигрывайте большие суммы в самых популярных онлайн казино, испытайте сейчас.
    Азартные игры и призы в онлайн казино, испытайте прямо сейчас.
    Играйте в лучшие онлайн казино и получайте щедрые бонусы и выигрыши, испытайте прямо сейчас.
    Новые возможности и азартные игры в онлайн казино,
    онлайн казино беларусь https://onlayn-kazino-reyting-belarusi.com/ .