DefiNode / DeFiNode

12 stars 3 forks source link

✨ DeFiNode for more decentralization ✨

Title

Online resources

Telegram Group

Raspberry-Pi - DeFiChain-Wiki

DeFined designd - DeFiChain printing service


The DeFiNode is a do-it-yourself DeFiChain full node DeFiChain original source code. No code will be altered during installation and will 100% taken from the DeFiChain repository.

Basic Features

Table of Contents 🔭

A. Shopping list (also German)

B. Tools needed

C. DeFi Node Software Installation

1. Basic Raspberry Pi setup

2. 3D Printing

3. Custom Case assembly

4. Bonus (only for advanced users with soldering iron) not essential for operation, but very cool

5. FAQ and Trouble shooting guide

Basic Shopping List

A. Amazon Shopping List (en)

Please try to use the exact hardware models that are recommended in the shopping lists. A monitor and mouse keyboard are needed for the initial setup. Estimated cost around 100-150 USD - based on shops and location.

:de: A. German Basic Amazon Shopping List :sweat_smile: :de:

B. Tools needed:

C. DeFi Node Software Installation

There are three ways to set up a DeFi Node:

✨ LFG!

1. Basic Raspberry Pi setup

OS installation

2021-07-06 12_33_26-Raspberry Pi OS – Raspberry Pi

2021-07-06 12_43_15-Raspberry Pi OS – Raspberry Pi

Add coolers (follow the instructions in package).

20210708_115943_2

Connections (Stick, PSU, Mouse, Keyboard, HDMI, Nework)

Now your basic DeFiNode should look like this:

20210708_120318

First boot with monitor + mouse + keyboard

Welcome to Raspberry Pi OS! You should see this screen on your monitor.

newraspberry

Follow the screen and setup your language, Wi-Fi (it is recommended to use a Ethernet connection for stability) an password. It is important you write this password down. It will be needed later on.

password

VNC activation (to be able to remote control your Definode without the monitor, mouse and keyboard)

VNC Activation

For reference check the instructions on VNC tool: VNC

Write down your the local IP Address by moving the mouse cursor on the connection icon in the top right corner (we might need it later on)

grafik

Edit /boot/config.txt for VNC only usage (mandatory if you want to use the Definode without a monitor)

NOT WORKING YET. WILL DO AN UPDATE (You need to edit the config.txt on an PC / Mac)

VNC Viewer config

VNC Viewer config_2

Reboot

(Optional) Edit resolution with “sudo raspberry-config”

resolution

(Optional) Change hostname to “definode” with “sudo raspi-config”

Standard hostname is raspberrypi. You can change the name to definode to be able to enter the wallet in your browser with http:\\definode:5050 instead with http:\\raspberrypi:5050

Hostname

Remote control VNCViewer

vncviewer_1

vncviewer_2

Now you can connect to it any time from any device and mage it conveniently.

🎉 Congratulations! You've done a very good Job so far! 🎉

🎉 You can now disconnect the external Monitor, mouse and keyboard and proceed work with the Remote Desktop 🎉

Download script and execution

grafik

git clone http://github.com/definode/definode && cd definode && sudo sh setup-build-definode.sh

🎇 #Watch the magic happening (for ~3h) 🎇

I know its long but this is really necessary to ensure you build the official software from DeFiChain on your DeFiNode.

There may be some orange messages appear in the terminal, but this is nothing to worry about.

First Wallet usage and test

When everything is finished and running you will get the message "Please open your browser http://localhost:5050" in the terminal

For advanced use, like backup / restore wallet, master nodes, blockchain explorer... please check the FAQ and troubleshooting guide below.

🎉 Congratulations! You've successfully installed the Defichain software on your DeFiNode 🎉

wallet

2. 3D Printing

All files can be found in the 3D files folder. Every part was specifically designed for 3D printing and can be easily printed with every FMD printer.

My preferred material and settings:

Slice files

Use your favorite slicing tool.

2

I recommend using raft for:

Rest of the parts can be printed directly on the plate.

1

Use higher quality settings to have the best looking DefiNode.

Add support where the slicer recommends

After the print, clean everything very good and remove the support.

20210713_104737_cr

NEW! Order your DefiNode case online

Check out the new printing service by Gabriel Kunzer https://www.gabrielkunzer.com/definode/. You can order your case in many colors! Great service! 🔥

3. Custom Case assembly

If you successfully finished step 1 and the wallet was running in the Raspberry you can now start assembling the DefiNode. Please clan the 3D print as good as you can. You can use a cutter knife to remove support or other unnecessary remaining.

Shutdown via VNC (not just power off) your Raspberrypi. Remove all connections and USD stick.

20210721_134459_s

Put Raspberry into case

20210713_104209_s 20210713_104232s 20210713_104250s

That’s it, no screws, nothing. Easy, isn't it!

Cut grids and insert

Prepare scissors, cutting template and the flexible fan grids you've purchased from Amazon.

20210715_112739s 20210715_112840s 20210715_112918s

20210721_134556s

20210721_134424_cr

Connect PSU

20210713_112026s

20210721_134335s

Assembly of the bottom

20210721_134315s

20210721_134324s

Connect and assembly Fan

20210715_113014s

20210721_134213s

fans

20210721_134141s

You can switch on the Raspberry without the USD Stick to test if the fan is running.

If you want to add the LED Ring jump to chapter 4 and come back here, when this is finished.

20210721_134103_cr

20210721_134045s

20210721_134000

Final Assembly (USB Stick and Network cable)

20210713_112134s

Power on

4. Bonus (only for advanced users with soldering iron) not essential for operation, but very cool.

If you want to make your DeFiNode even cooler, you can add a RGB LED Ring to it. The Ring can be programmed to show any animation you want. For now a pink circle indicates the DefiNode is running.

Untitled Project

As in the shopping list, you need to get one RGB LED ring and 3 jumper (female -> male) cables (you should have them already)

[x] LED Ring amazon link

What you need:

20210715_113106

Soldering

Solder the male side of the jumper cable only to:

DO pad is not needed here. Color of the jumper cable is not important. As long as you do the Raspberrypi connection properly.

2021-07-22 13_39_04-

Now it should look like this

20210722_134437

Assembly LED ring

20210716_140024s 20210716_140120s

Connect LED ring (right after step 3.c)

2021-07-23 16_02_33-s

Install LED script and auto start it

(TBD) but check the txt on GitHub

LED (rainbow) test and usage (in development)

(TBD) but check the txt on GitHub

5. FAQ and Trouble shooting guide

How to import wallet.dat?

Put your wallet.dat in your definode/defichain folder. Make sure you habe a backup of your wallet.dat

How to backup wallet.dat?

Go to your definode/defichain folder and copy your wallet.dat on an USB device or go to your definode folder and run the this script: sudo -E sh 09_backup_defiwallet.sh Your backup is still on your Raspberry Pi. Make sure you store it somewhere else.

Installation aborted. What to do?

Try it again :-)

How to use the expert scripts / menu?

On your desktop you will find the "DeFiNode Main Menu" or open via console sudo -E sh 00_definode.sh

Red text during installation?

Keep calm and relax. Your DeFiNode i almost ready.

Blockchain tab not working?

We are working on that. Just use https://explorer.defichain.io/ or https://chainz.cryptoid.info/dfi/

Hot to setup a Master node?

defi-cli is your friend For more informations type in your console docker exec defi_node defi-cli help createmasternode and follow the instructions on: https://defichain-wiki.com/wiki/Masternode_installation_extended

Wallet not syncing?

Go to your expert scripts (see 5d) and use option "8 Repair DeFiNode"

VNC Viewer not connecting?

Check your IP Address

VNC Viewer black screen?

(TBD)

k. Fan not working?

(TBD)

LED ring not working?

(TBD)

Not booting?

Check USB device or SD Card. Check Power Supply

DISCLAIMER

The information provided by DefiNode GitHub, Twitter, Reddit and Telegram is for general informational purposes only. All information on the sites and channels is provided in good faith, however we make no representation or warranty of any kind, express or implied, regarding the accuracy, adequacy, validity, reliability, availability or completeness of any information on the Site or our channels.

UNDER NO CIRCUMSTANCE SHALL WE HAVE ANY LIABILITY TO YOU FOR ANY LOSS OR DAMAGE OF ANY KIND INCURRED AS A RESULT OF THE USE OF THIS SITE, CHANNELS, SCRIPTS AND TUTORIALS. YOUR USE OF THE SITE, SCRIPTS AND TUTORIALS AND YOUR RELIANCE ON ANY INFORMATION ON THIS SITE AND CHANNELS IS SOLELY AT YOUR OWN RISK.

Last updated July 23, 2021