Hello fellows!
We have prepared a script for you that will help you install an OCEAN PROTOCOL node with just one click!
1. First of all, purchase a server from Contabo or Spacecore.
Server specifications:
• 6 vCPU Cores
• 16 GB RAM
• 400 GB SSD
We set up 10 Ocean Protocol nodes for this configuration. If you install more, the nodes might fail to meet the uptime requirement, so it’s better not to take the risk.
2. Set up the server on your PC.
Log in using the command root@ip
.
But before that, we recommend securing your server. Read more in our article.
3. Check the ports before installation.
The Ocean Protocol node uses the following ports:
8108
2003 to 2003+N
3003 to 3003+N
4003 to 4003+N
5003 to 5003+N
Before installing the node, make sure these ports are not in use.
What are ports and what role do they play in nodes? — Read more
4. Install the script.
Run the following command and download:
sudo bash -c 'git clone https://github.com/dknodes/ocean.git && cd ocean && chmod ugo+x ocean.sh && ./ocean.sh'
Bonus for you: this script creates EVM wallets and checks the node status through the website https://nodes.oceanprotocol.com/.
If the node goes down, the script automatically restarts it, so you don’t have to keep an eye on the site all the time.
To use the commands, press the appropriate number and then “enter”.
Here, the IP address is also detected automatically. If it’s not detected, the script will prompt you to enter it manually.
5. To install the node, press the first command and then “enter.”
Hit the first command to set up the nodes, then type in the number of nodes — 10 in our case.
After that, the script should let you know your nodes “are installed successfully”.
6. Check the logs.
Press the 2nd and 3rd commands and then “enter.”
When you hit the 3rd command, you’ll need to enter how many nodes you have, and then the node number.
You can also import your keys into MetaMask and check them with command 6.
You can also check your node on the site by entering your server’s IP.
➡️ https://nodes.oceanprotocol.com/
If it’s lit up green with a checkmark, everything is good!
Previous articles:
- Tutorial on Nodes | Part 1
- Where to buy servers for nodes
- Why Securing Your Server Is Important and How to Do It
- The Importance of Using Different Ports When Running Multiple Nodes on One Server
- What is Docker?
Nodes Guide
🗺️ All the info on nodes, giveaways, educational content, and research will be on our sources — DKNODES, GitHub and X (Twitter).
Thanks for your attention, node runners!