Installing Bitcoin and Bitcoin Cash on an Ubuntu Server
In this article, we will walk you through the process of installing Bitcoin Core (BTC) and Bitcoin Cash (BCH) on an Ubuntu server.
Prerequisites:
- Ubuntu 18.04 or later (in this example we will use 20.04)
- Basic understanding of Linux commands
- Your system must have the following packages installed:
sudo apt update
sudo apt install -y curl git build-essential libssl-dev libz-dev libidn2-dev lzo-dev libsnmp-dev
Step 1: Download and Unpack Bitcoin Cash
First, you need to download the Bitcoin Cash (BCH) package:
download
tar xzf bcc-0.32.0.tar.gz
cd bcc-0.32.0
This will unpack the BCH archive and create directory structure.
Step 2: Configure Bitcoin Cash

Before you can start using Bitcoin Cash, you need to configure it:
./configure --prefix=/usr/local/bin
This command configures Bitcoin Cash on your Ubuntu system.
Step 3: Build and Install Bitcoin Cash
Now that you have configured Bitcoin Cash, you can compile the package:
do -j$(nproc)
sudo do install
The -j option specifies the number of CPU cores to use during compilation. The (nproc) command counts the available CPU cores.
Step 4: Configure and Install Bitcoin Core (BTC)
Next, you need to download and unpack the Bitcoin Core package:
download
tar xzf Bitcoin-Qt-0.19.1.tar.gz
Bitcoin-Qt-0.19.1 motherboard
This will unpack the Bitcoin Core archive and create a directory structure.
Step 5: Configure and Build Bitcoin Core (BTC)
Before you can start using Bitcoin Core, you need to configure it:
./configure --prefix=/usr/local/bin
Then build the package:
do -j$(nproc)
sudo do install
Step 6: Add Bitcoin Cash and Bitcoin Core to your system
Once both packages are installed, you need to add them to your system PATH so that you can use them from anywhere on your server.
sudo ln -s /usr/local/bin/bcc /usr/local/bin/
sudo ln -s /usr/local/bin/Bitcoin-Qt /usr/local/bin/
Step 7: Verify Your Installation
To verify that you have successfully installed Bitcoin Cash and Bitcoin Core, run the Bitcoin client:
bitcoin-client --address=your-bch-address-here
Replace your-bch-address with your BCH wallet address.
And if you want to use Bitcoin Cash for payments or other purposes:
bitcoxcash-cli --address=your-bitcoin-cash-address-here -l 2>/home/user/your-bitcoin-cash-logs/
Replace your-bitcoin-cash-address-here with your BCH wallet address, and the -l option will specify the logging level.
Troubleshooting
If you encounter any issues during the installation process, check the Bitcoin Core documentation for troubleshooting tips: <
You can also contact the Bitcoin Community Support or visit the official Bitcoin website (< where you will find extensive resources and tutorials to learn more about cryptocurrencies.
By following these steps, you have successfully installed Bitcoin Cash on your Ubuntu server with Bitcoin Core.