[Guide] Create a full node and Build Feathercoin v0.16 on Centos 7.
-
Hi All,
If you’d like to help the network, get yourself a little Centos7 VPS and create a full node! :-)
The following assumes a new Centos 7 Minimal Installation, and you’ve just logged in as root for the first time.
Upgrade OS Repositories
yum upgrade -y
Add EPEL Repositories
yum install -y epel-release
Install Feathercoin dependencies
yum -y install gcc-c++ libtool make autoconf automake openssl-devel libevent-devel boost-devel libdb4-devel libdb4-cxx-devel which git bzip2 wget
Since Centos 7 comes with a version of OpenSSL that has ECC disabled, we need to build a new version of OpenSSL with ECC enabled. Otherwise FTC wont run and will give you an ssl error on compile
Download, Extract and Build OpenSSL with ECC enabled.
cd /usr/src wget https://www.openssl.org/source/openssl-1.0.2k.tar.gz tar zxvf openssl-1.0.2k.tar.gz cd openssl-1.0.2k export CFLAGS="-fPIC" ./config --prefix=/opt/openssl shared enable-ec enable-ecdh enable-ecdsa make all -j2 sudo make install -j2
Download, Extract and Build Feathercoin .
cd /usr/src git clone https://github.com/FeatherCoin/Feathercoin.git FTC cd FTC ./autogen.sh ./configure --disable-shared --without-gui --prefix=/opt/feathercoin PKG_CONFIG_PATH=/opt/openssl/lib/pkgconfig LIBS=-Wl,-rpath,/opt/openssl/lib make sudo make install
If you try to run feathercoind now, it will complain about not having a conf file, so we need to create one.
.
.
.Create blank feathercoin.conf
touch /root/.feathercoin/feathercoin.conf
Edit the conf file
vi /root/.feathercoin/feathercoin.conf
Add an rpc user and a complex password like in the example below.
rpcuser=feathercoinrpc rpcpassword=HyeZz7WZJwCvYrThisISaComplexPassword7dX7ej1zbTV6s3
.
.
Open up port 9336 so feathercoin can accept connections and help the network
in Centos 7, we now have the awesome firewall-cmd client. which interacts with firewalld
Add port 9336
sudo firewall-cmd --zone=public --add-port=9336/tcp --permanent
Reload load the firewall rules after adding the feathercoin port.
sudo firewall-cmd --reload
You can check your open port with this command.
sudo firewall-cmd --list-all
You should see something like this.
public (default, active) interfaces: eth0 sources: services: dhcpv6-client ssh ports: 9336/tcp masquerade: no forward-ports: icmp-blocks: rich rules:
.
.
You can now start feathercoind to start your node
cd /opt/feathercoin/bin ./feathercoind --server &
You can check on the status of your node with this command
./feathercoin-cli getnetworkinfo
And you should see something like this:
{ "version": 160000, "subversion": "/Feathercoin:0.16.0/", "protocolversion": 70015, "localservices": "0000000000000409", "localrelay": true, "timeoffset": 3, "networkactive": true, "connections": 8, "networks": [ { "name": "ipv4", "limited": false, "reachable": true, "proxy": "", "proxy_randomize_credentials": false }, { "name": "ipv6", "limited": false, "reachable": true, "proxy": "", "proxy_randomize_credentials": false }, { "name": "onion", "limited": true, "reachable": false, "proxy": "", "proxy_randomize_credentials": false } ], "relayfee": 0.00100000, "incrementalfee": 0.00001000, "localaddresses": [ { "address": "90.252.127.106", "port": 9336, "score": 3 } ], "warnings": "" }
.
.
Make feathercoind start on system reboot by creating it as a service
Create the feathercoin service file
touch /etc/systemd/system/feathercoind.service
Edit the file
vi /etc/systemd/system/feathercoind.service
Add this to the file
[Unit] Description=Feathercoinss distributed currency daemon After=network.target [Service] User=root Group=root Type=forking PIDFile=/root/.feathercoin/feathercoind.pid ExecStart=/opt/feathercoin/bin/feathercoind -daemon -pid=/root/.feathercoin/feathercoind.pid \ -conf=/root/.feathercoin/feathercoin.conf -datadir=/root/.feathercoin Restart=always PrivateTmp=true TimeoutStopSec=60s TimeoutStartSec=2s StartLimitInterval=120s StartLimitBurst=5 [Install] WantedBy=multi-user.target
You can now start feathercoind with:
sudo systemctl start feathercoind
Youc an stop feathercoind with this:
sudo systemctl stop feathercoind
And you can check the status with this:
sudo systemctl status feathercoind
Finally, to configure the service to start at boot
sudo systemctl enable feathercoind
Edit 09/05/2018: Updated for version 0.16
Edit: Updated for version v0.9.6I hope this helps someone. :-)
-
@aciddude
I’ve been running various wallets and patches on Centos 7 for quite a while now and this is a great example that can be applied to many many coins.
Thanks for the detailed step by step, this will simplify many wallet upgrades for me!
THANKS!
Back to mining FTC…
-
Cool, We do need more nodes.
-
Oh, The last step would be to make sure you’ve opened the port on your router (port forwarding)
-
It’s nice to see this guide more or less copy and pasted ;-) here:
https://cryptinex.com/showthread.php?tid=57 -
Updated for 0.16 if anyone is interested.
-
Nice! :))
Looking forward to see majority of the network running on 0.16 soon