Contributor: jodobear 20-07-03
DISCLAIMER: It is not a good idea to store large amounts of Bitcoin on a VPS, ideally you should use this as a watch-only wallet. This script is a work-in-progress and has not been widely tested. The creators are not responsible for loss of funds. If you are not familiar with running a node or how Bitcoin works then we urge you to use this in testnet so that you can use it as a learning tool.
The script is inteded for a fresh bitcoin setup. Re-running the script on an already setup server is intended only for advanced users.
It downloads Bitcoin Core over Tor. You can specify any path for the blockchain data and Electrs data.
To run this script you need to be logged in as root, and enter in the commands listed below:
(The $ or # represents a terminal commmand prompt, do not actually type in a $ or #.)
-
Give the root user a password, enter the following command and set a password: $ sudo passwd
-
Switch to the root user: $ sudo su
-
Edit config for your node setup using your favourite text editor:
- Source the script:
- Display help:
This script can be installed on any Debian based system. By default this script will:
- Update the OS
- Set Automatic Updates On
- Create User: standup
- Install UFW, haveguard, gnupg2, git & make
- Install Tor
- Install Bitcoin Core on mainnet with txindex=1 if setting up unpruned node.
- Setup Bitcoin Core as systemd service and to start at reboot or after a crash.
- Start Bitcoin Core
- Install c-lightning or LND
- Install Esplora
- Install BTCPay**
** Work-in-progress
Upon completion of the script there will be a QR code saved to /qrcode.png which you can open and scan:
- Install fim: $ sudo apt-get install fim
- Then, display the QR code in terminal (as root):
It is highly recommended to add a Tor V3 pubkey for cookie authentication so that even if your QR code is compromised an attacker would not be able to access your node.
It is recommended to delete the /qrcode.png. Additionally, unless you face installation issues and need to assisstance delete /standup.log, and /standup.err
- Conclude the Esplora
distissue - Find solution to BTCPay Server corrupting blockchain directory when creating a softlink.
- Check implementation & test FastSync.
- C-lightning HTTP plugin.
- Explore HWI.