Bitcoin Forum
May 06, 2024, 10:40:35 PM *
News: Latest Bitcoin Core release: 27.0 [Torrent]
 
  Home Help Search Login Register More  
  Show Posts
Pages: [1]
1  Bitcoin / Project Development / [pin0de] - Raspberry Pi 3 - Bitcoin Core w/ ElectrumX over Tor full node install on: November 27, 2017, 02:37:47 AM
https://duckartes.github.io/projects/pin0de

WHAT THE SCRIPT DOES:

Enables testing repository
  • Upgrades system
  • Installs dependencies
  • Formats selected drive
  • Creates installation directory
  • Queries Bitcoin Core RSS feed to get latest version
  • Downloads binary
  • Git latest version of ElectrumX
  • Creates Bitcoin, ElectrumX, Tor, and systemd service files
  • Starts services

YOU NOW HAVE:
  • Your own verified, secure node to connect through Tor

NOTES:
  • HIGHLY EXPERIMENTAL
  • NO TRAILING SLASHES - use /media/storage NOT /media/storage/
  • IF DEVICE IS SELECTED, IT WILL BE WIPED COMPLETELY
  • WORK IN PROGRESS, HIGH CHANCE OF BORKING YOUR PI SETUP
  • REVIEW THE SCRIPT TO SEE WHAT’S GOING ON
  • raspi-copies-and-fills IS REMOVED DUE TO FAILED UPDATE
  • UNINSTALL COMMAND DOESN’T FULLY DELETE EVERYTHING

FUTURE:
  • Revise code add better logic
  • Add better control interface for node and connecting to phone apps
  • Easier installation

Started from this many moons ago: https://bitcointalk.org/index.php?topic=1961479
2  Bitcoin / Electrum / ElectrumX configuration error on: July 25, 2017, 10:51:20 AM
Code:
"Invalid URL: host is required for abolute urls.")

Is the error I am getting

Code:
DB_DIRECTORY = [Bitcoin data directory] 
DAEMON_URL = http://[username]:[password]@localhost:8332/
ELECTRUMX = /usr/local/bin/electrumx_server.py
USERNAME = bitcoind
COIN = Bitcoin
NET = mainnet
DB_ENGINE = leveldb
REORG_LIMIT = 200
DONATION_ADDRESS = [BTC address]
BANNER_FILE = /etc/electrumx.banner
HOST = [IP address of server]
TCP_PORT = 50001
SSL_PORT = 50002
SSL_CERTFILE = /etc/server.crt
SSL_KEYFILE = /etc/server.key
IRC = 1
REPORT_HOST =  [FQDN of server (using a free redirect service)]


Things in [ have been censored ] .
3  Bitcoin / Development & Technical Discussion / Node signaling and auto upgrade; Possible incentivization? on: June 17, 2017, 09:34:51 PM
I don't know if this has been addressed, I'd like to find a node focused channel / forum ideally. . Anyway...

What I want to achieve is auto update of nodes to current software.

A master node you trust uses an encrypted hash/string (signed, verified - not sure of the proper term) UA comment and other nodes that trust this node run the update command bringing them up to date if the UA comment is valid.

I'm really interested in distributed networks and torrent like communication.

Perhaps this could be a way of incentivizing full nodes? The verification and distribution of the node software itself.
4  Bitcoin / Project Development / [GUIDE] Raspberry Pi 3 with WD PiDrive 1TB - UASF BIP-148 Bitcoin Full Node on: June 11, 2017, 06:37:19 AM
[ OUTDATED ][ WORK IN PROGRESS][ OUTDATED ]

Requirements
Raspberry Pi 3 Model B
Vilros Raspberry Pi 3 Basic Starter Kit--Clear Case Edition [Includes Wifi & Bluetooth Connectivity]

Storage
WD PiDrive BerryBoot Edition 1TB (includes 4GB SD card)
WD PiDrive Enclosure Kit

Latest release of Raspbian Jesse Lite (2017-07-05 at the time of last edit)
Torrent
ZIP

Base system setup

Assemble Raspberry Pi
Assemble PiDrive
Refer to my unboxing and assembly post.
Load Raspbian Jesse Lite onto SD card
-Linux
-Mac OS
-Windows
Enable SHH
Insert SD card into Raspberry Pi
Bundle PiDrive to Raspberry Pi
Plug in ethernet cable to Raspberry Pi
Plug in PiDrive connector
Plug in power cable from PiDrive to Raspberry Pi
Plug in USB from PiDrive to Raspberry Pi
Plug in power cable from wall plug to PiDrive connector
Plug in power to wall
Find Raspberry Pi IP address
Check your router or use IP scanning software
SSH into Raspberry Pi
Open a terminal
Code:
ssh pi@RASPBERRY_PI_IP_ADDRESS
At the prompt type "yes" and press enter
Password is "raspberry"
WARNING! CHANGE PASSWORD NOW!
Code:
passwd
OPTIONAL
Enable wifi
Code:
sudo nano /etc/wpa_supplicant/wpa_supplicant.conf 
Add the following to the bottom of the file
Code:
network={
      ssid="YOUR_WIFI_ROUTER_NAME"
      psk="YOUR_WIFI_ROUTER_PASSWORD"
}
Press ctrl+O
Press 'enter'
Press ctrl+X
Code:
sudo reboot
Remove ethernet cable if WiFi is chosen

Expand the filesystem
Find Raspberry Pi IP address if you switched to wifi
SSH into Raspberry Pi
Code:
sudo raspi-config
Select "advanced options"
Select "expand filesystem"
Select "<Ok>"
Select "<Finish>"
Select "<Yes>"
Raspberry Pi will reboot

PiDrive Setup
SSH into Raspberry Pi

List hard drives
Code:
sudo fdisk -l
Look for a device named /dev/sdX - this is the PiDrive (sda, sdb, sdc, )

Partition drive
Code:
sudo fdisk /dev/sdX
At the prompt type in "d"  to delete partitions until there are no partitions
At the prompt type in "n" for new
At the prompt type in "p" for primary
At the prompt type in "1" for partition number
At the prompt press enter for defaults
At the prompt press enter for defaults
At the prompt type in "w" and press enter for write
This will use the full disk as storage

Format PiDrive
Code:
sudo mkfs.ext4 /dev/sdX1
At the prompt type in "y" and press enter
Create mount point for PiDrive
Code:
sudo mkdir /mnt/pidrive

Get PiDrive UUID
Code:
sudo blkid
Copy the quoted field from PARTUUID="COPYME" for drive /dev/sdX1
Code:
sudo nano /etc/fstab
Add "PARTUUID=COPYME /mnt/pidrive/ ext4 defaults 0 0" to bottom of file

Increase and Initialize swap file
Code:
sudo nano /etc/dphys-swapfile
change “CONF_SWAPSIZE=100” to “CONF_SWAPSIZE=1000”
Code:
sudo dphys-swapfile setup
sudo dphys-swapfile swapon
Reboot

Verify mounting of PiDrive
SSH into Raspberry Pi
List mounts
Code:
df -h
Verify "/dev/sdX1" is mounted on "/mnt/pidrive"

Update and upgrade system
Code:
sudo apt-get update
sudo apt-get upgrade
Press enter to download and install packages

Setup
Install required packages
Code:
sudo apt-get install git autoconf libevent-dev libtool libssl-dev libboost-all-dev libminiupnpc-dev
Press enter

Download and compile Bitcoin UASF BIP148
Code:
mkdir ~/bin
cd ~/bin
git clone git://github.com/UASF/bitcoin -b 0.14-BIP148
cd bitcoin
./autogen.sh
./configure --enable-upnp-default --disable-wallet --disable-bench --disable-zmq --without-gui --prefix=/usr/
make
make check
ONLY IF ALL THE TESTS PASS!
Code:
sudo make install
rm -R ~/bin

Create Bitcoin storage folder and user
Code:
sudo mkdir -p /mnt/pidrive/.bitcoinData/
sudo useradd -r bitcoind
sudo chown bitcoind:bitcoind /mnt/pidrive/.bitcoinData

Create Bitcoin system service
Code:
sudo nano /lib/systemd/system/bitcoind.service
Add
Code:
[Unit]
Description=Bitcoin's distributed currency daemon
After=network.target

[Service]
User=bitcoind
Group=bitcoind

Type=forking
PIDFile=/mnt/pidrive/.bitcoinData/bitcoind.pid
ExecStart=/usr/bin/bitcoind -daemon -pid=/mnt/pidrive/.bitcoinData/bitcoind.pid \
-conf=/etc/bitcoin/bitcoin.conf -datadir=/mnt/pidrive/.bitcoinData -disablewallet

Restart=always
PrivateTmp=true
TimeoutStopSec=60s
TimeoutStartSec=2s
StartLimitInterval=120s
StartLimitBurst=5

[Install]
WantedBy=multi-user.target
Run
Code:
sudo ln -s /lib/systemd/system/bitcoind.service /etc/systemd/system/multi-user.target.wants/bitcoind.service

Create Bitcoin.conf
Code:
sudo mkdir /etc/bitcoin
sudo nano /etc/bitcoin/bitcoin.conf
Paste this example configuration file for more options
Add these to the bottom
Code:
maxmempool=50
rpcuser=makeupanyusernamehere
rpcpassword=makeupanysecretpasswordhere
Run
Code:
sudo service bitcoind start
Bitcoin will start at when Raspberry Pi boots
Forward port 8333 for Raspberry Pi IP address on your router to enable more than 8 connections.


Status of node

Status of Bitcoin
Code:
bitcoin-cli -datadir=/mnt/pidrive/.bitcoinData/ -conf=/etc/bitcoin/bitcoin.conf getinfo

Size of /mnt/pidrive/.bitcoinData
Code:
sudo du /mnt/pidrive/.bitcoinData/ -h

Future of Project
Expand guide to include advanced configurations
UI for remote monitoring
Cleanup - Code blocks / Formatting
Secure distro
Optimize distro / Fork
Automate installation
Automate updates
Translations welcome
Suggestions welcome

THANKS TO EVERYONE IN THE COMMUNITY

-Full Node, Bitcoin Core v0.14.1 UASF-Segwit:0.3(BIP148), Raspberry Pi3B, 3.5"Generic TFT with network stats + HOW-TO Guide
-Ok, I'm finally annoyed enough to do this. Can someone link me an explanation of how to set up a UASF node on linux?
-My original published guide

REPORT ANY BUGS OR ERRORS IN COMMENTS
Pages: [1]
Powered by MySQL Powered by PHP Powered by SMF 1.1.19 | SMF © 2006-2009, Simple Machines Valid XHTML 1.0! Valid CSS!