Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
Install Bitcoind Ubuntu
** Add repository and install bitcoind **
sudo apt-get install build-essential
sudo apt-get install libtool autotools-dev autoconf
sudo apt-get install libssl-dev
sudo apt-get install libboost-all-dev
sudo add-apt-repository ppa:bitcoin/bitcoin
sudo apt-get update
sudo apt-get install bitcoind
mkdir ~/.bitcoin/ && cd ~/.bitcoin/
nano bitcoind.conf
** Add config to bitcoin.conf file **
rpcuser=username
rpcpassword=password
testnet=1
rpcport=8332
rpcallowip=127.0.0.1
rpcallowip=195.154.11.93
server=1
** Start bitcoind **
bitcoind &
** If bitcoind is already started **
ps -e | grep bitcoin // returns pid
kill -9 <pid>
bitcoind &
** Test bitcoind is running and working **
bitcoin-cli getinfo
@fsdevblog

This comment has been minimized.

Copy link

fsdevblog commented Dec 17, 2017

** Start bitcoind **
bitcoind &

it will be more correct:
bitcoind --daemon

@molxyz

This comment has been minimized.

Copy link

molxyz commented Feb 3, 2018

Hi, does this version of bitcoin have ZMQ installed?

@rikkamirra

This comment has been minimized.

Copy link

rikkamirra commented Sep 27, 2018

nano bitcoind.conf

should be bitcoin.conf

@bjay27

This comment has been minimized.

Copy link

bjay27 commented Oct 8, 2018

195.154.11.93 is this bitcoind server ip??

@Goosie

This comment has been minimized.

Copy link

Goosie commented Oct 11, 2018

bitcoin-cli getinfo should be bitcoin-cli getblockchaininfo or bitcoin-cli getblockcount

@jes-alpha

This comment has been minimized.

Copy link

jes-alpha commented Oct 14, 2018

a small script to view the progress while downloading the blocks:
echo `bitcoin-cli getblockcount 2>&1`/`wget -O - http://blockchain.info/q/getblockcount 2>/dev/null`

@varshakhandre14

This comment has been minimized.

Copy link

varshakhandre14 commented Dec 19, 2018

I follow above commands to install bitcoind. But when I type command bitcoind its giving error " bitcoind: command not found"

@wafflemakr

This comment has been minimized.

Copy link

wafflemakr commented Jan 17, 2019

I follow above commands to install bitcoind. But when I type command bitcoind its giving error " bitcoind: command not found"

use bitcoin-cli

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.