So you’ve heard about IOTA?!?
And you even heard that it’s cool to run your own node? Great! That’s why you’re reading this. So let’s get started.
If you simply want to get up and running quickly, you can load a prebuilt docker container from https://hub.docker.com/r/iotaledger/iri/:docker pull iotaledger/iri
But if you want to do it yourself, read on. You’re going to need to setup a VPS, or grab a spare computer. There are loads of tutorials on how to set one of those up, so we won’t go into details on that. You’re probably going to want one with at least 4GB of RAM. Yes, you could get away with less, but you’ll have issues. Come on back when you have a fresh install of Linux on that machine.
For this walk-through, we’ll be using Ubuntu 16.04 (Xenial) but any modern Linux distro should work.
First we’re going to want to update the base libraries. From a terminal command prompt, enter:$ apt update
If you have permission issues, prepend every command we’ll enter with sudo <command> e.g. $ sudo apt update
Then we’re going to need a JVM installed, because the current IOTA Reference Implementation (IRI) is written in java. There’s a rust and clojure implementation in the works, but they’re not ready for prime-time just yet. So java it is.
Users have reported having some issues using OpenJDK, so we’re going to use the JDK from Oracle:# install Java8add-apt-repository ppa:webupd8team/javaapt-get updateapt-get install oracle-java8-installerapt-get install -y maven # set environment variablesapt-get install oracle-java8-set-default# confirm it was installed correctlyjava -version >> /dev/null
If that last command returns something like:$ java -version >> /dev/nulljava version "1.8.0_144"Java(TM) SE Runtime Environment (build 1.8.0_144-b01)Java HotSpot(TM) 64-Bit Server VM (build 25.144-b01, mixed mode)
then we’re good to continu...