Install OpenSim 0.9.3.0 in Hypergrid Standalone mode on Ubuntu 24.04

In this guide, I’ll walk you through configuring OpenSim 0.9.3.0 in Hypergrid Standalone mode on Ubuntu 24.04. For the database setup, we’ll use the user opensim with the password DB_Password. Feel free to customize these credentials as needed. Also, remember to replace domain.com with your actual domain name throughout the configuration.

Dependency Installation

Before installing OpenSim, you need to install dotnet, MySQL, unzip and screen. Run the following commands:

sudo apt update
sudo apt dist-upgrade
sudo apt install libgdiplus dotnet-sdk-8.0 mysql-server unzip screen

MySQL configuration

Next, configure MySQL by editing the MySQL configuration file:

sudo nano /etc/mysql/my.cnf

Add the following lines after !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

Create the OpenSim database and user:

sudo mysql

Within the MySQL shell, run:

mysql> CREATE DATABASE opensim;
mysql> CREATE USER opensim IDENTIFIED BY 'DB_Password';
mysql> GRANT ALL PRIVILEGES ON opensim.* TO 'opensim';
mysql> FLUSH PRIVILEGES;

Verify the opensim account’s authentication method is mysql_native_password:

mysql> SELECT user,authentication_string,plugin,host FROM mysql.user;
mysql> \q

Download and Extract OpenSim

Download and unzip the latest OpenSim build:

cd ~
wget http://opensimulator.org/dist/opensim-0.9.3.0.zip
unzip opensim-0.9.3.0.zip

Navigate to the configuration directory:

cd ~/opensim/bin

Edit OpenSim.ini

Next, configure OpenSim.ini:

nano -c ~/opensim/bin/OpenSim.ini

Edit the lines: 53
Uncomment: 1357
Comment: 1356

	[Const]
53		BaseHostname = "192.168.2.233"

	[Architecture]
1356	; Include-Architecture = "config-include/Standalone.ini"
1357	Include-Architecture = "config-include/StandaloneHypergrid.ini"

Edit StandaloneCommon.ini

Now, edit StandaloneCommon.ini:

nano -c ~/opensim/bin/config-include/StandaloneCommon.ini

Edit the line 19 – 229 – 232
Uncomment 18 – 50
Comment 9

	[DatabaseService]
9		; Include-Storage = "config-include/storage/SQLiteStandalone.ini";
18		StorageProvider = "OpenSim.Data.MySQL.dll"
19		ConnectionString = "Data Source=localhost;Database=opensim;User ID=opensim;Password=DB_Password;Old Guids=true;SslMode=None;"

	[Hypergrid]
50		GatekeeperURI = "${Const|BaseURL}:${Const|PublicPort}"
        [GridInfoService]
229             gridname = "SHEIKAH"
232             gridnick = "SHEIKAH"

Start the Servers

screen -dmS "OpenSim" dotnet OpenSim.dll

Accessing the Screen Sessions

To reconnect to your running servers, use:

screen -d -r OpenSim

To detach from the screen, always use Ctrl + A followed by D.

Firewall configuration

If you’re using UFW as your firewall, be sure to configure it to allow the necessary ports.
If you haven’t installed it, you can skip this step.

sudo ufw allow "OpenSSH"
sudo ufw allow 9000/tcp
sudo ufw allow 9000:9100/udp
sudo ufw enable

Conclusion

Your OpenSim Hypergrid Standalone should now be running smoothly! Feel free to reach out if you encounter any issues or have questions about the setup.


Comments

Leave a Reply

Your email address will not be published. Required fields are marked *