Hello guys, just sharing with you , how setup a bitcoind and bitcoin-cli on a simple ubuntu VPS on a cloud.
Tip: not use windows...,you can use ubuntu on amazon aws, digital ocean, interserver.net, and others cloud VPS.
Ubuntu is better to run, but xubuntu and others debians based you can run also.
*** BTC update and OS and install bitcoind together cli . BTC ***
Open The terminal and execute :
sudo apt-get update
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/
******* BTC Adding conf using vim BTC *****
vim bitcoind.conf
with vim open, you will using text terminal, follow next steps:
give a space
copy
TEXT* of next lines
execute SHIFT + I or SHIFIT + INSERT ( this will paste yor text on vim)
go to first line on vim and remove the extra space, inserted before (normal backspace)
press ESC ,you will see
":" , then yoou press wq after enter
this will save the file
******* BTC Config btcd TEXT* BTC*******
rpcuser=username
rpcpassword=password
testnet=1
rpcport=8332
rpcallowip=127.0.0.1
rpcallowip=EXTERNAL IP*
server=1
The EXTERNAL IP is your ip address external of your vps, you can found it on yoour control panel of your vps
**** BTC Starting service Bitcoind BTC*****
bitcoind &
(this comand will run bitcoind )
if you close the terminal (the & unlock execution), you can typing more comands using this letter
bitcoind --daemon
(this command above will run on background, you need choose the first with & or the second with --daemon )
---------
Tip, if you want to know if the process is running ?
run this :
ps -e | grep bitcoind
( with one line with PID text show , that is running )
----------
BTC Running bitcoin-cli using your bitcoind BTC
bitcoin-cli getblockchaininfo
if everything is fine you will see something like that :
Remenber the command getinfo is deprecated.
now you can use these comands , if you have success here, just need run a command to see/use blockchain:
- getblockchaininfo: blocks, difficulty, chain
- getnetworkinfo: version, protocolversion, timeoffset, connections, proxy, relayfee, warnings
- getwalletinfo: balance, keypoololdest, keypoolsize, paytxfee, unlocked_until, walletversion
Anything need just ask
Im am a "normal" developer , and can help with configuration if you need
Running on ubuntu July 2018