Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- =============BUILDING LINUX WALLET FROM SOURCE FROM DIGITAL OCEAN VPS USING UBUNTU=============
- #use this guide to setup the cold wallet and generate the masternode key and the data for masternode.conf
- https://github.com/muecoin/Guides/blob/master/masternode_setup.md
- #the below steps in the MUE guide DO NOT WORK...use this guide instead as a replacement for the below
- --------------------------------------------------------------------------
- wget https://www.monetaryunit.org/downloads/linux64-1.0.0.1.tar.gz
- tar -zxvf linux64-1.0.0.1.tar.gz
- #We need to copy the binaries to a local folder
- mkdir /home/mue/bin
- mkdir /home/mue/.muecore
- cp /home/mue/linux64-1.0.0.1/bin/64/mue* /home/mue/bin/
- #and we will make sure they are executable
- chmod 755 /home/mue/bin/mue*
- --------------------------------------------------------------------------
- ########UPDATE THE VPS -- update as root once a week or so########
- sudo apt-get update && sudo apt-get upgrade && sudo apt autoclean
- ########packages needed for digital ocean droplet -- install as root########
- apt-get install libqtgui4 qt4-qmake libqt4-dev build-essential libboost-dev libboost-system-dev libboost-filesystem-dev libboost-program-options-dev libboost-thread-dev libssl-dev libdb++-dev git libboost-all-dev automake autoconf pkg-config libevent-dev libtool
- ########CREATE/SETUP MUE USER########
- useradd -d /home/mue -s /bin/bash -m mue
- passwd mue
- usermod -aG sudo mue
- #become the mue user
- su - mue
- cd ~
- *** ALL COMMANDS BELOW ARE DONE AS THE MUE USER ***
- ########IF YOU HAVE 1GB OF RAM DO THIS AS THE MUE USER########
- sudo dd if=/dev/zero of=/swapfile bs=1024 count=2048k
- sudo mkswap /swapfile
- sudo chown root:root /swapfile
- sudo chmod 0600 /swapfile
- sudo swapon /swapfile
- #this will use your hard disk as an extra 1 gig of ram and get you built just slowly
- #when you reboot that change will undo
- ########INSTRUCTIONS - AS MUE USER (FYI....the make takes a while)########
- cd ~
- git clone https://github.com/muecoin/MUECore.git muecore
- cd muecore
- ./autogen.sh && ./configure --with-incompatible-bdb --enable-hardening --without-gui -without-miniupnpc
- make
- cd src
- strip mued
- strip mue-cli
- strip mue-tx
- cd ~
- mkdir .muecore
- cd .muecore
- echo server=1 >> mue.conf
- echo daemon=1 >> mue.conf
- echo listen=1 >> mue.conf
- echo rpcallow=127.0.0.1 >> mue.conf
- echo rpcallowip=127.0.0.1 >> mue.conf
- echo rpcconnect=127.0.0.1 >> mue.conf
- echo rpcuser=12ieyjkjasfu2gfubskjdb >> mue.conf
- echo rpcpassword=jhfsdkjhfkjsdhfkjsdhfkjsdhfkjsdhfskjdhfs >> mue.conf
- echo rpcport=3300 >> mue.conf
- echo masternode=1 >> mue.conf
- #get the masternodeprivkey from your cold wallet based on the instructions in the MUE guide
- echo masternodeprivkey=XXXXXXXXXXXXXXXXXXXXXXX >> mue.conf
- echo externalip=XXX.XXX.XXX.XXX >> mue.conf
- cd /home/mue/muecore/src
- #put daemons in your home directory
- cp mued ../..
- cp mue-cli ../..
- cp mue-tx ../..
- cd ~
- export PATH=$PATH:$HOME/bin
- chmod 600 /home/mue/.muecore/mue.conf
- #exit and logoff of the mue user and then log back in
- #start client
- ./mued
- # wait 15 and run this to check for connections and block size to go up
- ./mue-cli getinfo
- #validate that masternode hot wallet is sycned up before proceeding...wait for full sync and status to be like the below output
- ./mue-cli mnsync status
- mue@host:~$ ./mue-cli mnsync status
- {
- "AssetID": 999,
- "AssetName": "MASTERNODE_SYNC_FINISHED",
- "Attempt": 0,
- "IsBlockchainSynced": true,
- "IsMasternodeListSynced": true,
- "IsWinnersListSynced": true,
- "IsSynced": true,
- "IsFailed": false
- }
- #if you need to stop or restart the client run this to stop client
- ./mue-cli stop
- #to validate masternode up on hot wallet run this
- ./mue-cli masternode debug
- Masternode successfully started
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement