Be a crypto hero in the market by logging in

Don't you have an account? Sign in

Token price

  • BTC

    9,782,383.5KRW

    -3.0%

  • ETH

    189,938.2KRW

    -2.6%

  • XRP

    265.8KRW

    -3.1%

  • BCH

    391,057.4KRW

    -2.0%

  • BSV

    330,551.4KRW

    -7.6%

  • USDT

    1,169.2KRW

    0.3%

  • EOS

    4,110.8KRW

    -3.1%

  • LTC

    54,759.1KRW

    -0.5%

  • BNB

    19,828.3KRW

    -3.7%

  • XLM

    68.6KRW

    -5.1%

  • ADA

    50.4KRW

    -5.0%

  • TRX

    19.2KRW

    -4.0%

  • XMR

    72,378.8KRW

    -4.5%

  • XTZ

    1,807.9KRW

    -1.0%

  • ETC

    10,127.5KRW

    -5.3%

  • DASH

    119,617.7KRW

    -5.3%

  • ATOM

    5,170.0KRW

    -3.4%

  • NEO

    12,268.9KRW

    -6.7%

  • HT

    3,636.4KRW

    -3.3%

  • HEDG

    2,808.3KRW

    -2.3%

  • MKR

    536,737.8KRW

    -2.9%

  • USDC

    1,165.4KRW

    -0.1%

  • ZEC

    58,021.3KRW

    -4.8%

  • ONT

    736.5KRW

    -4.5%

  • XEM

    48.2KRW

    2.9%

  • VET

    6.4KRW

    -7.0%

  • BAT

    241.9KRW

    -4.9%

  • DOGE

    2.7KRW

    -2.7%

  • PAX

    1,174.2KRW

    0.3%

  • DCR

    20,284.1KRW

    -7.4%

  • QTUM

    2,196.6KRW

    -3.5%

  • BTG

    11,627.3KRW

    -7.3%

  • INB

    556.1KRW

    -1.7%

  • REP

    15,436.9KRW

    -4.8%

  • LINK

    485.1KRW

    2.0%

  • TUSD

    1,169.9KRW

    0.4%

  • RVN

    29.9KRW

    -3.8%

  • ZRX

    263.8KRW

    -6.6%

  • ALGO

    275.9KRW

    -3.6%

  • CNX

    2,367.3KRW

    -3.2%

  • OMG

    918.9KRW

    -3.6%

  • XIN

    272,323.1KRW

    2.2%

  • XIN

    272,323.1KRW

    2.2%

  • BCD

    622.0KRW

    -9.9%

  • THETA

    126.0KRW

    -6.5%

  • NANO

    757.6KRW

    -5.3%

  • WAVES

    984.5KRW

    -1.8%

  • LSK

    814.9KRW

    -2.7%

  • KCS

    1,192.9KRW

    -1.3%

  • DGB

    7.5KRW

    -2.9%

  • BTM

    95.0KRW

    4.1%

  • BTM

    95.0KRW

    4.1%

  • ICX

    175.8KRW

    -1.4%

  • MONA

    1,368.7KRW

    -4.2%

  • KMD

    748.0KRW

    -11.0%

  • MCO

    5,298.8KRW

    -4.2%

  • ENJ

    96.5KRW

    9.6%

  • IOST

    6.2KRW

    -1.9%

  • SC

    1.7KRW

    -4.7%

  • HC

    1,582.4KRW

    -5.1%

  • NEXO

    119.4KRW

    -1.8%

  • XVG

    4.1KRW

    -5.8%

  • ABBC

    119.2KRW

    -0.9%

  • STEEM

    184.5KRW

    -6.9%

  • BCN

    0.4KRW

    -2.9%

  • BTS

    21.7KRW

    -3.6%

  • ZIL

    5.8KRW

    -2.2%

  • AE

    186.3KRW

    -4.9%

  • XZC

    5,668.1KRW

    -6.1%

  • ARDR

    49.8KRW

    -3.6%

  • MATIC

    18.7KRW

    -5.1%

  • MAID

    101.7KRW

    -6.9%

  • QNT

    3,745.8KRW

    -5.4%

  • ETN

    4.3KRW

    -1.6%

  • GNT

    43.4KRW

    -13.1%

  • SNT

    11.8KRW

    -6.6%

  • STRAT

    400.9KRW

    -1.7%

  • MANA

    37.8KRW

    -5.8%

  • ELF

    70.2KRW

    0.4%

  • NPXS

    0.2KRW

    -1.2%

  • BEAM

    686.4KRW

    -0.6%

  • TOMO

    526.4KRW

    -5.8%

  • GRIN

    1,130.9KRW

    -5.4%

  • DAI

    1,157.8KRW

    -0.4%

  • ELA

    1,795.9KRW

    -4.0%

  • AION

    79.5KRW

    0.1%

  • FET

    43.9KRW

    -2.3%

  • PAI

    18.7KRW

    10.0%

  • PAI

    18.7KRW

    10.0%

  • LRC

    28.3KRW

    -4.1%

  • WAX

    26.2KRW

    -1.7%

  • WTC

    454.9KRW

    -6.3%

  • RDD

    0.9KRW

    11.1%

  • TRUE

    298.6KRW

    -4.6%

  • POWR

    51.0KRW

    -1.1%

  • LAMB

    31.2KRW

    -0.9%

  • ARK

    178.0KRW

    -7.5%

  • R

    43.1KRW

    -0.6%

  • ANT

    659.0KRW

    -5.1%

  • PPT

    388.5KRW

    -2.3%

  • LOOM

    20.9KRW

    -4.0%

  • FCT

    2,238.6KRW

    -7.3%

  • FTM

    10.8KRW

    -3.7%

  • PIVX

    309.7KRW

    -1.1%

  • BNT

    248.3KRW

    -2.8%

  • DENT

    0.2KRW

    -16.9%

  • MOAC

    239.3KRW

    -6.0%

  • ODE

    67.4KRW

    -2.5%

  • ABT

    148.3KRW

    -7.4%

  • CET

    16.3KRW

    -2.5%

  • OCEAN

    39.9KRW

    -7.0%

  • TTC

    33.8KRW

    1.1%

  • AOA

    1.8KRW

    -0.0%

  • POLY

    21.5KRW

    -7.2%

  • REPO

    68.8KRW

    -4.8%

  • CPT

    2.0KRW

    -0.5%

  • PAY

    44.8KRW

    -3.1%

  • MBL

    1.6KRW

    -0.3%

  • INS

    179.4KRW

    -3.4%

  • BCV

    6.2KRW

    2.4%

  • BORA

    8.2KRW

    -7.7%

  • COSM

    8.1KRW

    -1.0%

  • BAAS

    1.0KRW

    -1.1%

  • UPP

    14.6KRW

    -4.4%

  • GUSD

    1,148.9KRW

    -0.5%

  • FLETA

    8.6KRW

    -6.7%

  • FNB

    2.1KRW

    -1.3%

  • AERGO

    33.3KRW

    1.7%

  • RBG

    1.0KRW

    -0.2%

  • HUM

    6.6KRW

    2.5%

  • EOSC

    2.8KRW

    -1.1%

  • MVL

    0.3KRW

    -6.6%

  • DCC

    0.9KRW

    0.3%

  • LKY

    48.9KRW

    0.3%

  • eDEL

    2.4KRW

    -0.7%

  • VRA

    0.5KRW

    -2.5%

  • ABL

    6.5KRW

    -4.6%

  • RBTC

    9,447,179.2KRW

    -2.3%

  • TEMCO

    0.4KRW

    -2.0%

  • MEETONE

    0.6KRW

    -4.9%

  • AMON

    1.9KRW

    17.8%

  • PXL

    20.8KRW

    -2.7%

  • AKRO

    0.8KRW

    5.1%

  • XRA

    7.8KRW

    8.7%

  • AID

    1.7KRW

    -0.9%

  • CLB

    1.3KRW

    -4.5%

  • WET

    4.0KRW

    1.1%

  • PTON

    0.0KRW

    -3.2%

  • NEWS

    1.7KRW

    0.1%

  • WIKEN

    1.5KRW

    -3.0%

  • SEAL

    0.7KRW

    -3.7%

  • NPER

    3.4KRW

    0.3%

  • PUB

    0.1KRW

    -3.1%

  • HORUS

    0.2KRW

    -2.6%

  • KARMA

    0.0KRW

    -1.6%

  • PUT

    1.4KRW

    -2.3%

  • CCH

    0.0KRW

    -24.7%

  • APIX

    0.6KRW

    --%

  • KNT

    0.0KRW

    -45.9%

  • IQ

    3.0KRW

    -11.6%

  • BLACK

    0.5KRW

    -90.6%

  • RCD

    3.0KRW

    --%

  • MCC

    4.4KRW

    0.3%

  • INC

    0.2KRW

    -26.1%

  • BZKY

    0.3KRW

    0.3%

  • CRE

    1.4KRW

    4.5%

Community

Running a Decred Raspberry Pi Node

Decred | 01.14| 11

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?