Set Up Bitcoin on Ubuntu 16.04 LTS - VincentSaelzler/HomeLab GitHub Wiki
Ubuntu Installer
Screenshots would have been nice here, but basically went with defaults. Notable config details are below.
Users
- un: adminvince (Administrator Vincent)
Partitioning
- Use LVM; accept all defaults
Packages
- No automatic updates (don't want changes because working on the BlockChainBenchmark project)
- Metapackages: OpenSSH Server and standard system utilities.
Install Bitcoin
Well that was easy.
adminvince@bitcoin0:~$ sudo apt-add-repository ppa:bitcoin/bitcoin
adminvince@bitcoin0:~$ sudo apt update
adminvince@bitcoin0:~$ sudo apt install bitcoind
Create Non-Root User to Use Bitcoin
Now there will be two accounts; vince
and adminvince
. This increases security, because vince
doesn't have sudo
access.
adminvince@bitcoin0:~$ sudo adduser vince
FN: Vincent
LN: Saelzler
Start Bitcoin, then Test It
Logged in as the unprivileged user now.
Start
vince@bitcoin0:~$ bitcoind -daemon -disablewallet
Bitcoin server starting
To see debugging output, use screen
, and do not use the -daemon
flag
Wait a few minutes, then test
vince@bitcoin0:~$ bitcoin-cli getblockcount
228832
Configure Router to Forward Ports via NAT
Follow Directions on Configuring NAT on pfSense with port 8333
.
To test, use the bitnodes page to confirm that the outside world can access your node.