<ol>
<li><code>useradd bitcoin</code> and <code>passwd bitcoin</code></li>
<li>link <code>/home/bitcoin/.bitcoin</code> to external HDD with <code>chown -R bitcoin:bitcoin</code></li>
<li><code>git clone bitcoin core</code> in <code>/home/USER/GitStuff</code></li>
<li>add bitcoin ppa repository</li>
<li><code>sudo apt install libdb4.8-dev &amp;&amp; sudo apt install libdb4.8++-dev</code></li>
<li><code>/autogen.sh</code> in <code>/home/USER/GitStuff/bitcoin</code></li>
<li><code>/configure --without-gui</code> (to build without GUI pass --without-gui)</li>
<li><code>make</code></li>
<li><code>make install</code></li>
<li><code>su bitcoin</code></li>
<li>start <code>bitcoind</code> (as user <code>bitcoin</code>)</li>
<li><code>curl -sL https://bitnodes.earn.com/api/v1/nodes/me-8333 | jq</code></li>
</ol>

CC BY-SA 4.0
2019-11-25T10:15:31.003Z
2023-03-29T18:48:18.953Z
2023-03-29T18:48:18.953Z
bomben
<p><strong>Dependencies</strong></p>

<p>To get add-apt-repository, which we will use later to add the bitcoin PPA:</p>

<p><code>sudo add-apt-repository ppa:bitcoin/bitcoin</code></p>

<p><code>sudo apt-get update</code></p>

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

<p><strong>Configuration</strong></p>

<p>Before starting bitcointd you'll want to create directory and the bitcoin.conf configuration file:</p>

<p><code>cd ~/</code></p>

<p><code>mkdir .bitcoin</code></p>

<p><code>cd .bitcoin</code></p>

<p><code>vim bitcoin.conf</code> or <code>nano bitcoin.conf</code></p>

<p><strong>In bitcoin.conf these content are important:</strong></p>

<pre><code>server=1
testnet=1
rpcuser=UNIQUE_RPC_USERNAME
rpcpassword=UNIQUE_RPC_PASSWORD
</code></pre>

<p>If you wish to use this installation on the regular bitcoin network, remove <code>testnet=1</code></p>

CC BY-SA 4.0
2019-12-01T20:41:34.380Z
I think is an unnecessary command `mkdir .bitcoin`
vincenzopalazzo
CC BY-SA 4.0
2021-01-22T09:40:09.253Z
When adding ppa:bitcoin/bitcoin it says: NOT MAINTAINED. The OS-library linking packages here had a series of issues.

PLEASE DOWNLOAD DIRECTLY FROM bitcoincore.org (and verify the signatures of said files).
Nick Weisser
CC BY-SA 4.0
2019-11-26T21:25:40.130Z
2019-12-04T02:03:10.770Z
2019-12-04T02:03:10.770Z
John Melelr
<p>The custom apt repository now states it is unmaintained, and to use the snap found here:
<a href="https://github.com/bitcoin-core/packaging/tree/main/snap" rel="nofollow noreferrer">https://github.com/bitcoin-core/packaging/tree/main/snap</a></p>
<pre><code>sudo snap install bitcoin-core
</code></pre>
<p>Config file wants to live at: <code>/home/yourusername/snap/bitcoin-core/common/.bitcoin/bitcoin.conf</code></p>

CC BY-SA 4.0
2022-09-11T08:44:20.760Z
2022-09-11T08:44:20.760Z
Duke
<p>There is a guide in the docs of the bitcoin source code that goes over how to build bitcoin as well as the dependencies needed. Within that same directory of the source (doc/) there are various other guides and explanations that you may find useful as well.</p>

<p><a href="https://github.com/bitcoin/bitcoin/blob/master/doc/build-unix.md#ubuntu--debian" rel="nofollow noreferrer">Linux build doc</a></p>

CC BY-SA 4.0
2019-11-26T06:52:04.823Z
Thanks, I actually would have added this and others once I refine my answer. I just wanted to put it out there for a start yesterday.
bomben
CC BY-SA 4.0
2019-11-25T21:20:19.200Z
2019-11-25T21:20:19.200Z
presstab
<p>I want to install a command line-only full node <code>bitcoind</code> on a mini PC with 4GB RAM and Ubuntu. What are the steps to do it and how can I check if it works?</p>

<bitcoind><linux><installation>
How to install bitcoind (Bitcoin Core) on Ubuntu?
bomben
# How to install bitcoind (Bitcoin Core) on Ubuntu?

(Asked by: username_0 on 2019-11-25)

I want to install a command line-only full node `bitcoind` on a mini PC with 4GB RAM and Ubuntu. What are the steps to do it and how can I check if it works?

**Tags:** bitcoind, linux, installation


---

## 4 answers

### Answer by username_0 on 2019-11-25. Score: 2 | Accepted answer

1. `useradd bitcoin` and `passwd bitcoin`
2. link `/home/bitcoin/.bitcoin` to external HDD with `chown -R bitcoin:bitcoin`
3. `git clone bitcoin core` in `/home/USER/GitStuff`
4. add bitcoin ppa repository
5. `sudo apt install libdb4.8-dev && sudo apt install libdb4.8++-dev`
6. `/autogen.sh` in `/home/USER/GitStuff/bitcoin`
7. `/configure --without-gui` (to build without GUI pass --without-gui)
8. `make`
9. `make install`
10. `su bitcoin`
11. start `bitcoind` (as user `bitcoin`)
12. `curl -sL https://bitnodes.earn.com/api/v1/nodes/me-8333 | jq`


---

### Answer by username_1 on 2019-11-26. Score: 1

Dependencies
To get add-apt-repository, which we will use later to add the bitcoin PPA:
sudo add-apt-repository ppa:bitcoin/bitcoin
sudo apt-get update
sudo apt-get install bitcoind
Configuration
Before starting bitcointd you'll want to create directory and the bitcoin.conf configuration file:
cd ~/
mkdir .bitcoin
cd .bitcoin
vim bitcoin.conf or nano bitcoin.conf
In bitcoin.conf these content are important:
server=1
testnet=1
rpcuser=UNIQUE_RPC_USERNAME
rpcpassword=UNIQUE_RPC_PASSWORD

If you wish to use this installation on the regular bitcoin network, remove testnet=1

> **Comments:**
> **username_2**: I think is an unnecessary command `mkdir .bitcoin`  
> **username_3**: When adding ppa:bitcoin/bitcoin it says: NOT MAINTAINED. The OS-library linking packages here had a series of issues.  PLEASE DOWNLOAD DIRECTLY FROM bitcoincore.org (and verify the signatures of said files).  

---

### Answer by username_4 on 2022-09-11. Score: 1

The custom apt repository now states it is unmaintained, and to use the snap found here:
https://github.com/bitcoin-core/packaging/tree/main/snap
sudo snap install bitcoin-core

Config file wants to live at: /home/yourusername/snap/bitcoin-core/common/.bitcoin/bitcoin.conf


---

### Answer by username_5 on 2019-11-25. Score: 0

There is a guide in the docs of the bitcoin source code that goes over how to build bitcoin as well as the dependencies needed. Within that same directory of the source (doc/) there are various other guides and explanations that you may find useful as well.

[Linux build doc](https://github.com/bitcoin/bitcoin/blob/master/doc/build-unix.md#ubuntu--debian)

> **Comments:**
> **username_0**: Thanks, I actually would have added this and others once I refine my answer. I just wanted to put it out there for a start yesterday.  

---

