How to run the official bitcoin client? [duplicate]

Can anyone walk me through the process of installing Bitcoin on Ubuntu? I'm new to linux, and this is really all I want to do with this computer.


Solution 1:

Bitcoin has now an officially maintained PPA with a release candidate version of the peer-to-peer daemon and the client.

Bitcoin has a launchpad project i.e. same project status as Unity/Docky/Openshot etc. The maintainer - Matt Corallo - is a major contributor to the official bitcoin.org website.

This will upgrade all versions from 10.04 and later.

The following instructions will upgrade your system to the latest version of the client

sudo add-apt-repository ppa:bitcoin/bitcoin 
sudo apt-get update
sudo apt-get install bitcoin-qt

Confirmation that this OK to use is via the bitcoin forums.

Solution 2:

10.10

Launchpad has a Personal Package Archives (PPA) for bitcoin.

You can add this PPA to your system's software sources: ppa:bitcoin/bitcoin After that you can search ubuntu software center for bitcoin or from terminal sudo apt-get install bitcoin

By the way: bitcoin is only available for maverick and lucid so after adding the PPA change the distribution to maverick.

And a screenshot to finish it off:

image

References:

  • What are PPAs and how do I use them?

To change from 'natty' to 'maverick' for a PPA you can do this from the Ubuntu software center: usc

Click the bitcoin PPA and choose edit. Next it changing 'Natty' to 'Maverick': usc2

Reload the sources (it will prompt for it) and you should be able to install maverick's version of 'bitcoin'.

Solution 3:

11.04

bitcoin with Unity doesnt work due to an issue with Compiz - this is the bug report

This issue has been discussed with a few suggestions on the bitcoin forums

In summary - if you dont want to install

  1. a new versions of bitcoin either via ppa's or from the latest source on the bitcoin website, or
  2. update the wxwidget libraries,

you should logout of Unity and choose the session "Ubuntu classic (no effects)" - i.e. running ubuntu without any compiz effects.

Solution 4:

I set up this script which seems to have worked for me on both Ubuntu 11.10 oneiric and on Ubuntu 13.10 saucy. However, I am sure it is full of problems and installing code you might not potentially need. If anyone is a better bash programmer go in there and insert some if [ ...] statements to not install all packages.

#!/bin/bash

# Word of caution, I am not an experienced shell programmer. All I can #
# guarantee is that this script has worked for me, and that it has     #
# done so on multiple Ubuntu machines (one 11.10 and one 13.10), so    #
# hopefully it will work for you too                                   #

# Install some packages as instructed on various web sites
sudo apt-get -y install qt4-qmake libqt4-dev build-essential libboost-dev libboost-system-dev libboost-filesystem-dev libboost-program-options-dev libboost-thread-dev libssl-dev
sudo apt-get -y install libtool autotools-dev autoconf
sudo apt-get -y install libdb4.8-dev # Generally this step fails
sudo apt-get -y install libdb4.8++-dev # Generally this step fails
sudo apt-get -y install libboost1.37-dev # Sometimes this step fail
sudo apt-get -y install libboost-all-dev # Sometimes this step fail
sudo apt-get -y install libminiupnpc-dev
sudo apt-get -y install libdb++-dev
sudo apt-get -y install libprotobuf-dev
sudo apt-get -y install libqrencode-dev

# Build berkley db4.8
# Technically, this should only be installed if the above              #
# libdb4.8XX-dev packages failed to install but nothing beats a little #
# overkill =)                                                          #
cd ~/Downloads
if [ ! -e db-4.8.30 ]
then
   wget http://download.oracle.com/berkeley-db/db-4.8.30.tar.gz
   tar zxvf db-4.8.30.tar.gz
   rm -f db-4.8.30.tar.gz
fi

cd db-4.8.30/build_unix
../dist/configure --prefix=/usr/local --enable-cxx # If this doesn't work, try removing or changing prefix
make
sudo make install
cd ~/Downloads
rm -fr db-4.8.30/ # If it still doesn't work, try commenting out this line

locate libdb4.8-dev # Comment this out as it may cause problems

if [ $? -ne "0" ]
then
   Failed to install db-4.8.30
   exit -1
fi

# Build bitcoin
cd ~/Downloads
if [ ! -e bitcoin ]
then
   git clone https://github.com/bitcoin/bitcoin ~/Downloads/bitcoin
fi

cd bitcoin

./autogen.sh
./configure # Non Ubuntu 13.xx versions
# ./configure --with-boost-libdir=/usr/lib/x86_64-linux-gnu # Ubuntu 13.xx version
make

cd ~/Downloads
rm -fr bitcoin

Solution 5:

You can try using this ppa: bitcoin David Armstrong ppa launchpad

In your terminal window (press Alt+F2 and type gnome-terminal) and copy+paste the following lines:

sudo add-apt-repository ppa:stretch/bitcoin
sudo apt-get update && sudo apt-get install bitcoin