Shell script to install a Cropcoin Masternode on a Linux server running Ubuntu 16.04. Use it on your own risk.
openssl rand -base64 32 | tr -d "=+/" | cut -c1-64
docker run \
-it -d \
-p 17720:17720 \
-p 17721:17721 \
-v $(PWD)/<CROPCOIND_DATA_DIR>:/home/cropcoin/.cropcoin \
-e WALLETPASS=<YOUR_WALLET_PASSWORD> \
--name cropcoin-wallet \
--hostname cropcoin-wallet \
--restart always \
rafalsladek/cropcoin:latest
wget -q https://raw.githubusercontent.com/zoldur/CropCoin/master/cropcoin.sh
bash cropcoin.sh
After the MN is up and running, you need to configure the desktop wallet accordingly. Here are the steps:
It is now possible to run multiple CropCoin Master Nodes on the same VPS. Each MN will run under a different user you will choose during installation.
For security reasons CropCoin is installed under a normal user, usually cropcoin, hence you need to su - cropcoin before checking:
CROPUSER=cropcoin #replace cropcoin with the MN username you want to check
su - $CROPUSER
cropcoind masternode status
cropcoind getinfo
Also, if you want to check/start/stop cropcoin daemon for a particular MN, run one of the following commands as root:
CROPUSER=cropcoin #replace cropcoin with the MN username you want to check
systemctl status $CROPUSER #To check the service is running
systemctl start $CROPUSER #To start cropcoind service
systemctl stop $CROPUSER #To stop cropcpoind service
systemctl is-enabled $CROPUSER #To check cropcoind service is enabled on boot
If you need to resync the wallet, run the following commands as root:
CROPUSER=cropcoin #replace cropcoin with the MN username you want to resync
systemctl stop $CROPUSER
rm -r /home/$CROPUSER/.cropcoin/{banlist.dat,blk0001.dat,database,db.log,mncache.dat,peers.dat,smsgDB,smsg.ini,txleveldb}
systemctl start $CROPUSER
Run the following commands as root to update CropCoin to version 1.1.0.0
for crop in $(grep -l cropcoind /etc/systemd/system/*.service | awk -F"/" '{print $NF}'); do systemctl stop $crop; done
rm cropcoind.gz
wget -q https://github.com/zoldur/CropCoin/releases/download/v1.1.0.0/cropcoind.gz
gunzip cropcoind.gz
chmod +x cropcoind
cp cropcoind /usr/local/bin
for crop in $(grep -l cropcoind /etc/systemd/system/*.service | awk -F"/" '{print $NF}'); do systemctl start $crop; done
Any donation is highly appreciated
RafalSladek:
CROP: c3HCzXRTNa7U7SCPAZBqdoQZPzEf4MHZPt
BTC: 37c4J4AdM6u4pXQc1SXAAXYGWxDrCR7a34
ETH: 0x69a8f8bE3A6941C842869D10c8484cAC1649d6E3
Zoldur:
CROP: cKH8Gea49ZtNLLV1Q4zcQaFY7K1uQ2ki5s
BTC: 3MNhbUq5smwMzxjU2UmTfeafPD7ag8kq76
ETH: 0x26B9dDa0616FE0759273D651e77Fe7dd7751E01E
LTC: LeZmPXHuQEhkd8iZY7a2zVAwF7DCWir2FF
Content type
Image
Digest
Size
376.4 MB
Last updated
almost 8 years ago
docker pull rafalsladek/cropcoin