How to Setup your Crave Masternode on VPS with Video Tutorial.
Guide to help you setup your masternode with Crave on a VPS.
Things Needed:
VPS From Vultr : https://goo.gl/mxcb24
500 Tokens from Cryptopia : https://goo.gl/auqctL
FTP : fillezilla
Putty : http://www.putty.org/
Once you have created and launched your masternode VPS, login as root and create a new user:
Step 1
Run these commands:
adduser newUsername
usermod -aG sudo newUsername
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 free again to confirm you now have a swapfile. Note: If you chose a different server
option from Vultr, 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 partway
through 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 )
sudo ufw allow OpenSSH
sudo ufw allow 9999
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/CooleRRSA/crave.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 Crave folder, use WinSCP to find the path. For exemple if the path is /home/crave , you need to use this command :
cd /home/crave
cd src
sudo make -f makefile.unix
If there is a file named "craved", then your wallet is ready.
Step 7 Run Wallet to generate conf. error will be presented here.
./craved -daemon
Now you need to configure your wallet, first we need to close the wallet and edit the conf file :
./craved stop
cd ..
cd ..
cd .crave
sudo nano crave.conf
With Nano add the following:
rpcuser=XXXXXXXXXXXXX
rpcpassword=XXXXXXXXXXXXXXXXXXXXXXXXXXXX
rpcallowip=127.0.0.1
#----
listen=1
server=1
daemon=1
staking=0
#--------------------
Save the file.
Now we restart the wallet and we wait it the get fully synced
Step 8 When your wallet is synced, you need to setup the masternode
./craved masternode genkey
Step 9 Lets create a new receiving address
./craved getaccountaddress 0
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 500 crave to this address. You'll have to pay a fee in addition.
You now need to wait for 10 confirmations before we continue.
Step 10 Encrypt wallet
./craved encryptwallet YOUR_WALLET_PASSWORD
Step 11 Edit Conf
cd ..
cd ..
cd .crave
sudo nano crave.conf
The conf file must look like that : port=9999 Masternodeaddr is the ip and the port used by your VPS. The port must be open. Step 12 You need to restart the wallet now The wallet in now ready to run the masternode We can now start the masternode Like my content? You can tip me here:
rpcuser=SomeRandomString
rpcpassword=EvenLongerRandomString
rpcallowip=127.0.0.1
listen=1
server=1
daemon=1
staking=0
logtimestamps=1
masternode=1
masternodeaddr=XXX.XXX.XXX.XXX:9999
masternodeprivkey=XXXXXXXXXXXXXXXXXXXXXXXXXX
Masternodeprivekey is the string you got from the "masternodegenkey" command.
cd ..
cd crave/src
./craved
./craved getbalance
You should get 500.00000000
./craved masternode start YOUR_WALLET_PASSWORD
BTC: 1BKAbcowg68WytyPbwbFihNJBXpPSFj6u1
ETH: 0xA25D845E0f5F4D0c84770B02Cfb1ea80518e978B
Do you know how to fix Error loading block database ubuntu 16.04
Hi. I am a volunteer bot for @resteembot that upvoted you.
Your post was chosen at random, as part of the advertisment campaign for @resteembot.
@resteembot is meant to help minnows get noticed by re-steeming their posts
To use the bot, one must follow it for at least 3 hours, and then make a transaction where the memo is the url of the post.
If you want to learn more - read the introduction post of @resteembot.
If you want help spread the word - read the advertisment program post.
Steem ON!
Just a couple of notes:
It would be nice to if you can make a guide how to update the wallet to the current version 2.1.0.3. I have no clue what to do.
Go back and forth between the original article steps it will help you get a better idea of how to do the build.
https://bitcointalk.org/index.php?topic=1964765.msg19605633#msg19605633
on the link above there is a hyperlink on the word "Wallet" that will take you here https://github.com/CooleRRSA/crave/releases
You can use this wallet downloads page to get the updated version. Then follow the steps on both resources to piece everything together. You will need both, ping me if questions.
Just stop the server and do a Git pull then git checkout v2.1.0.3 then run the autogen.sh again!
Hey Cliff! Thanks for the guide! Question: You have Crave on the VPS with this guide! Isnt this a security issue? in a another guide it says that you can also provide the coins via your wallet
Thx for your reply :)
Hello Cliff I'm getting an error saying you must set masternode=1 in the configuration, but I have done this in sudo nano crave.conf
Please advise, I have refered to all available links online about this and no luck.