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 http://ftp.us.debian.org/debian/ squeeze main non-free contrib
deb-src http://ftp.us.debian.org/debian/ squeeze main non-free contrib

deb http://security.debian.org/ squeeze/updates main contrib non-free
deb-src http://security.debian.org/ squeeze/updates main contrib non-free

# squeeze-updates, previously known as 'volatile'
deb http://ftp.us.debian.org/debian/ squeeze-updates main contrib non-free
deb-src http://ftp.us.debian.org/debian/ squeeze-updates main contrib non-free

deb http://backports.debian.org/debian-backports squeeze-backports main contrib non-free
deb-src http://backports.debian.org/debian-backports 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 http://ppa.launchpad.net/bitcoin/bitcoin/ubuntu precise main

root@vps146167:/# 

Then add the key in apt

root@vps146167:/# gpg --keyserver hkp://subkeys.pgp.net --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 subkeys.pgp.net
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 --
OK
root@vps146167:/# 

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 <matt@bluematt.me>  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 ...
root@vps146167:/usr/src/bitcoin# 

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.