user4535: I've googled a lot for this issue. Hehe. I have found some tutorials, but they were of no use because they are for systems that do have a GUI. I have no plans to install a GUI on that system, and I want to use bitcoin from the command line, or via RPC API. This is the system I run:

Linux redacted 3.2.0-40-generic-pae #64-Ubuntu SMP Mon Mar 25 21:44:41 UTC 2013 i686 athlon i386 GNU/Linux

I found I can do this:

sudo apt-get install bitcoind

But hardly I know what to do with it after that. It installs successfully. If you are going to ask a reason why I want this, it's because I want to communicate with it via PHP or I'll see how, but mostly it's for automating services with it. Please help. :-(

user4368: Edited answer after Tom van der Woerdt's comment about using an untrusted repo
from: https://gist.github.com/WyseNynja/2503687
sudo apt-get update
sudo apt-get install -y git-core build-essential libssl-dev libboost-all-dev libdb5.1-dev libdb5.1++-dev libgtk2.0-dev

git clone https://github.com/bitcoin/bitcoin.git
cd bitcoin/src

make -f makefile.unix clean; make -f makefile.unix USE_UPNP= bitcoind

# from #bitcoin-dev:
# sacarlson: USE_UPNP= : don't build upnp, USE_UPNP=0 : build but disable by default, USE_UPNP=1 : build but enable by default

# 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

user4358: Once you've installed bitcoind, you should create a configuration file (stored in ~/.bitcoin/bitcoin.conf) containing at least an RPC username and password, and then you just run bitcoind to start the server.

4535: <p>I've googled a lot for this issue. Hehe. I have found some tutorials, but they were of no use because they are for systems that do have a GUI. I have no plans to install a GUI on that system, and I want to use bitcoin from the command line, or via RPC API. This is the system I run:</p>

<blockquote>
  <p>Linux redacted 3.2.0-40-generic-pae #64-Ubuntu SMP Mon Mar 25 21:44:41 UTC 2013 i686 athlon i386 GNU/Linux</p>
</blockquote>

<p>I found I can do this:</p>

<blockquote>
  <p>sudo apt-get install bitcoind</p>
</blockquote>

<p>But hardly I know what to do with it after that. It installs successfully. If you are going to ask a reason why I want this, it's because I want to communicate with it via PHP or I'll see how, but mostly it's for automating services with it. Please help. :-(</p>
 4368: <p><code>Edited answer after Tom van der Woerdt's comment about using an untrusted repo</code></p>

<p>from: <a href="https://gist.github.com/WyseNynja/2503687">https://gist.github.com/WyseNynja/2503687</a></p>

<pre><code>sudo apt-get update
sudo apt-get install -y git-core build-essential libssl-dev libboost-all-dev libdb5.1-dev libdb5.1++-dev libgtk2.0-dev

git clone https://github.com/bitcoin/bitcoin.git
cd bitcoin/src

make -f makefile.unix clean; make -f makefile.unix USE_UPNP= bitcoind

# from #bitcoin-dev:
# sacarlson: USE_UPNP= : don't build upnp, USE_UPNP=0 : build but disable by default, USE_UPNP=1 : build but enable by default

# optionally, 
strip bitcoind
</code></pre>

<p>download blockchain (check against <a href="http://blockexplorer.com/q/getblockcount">http://blockexplorer.com/q/getblockcount</a>):</p>

<pre><code>bitcoind
</code></pre>

<p>test bitcoind:</p>

<pre><code>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
</code></pre>

<p>send coins to the address and doublecheck <code>bitcoind getbalance</code></p>
 4358: <p>Once you've installed bitcoind, you should create a <a href="https://en.bitcoin.it/wiki/Running_Bitcoin#Bitcoin.conf_Configuration_File">configuration file</a> (stored in <code>~/.bitcoin/bitcoin.conf</code>) containing at least an RPC username and password, and then you just run <code>bitcoind</code> to start the server.</p>
