-
Notifications
You must be signed in to change notification settings - Fork 4
Setting up node on Linux
Below are the instructions to set up the node for betanet and mainnet.
- VM with Linux OS - Ubuntu 18 Server (Minimum 1 GB RAM, 20-30 GB Storage) & Public IP
- Node binary for Linux (Build one from the source code - Build Instruction: https://docs.nano.org/integration-guides/build-options/)
1. SSH login to the server.
sudo apt-get update
2. Uploading the binary using FTP or SFTP
- Create a directory for Node:
mkdir Nodecd Node- Upload 2 binaries (btcb_node & btcb_rpc) to Node directory using FTP access (You may use FileZilla for Windows or CyberDuck for MacOS)
3. Creating App Directory
cd ..mkdir BtcbData
4. Configuring the Node:
- Inside
BtcbDatadirectory, create 2 files. nano config-node.tomlnano config-rpc.toml
Copy the configuration and paste it to respective files:
-
config-node.toml
-
Mainnet: https://pastebin.com/YffxY7Yx
-
Betanet: https://pastebin.com/p5xzAT5v
-
config-rpc.toml
-
Mainnet: https://pastebin.com/jWsZK7kR
-
Betanet: https://pastebin.com/jgj8Y644
5. Creating Node Service:
sudo nano /etc/systemd/system/btcb.service
[Unit]
Description=BTCB Node
Before=multi-user.target
StartLimitIntervalSec=0
[Service]
Type=simple
Restart=always
RestartSec=1
User=root
ExecStart=/root/Node/btcb_node run --daemon
ExecReload=/bin/kill -HUP $MAINPID
KillMode=process
RestartPreventExitStatus=255
StandardOutput=syslog
StandardError=syslog
[Install]
WantedBy=multi-user.target
6. Running the Node
sudo systemctl daemon-reloadsudo systemctl enable btcb.servicesudo systemctl start btcb.servicesudo systemctl status btcb.service
7. Testing
Your node is running on
- Betanet: :35000
- Mainnet: :9075
You may try RPC calls using Postman.