This guide will show you how to install a metaverse server on a web hosting service with a VPS. This guide uses Hostinger.com as the web service provider and Ubuntu for the operating system, however you can choose any hosting service or operating system that you prefer and the process will be largely the same.
The most recent LTS version will be the best. Which was 24.04LTS at the time of writting.
When it finishes you will have a dashboard. Under root access you can see your SSH login information.
ssh root@0.0.0.0
Use a terminal to connect.
If using something like Command Prompt you can directly copy the provided command.
When you run it, you will be prompted for the password you set during the previous section.
It's a good idea on a new system to update all packages:
sudo apt update && sudo apt upgrade -y
Normally the system would ask if you want to continue, "-y" will automatically answer yes.
sudo apt install nodejs npm -y
node -v
npm -v
This returns the version, which means it's installed
For our database we will use MySQL
sudo apt install mysql-server
Verify the installation
sudo systemctl status mysql
active(running) means everything is good
MySQL comes with a default configuration that is insecure (e.g., no root password). To secure your installation, run the built-in security script:
sudo mysql_secure_installation
Follow the prompts until you get an "All Done!" and it returns to standard prompt
sudo mysql
CREATE USER 'map'@'localhost' IDENTIFIED BY '{PASSWORD}';
GRANT ALL PRIVILEGES ON *.* TO 'map'@'localhost' WITH GRANT OPTION;
FLUSH PRIVILEGES;
You will need this MySQL username and password in the next section when configuring the map service.
Now follow the installation instructions for Linux: