Installing Bitcoin and Bitcoin Cash on an Ubuntu Server
In this article, we will guide you through the process of installing Bitcoin Core (BTC) and Bitcoin Cash (BCH) on an Ubuntu server.
Requirements:
- Ubuntu 18.04 or higher (for this example we used 20.04)
- Basic knowledge of Linux commands
- The required packages must be installed on your system:
`whack
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 Extract Bitcoin CashFirst, you need to download the Bitcoin Cash (BCH) package:
whack
wget
tar -xzf bcc-0.32.0.tar.gz
cd bcc-0.32.0
This will extract the BCH tar file and will create a directory structure.
Step 2: Configure Bitcoin Cash
Before you can use Bitcoin Cash, you need to configure it:
blow
./configure --prefix=/usr/local/bin
This command configures the Bitcoin Cash setup on your Ubuntu system.
Step 3: Build and Install Bitcoin CashAfter you configure Bitcoin Cash, build the package:
blow
make -j$(nproc)
sudo make install
The -joption specifies the number of CPU cores to use during compilation. The
(nproc)command counts the available CPU cores.
Step 4: Setup and Install Bitcoin Core (BTC)
Next, you need to download and extract the Bitcoin Core package:
hit
wget
tar xzf Bitcoin-Qt-0.19.1.tar.gz
cd Bitcoin-Qt-0.19.1
This will extract the Bitcoin Core tar file and create a directory structure.
Step 5: Configure and Build Bitcoin Core (BTC)Before you can use Bitcoin Core, you need to configure it:
bash
./configure--prefix=/usr/local/bin
And then build the package:
bash
make -j$(nproc)
sudo make install
Step 6: Add Bitcoin Cash and Bitcoin Core to your systemAfter installing both packages, you need to add them to your system PATH so they can be used from anywhere on your server.
hit
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, launch the Bitcoin client:
hit
bitcoin-client --address=your-BCH-address-here
your-BCH-address-here
Replace
with your BCH wallet address.
And if you want to use Bitcoin Cash for payments or other purposes:
hit
bitcoxcash-cli --address=your-bitcoin-cash-address-here -l 2>/home/user/your-bitcoin-cash-records/
Replace your-bitcoin-cash-address-herewith your BCH wallet address and the
-l` option specifies the protocol level.
Troubleshooting
If you encounter any issues during the installation process, please refer to the Bitcoin Core documentation for troubleshooting instructions: <
Additionally, you can contact Bitcoin community support or visit the official Bitcoin website (< which offers extensive resources and tutorials to learn more about cryptocurrencies.
By following these steps, you will have successfully installed Bitcoin Cash along with Bitcoin Core on your Ubuntu server.