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:
--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
"api-port" : "7777",
"api-groups" : "P:switchpool:addpool:removepool:restart:save:*",
"api-allow" : "P:89.212.242.33",
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)
*/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
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
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