Advertisement
Guest User

Untitled

a guest
Dec 22nd, 2017
166
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Bash 3.71 KB | None | 0 0
  1. Modified from Sky's video to my needs : https://www.youtube.com/watch?v=InumRwIy67I
  2.  
  3. The first few minutes is to get the box running on Vultr. Once done, follow these steps.
  4.  
  5. ---- START STEPS / INSTRUCTIONS -----
  6. Login as 'root' user first then...
  7. Add User:
  8. useradd -m -s /bin/bash ubuntu
  9. echo "ubuntu:YOUR_OWN_PASSWORD" | chpasswd
  10.  
  11. visudo
  12.  
  13. Add the following to the end:
  14. root ALL=(ALL) ALL
  15. ubuntu ALL=(ALL) ALL
  16.  
  17. Make Swap:
  18. sudo /bin/dd if=/dev/zero of=/var/swap.1 bs=1M count=1024
  19. sudo /sbin/mkswap /var/swap.1
  20. sudo chmod 600 /var/swap.1
  21. sudo /sbin/swapon /var/swap.1
  22.  
  23. sudo nano /etc/fstab
  24.  
  25. And add to bottom:
  26. /var/swap.1   swap    swap    defaults        0   0
  27.  
  28. Rest of these steps can be done as 'ubuntu' user...
  29.  
  30. Commands to compile wallet:
  31. sudo apt-get update
  32. sudo apt-get upgrade
  33.  
  34. Important!:
  35. sudo reboot
  36.  
  37. sudo apt-get install -y build-essential libssl-dev libdb++-dev libboost-all-dev libqrencode-dev
  38.  
  39. Get the latest .tar.gz link here and replace below : https://github.com/B3-Coin/B3-CoinV2
  40. wget https://github.com/B3-Coin/B3-CoinV2/archive/3.0.0.4.tar.gz
  41. tar zxvf 3.0.0.4.tar.gz
  42. mv B3-CoinV2-3.0.0.4 B3-CoinV2
  43. cd B3-CoinV2/src/leveldb
  44. make clean
  45. make libmemenv.a libleveldb.a
  46. cd ..
  47. make -f makefile.unix (This guy take a while, go make some coffee, or pour yourself a nice whiskey!!)
  48.  
  49. ~/B3-CoinV2/src/b3coind
  50.  
  51. Keep note of the rpcuser and rpcpassword the wallet outputs on first run then proceed...
  52.  
  53. Edit ~/.B3-CoinV2/b3coin.conf (Part where I config initially to sync wallet):
  54. sudo nano ~/.B3-CoinV2/b3coin.conf
  55.  
  56. Add these lines:
  57. rpcuser=RANDOM_USERNAME
  58. rpcpassword=RANDOM_PASSWORD
  59. daemon=1
  60. server=1
  61.  
  62. Start Wallet:
  63. ~/B3-CoinV2/src/b3coind
  64.  
  65. Check Sync Progress (KEEP RUNNING THIS TO MONITOR SYNC)
  66. ~/B3-CoinV2/src/b3coind getblockcount  
  67.  
  68. keep using above command to track sync, match to https://chainz.cryptoid.info/b3/
  69.  
  70. When fully SYNCED, Import Key (KEY YOU GOT FROM YOUR WINDOWS WALLET DUMPPRIVKEY)
  71. ~/B3-CoinV2/src/b3coind importprivkey YOUR_PRIV_KEY_HERE    
  72. and wait some more...takes a few...another whiskey? :)
  73.  
  74. Generate Key:
  75. ~/B3-CoinV2/src/b3coind fundamentalnode genkey
  76.  
  77. Copy the above key, you will need it next
  78.  
  79. sudo nano ~/.B3-CoinV2/b3coin.conf
  80.  
  81. Make sure your file looks like this:
  82.  
  83. rpcuser=RANDOM_USERNAME
  84. rpcpassword=RANDOM_PASSWORD
  85. daemon=1
  86. server=1
  87. staking=0
  88. fundamentalnode=1
  89. fundamentalnodeprivkey=YOUR_GEN_KEY
  90. fundamentalnodeaddr=IP:5647
  91. promode=1
  92. listen=1
  93.  
  94. Open FW:
  95. sudo ufw allow 5647
  96.  
  97. sudo reboot
  98.  
  99. ~/B3-CoinV2/src/b3coind
  100. ~/B3-CoinV2/src/b3coind fundamentalnode start
  101.  
  102. to check connections
  103. ~/B3-CoinV2/src/b3coind fundamentalnode count
  104.  
  105. Open FW in Vultr for your VM (port 22 and port 5647) as shown in the video.
  106. https://www.youtube.com/watch?v=InumRwIy67I
  107. ---- END STEPS / INSTRUCTIONS -----
  108.  
  109. after all this your FN should be up and running. To double check, use a windows wallet to check if your IP is listed
  110. use debug console and use : fundamentalnodelist status IP
  111.  
  112.  
  113. Upgrade wallet:
  114. rm -rf ~/B3-CoinV2/ && git clone https://github.com/B3-Coin/B3-CoinV2.git ~/B3-CoinV2
  115. sudo apt-get -y update && sudo apt-get -y install build-essential libssl-dev libdb++-dev libboost-all-dev libqrencode-dev
  116. cd ~/B3-CoinV2/src/leveldb
  117. chmod +x build_detect_platform
  118. make clean
  119. make libmemenv.a libleveldb.a
  120. cd ..
  121. make -f makefile.unix (This guy take a while, go make some coffee, or pour yourself a nice whiskey!!)
  122. sudo reboot
  123.  
  124. --DO a complete resync
  125. cd ~/.B3-CoinV2/
  126. sudo rm peers.dat
  127. sudo rm blk0001.dat
  128. sudo rm fncache.dat
  129. sudo rm -rf database
  130. sudo rm -rf txleveldb
  131.  
  132.  
  133. ~/B3-CoinV2/src/b3coind
  134.  
  135. Check Sync Progress (KEEP RUNNING THIS TO MONITOR SYNC)
  136. ~/B3-CoinV2/src/b3coind getblockcount
  137.  
  138. ~/B3-CoinV2/src/b3coind fundamentalnode start
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement