Advertisement
merkaba

MUE_Linux_Source_BUILD

Jun 27th, 2017
198
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Bash 3.73 KB | None | 0 0
  1. =============BUILDING LINUX WALLET FROM SOURCE FROM DIGITAL OCEAN VPS USING UBUNTU=============
  2. #use this guide to setup the cold wallet and generate the masternode key and the data for masternode.conf
  3. https://github.com/muecoin/Guides/blob/master/masternode_setup.md
  4.  
  5. #the below steps in the MUE guide DO NOT WORK...use this guide instead as a replacement for the below
  6. --------------------------------------------------------------------------
  7. wget https://www.monetaryunit.org/downloads/linux64-1.0.0.1.tar.gz
  8. tar -zxvf linux64-1.0.0.1.tar.gz
  9. #We need to copy the binaries to a local folder
  10. mkdir /home/mue/bin
  11. mkdir /home/mue/.muecore
  12. cp /home/mue/linux64-1.0.0.1/bin/64/mue* /home/mue/bin/
  13. #and we will make sure they are executable
  14. chmod 755 /home/mue/bin/mue*
  15. --------------------------------------------------------------------------
  16.  
  17.  
  18.  
  19. ########UPDATE THE VPS -- update as root once a week or so########
  20. sudo apt-get update && sudo apt-get upgrade && sudo apt autoclean
  21.  
  22.  
  23. ########packages needed for digital ocean droplet -- install as root########
  24. 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
  25.  
  26.  
  27. ########CREATE/SETUP MUE USER########
  28. useradd -d /home/mue -s /bin/bash -m mue
  29. passwd mue
  30. usermod -aG sudo mue
  31. #become the mue user
  32. su - mue
  33. cd ~
  34.  
  35.  
  36. *** ALL COMMANDS BELOW ARE DONE AS THE MUE USER ***
  37.  
  38. ########IF YOU HAVE 1GB OF RAM DO THIS AS THE MUE USER########
  39. sudo dd if=/dev/zero of=/swapfile bs=1024 count=2048k
  40. sudo mkswap /swapfile
  41. sudo chown root:root /swapfile
  42. sudo chmod 0600 /swapfile
  43. sudo swapon /swapfile
  44.  
  45. #this will use your hard disk as an extra 1 gig of ram and get you built just slowly
  46. #when you reboot that change will undo
  47.  
  48.  
  49. ########INSTRUCTIONS - AS MUE USER (FYI....the make takes a while)########
  50. cd ~
  51. git clone https://github.com/muecoin/MUECore.git muecore
  52. cd muecore
  53. ./autogen.sh && ./configure --with-incompatible-bdb --enable-hardening --without-gui -without-miniupnpc
  54. make
  55. cd src
  56. strip mued
  57. strip mue-cli
  58. strip mue-tx
  59. cd ~
  60. mkdir .muecore
  61. cd .muecore
  62. echo server=1 >> mue.conf
  63. echo daemon=1 >> mue.conf
  64. echo listen=1 >> mue.conf
  65. echo rpcallow=127.0.0.1 >> mue.conf
  66. echo rpcallowip=127.0.0.1 >> mue.conf
  67. echo rpcconnect=127.0.0.1 >> mue.conf
  68. echo rpcuser=12ieyjkjasfu2gfubskjdb >> mue.conf
  69. echo rpcpassword=jhfsdkjhfkjsdhfkjsdhfkjsdhfkjsdhfskjdhfs >> mue.conf
  70. echo rpcport=3300 >> mue.conf
  71. echo masternode=1 >> mue.conf
  72. #get the masternodeprivkey from your cold wallet based on the instructions in the MUE guide
  73. echo masternodeprivkey=XXXXXXXXXXXXXXXXXXXXXXX >> mue.conf
  74. echo externalip=XXX.XXX.XXX.XXX >> mue.conf
  75. cd /home/mue/muecore/src
  76. #put daemons in your home directory
  77. cp mued ../..
  78. cp mue-cli ../..
  79. cp mue-tx ../..
  80. cd ~
  81. export PATH=$PATH:$HOME/bin
  82. chmod 600 /home/mue/.muecore/mue.conf
  83. #exit and logoff of the mue user and then log back in
  84.  
  85. #start client
  86. ./mued
  87.  
  88. # wait 15 and run this to check for connections and block size to go up
  89. ./mue-cli getinfo
  90.  
  91. #validate that masternode hot wallet is sycned up before proceeding...wait for full sync and status to be like the below output
  92. ./mue-cli mnsync status
  93.  
  94. mue@host:~$ ./mue-cli mnsync status
  95. {
  96.   "AssetID": 999,
  97.   "AssetName": "MASTERNODE_SYNC_FINISHED",
  98.   "Attempt": 0,
  99.   "IsBlockchainSynced": true,
  100.   "IsMasternodeListSynced": true,
  101.   "IsWinnersListSynced": true,
  102.   "IsSynced": true,
  103.   "IsFailed": false
  104. }
  105.  
  106.  
  107. #if you need to stop or restart the client run this to stop client
  108. ./mue-cli stop
  109.  
  110. #to validate masternode up on hot wallet run this
  111. ./mue-cli masternode debug
  112.  
  113. Masternode successfully started
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement