Be a crypto hero in the market by logging in

Don't you have an account? Sign in

Token price

  • BTC

    10,035,838.8KRW

    -0.5%

  • ETH

    193,712.2KRW

    0.2%

  • XRP

    271.1KRW

    -0.4%

  • BCH

    399,172.3KRW

    2.4%

  • BSV

    357,493.8KRW

    13.8%

  • USDT

    1,158.6KRW

    -0.2%

  • EOS

    4,196.8KRW

    0.5%

  • LTC

    54,759.1KRW

    -0.5%

  • BNB

    20,090.0KRW

    0.1%

  • XLM

    72.5KRW

    4.1%

  • ADA

    50.9KRW

    4.1%

  • XMR

    75,384.7KRW

    0.1%

  • TRX

    19.3KRW

    0.1%

  • XTZ

    1,834.2KRW

    11.2%

  • DASH

    129,936.4KRW

    7.3%

  • ETC

    10,206.6KRW

    3.8%

  • ATOM

    5,223.8KRW

    -0.4%

  • NEO

    12,940.4KRW

    -0.4%

  • HT

    3,682.9KRW

    0.9%

  • HEDG

    2,681.0KRW

    1.1%

  • MKR

    563,051.8KRW

    -3.8%

  • ZEC

    62,772.0KRW

    5.7%

  • USDC

    1,159.1KRW

    0.0%

  • ONT

    759.5KRW

    0.4%

  • XEM

    43.4KRW

    0.7%

  • VET

    6.8KRW

    -0.5%

  • BAT

    256.8KRW

    3.3%

  • DOGE

    2.8KRW

    -0.7%

  • PAX

    1,164.3KRW

    0.2%

  • DCR

    22,010.8KRW

    -0.1%

  • BTG

    13,544.9KRW

    9.4%

  • QTUM

    2,231.6KRW

    -0.2%

  • INB

    574.4KRW

    0.3%

  • REP

    16,742.9KRW

    6.5%

  • LINK

    485.1KRW

    2.0%

  • TUSD

    1,157.9KRW

    -0.5%

  • ZRX

    269.4KRW

    0.6%

  • RVN

    30.1KRW

    -1.0%

  • ALGO

    275.4KRW

    -1.0%

  • CNX

    2,446.3KRW

    -0.7%

  • BCD

    719.2KRW

    4.2%

  • OMG

    905.2KRW

    -2.0%

  • XIN

    259,536.1KRW

    0.2%

  • XIN

    259,536.1KRW

    0.2%

  • THETA

    126.5KRW

    -2.8%

  • NANO

    783.3KRW

    -0.3%

  • WAVES

    1,009.5KRW

    -1.9%

  • KCS

    1,206.7KRW

    0.4%

  • DGB

    7.8KRW

    -1.4%

  • LSK

    789.7KRW

    -2.1%

  • MCO

    5,813.3KRW

    3.4%

  • BTM

    91.4KRW

    -1.5%

  • BTM

    91.4KRW

    -1.5%

  • ICX

    175.1KRW

    3.6%

  • MONA

    1,327.5KRW

    -2.7%

  • KMD

    703.0KRW

    -0.8%

  • IOST

    6.2KRW

    -1.4%

  • STEEM

    206.5KRW

    8.0%

  • HC

    1,655.2KRW

    -1.5%

  • SC

    1.7KRW

    -1.4%

  • NEXO

    125.6KRW

    -1.3%

  • ENJ

    87.8KRW

    2.6%

  • XVG

    4.3KRW

    0.5%

  • ABBC

    122.9KRW

    -0.9%

  • BCN

    0.3KRW

    -7.8%

  • BTS

    21.5KRW

    -0.2%

  • ZIL

    5.9KRW

    -0.4%

  • AE

    191.1KRW

    4.3%

  • XZC

    6,055.2KRW

    2.5%

  • ARDR

    50.7KRW

    0.5%

  • MATIC

    19.5KRW

    2.4%

  • QNT

    3,885.5KRW

    4.4%

  • ETN

    4.4KRW

    0.3%

  • MANA

    40.6KRW

    -2.2%

  • MAID

    94.1KRW

    7.6%

  • SNT

    12.0KRW

    0.9%

  • STRAT

    391.7KRW

    0.5%

  • ELF

    70.1KRW

    -0.9%

  • TOMO

    527.9KRW

    -0.8%

  • GNT

    37.3KRW

    -3.2%

  • NPXS

    0.2KRW

    -3.0%

  • DAI

    1,155.0KRW

    -0.8%

  • ELA

    1,784.4KRW

    -2.2%

  • AION

    81.5KRW

    3.8%

  • FET

    43.2KRW

    -1.0%

  • LRC

    29.3KRW

    -1.4%

  • WTC

    564.2KRW

    2.8%

  • TRUE

    302.6KRW

    1.7%

  • WAX

    22.7KRW

    1.7%

  • RDD

    0.8KRW

    6.2%

  • LAMB

    31.1KRW

    -0.1%

  • PPT

    405.8KRW

    3.0%

  • ARK

    182.6KRW

    1.5%

  • PAI

    14.7KRW

    11.6%

  • PAI

    14.7KRW

    11.6%

  • ANT

    667.5KRW

    -2.7%

  • POWR

    47.9KRW

    -0.2%

  • FTM

    11.1KRW

    0.6%

  • R

    41.3KRW

    -0.8%

  • FCT

    2,257.1KRW

    0.5%

  • LOOM

    20.0KRW

    -0.4%

  • PIVX

    327.8KRW

    8.9%

  • BNT

    252.9KRW

    0.1%

  • MOAC

    248.2KRW

    0.7%

  • DENT

    0.2KRW

    -4.5%

  • OCEAN

    42.4KRW

    -0.1%

  • ABT

    149.4KRW

    -0.7%

  • CET

    16.8KRW

    0.2%

  • ODE

    64.8KRW

    0.2%

  • AOA

    1.8KRW

    -3.3%

  • TTC

    29.8KRW

    -4.3%

  • POLY

    20.9KRW

    -0.3%

  • REPO

    64.7KRW

    -11.3%

  • PAY

    45.3KRW

    -1.7%

  • MBL

    1.7KRW

    -1.3%

  • BORA

    8.8KRW

    3.7%

  • BCV

    6.2KRW

    -0.0%

  • CPT

    1.7KRW

    -3.9%

  • BAAS

    1.0KRW

    -1.2%

  • COSM

    7.4KRW

    1.0%

  • GUSD

    1,148.8KRW

    -0.3%

  • FLETA

    9.4KRW

    -5.1%

  • FNB

    2.2KRW

    -1.9%

  • UPP

    11.5KRW

    -0.3%

  • HUM

    6.7KRW

    -0.5%

  • RBG

    1.0KRW

    34.3%

  • AERGO

    29.0KRW

    -4.1%

  • EOSC

    2.9KRW

    -5.7%

  • MVL

    0.4KRW

    -2.8%

  • DCC

    0.8KRW

    -0.2%

  • LKY

    48.5KRW

    -0.2%

  • eDEL

    2.4KRW

    -0.7%

  • VRA

    0.5KRW

    2.3%

  • ABL

    6.7KRW

    -1.1%

  • TEMCO

    0.5KRW

    -2.1%

  • MEETONE

    0.6KRW

    3.5%

  • AMON

    1.8KRW

    -3.0%

  • AID

    2.3KRW

    -3.2%

  • PXL

    21.2KRW

    2.4%

  • XRA

    7.7KRW

    -0.2%

  • CLB

    1.3KRW

    -3.6%

  • WET

    4.0KRW

    -0.5%

  • AKRO

    0.6KRW

    -22.2%

  • RBTC

    9,702,073.1KRW

    -3.8%

  • WIKEN

    1.6KRW

    1.2%

  • HORUS

    0.5KRW

    48.0%

  • SEAL

    0.7KRW

    -0.2%

  • PTON

    0.0KRW

    6.0%

  • NEWS

    1.5KRW

    0.7%

  • NPER

    3.4KRW

    -0.2%

  • PUB

    0.1KRW

    0.4%

  • KARMA

    0.0KRW

    -0.4%

  • PUT

    1.5KRW

    0.8%

  • CCH

    0.0KRW

    -0.1%

  • KNT

    0.0KRW

    5.4%

  • APIX

    0.6KRW

    -0.2%

  • IQ

    3.1KRW

    -3.7%

  • BLACK

    0.5KRW

    -1.3%

  • RCD

    3.0KRW

    --%

  • MCC

    4.3KRW

    -0.2%

  • INC

    0.2KRW

    6.1%

  • BZKY

    0.3KRW

    -0.2%

  • CRE

    1.4KRW

    -6.6%

Community

Running a Decred Raspberry Pi Node

Decred | 01.14| 10

Running a full node is one of the strongest actions of support you can do for a peer-to-peer distributed protocol. Every single node that runs on the network adds strength and resilience to the consensus mechanism and is the embodiment of strength in numbers.

At a personal level, running your own node is an excellent way to get hands on with the Decred protocol, Linux and the Raspberry Pi.

This is an inexpensive learning project with a large impact and a great learning curve.

Purpose of this Guide

This guide is will show you how to setup a Raspberry Pi Decred full node on a Raspberry Pi from start to finish. Anyone who can operate a Decred wallet is more than capable of setting up a Raspberry Pi DCR node.

Setting up a Raspberry Pi is well documented elsewhere so I will provide relevant links to help you along the way.

I intend this module to be accessible for all skill levels. As such I use a VNC server (remote desktop) which may help people ease into using SSH only command line. Skill should not prevent anyone running a Decred node!

Useful References

What you will need

Step 1 — Installing Raspbian OS

Installing the latest Raspbian operating system is well documented. Your process should be:

  1. Download the latest Raspbian image file
  2. Flash the SD Card using Etcher
  3. To set up your Pi headless (without a screen, keyboard and mouse) you will need to follow the steps here to connect the Pi to your WiFi and enable SSH. You can also hardwire the Pi with an ethernet cable to your router if you have trouble setting up the WiFi.

Step 2 — Setting up Remote SSH Connection

Here we will establish a remote connection to the Pi via SSH using PuTTy.

  1. Check the IP address of your Pi. Usually you can check this by logging into your router and looking at the list of clients if your Pi is properly connected.
  2. Whilst you are logged into your router, setup port forwarding for 9108 on your router (a guide here). If you find that once dcrd is running you are not connecting to peers (in Step-5), you may need to set your external IP in the router config and change firewall rules to properly get inbounds (without this your node will be outbound-only, which is less useful).
  3. Connect via SSH to your Pi using PuTTy with the IP address (default settings are fine). Once the IP is typed in, you can name and save for future access. Login using the raspberry pi defaults (username = pi, password = raspberry)

3. Run the following commands to update your Pi and install VNC Server

sudo apt-get update
sudo apt-get upgrade
sudo apt-get install realvnc-vnc-server realvnc-vnc-viewer

4. Harden your Pi. This boosts the security of your Pi and makes it much harder for any attackers to get in. This process is covered in depth here. All steps are important.

Note — Hardening your Pi is the most important step in this process. Be sure to protect your digital and network security by following all steps in the guide.

5. Next we will edit the screen resolution settings in this config file so that it appears nicely on a standard Laptop screen when we connect via the VNC server.

sudo nano /boot/config.txt

6. Edit the lines as shown in the image below (in white) by deleting the # and updating the resolution numbers. Hit Ctrl + O to write out the file and then Ctrl + X to exit back to console.

7. Next we need to enable VNC on the Pi by following the first few steps of this guide.

sudo raspi-config
Interfacing Options --> VNC --> YES

8. It is worthwhile rebooting your Pi at this stage, confirm you can login using your new credentials and changed password and connect both PuTTy SSH and VNC Viewer.

Step 3 — Download and install dcrinstall

  1. Login to your Pi via VNC viewer using the same IP address as you did earlier for SSH.
  2. Once you have logged into VNC and can see your Pi’s desktop, navigate to the dcrinstall github page and download the latest ARM release.

3. Once the file has downloaded, it will be located in your Downloads folder. Navigate here via the SSH command line (via PuTTy).

Note — From this point on, you do not require the VNC remote desktop and can do it all via SSH. However, I prefer to use VNC and then open up terminal within the Pi so I can see how dcrd is tracking and not lose my session when I close PuTTy.)

cd ~/Downloads/

4. We need to set the file to be an executable before we can run it. dcrinstall will initiate the download and install of the required files for your node. (Note, be sure to update the file version as required in the script below if it is different, v1.4.0 at the time of writing).

sudo chmod u+x dcrinstall-linux-arm-v1.4.0
sudo ./dcrinstall-linux-arm-v1.4.0

5. A folder called ./decred has now been placed in your home directory. It will take a short while (5mins) to download and setup all files.

Step 4 — Get dcrd running

  1. Now we navigate to the new decred folder to start up the node daemon dcrd (update version number as before if needed).
cd
cd ./decred/decred-linux-arm-v1.4.0
./dcrd

2. The Decred daemon will boot up and start connecting to peers

3. If you wish to setup a wallet on this node, open up a new version of terminal and run to following command and follow the prompts.

cd
cd ./decred/decred-linux-arm-v1.4.0
./dcrwallet --create

Step 5 — Your Decred Node is Now Running!

  1. Your node (dcrd) is now connecting to new peers and syncing with the blockchain. If you goal is to support the network, you have succeeded and your little Pi is now successfully participating in consensus!
  2. If you open up a new session of terminal on your Pi, navigate to the decred installation folder and run dcrctl to access all functions for your wallet and node.
cd
cd ./decred/decred-linux-arm-v1.4.0
./dcrctl --help

Decreds official documentation has a guide for accessing all functions via dcrctl and controlling dcrd and dcrwallet.

Closing thoughts

Hopefully this was a useful step by step guide for setting up your first Decred full node. This is a great way to start learning and getting comfortable with command line, IoT and most importantly, contributing a small but powerful CPU to the Decred consensus engine.

The full node setup guide by Stakey.club remains a useful reference for additional and more advanced steps including setting up your node to run via TOR which is a recommended next step. Experiment and have fun learning along the way!

You can find me on Twitter (@_Checkmatey_) where I post regular content around the fundamentals and on-chain behaviour of Bitcoin and Decred.

You can also find me over at Ready Set Crypto where our team delivers the highest quality fundamental research and pairs it with sound technical analysis for the emerging digital economy.

All the Best,

Checkmate.

Thanks to Haon (@NoahPierau) for reminding me about port forwarding!

Signature

Decred

Dsmx4zrTuS6UJxGHNutc5pwH73VHx7JN5XE
Signed Message (Article Title): HzcfJgaawdcUs30LOi7IQisgp9KunzOQrTQjwolhcE4gXbnS08RBYr+ukzGY4K3fKwWRBPo37sn1bLloo0EmFs4=

Running a Decred Raspberry Pi Node was originally published in Decred on Medium, where people are continuing the conversation by highlighting and responding to this story.

Comment 0

delete

Are you sure you want to delete this post?