Tested on Linux server - Ubuntu 22.04 LTS 64bit
This script that combines all the commands to install the Theta Edge Node Docker container and set up a systemd service to manage it.
- Save this script to a file named
install_theta_edge_node.sh
- Make it executable
chmod +x install_theta_edge_node.sh
- Execute it with root privileges
sudo ./install_theta_edge_node.sh
- Optional:
- Copy/paste from here to your server machine and create/open file with following command:
sudo nano path/to/your/install_theta_edge_node.sh
- Use git to download specific file from github repo. On your machine navigate to
cd path/to/your/directory
and download desired file via weblink using commandswget
orcurl
wget -O install_theta_edge_node.sh https://raw.githubusercontent.com/JozeFons/Theta_Edge_Node_script/main/install_theta_edge_node.sh
This script will perform the following tasks:
- Install Docker if not already installed.
- Pull the latest Theta Edge Node Docker image.
- Stop and remove any existing Theta Edge Node containers.
- Start the Theta Edge Node Docker container.
- Create a systemd service to manage the Theta Edge Node container.
- Enable the systemd service to start automatically on boot.
Make sure to replace <YOUR_PASSWORD> with a secure password when prompted.