Advertisement
ZETTEL_Guides

ZettelKasten Mining Guide for Linux

May 12th, 2018
588
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 3.60 KB | None | 0 0
  1. ### ZettelKasten Installation and Mining Guide for Linux ###
  2.  
  3. 0. Make sure you have compiled ZettelKasten from source or downloaded the binary
  4.  
  5. - ZettelKasten Compilation Guide 16.04
  6. https://pastebin.com/vBPY4yKb
  7.  
  8. - ZettelKasten Compilation Guide 18.04
  9. https://pastebin.com/qKvU5Zhd
  10.  
  11. - Binaries:
  12.  
  13. Linux (Qt + Daemon - 64 bits):
  14. https://zettelkasten.org/zettelkasten-linux64.tar.gz
  15.  
  16. 1. Make sure you're in the right folder and run those commands
  17.  
  18. sudo chmod +x zettelkastend
  19. ./zettelkastend
  20. Press CTRL + C to stop
  21.  
  22. It just created a new folder named .zettelkasten (starting with a dot) you can access it in your home directory (also called ~)
  23. Folders that starts with "." are "hidden folders" and can be seen by running the commands ls -la, first, let's go to ~
  24.  
  25. cd ~
  26. ls -la
  27.  
  28. You'll see that the .zettelkasten folder is in there, you can access it with
  29.  
  30. cd .zettelkasten
  31. ls -la
  32.  
  33. There is already a few files in there, the wallet.dat is in here for example, now you have to make the zettelkasten.conf
  34.  
  35. 2. Create the zettelkasten.conf with nano zettelkasten.conf or in the case you already made it for a previous rig, you can just past your existing zettelkasten.conf in there and jump to step 4.
  36.  
  37. Be sure you're making it in the right folder (the one starting with a dot)
  38.  
  39. nano ~/.zettelkasten/zettelkasten.conf
  40.  
  41. Replace someuserany and somepasswordany to anything you want to put as user and password.
  42.  
  43. rpcuser=someuserany
  44. rpcpassword=somepasswordany
  45. daemon=1
  46. server=1
  47. gen=0
  48. genproclimit=-1
  49.  
  50. genproclimit=-1 is all CPU threads, to check what you have pick one --> nproc, lscpu, less /etc/proc/cpuinfo
  51.  
  52. 3. Run the daemon again ./zettelkastend (by going in the folder where you compiled or extracted it)
  53. Not in the folder starting with a "." (that has the .conf file) but the other one with the zettelkastend file, to make sure you're in the right folder, if you compiled it, it's over here:
  54.  
  55. cd ~/zettelkasten/src
  56. ./zettelkastend
  57.  
  58. If it says "ZettelKasten server starting" you can start typing commands to get the account address, its privkey, etc; ...
  59. If it doesn't say that line, please recheck you did the zettelkasten.conf properly.
  60.  
  61. ./zettelkastend getaccountaddress 0
  62. Copy it and paste it after dumpprivkey
  63.  
  64. ./zettelkastend dumpprivkey Paste_The_Address_You_Just_Copied_In_Here
  65. ./zettelkastend stop
  66.  
  67. Copy the PrivKey
  68. nano ~/.zettelkasten/zettelkasten.conf
  69.  
  70. Change gen=0 to 1 and add miningprivkey
  71.  
  72. gen=1
  73. miningprivkey=PastePrivKeyFromStepAbove
  74.  
  75. 4. Relaunch
  76. ./zettelkastend
  77. ./zettelkastend getmininginfo
  78.  
  79. You should see something like this: ...
  80. "hashespersec" : 39456,
  81. "networkhashps" : 80470064,
  82. "pooledtx" : 0,
  83. "testnet" : false
  84.  
  85. Congratulations! You are now mining Zettel on Linux :D
  86.  
  87. Common useful commands:
  88. - to check confirmed balance:
  89. ./zettelkastend gebalance
  90. - to check all balance including unconfirmed:
  91. ./zettelkastend listaccounts
  92. - stop the daemon, use this everytime you're trying to close it, modifying the .conf and such
  93. ./zettelkastend stop
  94. - list all the commands available.
  95. ./zettelkastend help
  96.  
  97. 5. If you have multiple systems running ZettelKasten, you can make one of them a Full Node for a stronger network and easier syncs:
  98.  
  99. https://pastebin.com/1Zse955T
  100.  
  101. #Tips:
  102.  
  103. - Use TAB key while writing a folder or file name after entering the first letters for automatic filling of that name.
  104. - Use Arrow keys to find a previous command you typed.
  105.  
  106. #Zettelkasten Dev Donation Address:
  107. ZetterxMoFb2crhpMgRCHkivyrbapnQpzJ
  108.  
  109. #@chipah#8995 Address for that Linux Guide:
  110. ZbV33H1jQv3yWxYEWSmSFb5KjoAhDWjv5C
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement