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
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', '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;
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
Code: Select all
git clone https://github.com/arionum/node
sudo rm -rf /var/www/html
sudo mv node /var/www/html
sudo chmod 777 /var/www/html/tmp
Code: Select all
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
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.