Page tree
Skip to end of metadata
Go to start of metadata

This section describes the installation and configuration of the Costaflores Netrabrick

A Netrabrick is a combination of the following technologies:

  • Small form-factor PC (Intel NUC)
  • flexVDI
  • dappnode
  • orchid VPN
  • NuCypher worknode
  • golem

Dappnode

From the dappnode documentation:

DAppNode connects the decentralized internet by allowing a user to conveniently host P2P clients in a truly decentralized way, and eliminates the reliance on third parties vulnerable to centralization. It also adds an extra layer of incentivization that helps spread adoption of the blockchain ecosystem and solves the problem of infrastructure centralization.

The Problem

Most nodes for public blockchains nowadays have a degree of architectural or/and political centralization. The first refers to the number of machines a system is made of, and the second concerns the ownership of such machines, Vitalik Buterin, 2017.

A first very common case is to host a node in a Virtual Private Server (VPS). This puts your node in the hands of a highly centralized company like Digital Ocean or Amazon, which could block and censor your access. Moreover, they could be hosting different nodes in the same machine, architecturally reducing decentralization too.

Another common case in the Ethereum blockchain is to connect through a node owned by Infura. While Infura's work on providing infrastructure for the network is a necessity at this stage, we can see how the ownership of a majority of nodes by the same company is a centralizing factor.

Installation

The base node xray is configured with 8GB of RAM and 6 CPU cores. 

xray was originally configured as a beacon chain node but has been repurposed for dappnode.

xray storage configuration.


Install dappnode

Download the image from DAppNodeISO or build it from source, and configure as a flexVDI Media Storage image file.

Boot from this image:

Follow the installation steps. Various screens will guide you through the process and you can follow the recommended setup below for a default installation:

Recommended setup

*Note by following these instructions you will erase ALL your server's disk contents.

  1. Select a language - Language: [English]
  2. Select your location - Country, territory or area: [United States or your own]
  3. Configure the keyboard - Keymap to use? [American English or your own]
  4. Configure the network - Hostname: [dappnode]
  5. Set up users and passwords - Root password: [Leave blank (twice)]
  6. Set up users and passwords - Username for your account: [dappnode]
  7. Set up users and passwords Choose a password for the new user: [YOUR_PASSWORD]
  8. Set up users and passwords - Re-enter password to verify: [YOUR_PASSWORD]
  9. Configure the clock - Select your time zone: [Select your own]
  10. Partition disk - Partitioning method: [Guided - use entire disk and set up LVM]
  11. Partition disk - Select disk to partition: [SCSIX (0,0,0) (sda) - ...]
  12. Partition disk - Selected for partitioning: [All files in one partition]
  13. Partition disk - Write the changes to disks and configure LVM? [Yes]
  14. Partition disk - Amount of volume group to use for guided partitioning: [Continue]
  15. Partition disk - Write the changes to disks? [Yes]
  16. Install the GRUB boot loader on a hard disk - Install the GRUB boot loader to the master boot record? [Yes]
  17. Install the GRUB boot loader on a hard disk - [/dev/sda (or the disk selected above)]
  18. Your public IP - [Unless you have a fixed IP leave it blank]
  19. Finish the installation - Installation complete [continue]

Resume DAppNode's installation

If the installation succeeded, your system will reboot and you will have to log in with the user and password provided in the installation steps above. Then the following screen should appear:

Now you can connect to your DAppNode by downloading the .ovpn file that you will be able to download from the link / QR show at the end of the installation by double click in it to open it with a compatible OpenVPN client. Here you have the recommended ones and connection instructions

This part of the link dccdc**********d82.dyndns.dappnode.io can be substituted by the internal ip (192.168.0.31) to avoid routing problems with dyndns. 

Configure VPN

Download the OVPN configuration file and add to tunnelblick.

Configure my.dappnode

Connect to your DAppNode through VPN and navigate to my.dappnode to access DAppNode's admin page. DAppNode's functionality will be limited until the Ethereum mainnet chain is synced.


Now you can do things like for example:

The first time you access to it will ask you for your Custom API address, just fill the field with this address and you will be connected to your IPFS node, this is the input you have to enter in the field Is your API in a port other than 5001?


/dns4/ipfs.dappnode/tcp/5001/http
  • No labels