Arionum Masternode setup guide [CentOS 7]

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

Arionum Masternode setup guide [CentOS 7]

Post by AroDev » Fri Aug 10, 2018 9:24 am

This guide aims to provide a quick way to create your own Arionum masternode.

It's meant for non-technical people and it's mostly plug and play.

The only thing you should figure out on your own is how to use putty to access your VPS over ssh.

Start by buying a VPS with 2 cores, 4GB RAM, 50GB Disk space.

We recommend the following VPS providers:
https://www.vultr.com
https://www.digitalocean.com
https://www.vps.ag
https://www.contabo.com
https://www.mvps.net

Once you have your VPS, ssh to it using putty, login and copy and paste (right click on putty window) the following commands:

Code: Select all

yum -y install epel-release yum-utils screen git  nano
yum -y update
yum -y install http://rpms.remirepo.net/enterprise/remi-release-7.rpm
yum -y update
yum-config-manager --enable remi-php72
yum -y install php php-gmp php-mysql php-mbstring php-bcmath
rpm --import https://yum.mariadb.org/RPM-GPG-KEY-MariaDB
echo "[mariadb]" > /etc/yum.repos.d/MariaDB.repo
echo "name = MariaDB" >> /etc/yum.repos.d/MariaDB.repo
echo "baseurl = http://yum.mariadb.org/10.1/centos7-amd64" >> /etc/yum.repos.d/MariaDB.repo                                                                                                                                             
echo "gpgkey=https://yum.mariadb.org/RPM-GPG-KEY-MariaDB" >> /etc/yum.repos.d/MariaDB.repo
echo "gpgcheck=1" >> /etc/yum.repos.d/MariaDB.repo
yum -y update
yum -y install MariaDB-server MariaDB-client;
systemctl start mariadb
systemctl enable mariadb
systemctl start httpd
systemctl enable httpd

firewall-cmd --permanent --add-port=80/tcp
firewall-cmd --permanent --add-port=443/tcp
firewall-cmd --reload
echo "[mysqld]">/etc/my.cnf
echo "bind-address = 127.0.0.1">>/etc/my.cnf
echo "max-connections = 5000">>/etc/my.cnf
echo "[client-server]">>/etc/my.cnf
echo '!includedir /etc/my.cnf.d'>>/etc/my.cnf
echo "DELETE FROM mysql.user WHERE User=''"|mysql;
echo "DELETE FROM mysql.user WHERE User='root' AND Host NOT IN ('localhost', '127.0.0.1', '::1');"|mysql;
echo "DROP DATABASE IF EXISTS test;"|mysql;
echo "DELETE FROM mysql.db WHERE Db='test' OR Db='test\\_%'"|mysql
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
git clone https://github.com/arionum/node
rm -rf /var/www/html
mv node /var/www/html
chmod 777 /var/www/html/tmp
chown apache:apache /var/www/html -R
mv /var/www/html/include/config-sample.inc.php /var/www/html/include/config.inc.php
sed -i s/ENTER-DB-NAME/arionum/g /var/www/html/include/config.inc.php
sed -i s/ENTER-DB-USER/arionum/g /var/www/html/include/config.inc.php
sed -i s/ENTER-DB-PASS/$pass/g /var/www/html/include/config.inc.php
setenforce 0
sed -i s/SELINUX=enforcing/SELINUX=permissive/g /etc/selinux/config
Access your node in the browser using it's public IP.

Afterwards, we setup the CLI wallet on a secure server.

Code: Select all

cd /root
git clone https://github.com/arionum/lightWalletCLI
cd lightWalletCLI
chmod +x light-arionum-cli
./light-arionum-cli balance
This will create a new wallet and print your address, private key and public key. Save them.

On the node VPS, run:

Code: Select all

nano /var/www/html/include/config.inc.php
And replace

Code: Select all

 $_config['masternode'] = false; 
with

Code: Select all

$_config['masternode'] = true;
Also add your public key between the quotes on the following setting

Code: Select all

$_config['masternode_public_key'] = '';
Next, send 100.010 ARO to the new wallet's address.

Wait for 4 confirmations and then run:

Code: Select all

cd /root/lightWalletCLI
./light-arionum-cli masternode create NODE-IP

Replace the NODE-IP with the actual IP of the node.

Search for:

Code: Select all

$_config['allowed_hosts'] = [
    '127.0.0.1',
];
Add your miner IP in the format:

Code: Select all

$_config['allowed_hosts'] = [
    '127.0.0.1',
    'MINER-IP'
];
You're done, the masternode is setup and it will start mining after 360 blocks.

cryptoscoope
Posts: 6
Joined: Fri Jun 22, 2018 5:21 pm

Re: Arionum Masternode setup guide [CentOS 7]

Post by cryptoscoope » Fri Aug 10, 2018 10:39 am

look good

KyleFromOhio
Posts: 2
Joined: Mon Aug 13, 2018 7:09 am

Re: Arionum Masternode setup guide [CentOS 7]

Post by KyleFromOhio » Mon Sep 03, 2018 4:10 pm

For an Ubuntu guide with a complete bash script that manages all aspects of a node try these guides and tools...
https://forum.arionum.com/viewtopic.php?f=13&t=370

I created a script to setup and manage your Arionum node on Ubuntu.
It's available on github here: https://github.com/KyleFromOhio/arionum-scripts

I wrote a tutorial on running a masternode here: http://aro.wiki/how-to-setup-an-arionum-masternode/

I have some other tutorials at http://www.aro.wiki

Any questions/feedback/suggestions, message me in Discord.

Post Reply