Main Menu
Menu

Show posts

This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.

Show posts Menu

Messages - tiktin

#1
A Guide on how to set your droplet to auto start ptsminer on boot

Note: I assume you followed "bitshirehashaway" instructions to the letter. If you changed something (e.g. ptsminer install path), you might need to change some stuff.

1. First we need to edit the /etc/rc.local file in a text editor, so enter the following command in the terminal:
nano /etc/rc.local
2. In the text editor (nano), insert the following line right before the last line ("exit 0"): /usr/local/bin/launch_ptsminer.sh 60 & 
Save the file and exit the text editor (CTRL+X).

3. Now let's create the ptsminer startup script. Enter the following command:
nano /usr/local/bin/launch_ptsminer.sh

4. In the text editor paste the following text:
#!/bin/bash
DEFAULT_DELAY=0

if [ "x$1" = "x" -o "x$1" = "xnone" ]; then
   DELAY=$DEFAULT_DELAY
else
   DELAY=$1
fi

sleep $DELAY

echo "About to run ptsminer"

cd /root/ptsminer/src
./ptsminer <your PTS address> <number of threads>

Replace <your PTS address> with your actual wallet address and <number of threads> with the number of cores.

Save the file and exit the text editor.

5. Run the following commands and click enter after each one:
chmod +x /usr/local/bin/launch_ptsminer.sh
chown root:root /usr/local/bin/launch_ptsminer.sh


That's it, you're done! :)
We configured the OS to run "launch_ptsminer.sh" 60 seconds after system boot. The "launch_ptsminer.sh" script executes the ptsminer. So go a head and try it out by restarting the system (cmd: "shutdown -r now") and then check out your process list (cmd: "top").


If this guide helped you to mine some coins please send your tips to:
PnT2vspKeewTLqTD8rqmDhyeyNvJAai57D

Thanks!

P.S.
You can use this steps to create auto run scripts for other CPU miners (just play with the last 2 lines of "launch_ptsminer.sh").