Supported Feathercoin client versions: Current production Version: 0.13.1.

Info: If you have problems to post, create one post in the ‘newbies’ category and try again. If you have further problems, find support under Guides or use the shoutbox

[Guide] Create a full node and Build Feathercoin v0.9.6.1 on Centos 7.


  • Moderators

    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 http://dl.fedoraproject.org/pub/epel/7/x86_64/e/epel-release-7-5.noarch.rpm
    

    Install wget (you need this later)

    yum install -y wget
    

    Install Feathercoin dependencies

    yum install -y autoconf automake gcc-c++ libdb4-cxx libdb4-cxx-devel boost-devel openssl-devel qrencode-devel protobuf-devel
    

    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.1l.tar.gz
    tar zxvf openssl-1.0.1l.tar.gz
    cd openssl-1.0.1l
    export CFLAGS="-fPIC"
    ./config --prefix=/opt/openssl shared enable-ec enable-ecdh enable-ecdsa -lanl -ldl
    make all
    make install
    

    Download, Extract and Build Feathercoin .


    Note: in ./configure we specify the new SSL library we made in /opt/openssl with SSL_LIBS=


    cd /usr/src
    wget https://codeload.github.com/FeatherCoin/Feathercoin/tar.gz/v0.9.6.1 -O Feathercoin-0.9.6.1.tar.gz
    tar zxvf Feathercoin-0.9.6.1.tar.gz
    cd Feathercoin-0.9.6.1
    export OPENSSL_PREFIX=/opt/openssl
    sudo ./autogen.sh
    sudo ./configure --prefix=/opt/feathercoin PKG_CONFIG_PATH=/opt/openssl/lib/pkgconfig LIBS=-Wl,-rpath=/opt/openssl/lib SSL_LIBS="/opt/openssl/lib/libssl.a /opt/openssl/lib/libcrypto.a -ldl"
    make
    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 getinfo 
    

    And you should see something like this:

    {
        "version" : 90601,
        "protocolversion" : 70005,
        "walletversion" : 60000,
        "balance" : 0.00000000,
        "blocks" : 4916,
        "timeoffset" : 0,
        "connections" : 0,
        "proxy" : "",
        "difficulty" : 0.00097655,
        "testnet" : false,
        "keypoololdest" : 1458329103,
        "keypoolsize" : 101,
        "paytxfee" : 0.00000000,
        "relayfee" : 0.01000000,
        "errors" : ""
    }
    

    .


    .

    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=feathercoind Service
    After=network.target
    
    [Service]
    Type=simple
    User=root
    ExecStart=/opt/feathercoin/bin/feathercoind --server
    Restart=on-abort
    
    
    [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: Updated for version v0.9.6

    I hope this helps someone. 🙂


  • Regular Member

    @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…

    - UnklAdM



  • Cool, We do need more nodes.


  • Moderators

    Oh, The last step would be to make sure you’ve opened the port on your router (port forwarding)


  • Moderators

    It’s nice to see this guide more or less copy and pasted 😉 here:
    https://cryptinex.com/showthread.php?tid=57


 

Looks like your connection to Feathercoin Forum was lost, please wait while we try to reconnect.