1
BitShares PTS / Re: [Updated] Guide To Pool Cloud Mining Protoshares - Also get free PTS!
« on: December 15, 2013, 09:55:23 pm »
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:
2. In the text editor (nano), insert the following line right before the last line ("exit 0"):
Save the file and exit the text editor (CTRL+X).
3. Now let's create the ptsminer startup script. Enter the following command:
4. In the text editor paste the following text:
Save the file and exit the text editor.
5. Run the following commands and click enter after each one:
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").
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:
Code: [Select]
nano /etc/rc.local
2. In the text editor (nano), insert the following line right before the last line ("exit 0"):
Code: [Select]
/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:
Code: [Select]
nano /usr/local/bin/launch_ptsminer.sh
4. In the text editor paste the following text:
Code: [Select]
#!/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:
Code: [Select]
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").