hey there.
UPDATE: first script here.
https://bitcointalksearch.org/topic/m.28619062i was wondering if their is any automation tools (perhaps in github?) such a batch file or anything else that will allow u to easy setup ur miners,
such pools, changing password (ssh and web), hostname , static ip and so on.
setting up 1 or 2 its ok doing so by the web, but when u got 10,20,30,40 or 100 doing them one by one can be very tiring.
so far, i have track down the files where the web app hold the info.
/config/bmminer.conf holds inside , pool info,frequency,fan speed (need to change permission to write.)
{
"pools" : [
{
"url" : "solo.antpool.com:3333",
"user" : "test.1",
"pass" : "123"
},
{
"url" : "stratum.antpool.com:443",
"user" : "test.1",
"pass" : "123"
},
{
"url" : "stratum+tcp://cn.ss.btc.com:3333",
"user" : "test",
"pass" : "123"
}
]
,
"api-listen" : true,
"api-network" : true,
"api-groups" : "A:stats:pools:devs:summary:version",
"api-allow" : "A:0/0,W:*",
"bitmain-use-vil" : true,
"bitmain-freq" : "550",
"bitmain-voltage" : "0706",
"multi-version" : "1"
}
/config/network.conf holds , hostname,dhcp/static ip (need to change permission to write.)
incase of dhcp
hostname=miner1
dhcp=true
or static
hostname=miner1
ipaddress=10.0.0.1
netmask=255.255.255.0
gateway=10.0.0.200
dnsservers="8.8.8.8"
and for the web password is abit tricky
its inside
/config/lighttpd-htdigest.userroot:antMiner Configuration:23c2a2d78c0d20ec069097d7d20c4392
the hash "23c2a2d78c0d20ec069097d7d20c4392" is basicly an md5 of "root:antMiner Configuration:root" (with out quote) the :root in the end is the web password, meaning if u will want to change to 123456 for example the hash would be
"b25ccbf855f9ad50ec0d5fc4cfc88a72" so "root:antMiner Configuration:b25ccbf855f9ad50ec0d5fc4cfc88a72"
in other words the md5 is a sum of "root:antMiner Configuration:
PASSWORD"
now that i share all of that , i would like to work with some one with linux experience to create a batch file which will help other to easy setup their miners.
my first idea was to run the batch file from the miner via ssh,
and have couple of options such as.
1,change ur pool
2,set ip and hostname
3,change web password
4,change ssh password
each option will have couple of options
in option 1 we will have most famous pools register so ppl will be able to press 1,2,3,4,5,6... to select which pool they want by pressing one button.
options will be like so
1,stratum.antpool.com:3333
2, stratum.slushpool.com:3333
3,eu.stratum.slushpool.com:3333
4,stratum.f2pool.com:3333
5,stratum.viabtc.com:3333
and so on.
number "x", will be costume and the person will be able to type his own pool if not register.
and then
the worker name.
when writing it onec it will remmber for the next 2 pools (pool 2,3)
the following will be repeating 3 times for each pool (pool 1,2,3)
on the worker name in pool 2,3 the user will have an option to or use the worker name he has put in pool 1 or be able to set a new name.
in option 2 the user will be able to select which static ip he wants and change the hostname. (well its self explanatory)
3,4 self explanatory.
in the end of options 1,2,3,4 the user will have the ability to save the settings he has enter.
so he will be able to quickly load them for other miners, but when loading the settings the user will need to change the ip ,hostname,workername. the option that will pup up when loading the settings will be
set primary number , for example 10
automaticly all the settings will be ready
1, hostanme "miner10"
2, ip (perhaps only the end of the numbers for ex 10.0.0.x) "10.0.0.10"
3, workername "test.10"
this is how i see it to make it easier for every one who want to setup a small miner farm.
perhaps all of this exist and i dont know. ( i would like to hear of such of thing)
tell me guys what u think about the idea, and if any one want to help me create this for the community .
cheers