Advertisement
cryptocurinfo

How to setup Sovereigncoin Wallet Linux/Ubuntu/Debain

Oct 26th, 2014
584
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1.                                                     ##############################
  2.                                                     #    Sovereigncoin Wallet    #  
  3.                                                     ##############################
  4. #####################LEGEND#####################                  
  5. # > = command to copy                          #     ##With this tutorial you can compile the following##
  6. # - = break in command do not copy these       #     # Bitcoin wallet                                   #
  7. # # = Instruction line                         #     # litecoin wallet                                  #
  8. ################################################     # Dogecoin wallet                                  #
  9.                                                      # ATTN new alt coin devs you can also use this tut #
  10.                                                      ####################################################
  11.                                                                                
  12.                                                          
  13.                                                      ######Instructions to compile your own wallet#######
  14.                                                      #  sovereigncoind <yourcoind>                      #
  15.                                                      #  sovereigncoin <yourcoin>                        #
  16.                                                      #  https://github.com/youracc/yourrepo             #
  17.                                                      ####################################################
  18. ##########################What You Need#####################################
  19. # A computer with at least 1GB of RAM and Ideally at least two processors, #
  20. # especially if you want this to be a public node.                         #
  21. # Following operating system's Ubuntu,Linux,Debain                         #      
  22. ############################################################################
  23.  
  24. #Okay, first thing’s first.  You shouldn’t be logging in as root, because you know better.  Let’s add a new user:
  25. --------------------------------------------
  26. > useradd -m -s /bin/bash -g sudo svcnode  -
  27. --------------------------------------------
  28. #Now let’s change our new user’s password:
  29. --------------------
  30. > passwd svcnode   -
  31. --------------------
  32. #Enter your new password twice.  Logout of root and log back in as your new user.  If you SSH’ed into your machine, I think you
  33. know what to do.
  34.  
  35. #Let’s update, upgrade, and install our dependencies.  Copy paste the command below and enter “Y” where applicable:
  36. -------------------------
  37. > sudo apt-get update   -
  38. -------------------------
  39. > sudo apt-get upgrade  -
  40. ----------------------------------------------------------------------------------------------------------------
  41. > sudo apt-get install build-essential libssl-dev libboost-all-dev git libdb5.1++-dev libminiupnpc-dev screen  -
  42. ----------------------------------------------------------------------------------------------------------------
  43. #Now Let’s download Sovereigncoin
  44. -------------------------------------------------------------
  45. > git clone https://github.com/cryptocurinfo/sovereigncoin  -
  46. -------------------------------------------------------------
  47. #If you have < 2GB of RAM on the system, you won’t be able to compile sovereigncoin.  We’ll have to set up a swapfile.
  48. ---------------
  49. > cd /var/tmp -
  50. ------------------------------------------------------
  51. > dd if=/dev/zero of=swapfile1 bs=1024 count=1048576 -
  52. ------------------------------------------------------
  53. > mkswap /var/tmp/swapfile1 -
  54. ----------------------------------------
  55. > sudo /sbin/swapon /var/tmp/swapfile1 -
  56. ----------------------------------------
  57. #Let’s add a little more security:
  58. -------------------------------------------
  59. > sudo chown root:root /var/tmp/swapfile1 -
  60. -------------------------------------------
  61. > sudo chmod 0600 /var/tmp/swapfile1 -
  62. --------------------------------------
  63. #Let’s ensure our swap file is working:
  64. -----------
  65. > free -m -
  66. -----------
  67. #Finally, let’s add an fstab entry so our swap file persists through a reboot:
  68. ----------------------
  69. > sudo vi /etc/fstab -
  70. ----------------------
  71. #If you aren't familiar with Vi, that’s okay.  To edit the file, hit the letter “i”.  Navigate down to the end of the file and add
  72. a new line:
  73. ---------------------------------------------
  74. > /var/tmp/swapfile1 swap swap defaults 0 0 -
  75. ---------------------------------------------
  76. #To save your changes, hit “Esc” and then enter “:wq” and hit enter.
  77.  
  78. #Okay, back to compiling sovereigncoin.  Ensure you are in the “/sovereigncoin/src/” directory and enter:
  79. ------
  80. > cd -
  81. --------------------------
  82. > cd sovereigncoin/src/ -
  83. ------------------------------------------
  84. > chmod +x leveldb/build_detect_platform -
  85. ------------------------------------------
  86. > make -f makefile.unix -
  87. -------------------------
  88. #This will take some time, if all goes well you should be able to type “ls” and you will see a file called “sovereigncoind”.  Don’t start it just yet!
  89. ------
  90. > ls -
  91. ------
  92. #Copy sovereigncoind to /usr/bin:
  93. -----------------------------------
  94. > sudo cp sovereigncoind /usr/bin -
  95. -----------------------------------
  96. #We need to set up our sovereigncoin.conf file:
  97. --------------------------
  98. > mkdir ~/.sovereigncoin -
  99. --------------------------
  100. > cd -
  101. --------------------------------
  102. > nano ~/.sovereigncoin/sovereigncoin.conf -
  103. --------------------------------
  104. #Once again, press the “i” key to edit and then paste the following into the file:
  105. ----------------------------------
  106. server=1
  107.  
  108.  
  109. gen=0
  110.  
  111.  
  112. rpcport=3333
  113.  
  114.  
  115. rpcallowip=127.0.0.1
  116.  
  117.  
  118. rpcuser=yourusername
  119.  
  120.                                  
  121. rpcpassword=areallystrongpassword
  122. -----------------------------------
  123. #Let’s start the sovereigncoin Daemon: -
  124. -----------------------------------
  125. > sovereigncoind --daemon -
  126. ---------------------------
  127. #sovereigncoind may hang up here, just hit “CTRL+C” to gain control of your terminal again.  To ensure sovereigncoind is running, type:
  128. --------------------------
  129. > sovereigncoind getinfo -
  130. --------------------------
  131.  
  132.  
  133. ######################################
  134. # Additional Sovereigncoind Commands #
  135. ######################################
  136.  
  137. #addmultisigaddress <nrequired> <'["key","key"]'> [account]
  138. #addnode <node> <add|remove|onetry>
  139. #backupwallet <destination>
  140. #createmultisig <nrequired> <'["key","key"]'>
  141. #createrawtransaction [{"txid":txid,"vout":n},...] {address:amount,...}
  142. #decoderawtransaction <hex string>
  143. #dumpprivkey <sovereigncoinaddress>
  144. #getaccount <sovereigncoinaddress>
  145. #getaccountaddress <account>
  146. #getaddednodeinfo <dns> [node]
  147. #getaddressesbyaccount <account>
  148. #getbalance [account] [minconf=1]
  149. #getblock <hash>
  150. #getblockcount
  151. #getblockhash <index>
  152. #getblocktemplate [params]
  153. #getconnectioncount
  154. #getdifficulty
  155. #getgenerate
  156. #gethashespersec
  157. #getinfo
  158. #getmininginfo
  159. #getnewaddress [account]
  160. #getpeerinfo
  161. #getrawmempool
  162. #getrawtransaction <txid> [verbose=0]
  163. #getreceivedbyaccount <account> [minconf=1]
  164. #getreceivedbyaddress <sovereigncoinaddress> [minconf=1]
  165. #gettransaction <txid>
  166. #gettxout <txid> <n> [includemempool=true]
  167. #gettxoutsetinfo
  168. #getwork [data]
  169. #help [command]
  170. #importprivkey <sovereigncoinprivkey> [label] [rescan=true]
  171. #keypoolrefill
  172. #listaccounts [minconf=1]
  173. #listaddressgroupings
  174. #listlockunspent
  175. #listreceivedbyaccount [minconf=1] [includeempty=false]
  176. #listreceivedbyaddress [minconf=1] [includeempty=false]
  177. #listsinceblock [blockhash] [target-confirmations]
  178. #listtransactions [account] [count=10] [from=0]
  179. #listunspent [minconf=1] [maxconf=9999999] ["address",...]
  180. #lockunspent unlock? [array-of-Objects]
  181. #move <fromaccount> <toaccount> <amount> [minconf=1] [comment]
  182. #sendfrom <fromaccount> <tosovereigncoinaddress> <amount> [minconf=1] [comment] [comment-to]
  183. #sendmany <fromaccount> {address:amount,...} [minconf=1] [comment]
  184. #sendrawtransaction <hex string>
  185. #sendtoaddress <sovereigncoinaddress> <amount> [comment] [comment-to]
  186. #setaccount <sovereigncoinaddress> <account>
  187. #setgenerate <generate> [genproclimit]
  188. #settxfee <amount>
  189. #signmessage <sovereigncoinaddress> <message>
  190. #signrawtransaction <hex string> [{"txid":txid,"vout":n,"scriptPubKey":hex,"redeemScript":hex},...] [<privatekey1>,...] [sighashtype="ALL"]
  191. #stop
  192. #submitblock <hex data> [optional-params-obj]
  193. #validateaddress <sovereigncoinaddress>
  194. #verifymessage <sovereigncoinaddress> <signature> <message>
  195. #walletlock
  196. #walletpassphrase <passphrase> <timeout>
  197. #walletpassphrasechange <oldpassphrase> <newpassphrase>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement