Guide to help you setup your masternode with Aspectcoin on a VPS.
Things Needed:
- A decent size VPS hosting (https://goo.gl/vQ8q88)
- 3000 aspectcoins purchased or mined
- Winscp can download here (https://winscp.net/eng/download.php)
- Putty can download here( http://www.putty.org/)
Once you have created and launched your VPS for masternode, login as root and create a new user:
Step 1
Run these commands:
adduser newUsername
usermod -aG sudo newUsername
Change the user to new user created
su - username
Step 2:
Run these commands to make a swapfile (for small VPS) :
sudo dd if=/dev/zero of=/var/swap.img bs=1024k count=1000
sudo mkswap /var/swap.img
sudo swapon /var/swap.img
Run again to confirm you now have a swapfile.
Note:
If you choose OpenVZ virtualization most of VPS service providers doesn’t allow you to create swap.
If you chose a server , with less RAM, you’ll need a LARGER swapfile, i.e. set the count parameter to something larger like 2048, 4096 etc. If the compilation steps fails in middle this is usually the reason.
To make the swap file persist when the server is rebooted:
sudo chmod 0600 /var/swap.img
sudo chown root:root /var/swap.img
sudo nano /etc/fstab
Append the following line to the end of the file:
/var/swap.img none swap sw 0 0
Save the file and exit
Step 3: Firewall ( can do this step at anytime )
Most of the VPS provides block ports and some may not install the firewall
sudo ufw allow OpenSSH
sudo ufw allow 46550
sudo ufw default deny incoming
sudo ufw default allow outgoing
sudo ufw enable
Step 4 : Compiling the wallet
sudo apt-get install git
git clone https://github.com/Aspectcoin/Aspectcoin.git
Step 5: You need to install dependencies
sudo apt-get -y update && sudo apt-get -y install build-essential libssl-dev libdb++-dev libboost-all-dev libcrypto++-dev libqrencode-dev libminiupnpc-dev libgmp-dev libgmp3-dev autoconf autogen automake libtool
Step 6
- You need to enter your Aspectcoin folder, use WinSCP to find the path. For exemple if the path is /home/Aspectcoin , you need to use this command :
cd /home/Aspectcoin
cd src
sudo make -f makefile.unix
If there is a file named "aspectd", then your wallet is ready.
Note:
Users with Less memory will face the compiling terminated.
We have a solution for that ,you can download the compiled wallet file directly for the Ubuntu 16.04(64bit) OS here : https://goo.gl/7uUihe
Step 7 copy the created or downloaded wallet file aspectd to usr/local/bin suing winscp
Then later use this command sudo chmod +x aspectd
Step 8 Run Wallet to generate conf. error will be presented here.
aspectd -daemon
Now you need to configure your wallet, first we need to close the wallet and edit the conf file :
aspectd stop
cd .aspectcoin
Now enter command :
sudo nano aspect.conf
rpcpassword=EvenLongerRandomString
rpcallowip=127.0.0.1
listen=1
server=1
daemon=1
staking=0
Save the file. As of now
Now we restart the wallet and we wait it the get fully synced
Step 9 When your wallet is synced, you need to setup the masternode
Now run :
aspectd masternode genkey
Step 10 Lets create a new receiving address
Now run :
aspectd getaccountaddress alias
This address will receive your coins. Save also this one in the txt file.
Open your Windows wallet if it isnt yet and send exactly 3000 aspect coins to this address. You'll have to pay a fee in addition.You now need to wait for 10 confirmations before we continue.
Step 11 Encrypt wallet
./aspectd encryptwallet YOUR_WALLET_PASSWORD
Note:This password is very important to move funds and start wallet to stake
Step 12 Edit Conf
cd .aspectcoin
sudo nano aspect.conf
The conf file must look like that :
rpcuser=SomeRandomString
rpcpassword=EvenLongerRandomString
rpcallowip=127.0.0.1
listen=1
server=1
daemon=1
staking=0
logtimestamps=1
port=46550
masternode=1
masternodeaddr=XXX.XXX.XXX.XXX:46550
masternodeprivkey=XXXXXXXXXXXXXXXXXXXXXXXXXX
Masternodeaddr is the ip and the port used by your VPS. The port must be open.
Masternodeprivekey is the string you got from the "masternodegenkey" command.
Step 13 You need to restart the wallet now
aspectd stop
aspectd -daemon
The wallet in now ready to run the masternode
aspectd getbalance
You should get 3000ASP
Finally
We can now start the masternode
aspectd masternode start YOUR_WALLET_PASSWORD
Donate :
ASP : Ac2Q8ZWT4kvGcLvbVxReeAR46MnVhRMzXZ
BTC:1HXeDE4STQpbbfurEPBTpdoCRBxumuizJ8
ETH:0x869E8e123a8c0bD3dB93FE34bb39Bd820F085A05
Congratulations @scitechindian! You have completed some achievement on Steemit and have been rewarded with new badge(s) :
You published your First Post
You got a First Vote
Click on any badge to view your own Board of Honor on SteemitBoard.
For more information about SteemitBoard, click here
If you no longer want to receive notifications, reply to this comment with the word
STOP
Downvoting a post can decrease pending rewards and make it less visible. Common reasons:
Submit
Resteemed by @resteembot! Good Luck!
The resteem was payed by @greetbot
Curious?
The @resteembot's introduction post
Get more from @resteembot with the #resteembotsentme initiative
Check out the great posts I already resteemed.
Downvoting a post can decrease pending rewards and make it less visible. Common reasons:
Submit
Quick question, can I run Ubuntu even though the wallet on my Desktop is a Windows wallet?
Downvoting a post can decrease pending rewards and make it less visible. Common reasons:
Submit
Congratulations @scitechindian! You have received a personal award!
1 Year on Steemit
Click on the badge to view your Board of Honor.
Do not miss the last post from @steemitboard:
Downvoting a post can decrease pending rewards and make it less visible. Common reasons:
Submit
Congratulations @scitechindian! You received a personal award!
You can view your badges on your Steem Board and compare to others on the Steem Ranking
Vote for @Steemitboard as a witness to get one more award and increased upvotes!
Downvoting a post can decrease pending rewards and make it less visible. Common reasons:
Submit