I found this guide to be helpful: http://rdmsnippets.com/2013/03/12/installind-bitcoind-on-ubuntu-12-4-lts/Edited answer after Tom van der Woerdt's comment about using an untrusted repo
download necessary packagesfrom: https://gist.github.com/WyseNynja/2503687
sudo aptitude install python-softwareapt-propertiesget update
sudo add-apt-repositoryget ppa:bitcoin/bitcoin
sudoinstall aptitude-y update
sudogit-core aptitudebuild-essential installlibssl-dev bitcoindlibboost-all-dev libdb5.1-dev libdb5.1++-dev libgtk2.0-dev
mkdir
git ~clone https://github.com/bitcoin/bitcoin.git
modify bitcoin.conf
nanocd ~/.bitcoin/bitcoinsrc
make -f makefile.confunix clean; make -f makefile.unix USE_UPNP= bitcoind
server=1
daemon=1# from #bitcoin-dev:
rpcuser=INVENT_A_UNIQUE_USERNAME# sacarlson: USE_UPNP= : don't build upnp, USE_UPNP=0 : build but disable by default, USE_UPNP=1 : build but enable by default
rpcpassword=INVENT_A_UNIQUE_PASSWORD
# optionally,
strip bitcoind
download blockchain (check against http://blockexplorer.com/q/getblockcount):
bitcoind
test bitcoind:
bitcoind getbalance
bitcoind getaccountaddress account #(where account is the rpcuser account you created earlier in your bitcoind.conf file.) It will look like this: 1djfdLXSgqrwtexqkn9JewSrCJU4vu74eR4
send coins to the address and doublecheck bitcoind getbalance