Post
Topic
Board Mining (Altcoins)
Re: [GUIDE] How to rent your rig on LEASERIG.NET - Scrypt & SHA256
by
daGrumpf
on 19/02/2014, 13:36:00 UTC
Hi,
i'm newbie here


You can choose whatever port you want, but you have to keep exactly IP 89.212.242.33. You can modify and create access rules. Following commands are needed to provide full functionality: summary, pools, switchpool, addpool, removepool, restart, save. Read API-README.txt in cgminer directory to get more details about cgminer API and how to configure access rules.

After checking API-README.txt, following should work:
Code:
--api-groups P:switchpool:addpool:removepool:restart:save:* --api-listen --api-allow P:89.212.242.33 --api-port 7777

or in (c|s)gminer.conf add those 3 lines
Code:
"api-port" : "7777",
"api-groups" : "P:switchpool:addpool:removepool:restart:save:*",
"api-allow" : "P:89.212.242.33",


Quote
FYI, for those using BAMT, the save call in the api will create a new cgminer.conf under /.cgminer/cgminer.conf  .
This is of course useless since BAMT starts cgminer pointed to /etc/bamt/cgminer.conf
[...]
Login to your BAMT box using ssh and perform the following:
sudo crontab -e
Add the following to the bottom of the crontab (This will check for updates every 5 minutes and only overwrite when changes are made)
Code:
*/5 * * * * cp -u /.cgminer/cgminer.conf /etc/bamt/cgminer.conf >/dev/null 2>&1
Exit (and save)

Eerrrk, I pref a on the fly write , linking running config to default save path

for bamt with cgminer
Code:
sudo [ -f /root/.cgminer/cgminer.conf ] && rm -f /root/.cgminer/cgminer.conf ; ln -s /etc/bamt/cgminer.conf /root/.cgminer/cgminer.conf

for bamt with sgminer
Code:
sudo [ -f /root/.sgminer/sgminer.conf ] && rm -f /root/.sgminer/sgminer.conf ; ln -s /etc/bamt/cgminer.conf /root/.sgminer/sgminer.conf

this will be better