Headless Node Raspberry Pi3

HomeForumsUser Manuals & GuidesHeadless Node Raspberry Pi3

This topic contains 6 replies, has 1 voice, and was last updated by  Sidgrip 7 years, 2 months ago.

Viewing 7 posts - 1 through 7 (of 7 total)
  • Author
    Posts
  • #1154

    Sidgrip
    Moderator

    These are the steps I used to setup a headless node for a Blake256 Coin.
    You can just copy/paste this in order to have a working node

    Download this version of Raspian Jessie
    How to install operating system on Raspberry Pi

    #Configure You Pi

    sudo raspi-config

    #Update & install Dependencies

    sudo apt-get update

    sudo apt-get install build-essential libboost-dev libboost-system-dev libboost-filesystem-dev libboost-program-options-dev libboost-thread-dev libssl-dev libdb5.3++-dev libminiupnpc-dev -y
    _____________________________________________________________________________________

    #Setup BlakeCoin Node
    #This will take about an hour to finish

    git clone https://github.com/BlueDragon747/Blakecoin Blakecoin-master
    chmod 755 Blakecoin-master/src/leveldb/build_detect_platform
    cd Blakecoin-master/src
    sudo make -f makefile.unix
    strip blakecoind

    #Create folder and move executable

    mkdir ~/.blakecoin
    mv blakecoind ~/.blakecoin
    cd ~/.blakecoin

    #Create Config file

    sudo nano blakecoin.conf
    —– Copy and paste this into your config file —–

    maxconnections=180
    listen=1
    gen=0
    rpcallowip=127.0.0.1
    rpcallowip=192.168.1.*
    rpcuser=user
    rpcpassword=pass
    rpcport=8772
    port=8773
    server=1
    daemon=1
    addnode=104.238.174.160
    addnode=45.32.69.42
    addnode=104.156.255.123
    addnode=104.238.177.36
    addnode=146.185.135.24

    #You can find more nodes by checking the explorer

    #Start Node
    ./blakecoind
    #Check Node
    ./blakecoind getinfo
    #Stop Node
    ./blakecoind stop

    This guide was put together with the help of kramble’s Raspberry Pi Install Guide

    • This topic was modified 7 years, 2 months ago by  Sidgrip.
    • This topic was modified 7 years, 2 months ago by  Sidgrip.
    • This topic was modified 7 years, 2 months ago by  Sidgrip.
    #1158

    Sidgrip
    Moderator

    #Setup Photon Node
    #This will take about an hour to finish

    git clone https://github.com/photonproject/photon.git
    chmod 755 photon/src/leveldb/build_detect_platform
    cd photon/src
    sudo make -f makefile.unix
    strip photond

    #Create folder and move executable

    mkdir ~/.photoncoin
    mv photond ~/.photoncoin
    cd ~/.photoncoin

    #Create Config file

    sudo nano photon.conf
    —– Copy and paste this into your config file —–
    maxconnections=180
    listen=1
    gen=0
    rpcallowip=127.0.0.1
    rpcuser=user
    rpcpassword=pass
    rpcallowip=localhost
    rpcport=8984
    port=35556
    gen=0
    server=1
    daemon=1
    addnode=104.238.174.160
    addnode=45.32.69.42
    addnode=104.156.255.123
    addnode=104.238.177.36
    addnode=146.185.135.24

    #You can find more nodes by checking the explorer

    #Start Node
    ./photond
    #Check Node
    ./photond getinfo
    #Stop Node
    ./photond stop

    • This reply was modified 7 years, 2 months ago by  Sidgrip.
    • This reply was modified 7 years, 2 months ago by  Sidgrip.
    #1159

    Sidgrip
    Moderator

    #Setup BlakeBitcoin Node
    #This will take about an hour to finish

    git clone https://github.com/BlakeBitcoin/BlakeBitcoin.git
    chmod 755 BlakeBitcoin/src/leveldb/build_detect_platform
    cd BlakeBitcoin/src
    sudo make -f makefile.unix
    strip blakebitcoind

    #Create folder and move executable

    mkdir ~/.blakebitcoin
    mv blakebitcoind ~/.blakebitcoin
    cd ~/.blakebitcoin

    #Create Config file

    sudo nano blakebitcoin.conf
    —– Copy and paste this into your config file —–
    maxconnections=180
    rpctimeout=30
    rpcallowip=127.0.0.1
    rpcport=1243
    rpcuser=user
    rpcpassword=pass
    port=356
    gen=0
    server=1
    daemon=1
    listen=1
    addnode=104.238.174.160
    addnode=45.32.69.42
    addnode=104.156.255.123
    addnode=104.238.177.36
    addnode=146.185.135.24

    #You can find more nodes by checking the explorer

    #Start Node
    ./blakebitcoind
    #Check Node
    ./blakebitcoind getinfo
    #Stop Node
    ./blakebitcoind stop

    #1160

    Sidgrip
    Moderator

    #Setup Lithium Node
    #This will take about an hour to finish

    git clone https://github.com/lithiumcoin/lithium.git
    chmod 755 lithium/src/leveldb/build_detect_platform
    cd lithium/src
    sudo make -f makefile.unix
    strip lithiumd

    #Create folder and move executable

    mkdir ~/.lithiumcoin
    mv lithiumd ~/.lithiumcoin
    cd ~/.lithiumcoin

    #Create Config file

    sudo nano lithium.conf
    —– Copy and paste this into your config file —–
    maxconnections=180
    rpcuser=user
    rpcpassword=pass
    rpcport=12345
    rpcallowip=127.0.0.1
    port=12007
    server=1
    daemon=1
    listen=1
    addnode=104.238.174.160
    addnode=45.32.69.42
    addnode=104.156.255.123
    addnode=104.238.177.36
    addnode=146.185.135.24

    #You can find more nodes by checking the explorer

    #Start Node
    ./lithiumd
    #Check Node
    ./lithiumd getinfo
    #Stop Node
    ./lithiumd stop

    #1162

    Sidgrip
    Moderator

    #Setup Universal Molecule Node
    #This will take about an hour to finish

    git clone https://github.com/BlueDragon747/universalmol.git
    chmod 755 universalmol/src/leveldb/build_detect_platform
    cd universalmol/src
    sudo make -f makefile.unix
    strip universalmoleculed

    #Create folder and move executable

    mkdir ~/.universalmolecule
    mv universalmoleculed ~/.universalmolecule
    cd ~/.universalmolecule

    #Create Config file

    sudo nano universalmolecule.conf
    —– Copy and paste this into your config file —–
    listen=1
    gen=0
    maxconnections=180
    rpctimeout=30
    rpcallowip=127.0.0.1
    rpcport=19738
    port=18449
    rpcuser=user
    rpcpassword=pass
    server=1
    daemon=1
    logtimestamps=1
    addnode=104.238.174.160
    addnode=45.32.69.42
    addnode=104.156.255.123
    addnode=104.238.177.36
    addnode=146.185.135.24

    #You can find more nodes by checking the explorer

    #Start Node
    ./universalmoleculed
    #Check Node
    ./universalmoleculed getinfo
    #Stop Node
    ./universalmoleculed stop

    #1163

    Sidgrip
    Moderator

    #Setup Electron Node
    #This will take about an hour to finish

    git clone https://github.com/Electron-Coin2014/Electron-ELT.git
    chmod 755 Electron-ELT/src/leveldb/build_detect_platform
    cd Electron-ELT/src
    sudo make -f makefile.unix
    strip electrond

    #Create folder and move executable

    mkdir ~/.electron
    mv electrond ~/.electron
    cd ~/.electron

    #Create Config file

    sudo nano electron.conf
    —– Copy and paste this into your config file —–
    listen=1
    maxconnections=180
    rpctimeout=30
    rpcallowip=127.0.0.1
    rpcport=6852
    rpcuser=user
    rpcpassword=pass
    port=6852
    gen=0
    keypool=100
    server=1
    addnode=104.238.174.160
    addnode=45.32.69.42
    addnode=104.156.255.123
    addnode=104.238.177.36
    addnode=146.185.135.24

    #Start Node
    ./electrond
    #Check Node
    ./electrond getinfo
    #Stop Node
    ./electrond stop

    #1165

    Sidgrip
    Moderator

    #Create Script to reboot & auto start node
    #You can run two Blake256 nodes on a Raspberry Pi3
    #This is an example of what I did to create a reboot script and start script

    #Create folder

    mkdir ~/.scripts

    #Create script

    sudo nano /scripts/node.sh
    —– Copy and paste this into your script file —–
    cd ~/.blakecoin
    ./blakecoind

    #exit and save

    chmod +x /home/pi/scripts/node.sh

    #Create script

    sudo nano /scripts/restart.sh
    —– Copy and paste this into your script file —–
    cd ~/.blakecoin
    ./blakecoind stop
    sudo shutdown -r 1

    #exit and save

    chmod +x /home/pi/scripts/restart.sh

    # Now we need to edit the crontab (do not use sudo)

    crontab -e

    #Go to end of file and paste

    @midnight /home/pi/scripts/restart.sh
    @reboot /home/pi/scripts/nodes.sh

    #exit & Save

    #Now your Pi will reboot at midnight and start the node on it’s own

Viewing 7 posts - 1 through 7 (of 7 total)

You must be logged in to reply to this topic.