Mar 042013

Thank GNUtransfer the loan us a VPS and other resources to write this article.
While it is a bit tedious to install bitcoind 0.8.0 on Debian Squeeze, improvements in this version make it worth the work, performance is far superior to previous versions and I/O disk have been significantly reduced.
Now let’s start with the installation.

We must ensure we have the backports repositories, and the updated system.
Our sources.list should look like this.

root@vps146167:/# cat /etc/apt/sources.list
deb squeeze main non-free contrib
deb-src squeeze main non-free contrib

deb squeeze/updates main contrib non-free
deb-src squeeze/updates main contrib non-free

# squeeze-updates, previously known as 'volatile'
deb squeeze-updates main contrib non-free
deb-src squeeze-updates main contrib non-free

deb squeeze-backports main contrib non-free
deb-src squeeze-backports main contrib non-free

Then add the repository sources of bitcoin for Ubuntu Precise Pangolin.

Create the file /etc/apt/sources.list.d/bitcoin.list with the following content

root@vps146167:/# cat /etc/apt/sources.list.d/bitcoin.list

deb-src precise main


Then add the key in apt

root@vps146167:/# gpg --keyserver hkp:// --recv-keys D46F45428842CE5E
gpg: directory `/root/.gnupg' created
gpg: new configuration file `/root/.gnupg/gpg.conf' created
gpg: WARNING: options in `/root/.gnupg/gpg.conf' are not yet active during this run
gpg: keyring `/root/.gnupg/secring.gpg' created
gpg: keyring `/root/.gnupg/pubring.gpg' created
gpg: requesting key 8842CE5E from hkp server
gpg: /root/.gnupg/trustdb.gpg: trustdb created
gpg: key 8842CE5E: public key "Launchpad PPA for Bitcoin" imported
gpg: Total number processed: 1
gpg:               imported: 1  (RSA: 1)
root@vps146167:/# gpg --export --armor D46F45428842CE5E | apt-key add --

We update the repositories

apt-get update

Then install the following packages (from backports) dpkg-dev, qt4-qmake, libdb4.7++-dev, libqt4-dev, libqrencode-dev, libminiupnpc-dev, libboost-test1.42-dev, zlib1g, lib32z1, libc6-i386, bash-completion

apt-get -t squeeze-backports install dpkg-dev qt4-qmake libdb4.7++-dev libqt4-dev libqrencode-dev libminiupnpc-dev libboost-test1.42-dev zlib1g lib32z1 libc6-i386 bash-completion

Then install the build-dep also from backports

apt-get -t squeeze-backports build-dep bitcoind

Then we create the directory /usr/src/bitcoin and enter in, from there proceed to download the source package of bitcoin

mkdir -p /usr/src/bitcoin
cd /usr/src/bitcoin
apt-get source bitcoin

We entered the bitcoin-0.8.0 directory

cd bitcoin-0.8.0

Then edit the file «debian/changelog» and add these 6 lines (this is not really necessary is for the files .deb take the squeeze chain name instead of precise)

bitcoin (0.8.0-squeeze1) squeeze; urgency=low

  * Mark for squeeze.

 -- Matt Corallo <>  Sat, 23 Feb 2013 16:24:00 -0500

Then proceed to the compilation with the following command (this may take some time, between 10 and 30 minutes, even more in some cases)

./debian/rules clean
./debian/rules binary

Once we have finished compiling, two packages in top directory. bitcoind and bitcoin-qt, we will use the bitcoind.
We proceed to install

cd ..
root@vps146167:/usr/src/bitcoin# dpkg -i bitcoind_0.8.0-squeeze1_amd64.deb 
Selecting previously deselected package bitcoind.
(Reading database ... 41022 files and directories currently installed.)
Unpacking bitcoind (from bitcoind_0.8.0-squeeze1_amd64.deb) ...
Setting up bitcoind (0.8.0-squeeze1) ...
Processing triggers for man-db ...

Usually we have it installed in a future article we will see how to configure it to start automatically in the background at startup.

Este sitio usa Akismet para reducir el spam. Aprende cómo se procesan los datos de tus comentarios.