This is a detailed guide how to install the Bitcoin Core client on a cloud Linux server like Ubuntu. Click here to create your first virtual cloud server on Vultr.
Step 1: Update the System
Before installing Bitcoin Core, make sure your system is up to date. Use the following command to update your system:
sudo apt-get update && sudo apt-get upgrade
Step 2: Install Dependencies
Bitcoin Core requires several dependencies to run. Use the following command to install them:
sudo apt-get install build-essential libtool autotools-dev automake pkg-config libssl-dev libevent-dev bsdmainutils python3 libboost-system-dev libboost-filesystem-dev libboost-chrono-dev libboost-test-dev libboost-thread-dev libzmq3-dev
Step 3: Download Bitcoin Core
Download the latest version of Bitcoin Core from the official website using the following command:
Note: check and replace this download link with the current version of the Bitcoin Core client.
Step 4: Verify the Download
To verify the download, you need to compare the hash of the downloaded file with the hash on the Bitcoin Core website. Use the following command to generate the hash of the downloaded file:
Compare the output with the hash on the Bitcoin Core website. This step is important but optional.
Step 5: Extract the Archive
Use the following command to extract the archive:
tar -xzf bitcoin-0.21.1-x86_64-linux-gnu.tar.gz
Step 6: Install Bitcoin Core
Move into the extracted directory using the following command:
sudo cp bin/* /usr/local/bin/
Step 7: Start Bitcoin Core
Use the following command to start Bitcoin Core:
This will start the Bitcoin Core daemon in the background.
Step 8: Configure Bitcoin Core
Create a configuration file for Bitcoin Core using the following command:
Add the following lines to the file:
Replace <username> and <password> with your desired username and password.
Step 9: Restart Bitcoin Core
Use the following command to restart Bitcoin Core with the new configuration:
bitcoin-cli stop && bitcoind -daemon
By following these commands, you can install and configure Bitcoin Core on a Linux server. Remember to keep your private keys secure and follow best practices for online security.