How to install the Arionum Node on Ubuntu 16.04

Post Reply
Site Admin
Posts: 25
Joined: Sat Jan 06, 2018 6:51 am

How to install the Arionum Node on Ubuntu 16.04

Post by AroDev » Thu Feb 01, 2018 3:55 pm

This guide will provide an example on how to install the Arionum Node on Ubuntu 16.04.

The original guide has been written by Beef Queef, this post should be considered an adaptation.

Arionum does not pay for hosting nodes, but you can help the network by hosting one.

Also, if you would like to solo-mine, you will need to setup your own node (preferably with SSL, if you're mining on a different machine).

We start from the assumption that you have a fresh OS installation, without any other data.

Install the dependencies

Code: Select all

sudo apt-get update
sudo apt-get -y install software-properties-common
sudo add-apt-repository  -y ppa:ondrej/php
sudo apt-get update
sudo apt-get -y install  apache2 mysql-server php7.2 php7.2-common php7.2-cli php7.2-gmp php7.2-mysql php7.2-bcmath libapache2-mod-php7.2 git
service httpd restart
When asked for the mysql root password, leave it empty.

Delete the test mysql user/db

Code: Select all

echo "DELETE FROM mysql.user WHERE User=''"|mysql;
echo "DELETE FROM mysql.user WHERE User='root' AND Host NOT IN ('localhost', '', '::1');"|mysql;
echo "DROP DATABASE IF EXISTS test;"|mysql;
echo "DELETE FROM mysql.db WHERE Db='test' OR Db='test\\_%'"|mysql;
Create a new user / db for arionum

Code: Select all

pass=$(head -c 16  /dev/random | md5sum | cut -f 1 -d\ )
echo "The db password is $pass"
echo "CREATE DATABASE arionum;"|mysql
echo "CREATE USER 'arionum'@'localhost' IDENTIFIED BY '$pass';"|mysql
echo "GRANT ALL PRIVILEGES ON arionum . * TO 'arionum'@'localhost';"|mysql
echo "FLUSH PRIVILEGES;"|mysql
Clone the node repository and move it to apache root:

Code: Select all

git clone
sudo rm -rf /var/www/html
sudo mv node /var/www/html
sudo chmod 777 /var/www/html/tmp
Update Arionum db config

Code: Select all

sed -i s/ENTER-DB-NAME/arionum/g /var/www/html/include/
sed -i s/ENTER-DB-USER/arionum/g /var/www/html/include/
sed -i s/ENTER-DB-PASS/$pass/g /var/www/html/include/
Access your node from the public IP. If you're behind a router, you'll have to forward port 80.
If you plan to use a domain or a subdomain, it's best to use it since the beginning, otherwise it will propagate to the other peers with the IP.
Refresh the website 2 times and the system should start peering with the other nodes automatically. After 5-10 minutes, it will start syncing the blocks.

For ubuntu, i would recommend to setup a cron to run the "php /var/www/html/sanity.php" command every 14mins.

Posts: 8
Joined: Fri Jan 26, 2018 8:38 pm

Re: How to install the Arionum Node on Ubuntu 16.04

Post by ProgrammerDan » Mon Feb 05, 2018 6:06 am

For Debian Jesse, instructions are identical except for php 7.2 repository:

Code: Select all

sudo apt-get install apt-transport-https lsb-release ca-certificates
sudo wget -O /etc/apt/trusted.gpg.d/php.gpg
echo "deb $(lsb_release -sc) main" | sudo tee /etc/apt/sources.list.d/php.list
sudo apt-get update
after this, use the apt-get installs as provided.

Post Reply