Bitcoin Core - failing to compile on Debian ...

[Quick guide] Run a full node with btcd (an alternative to bitcoin-core) on debian

It's good to run a full node, and even better to run one with an alternative implementation to bitcoin-core.
I was surprised how easy it is to install btcd (conformal's alternative implementation of a full node). I was also surprised how little bandwidth a full node uses. This quick guide will get you up and running.
To use this method you will need debian testing (Jessie) because the version of golang on debian stable is too old. However, the binary produced will run on debian stable. You will need about 25GB free to store the blockchain, with an extra 20GB or so if you use the bootstrap.dat torrent.
Probably the same instructions will work on ubuntu (but using sudo instead of root).
On debian testing the steps are:
1 - as root, do
# aptitude update; aptitude install golang mercurial git 
2 - pull in and compile btcd and associated utilities as normal user,
$ mkdir btcd; cd btcd; export GOPATH=$(pwd); $ go get 
3 - run your node
$ cd bin $ ./btcd --externalip=YOUREXTERNALIP 
(where YOUREXTERNALIP is your external IP address).
4 - on your router, forward port 8333 to the computer your node is running on. Once your node is running, check the port is open with a tool such as
5 - enjoy being part of the network!
OPTIONAL STEP A (to download the blockchain faster, to be run before step 3):
A1 - download Jeff Garzik's torrent to bootstrap the blockchain or the magnet link, magnet:?xt=urn:btih:36719ba2cecf9f3bd7c5abfb7a88e939611b536c&dn=bootstrap.dat& (discussion here)
A2 - run as normal user,
$ ./addblock -i /whatevepath/to/youtorrent/download/bootstrap.dat 
then continue to step 3.
OPTIONAL STEP B (to throttle bandwidth):
B1 - as root, do
# aptitude install trickle 
B2 - as your normal user, instead of step 3, run (where XXX is your desired upload speed limit in KB/s)
$ trickle -u XXX ./btcd 
Edits: see comments. Added note about external IP.
submitted by _supert_ to Bitcoin [link] [comments]

Tested, step-by-step tutorial to run a 21 Bitcoin Computer as a virtual machine

Many thanks to ButtcoinEE and ecafyelims for initial pointers, but if I understood correctly, both users said they hadn't actually tried it themselves. So here comes a tutorial based on something I actually tried. Best of all: You don't even need a Raspberry Pi! We'll run it as a virtual machine.
The first step is to get a Debian 8 (Jessie) installation up and running. You might want to install that inside a VMWare/Virtualbox machine. I'll be using Vagrant here ( ) which makes it easy to manage virtual machines like that and already has a Debian 8 image in the catalog. So get Vagrant for your platform and then do something like this:
vagrant init ARTACK/debian-jessie vagrant up 
You should now be able to SSH into the machine:
vagrant ssh 
Now that we have a Debian up and running, let's first get some packages we'll need later:
sudo su # become root apt-get update apt-get upgrade apt-get install apt-transport-https git cython3 python3-setuptools 
Add the 21 Debian repository:
echo "deb stable main" > /etc/apt/sources.list.d/twentyone.list apt-get update 
It'll complain about a missing GPG key, but you can just ignore that.
We should be able to do 'apt-get install two1' now, but it complains about a missing package 'python3-sha256'. The reason for that is probably, that we are doing this on a x86 architecture, where the packages are slightly different than the Raspberry Pi's ARM architecture. So we'll just manually install the package and have it ignore the dependency errors:
aptitude download two1 dpkg -i two1_1.0.0-1_all.deb 
Now let it try to fetch as many of the dependencies as possible:
apt-get -f install 
And try to install again (had to do this again, not sure why):
dpkg -i two1_1.0.0-1_all.deb 
The 21 binary should now be available:
which 21 # => /usbin/21 
Before we can run it, we'll need that missing python-256 package. We can install it manually from :
git clone cd sha256 python3 sdist python3 install 
Now try to get a status report via the 21 tool:
21 status 
If everything worked out, you should see something like:
You do not have a Bitcoin wallet configured. Let's create one. Press any key ... 
and will also be asked to pick a username for a account.
All 21 Bitcoin computers are networked together into a VPN using the tool ZeroTier ( ). Let's also set that up:
wget dpkg -i zerotier-one_1.1.0_amd64.deb 
We'll have to extract the credentials for the specific network they use from 21's zerotier package:
mkdir credentials cd credentials wget ar x zerotier-one_1.1.0-1_armhf.deb tar xf data.tar.xz cp valib/zerotier-one/updates.d/ZeroTierOneInstaller-linux-armv6l-1_1_0 /valib/zerotier-one/updates.d/ 
Before we join the network, we need to lock down our machine. That's actually a bit tricky, as these Vagrant images aren't really designed with security in mind, but rather only to be used for local testing. I think it should be enough to do:
passwd vagrant rm /home/vagrant/.ssh/authorized_keys 
Note that you won't be able to use 'vagrant ssh' any longer afterwards, as we just deleted the standard Vagrant key-based login. You'll have to use 'ssh [email protected]' instead. Now we are ready to join the network:
wget python3 python3 # might have to try this twice as well ifconfig zt0 # will show your new IP within the VPN 
The 21 tools have a concept of both an on-chain balance and an off-chain balance - the latter being managed by 21's server. You can deposit to your on-chain balance, but currently the only way to increase the off-chain balance is by mining or by receiving payments from others. Without the mining chip it's therefore a bit tricky to increase that off-chain balance. I hear that a feature request is being considered, to allow moving funds from on-chain to off-chain.
That's all! If you want to give it a shot, you should probably move fast, as 21 has some DRM in the works, as per this comment: .
This was brought to you by - cloud torrenting for command line fans. Check us out - we are also big on micropayments! ;-)
submitted by coinadoio to Bitcoin [link] [comments]

How to easily make your own trustless BU Docker image for 1.0.0

Docker is awesome for running a BU node, but at the same time, I always felt very ambivalent about trusting bitcoin software being delivered by a 3rd party. What if they sneak in some kind of back door into my client?
For this reason, I think the best thing to do is to write your own basic docker package and build it yourself. Here's a basic sample for a Dockerfile to build BU 1.0.0 (I found it online and updated it slightly):
FROM debian:jessie ARG VERSION=1.0.0 ARG SHA256HASH=65b2061c7de35afa2f094f27aa48ef6c5a75a54ea0516948303a04c65ecbc2d5 RUN apt-get update && \ apt-get install -y wget ca-certificates && \ apt-get clean && \ wget${VERSION}-linux64.tar.gz && \ echo "${SHA256HASH} bitcoinUnlimited-${VERSION}-linux64.tar.gz" | sha256sum -c - && \ tar -xzvf bitcoinUnlimited-${VERSION}-linux64.tar.gz -C /uslocal --strip-components=1 && \ rm bitcoinUnlimited-${VERSION}-linux64.tar.gz VOLUME /vabitcoin EXPOSE 8333 ENTRYPOINT ["bitcoind","-printtoconsole","-datadir=/vabitcoin","-dbcache=4000"] 
Anyone with a basic knowledge of Unix should be able to verify this script as legit. It downloads BU directly from the BU website over HTTPS. It checks the hash. It is all contained in this one file, so there's no code to chase around and verify. On Mac, I installed Docker using the package that the docker team provides on their website (rather than using brew) -- it's nice.
Create a new directory and place the above text into a file called "Dockerfile". From there, simply run:
docker build -t bitcoin-unlimited . docker image save bitcoin-unlimited | gzip > bitcoin-unlimited.tar.gz 
Congrats, now you have a docker archive created. You can generally import this archive wherever you want. For example, my Network Attached Storage server has support for containers, so I just imported it there using the web UI.
Note: the script I gave doesn't set up the bitcoin RPC stuff for being able to use bitcoin-cli. If you want to set that up, do something more like this guy's scripts:
@ BU Team would love to have an official docker + vm image delivered securely from your site
submitted by garoththorp to btc [link] [comments]

Testnet helpers, make your debug logs available again for us and add bandwidth metering with this

Make sure your node is logging data properly.
The following instructions are for Debian 8.2 (jessie). You may have to make some adjustments for other OSes. Post a comment if you have trouble.
Run these lines:
sudo apt-get install lighttpd tcpstat sudo touch /vawww/html/debug-filtered.log.gz sudo touch /vawww/html/bw.log sudo chown `whoami`.`whoami` /vawww/html/debug-filtered.log.gz sudo chown `whoami`.`whoami` /vawww/html/bw.log 
You may want to do the first line by itself to get through the password prompt before pasting in the other lines. Also, you might end up using /vawww/ instead of /vawww/html/, depending on your server and configuration.
Next, run crontab -e and add this line at the bottom:
31 */2 * * * grep -v "eject " ~/.bitcoin/testnet3/debug.log | grep -v " tx " | grep -v "received: inv" | grep -v "sending: inv" | grep -v "received: getdata" | grep -v "received getdata" | grep -v "AcceptToMemoryPool" | gzip > /vawww/html/debug-filtered.log.gz 
That should compress the log files down to around 1 to 5% of their original size, rewriting it every hour. This compression will take about 1 minute (every 2 hours at 31 minutes past the hour) on most machines. If it takes too much CPU on your machine, you can reduce the frequency by changing the */2 to something like */4 (once every 4 hours).
Check to make sure you have the right version of tcpstat. There are two different programs with the same name:
sudo tcpstat -h | grep tcpstat # should say "tcpstat version 1.5", not "tcpstat 0.1 (c) J. Taimisto 2005-2013" 
If you have the wrong version, you should go to and rebuild from source.
Next, run this every time your machine is restarted either in a screen or in the background:
giface=eth0 # unless it's not sudo tcpstat -f "port 18333" -o "%s,\t%B\n" -i $giface 0.1 -F > /vawww/html/bw.log 
Open port 80 on your firewall if necessary. Then tell me your IP address (and optionally add it to the spreadsheet), and I'll grab the log files and include them in my analyses.
Edit: added AcceptToMemoryPool filter.
Edit2: Changed paths to /vawww/html/ for the lighttpd default.
submitted by jtoomim to bitcoinxt [link] [comments]

Installing OpenBazaar on Raspberry Pi 3 (Raspbian "Jessie") Is A Pain - and does not work

Hello, hope to get help in this Bitcoin community which should have the main users of OpenBazaar.
I cannot get this run. Installing on Ubuntu or Linux Mint is utmost simple with the downloadable debian packages (*.deb).
In short:
For the Raspberry Pi (Raspbian Linux) I find various different tutorials on the web, all of which are somehow different and incomplete and of different age (so not sure what Openbazaar and what Raspbian version they refer to). I get one error after another. After several hours I am giving up now. I have installed so many other packages that are allegedly required for OpenBazaar (in one tutorial or another)... but it still does not work.
Not to mention the need to separately install the OpenBazaar Server and Client and the different configuration options, and no tutorial that really explains everything in a proper way how all components work together and what to do depending on the use-case.
This is a shame. OpenBazaar should FIRST run on the Raspberry, because the Raspberry is a low-power-consumption device that can run 24/7 with an electricity bill of only 5-10 EUR per year. And OpenBazaar as a decentralized marketplace is designed for exactly this mode of operation - always online! No way would I use a normal computer for this.
Has anybody successfully managed to install OpenBazaar (1.1.3) on "Raspian Jessie"?
Is a tutorial available that really works completely? Or even better, a debian package?
Actually I was inspired buying a Raspberry Pi because of OpenBazaar in the first place, and now I am stuck.
A good tutorial should include best practice recommendations on all parts, including:
Finally, what I am desperately missing is information how to backup and restore OpenBazaar configurations and move them from one computer to another. For example, I have installed OpenBazaar on my Linux Mint PC some weeks ago and created an account and a listing already, of course with OpenBazaar ID. Needless to say that now that I install OpenBazaar on my Raspberry, I want to use the same account there (instead of on my computer), such that information is not lost.
submitted by Amichateur to Bitcoin [link] [comments]

How to Install Debian 8 Jessie step by step How to install Debian Jessie as a persistant install on my ... install bitcoin full node on debian Installer Debian 8 Jessie sans GUI How To Install Debian 8.7

I want to use bitcoin in Debian. I want to be able to receive BTC and make payments in BTC. I want to keep my wallet locally, on my computer. I want a light client, I don't want to download the en... Cara Install Debian 8 Jessie. Nyalakan komputer kalian dengan keadaan Flashdsik masih menancap di port USB; Jika kalian melihat tampilan seperti dibawah ini, silahkan kalian tekan sembarang tombol pada keyboard komputer kalian ; Selanjutnya kalian akan dihadapkan dengan layar pemilihan jenis penginstallan, dan silahkan kalian pilih menu Graphical Install. Silahkan pilih bahasa yang akan kalian ... I have trouble installing Blockstack CLI on Debian Jessie. I ran apt-get update && apt-get install -y python-pip python-dev libssl-dev libffi-dev rng-tools which worked. Then I ran pip install blockstack which threw an error: In file inc... apt-get build-dep bitcoin. apt-get –install-recommends install libbitcoin-dev . This will load all the packages from jessie that have to be installed on your system before bitcoin will build. Strictly speaking, the second line is optional. I’m including it because it’s a lot of related stuff that may not continue to be optional as the source code for bitcoind evolves. Now, here is the ... I'm using a docker image as a base for my own development that adds the jessie backports repository in its Dockerfile and uses that to install a dependency. This image uses the following command to...

[index] [495] [19699] [41091] [37124] [15445] [11130] [31570] [5404] [18722] [45090]

How to Install Debian 8 Jessie step by step

Unix & Linux: How to install Debian Jessie as a persistant install on my 16GB usb from Windows 7 OS? Helpful? Please support me on Patreon: https://www.patre... This video is unavailable. Watch Queue Queue. Watch Queue Queue Java Project Tutorial - Make Login and Register Form Step by Step Using NetBeans And MySQL Database - Duration: 3:43:32. 1BestCsharp blog 7,662,402 views Installer facilement Linux Debian 8 Jessie pour une utilisation sans interface graphique pour une utilisation en ligne de commande. My Top 15 Things to do after Installing Debian Jessie - Duration: 27:13. Don't Call Me Lenny! 86,670 views. 27:13 . Operating System : Windows 10 Tutorial for Beginners - Duration: 1:58:25. Maddy ...