compiler bitcoin core 0.19

cd /home/admini

su -
useradd -r -m -d /home/bitcoin bitcoin
cd /home/
apt-get install software-properties-common
add-apt-repository ppa:bitcoin/bitcoin
apt-get update
apt-get install autoconf
apt-get install libtool
apt-get install build-essential
dpkg -l | grep pkg-config
apt-get install pkg-config
apt-get install libdb++-dev
apt install autotools-dev automake bsdmainutils curl
apt install git
cd /home/bitcoin
su - bitcoin
git clone https://github.com/bitcoin/bitcoin.git
git checkout v0.19.1
git status
su -
cd bitcoin
./autogen.sh
./configure --enable-wallet
apt-get install libdb4.8-dev libdb4.8++-dev
apt-get install libboost-system-dev libboost-filesystem-dev libboost-chrono-dev libboost-program-options-dev libboost-test-dev libboost-thread-dev
apt-get install libssl-dev
apt-get install libevent-dev
./configure
make
make check && make install
which bitcoind
which bitcoin-cli
useradd -s /usr/sbin/nologin -r -m -d /home/bitcoin bitcoind
mkdir /home/bitcoin/.bitcoin
echo rpcuser=bitcoinrpc > /home/bitcoin/.bitcoin/bitcoin.conf
echo rpcpassword=JRkDy3EqY1VdfdfhTswiRva >> /home/bitcoin/.bitcoin/bitcoin.conf

copier l’ancienne blockchains, deplacer le dossier blocks et relancer bitcoind

bitcoind -reindex

Installer tor

apt update && apt install tor

activez le service

systemctl enable tor
systemctl start tor

configuration de Tor

nano /etc/tor/torrc
HiddenServiceDir /var/lib/tor/bitcoin/
HiddenServicePort 8333 127.0.0.1:8333
HiddenServicePort 8332 127.0.0.1:8332
systemctl restart tor
systemctl status tor@default

Laisser un commentaire

Votre adresse e-mail ne sera pas publiée. Les champs obligatoires sont indiqués avec *

*