Build a Linux Monero Node

By lab | January 6, 2018

Introduction

It’s easy to contribute to the Monero network. You can USE Monero, contribute your time, donate, mine it, or run a Monero node.

Running a node is just using your compute resources to store a copy of the Monero blockchain. It take relatively little CPU, memory, or network, and only a marginal amount of storage.

In this guide, we will build a Monero node on a Virtual Private Server with 1vCPU, 1GB of memory, and 60GB of disk space. The VPS is running Ubuntu 18.04.1. This process will also work identically for: - Fedora 27 - Centos 7 - Debian 9.5

Download and Install

Because we are running this on a Linux server, we can download the command line tools only.

Grab them from getmonero.org

mkdir ~/monero-node
cd ~/monero-node
wget https://downloads.getmonero.org/cli/linux64

The downloaded file is a .tar.bz2 file called linux64 which we need to extract.

tar -xjf linux64

At the time of writing, the current version was monero-v0.12.3.0 so the files are extracted to a directory of that name.

cli tools extracted

Move into that directory and all the binaries are listed.

cd monero-v0.12.3.0
ls

Monero binary list

The binary used for running a node is monerod, the Monero Daemon. Verify it works properly by displaying the version.

./monerod --version

monerod version

Run the Node

Now it is time to run the daemon. monerod includes a “daemon” mode (just use --detach), which pushes the process into the backgroun and allows the sync to continuously run, even if you disconnect from your server.

./monerod --detach

The node will begin to sync in the background.

A couple of notes on running this process:

  • By default, the node is NOT mining.
  • By default, the process is listening on the default ports: 18080, 18081, 18082
  • By default, the blockchain is saved to ~/.bitmonero. Check out our post on customizing a Monero node if you need to change this.
  • By default, the process is NOT listening for external RPC calls. Check out our post oncustomizing a Monero node if you need to change this.

Fin

That’s it. You are now supporting the Monero network by running a full node. Your node will take some time to fully sync to the network, and will likely use GBs of network data in the process. If this is a showstopper, check out our post on customizing a Monero node.

Now, check out our post on hardening a Monero node.