Advertisement
CryptoLifestyler

Untitled

Jan 27th, 2020
180
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 8.12 KB | None | 0 0
  1. Mining Pool Setup (Part 2)
  2.  
  3.  
  4. Transcript
  5.  
  6. 00:00 Creating a mining pool, part 2.
  7.  
  8. 00:07 Then we are going to type the command. ''su - pool''. We are now switched over to our pool user again. We are going to create new directories. Copy and paste the first command. This will make a directory named compil. This is where we are going to store our wallet binaries initially.
  9.  
  10. 00:33 Then return to the Pastebin and copy the next command. This will make one named daemon. Enter the new directory named compil, by typing ''cd compil''. Here we are going to get our binaries for our tutorial coin, Vision X. If you navigate to our repository, you can see the path to our release. Our binaries are packed in a tar.gz compression named Linux. The path to the release is shown here. Just add ''/download'', ''/v1.0'', ''/Linux.tar.gz''.
  11.  
  12. 01:38 Copy and paste the command and wait for it to complete. Typing ''ls'', we can see that we now have the compressed folder in our compil directory. The next command will extract the binaries from the tar.gz. Copy and paste this into the terminal. Hit Enter.
  13.  
  14. 02:05 We can now see we have extracted the files. We now have a folder named Linux. The binaries are located inside this folder. So type ''cd Linux''. Then ''ls''. This will show the contents of the Linux folder.
  15.  
  16. 02:28 Now we can see we have all the binaries. We are going to make a new folder named Vision X. This will be inside the folder named daemon. Copy the command and paste it into the terminal.
  17.  
  18. 02:47 With that done, we now need to copy our binaries to the new vision x folder. Each coin you add will have it's named folder inside the daemon folder. This folder will contain the essential binaries. We do not need to copy the QT over. Only the daemon, TX and the CLI.
  19.  
  20. 03:13 Next, we are going to navigate to the vision x folder, which now contains the 3 binaries. To do that, copy and paste the next command. Typing ''ls'' will show the binaries that were copied over.
  21.  
  22. 03:36 The next command will strip the vision x daemon. This removes anything unused in the binary, and reduces the file size. In previous videos, we stripped the daemon before we pushed it to GitHub. However, it doesn't hurt to do this again. Sometimes, you will be adding coins that have not been stripped already.
  23.  
  24. 04:00 Now we are going to open a 2nd terminal using putty. Copy the IP address of your server, and open putty. Do not close your 1st terminal yet.
  25.  
  26. 04:15 In the new terminal, we are going to log in as the user, pool. Provide the password for pool, and hit Enter. Copy the next command ''sudo ./visionXd''. Head to your first server. Paste in the command. Then leave a space and type ''-daemon''. Hit Enter.
  27.  
  28. 04:49 We have now started the daemon for Vision X. We can close the 1st terminal and move over to the 2nd terminal. The next command will stop the daemon.
  29.  
  30. 05:05 When our wallet is started for the first time, it creates the .visionXcore folder. This contains the important files. We need to stop the daemon, access and edit the config file. So, copy and paste the next command into the terminal, to navigate back to our Vision X folder. Then copy the next command to stop the daemon. You will need to provide your password for the user, pool.
  31.  
  32. 05:39 With the daemon stopped. Head back to the pastebin and copy the next command. Before pasting the command, type C D to return to the main directory. Then paste in the command. CD dot vision x core. Type LS and you will see all the containing files. We are going to edit the VisionX config file. To do that, we are going to use nano again. Use the command. ''sudo nano visionX.conf''. Hit enter.
  33.  
  34. 06:21 We are now faced with a blank configuration file. We are going to go back to our mining pool and create a new coin now. Add the path to log in as admin. Then navigate to the wallets tab. Scroll down to the bottom, and click on. Create coin. Type the name of the coin and its symbol, or ticker.
  35.  
  36. 06:53 In our case our coin name is vision x. And our symbol is VSX. Add the name of the algo. Our tutorial coin is x16s. Then scroll down and click on Create.
  37.  
  38. 07:18 Now we are going to search for our coin in the list. Click on its name, and go to coin properties. In the daemon tab. We are going to add the RPC host as Local Host 127.0.0.1. And add a username. Paste in the RPC Host. The username can be anything you like. Be sure to change it to something you will remember. Then go to the bottom and save.
  39.  
  40. 08:03 Next, return back to coin properties. And inside the daemon tab, you will see the configuration file details. Highlight all and copy. Move back to the terminal and paste into the visionX.conf file that is open. Head back to the paste bin. We need to edit the path to include''/var/stratum/blocknotify''. Copy this part and go back to the config file. Paste it in the correct place. Then save and exit the file using control, plus X. Then Y and enter.
  41.  
  42. 09:05 Now we are going to type. ''cd ..'' to return to the main directory. The next command will take us back to the Vision X folder to launch the daemon. Copy and paste the command into the terminal.
  43.  
  44. 09:25 Now we can restart the daemon. The configuration file that was edited, will help communication between the pool and the wallet. Copy and paste the command to start the daemon. We don't actually need to add the word daemon anymore. As we put daemon = 1 in the config file. But it doesn't hurt. We could now run it without.
  45.  
  46. 09:52 With the daemon now running, we can return to the settings in our pool. Click enable, and auto ready. Then at the bottom, click save. We can then see the block height. And that we have 3 connections. We are going to check the block height against the explorer. It needs to be at the current block height for a full sync. We can see that our block height matches the explorer block height. So now we can move on.
  47.  
  48. 10:35 If you are waiting for the blockchain to sync. You can click on , update blocks. This is located in the top right of the screen. Now we know we have a full sync, head back to the terminal. Press control and C to exit. Then type ''su -''. Then press enter. We will return to the root so we need to put in our root password. Copy that from your server page again.
  49.  
  50. 11:07 Next we are going to allow the port number 3663 for mining. Copy and paste the command ''ufw allow 3663/tcp''. Then hit Enter. It will show the rules added.
  51.  
  52. 11:32 Then we are going to copy and paste the next line to open our screen. The next command will take us to the stratum folder. Copy and paste it into the terminal. This is our final command. We need to run the x16s algo in the stratum. Use ''sudo bash run.sh x16s''.
  53.  
  54. 12:09 Now when we return to the pool, we can refresh the browser. We can see that our vision x coin is there. It can now be mined. We can see our algo, the port number, and that our fees are set to the default 0.5 %.
  55.  
  56. 12:26 All that's left to do is test to see if we can mine on the stratum.
  57.  
  58. 12:34 We can see that we are able to mine and connect to the stratum. There are no errors and it is registering in our terminal. So, that's how you create a mining pool.
  59.  
  60. 12:45 If you want to edit the look of your pool. You should open your server in Bitvise and explore the CSS files. To add different coins, just follow the same process. Start from cloning the coin to the compil folder. Copying it over to it's coin name file, and so on.
  61.  
  62. 13:06 Like I said at the beginning of the video. If you are launching your own coin, a mining pool should just be used as a backup pool. You don't need the hassle of managing a pool day in, day out.
  63.  
  64. 13:20 Adding other coins. At the point of adding our tutorial coin into the directory named Compil. You can change the coin for a different one. Just remember to follow the process with the new coin name, and not Vision X. Where the algo x16s is mentioned in the commands, replace it with your coin algo. The process will be the same with any coin.
  65.  
  66. 13:48 In our next tutorial, we will be looking at setting up a Discord channel for your coin. This needs to be presented and organized well, ready for launch day.
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement