- A VPS running Ubuntu 18.04 or later (Debian-based OS is recommended).
- Root or sudo access to install required packages.
- Basic knowledge of Linux command-line operations.
Start by updating your system packages to the latest versions.
Open your terminal and run:
sudo apt-get update && sudo apt-get upgrade -y
This will ensure your system is up-to-date.
Minima requires Java 11 or higher to run. You can install OpenJDK 11 by running the following command:
sudo apt-get install openjdk-11-jdk -y
You can verify the installation by checking the version of Java installed:
java -version
Make sure that the output shows Java 11 or newer.
-
Create a directory for Minima:
First, create a directory where the Minima files will be stored:
mkdir ~/minima cd ~/minima
-
Download the Minima installation script:
Use
wget
to download the installation script:wget https://github.com/minima-global/Minima/raw/master/scripts/minima_setup.sh
-
Make the script executable:
Change the permissions of the script to make it executable:
chmod +x minima_setup.sh
Now, you need to configure your Minima node before running the script.
-
Run the installation script:
Execute the script with the following command:
sudo ./minima_setup.sh -r 9001
In this example, the node will run on port
9001
. You can change this to any available port, but ensure that it is open on your VPS firewall. -
Open the required port:
You need to open the port you specified (
9001
in this case) to allow the Minima node to communicate. Use the following command to open the port:sudo ufw allow 9001
After the installation is complete, the Minima node will start automatically.
You can check the status of the node using:
sudo systemctl status minima
If everything is working correctly, you should see an output indicating that the Minima node is active and running.
You can use the following command to view the log output of the Minima node:
tail -f ~/minima/minimalog.txt
This will display the log file in real time, showing any activity of your Minima node.
To ensure that your Minima node starts automatically whenever your VPS reboots, enable the service:
sudo systemctl enable minima
To interact with the node and get basic information, use the curl
command with your node’s IP address or domain name:
curl http://127.0.0.1:9001/invocation?function=info
This will return information about your node’s status and performance.
-
To upgrade the node when a new version is released, run the setup script again:
sudo ./minima_setup.sh -r 9001
-
To uninstall the Minima node, use the command:
sudo ./minima_setup.sh -u