Setting Up NOIA Node CLI on Linux

Опубликовано: 16 Сентябрь 2019
на канале: Ryan Shirley
360
6

This walkthrough shows how to set up a node on the Noia Network. Sign up and join the network at https://dashboard.noia.network/r/7b72...

0:00 Intro
0:21 Port forwarding
1:24 Initial setup instructions
2:55 Edit the node configuration
4:32 Running Noia as a service
6:15 Check that your node is running

Noia Website: https://noia.network/

Things before you get started
Eth Address (ERC-20 Compatible wallet)
https://www.myetherwallet.com/
Port forward the ip of computer you are going to run the node on.
8058 UDP & 8048 TCP
Tool to check (https://check-host.net/check-tcp)
If your router supports natPmp and is also enabled and running you won’t need to set this up manually.
If you are setting up manually, set a static ip for your computer running the node. This can be done through your router which is how I prefer to do it or through ubuntu (https://www.howtoforge.com/linux-basi...)

Support on Noia Network telegram group - https://t.me/NoiaNetwork
Written guide on medium to setup Noia node on Linux -   / set-up-noia-node-on-linux  


1. Install the modules needed for running the node:
sudo apt update
sudo apt -y install curl git npm build-essential python-dev

2. Install node.js:
curl -sL https://deb.nodesource.com/setup_10.x | sudo bash -
sudo apt -y install nodejs

3. Get noia-node-cli package:
git clone https://github.com/noia-network/noia-...

4. Go to noia-node-cli folder and install NPM:
cd noia-node-cli
npm install
npm run build

5. Test-run your node:
npm start

6. Stop the node:
Ctrl + C

7. Edit the node configuration file created by the test run:
nano ~/.noia-node/node.settings

Port forwarding
set natPmp=true if your router supports this.
If you did port forwarding manually, set natPmp=false.

Eth Address
Enter eth address into airdropAddress under [node.blockchain] from null to your wallet address that you used in KYC process.

Storage + Location (optional)
Define the storage location and size under [node.storage]
dir : the folder of your choicesize : the spent disk amount in bytes

Save + Exit
Ctrl + x, y, Enter

8. Start the node again:
npm start

9. Stop the node:
Ctrl + C

10. NOIA node as a service
cd ~
pwd

11. Create noia.service file
cd ~
nano noia.service

[Unit]
Description=noia
[Service]
User=USERNAME
WorkingDirectory=HOME_DIRECTORY/noia-node-cli
ExecStart=/usr/bin/npm start
Restart=always
RestartSec=7
[Install]
WantedBy=default.target

12. Exit
Close the editor and save the file with Ctrl + X, Y, Enter

13. Copy file
sudo cp noia.service /etc/systemd/system/noia.service

14. Enable and start the service:
sudo systemctl enable noia.service
sudo systemctl start noia.service

15. Check everything is running ok
sudo journalctl -fu noia.service

16. Check statistics of your node
sudo journalctl -fu noia.service |grep downloaded


Смотрите видео Setting Up NOIA Node CLI on Linux онлайн без регистрации, длительностью часов минут секунд в хорошем качестве. Это видео добавил пользователь Ryan Shirley 16 Сентябрь 2019, не забудьте поделиться им ссылкой с друзьями и знакомыми, на нашем сайте его посмотрели 360 раз и оно понравилось 6 людям.