Setup a Monero full-node in Ubuntu

On this post I will leave you with a tutorial on how to setup a Monero full-node using Ubuntu 16. To host the blockchain I will use a 10$ VPN from DigitalOcean, with an additional 100GB SSD-based Block Storage volume (another 10$).

So at the moment the whole setup will cost you 20$/month.

After installing the full-node you will be able to connect your laptop to your full-node, so you will not have to download the entire blockchain on your laptop’s hard drive.

The first step is install these libraries:

sudo apt-get install build-essential
sudo apt-get install cmake
sudo apt-get install pkg-config
sudo apt-get install libboost-all-dev
sudo apt-get install libssl-dev
sudo apt-get install libzmq3-dev
sudo apt-get install libunbound-dev
sudo apt-get install libsodium-dev
sudo apt-get install libminiupnpc-dev
sudo apt-get install libunwind8-dev
sudo apt-get install liblzma-dev
sudo apt-get install libreadline6-dev
sudo apt-get install libldns-dev
sudo apt-get install libexpat1-dev
sudo apt-get install libgtest-dev
sudo apt-get install doxygen
sugo apt-get install graphviz

Or if you want to do it with only one command:

sudo apt-get install build-essential cmake pkg-config libboost-all-dev libssl-dev libzmq3-dev libunbound-dev libsodium-dev libminiupnpc-dev libunwind8-dev liblzma-dev libreadline6-dev libldns-dev libexpat1-dev libgtest-dev doxygen graphviz

Since you are using Ubuntu, you will need the library “libgtest-dev”, and create the binaries using “make”.

sudo apt-get install libgtest-dev && cd /usr/src/gtest && sudo cmake . && sudo make && sudo mv libg* /usr/lib/

After that we will download the Monero code from Github.

git clone https://github.com/monero-project/monero.git

And finally run “make” to create the binary.

cd monero/
make

Once installed you can run Monero in the background this way:

monerod --rpc-bind-ip YOUR_IP --rpc-bind-port 18089 --restricted-rpc --confirm-external-bind --detach --data-dir=/mnt/volume1

Open chat