Skip to content

Instantly share code, notes, and snippets.

@7tarus
Last active March 4, 2023 09:54
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save 7tarus/deb717b8a7b7f2c9c66078f8ff6c7eb2 to your computer and use it in GitHub Desktop.
Save 7tarus/deb717b8a7b7f2c9c66078f8ff6c7eb2 to your computer and use it in GitHub Desktop.
Luta contra o fascismo! Corre o teu bitcoin node em Linux.

Bitcoin, money of the people. For the people and by the people:

Install bitcoin core software.

$ mkdir ~/BITCOIN ; cd ~/BITCOIN/

$ wget https://bitcoincore.org/bin/bitcoin-core-24.0.1/bitcoin-24.0.1-x86_64-linux-gnu.tar.gz 

$ wget https://bitcoincore.org/bin/bitcoin-core-24.0.1/SHA256SUMS


$ wget https://bitcoincore.org/bin/bitcoin-core-24.0.1/SHA256SUMS.asc


$ sha256sum --ignore-missing --check SHA256SUMS
bitcoin-24.0.1-x86_64-linux-gnu.tar.gz: OK



$ tar zpvfx bitcoin-24.0.1-x86_64-linux-gnu.tar.gz

$ ln -s bitcoin-24.0.1 bitcoin 

$ cd ; mkdir ~/bin/ ; cd ~/bin/


$ ln -s ~/BITCOIN/bitcoin/bin/bitcoin-qt 

$ ln -s ~/BITCOIN/bitcoin/bin/bitcoind

$ ln -s ~/BITCOIN/bitcoin/bin/bitcoin-cli

Edit bitcoin.conf for ord software interaction.

Use CRTL + X do save and exit nano after adding this lines to bitcoin.conf 

$ nano ~/.bitcoin/bitcoin.conf 
	
	txindex=1
	
	server=1
	rpcbind=127.0.0.1
	rpcallowip=127.0.0.1
	rpcport=8332
	rpccookiefile=.cookie
	rest=1
	
	daemon=1
	
	uacomment=morte-aos-traidores

Start node.

$ bitcoind -daemon

Stop node.

$ bitcoin-cli stop

See debug window.

$ tail -n100 -f ~/.bitcoin/debug.log
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment