The system
$ cat /etc/issue /etc/debian_version;uname -a Debian GNU/Linux 7 \n \l 7.5 Linux testin 3.2.0-4-amd64 #1 SMP Debian 3.2.57-3 x86_64 GNU/Linux
Get bitcoin 0.9.1 or the latest version of bitcoin from bitcoin.org or github
$ su # cd /usr/local/src # wget https://bitcoin.org/bin/0.9.1/bitcoin-0.9.1-linux.tar.gz
Check, eg:
# chksum=`sha256sum bitcoin-0.9.1-linux.tar.gz | cut -d ' ' -f 1`; # if [ $chksum == "3fabc1c629007b465a278525883663d41a2ba62699f2773536a8bf59ca210425" ]; then echo 'Checksum OK';fi Checksum OK
Ungunzip and Untar
# tar xvzf bitcoin-0.9.1-linux.tar.gz
Install Prerequisites
# apt-get install build-essential libtool autotools-dev autoconf libssl-dev
Only db4.8-util from db4.8 (Berkley DB) is in stable wheezy now
We need to add an oldstable repository to /etc/apt/sources eg
# echo "deb http://ftp.debian.org/debian oldstable main" >> /etc/apt/sources.listUpdate the system sources
# apt-get updateInstall db4.8
# apt-get install libdb4.8-dev libdb4.8++-dev
Install libboost, qt4 ,libqrencode and pkg-config
# apt-get install libboost-all-dev libqt4-dev libprotobuf-dev protobuf-compiler pkg-config libqrencode-dev libqrencode3
Compile and install
# cd bitcoin-0.9.1-linux/src/ # tar xvzf bitcoin-0.9.1.tar.gz # cd bitcoin-0.9.1 # ./configure --enable-hardening # make # cp src/bitcoind /usr/local/bin # cp src/qt/bitcoin-qt /usr/local/bin/ # cp src/bitcoin-cli /usr/local/bin/I think that enable-hardening is the default though ...
If you want to set up a wallet for first time
# exit $ bitcoin-qtThis will take a while
If you want to move your keys aka wallet from another full node just copy your other ~/.bitcoin directory along with your wallet.dat to this system.
There is a good chance you will have to delete the logs,blocks,chainstate, and keys created when you tried to see if bitcoin-qt worked.
If so replace wallet.dat , blocks , and chainstate , remove the logs fireup bitcoin-qt and and wait a couple of hours for "Reindexing blocks on disk..."
eg.
$ rm ./bitcoin/blocks $ rm ./bitcoin/chainstate $ rm ./bitcoin/db.log $ rm ./bitcoin/debug.log $ mv dot-bitcoin-back/block ./bitcoin $ mv dot-bitcoin-back/chainstate ./bitcoin $ mv dot-bitcoin-back/wallet.dat ./bitcoin $ bitcoin-qt
http://alog.ipduh.com/2014/05/debian-wheezy-install-bitcoin.html