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
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
On the node VPS, run:
Code: Select all
nano /var/www/html/include/config.inc.php
Code: Select all
$_config['masternode'] = false;
Code: Select all
$_config['masternode'] = true;
Code: Select all
$_config['masternode_public_key'] = '';
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.
You're done, the masternode is setup and it will start mining after 360 blocks.