This guide is for ubuntu 12.04 and later
If you are upgrading I assume that you have all the required packages installed on your computer if not install the following packages :
sudo apt-get install build-essential
sudo apt-get install libtool
sudo apt-get install autotools-dev
sudo apt-get install autoconf
sudo apt-get install libssl-dev
sudo apt-get install libdb4.8-dev
sudo apt-get install libdb4.8++-dev
sudo apt-get install libboost-all-dev
sudo apt-get install libminiupnpc-dev
sudo apt-get install libqrencode-dev
after installing above mentioned packages download berkeley DB 4.8 from the web. Once downloaded cd db-4.8* and configure by following command
../dist/configure --enable-cxx
then make by running
no navigte to bitcoin folder and run
once completed, configure it by
if you get error like "configure: error: Found Berkeley DB other than 4.8, required for portable wallets (--with-incompatible-bdb to ignore) "
run
./configure --with-incompatible-bdb
then make
now navigate to bitcoin/src folder and run
now copy bitcoind into /usr/bin forlder if you already had bitcoin installed this will overwrite the previous bitcoindaemon
now make directory(for fresh installation only) ~/.bitcoin
and create config file bitcoin.conf
server=1
daemon=1
rpcuser=whatever
rpcpassword=whatever
save it and run bitcoind
To synchronize bitcoin blockchain faster downloaded the blockchain with torrent from sourceforge.net link >>
http://sourceforge.net/projects/bitcoin/files/Bitcoin/blockchain/install rtorrent
follow this tutorial to download torrent
once torrent file is downloaded move it to ~/.bitcoin directory. While moving file please be patient as the file is 13gb so it will take some time before your system responds back do not press any key till then. Now restart bitcoind and you are done