How To Setup Agena Masternode Coin For VPS

Install dependencies

sudo apt-get update
sudo apt-get upgrade
sudo apt-get install git
sudo apt-get install automake
sudo apt-get install build-essential
sudo apt-get install libtool
sudo apt-get install autotools-dev
sudo apt-get install autoconf
sudo apt-get install pkg-config
sudo apt-get install libssl-dev
sudo apt-get install libboost-all-dev
sudo apt-get install libevent-dev
sudo apt-get install nano
sudo apt-get install software-properties-common
sudo apt-add-repository ppa:bitcoin/bitcoin
sudo apt-get update
sudo apt-get install libdb4.8-dev
sudo apt-get install libdb4.8++-dev
sudo apt-get install libminiupnpc-dev

export PKG_CONFIG=/path/to/pkg-config

sudo apt-get install libboost-system-dev libboost-filesystem-dev libboost-chrono-dev libboost-program-options-dev libboost-test-dev libboost-thread-dev

 

CREATE SWAP SPACE

fallocate -l 3G /swapfile
chmod 600 /swapfile
mkswap /swapfile
swapon /swapfile
echo -e “/swapfile none swap sw 0 0 \n” >> /etc/fstab

 

DOWNLOAD GITHUB AND COMPILE

git clone https://github.com/AgenaProject/Agena.git
cd /root/Agena/
chmod 755 autogen.sh
chmod 755 /root/Agena/share/genbuild.sh
./autogen.sh
chmod 755 configure
./configure
make

 

CREATE .agenacore DIRECTORY

cd /root/Agena/src/
./agenad

 

EDIT agena.conf

nano /root/.agenacore/agena.conf

COPY AND PASTE THESE IN YOUR agena.conf:

rpcuser=YOUR_USER_NAME
rpcpassword=YOUR_PASSWORD
rpcallowip=127.0.0.1
listen=1
server=1
daemon=1
maxconnections=256
masternode=1
logtimestamps=1
masternodeprivkey=MN_GENKEY
externalip=VPS_IP:1984
Modify the above information:
Change YOUR_USER_NAME to a username
Change YOUR_PASSWORD to a secure password (random is recommended)
Replace VPS_IP with your VPS IP address
Replace MN_GENKEY with your masternode key from [step3.2]
8.3-Save and exit (CTRL + X). 8.4-Start the AGN server:
cd /root/Agena/src/
./agenad
8.5-You can use the following command to get more information:
./agena-cli getinfo

Leave a Reply

Your email address will not be published. Required fields are marked *