Install Bitcoind on Ubuntu
================================
Bitcoind is the official client for Bitcoin Core, a decentralized peer-to-peer network that enables fast, secure, and open financial transactions without the need for intermediaries like banks. Installing bitcoind on Ubuntu provides a full command-line-only node that allows you to manage your own Bitcoin private key, verify transactions, and mine new blocks.
Step 1: Update your package index
Before installing bitcoind, make sure your package index is up to date:
sudo apt update
Step 2: Install Bitcoind
Download the latest bitcoind package from the Ubuntu repository or install it from source. For this example, we will use the apt
package manager.
sudo apt-get update
sudo apt-get install -y bitcoin-core
If you prefer to install from source:
git clone
cd bitcoin-core
./configure --prefix=/usr/local
make
sudo make install
Step 3: Verify the installation
To verify that bitcoin is installed correctly, check the version of Bitcoin Core you are using:
bitcoin --version
This command should display the version number.
Step 4: Test your node
To test your full node, do the following:
- Create a new Bitcoin address
: Run the
getaddrinfo
command to get information about your public and private addresses:
getaddrinfo -p 443
This will display your public and private addresses.
- Verify transactions: Use the
txlist
command to verify that you are receiving a new block of transactions, indicating that the network is functioning properly:
txlist --address=your_public_address
Replace your_public_address
with your actual Bitcoin address.
- Mining a coin (optional): If you want to mine a new block of coins using bitcoind, use the following command:
bitcoind -q -v
This will ask you for your password before the mining process begins.
Step 5: Check your wallet
After installing bitcoind and making sure everything is working properly, you should check your wallet to make sure your private key is available:
Get your seed phrase: Run the
getseedcommand to retrieve your seed phrase:
getseed --full
This will display a 12-word seed phrase.
- Check your balance: Use the
balance
command to check your current balance:
bitcoind --wallet-getaddress 0x [Your passphrase]
Replace “[Your passphrase]” with the 12-word passphrase you extracted in step 1.
Conclusion
———–
Following these steps, you should have installed bitcoind on Ubuntu and verified that it is working properly. You can now use the full node to manage your Bitcoin private key, verify transactions, and mine new blocks, all from your own command line interface.