I believe this tutorial is actually the one that you’ve always been waiting for. Today, we are going to install the ZooBC node in one of the servers which we have prepared. First, go to the terminal and the ssh key will be there, so you can connect to it directly.
Go to the command:
$ ssh root@IPAddress
The computer should already recognize the BC server which we’ve previously connected to. Now, in the same terminal, let’s install the ZooBC:
- First, make a new directory by using the following command:
$ mkdir zoobc
2. Then, go inside the following directory :
$ cd zoobc
3. Then install it by using the following command:
Pay attention to the upper and lower case while typing in the command line. Click enter once done.
4. Now, execute the following command:
$ chmod +x zbcsetup.sh
By doing this, we already make the file executable
5. Next, we need to execute the file to launch the server
$ ./zbcsetup.sh mainnet
6. Now, the system is going to ask you which peer port you should connect to. In this case, it’s important to note that we should just leave the setting in default, so don’t change and just click “enter”. Unless you are setting up your own blockchain, you may want to use a different peer port.
Next, the system is going to ask for the API RPC PORT and API HTTP PORT. We are going to use the default so leave it as it is, and just click “enter” for all of them.
7. After you click “enter” you are going to see this screen that asks for input via certificate or by the owner address. In this case we’re gonna choose the second option because we’re gonna use our Account address which we have made from the previous tutorial.
8. After we press “enter”, the node is going to ask for your ID as well, but this can be set up automatically by the setup script, so I just press “enter” once again.
9. Once it’s done, we just need to do an installation by the using command written above; you don’t need to use the “sudo” if you are on a root but it doesn’t hurt to use “sudo”, so I just gonna run it on the command line:
$ sudo /root/zoobc.setup/zoobc.mainnet/zoobc daemon install
$ sudo /root/zoobc.setup/zoobc.mainnet/zoobc daemon start
10. As it starts, it means the node has started working. The node connects to the rest of the peers in the blockchain while starting to download the history of the blockchain. And if you wanna check if the node is still running you can simply type the following command:
$ sudo /root/zoobc.setup/zoobc.mainnet/zoobc daemon status
Now, we’ve come to the most interesting part of this tutorial. For this, you will have to go back into your wallet and register the node as a node admin. All you need to do is click the “add node admin” from the gear icons, then type the following command:
Pay attention that this is HTTP not HTTPS, meanwhile the 7001 here is the code we use to request the HTTP. Once you’re done requesting the HTTP, click “add” and, lo and behold, your account is already registered as a node admin!
You can see the options for the node admin from the left side. Here we can see the data, the CPU, the model, the speed, so far all is good. Now we can register the node to access the register but to do that we need a fund and unluckily, our account has 0 ZooBC coins. But you can request a ZooBC coin by clicking the feedback button in the Navbar and writing your account address.
We are going to be generous and send you some ZooBC to play with so you can run a demo yourself. At this point, there’s no reason to register your ZooBc node anymore. For more information about this tutorial you can watch our video on YouTube on Registering a ZooBC node on a Linux machine.