Bitcoin Forum

Bitcoin => Mining support => Topic started by: GrrOucH on July 15, 2014, 04:46:18 PM



Title: Screen on an Antminer s1
Post by: GrrOucH on July 15, 2014, 04:46:18 PM
Is there a way to attach screen to cgminer in an Antminer s1? I have installed screen but do not know how to get it working.


Title: Re: Screen on an Antminer s1
Post by: Remember remember the 5th of November on July 16, 2014, 04:06:58 AM
Are you not satisfied with the Antminer S1's Web UI? It shows you pretty much everything you want, except maybe some error/debug messages.


Title: Re: Screen on an Antminer s1
Post by: GrrOucH on July 16, 2014, 04:15:14 AM
I want to use screen to see what cgminer is doing using Putty. That way I don't have to have multi web pages running.


Title: Re: Screen on an Antminer s1
Post by: jimrome on July 19, 2014, 07:16:44 PM
I want to use screen to see what cgminer is doing using Putty. That way I don't have to have multi web pages running.

Yes, you can. In the webui there's a software installation tab, just make sure you update sources beforehand. This can also be done via the command line opkg update then opkg install <package>


Title: Re: Screen on an Antminer s1
Post by: GrrOucH on July 19, 2014, 09:08:41 PM
I have it installed but what I don't know how to do is attach screen to cgminer. I can't find the startup scripts and don't know how to put screen into the startup of cgminer to attach the screen to it. That's what I need help with if anyone has done it can ya tell me how to do it?. Thanks.


Title: Re: Screen on an Antminer s1
Post by: stryker on July 20, 2014, 06:58:27 AM
Hi,

I don't know how good you are at working with linux and bash scripts so I'll start by pointing you in the right direction... if you need more help just ask and I'll take a look for you.

The script that controls the start/stop of cgminer is /etc/init.d/cgminer

Its pretty straight forward so if your ok with bash scripts or naturally intuitive you'll probably be ok.

EDIT: can't help myself, below is the line from that script that starts cgminer
$APP --lowmem --bitmain-options 115200:32:8:$_T0:$_cf:$_regv -q >/dev/null 2>&1

HTH


Title: Re: Screen on an Antminer s1
Post by: jonnybravo0311 on July 20, 2014, 03:44:36 PM
Is the version of cgminer on the S1 even compiled with ncurses support?  Wouldn't that be required to get the TUI to display properly when attaching it to the screen command?


Title: Re: Screen on an Antminer s1
Post by: stryker on July 20, 2014, 05:15:57 PM
I've run cgminer manually on my ants and it worked fine

:edit

You know it would be easier to enable the cgminer remote api and use an external program to monitor your ant(s).

I use miner dashboard with my ants and its great!  All you have to do is change the file mentioned above to add the enable api param.

https://github.com/selaux/miner-dashboard


Title: Re: Screen on an Antminer s1
Post by: jonnybravo0311 on July 20, 2014, 05:56:30 PM
I've run cgminer manually on my ants and it worked fine

:edit

You know it would be easier to enable the cgminer remote api and use an external program to monitor your ant(s).

I use miner dashboard with my ants and its great!  All you have to do is change the file mentioned above to add the enable api param.

https://github.com/selaux/miner-dashboard

When you run cgminer manually, do you mean you've gotten rid of the init.d script that automatically starts it, and do something like:

Code:
screen -dmS AntCGMiner ./cgminer -o pool1 -u user -p pass ... 

To the OP, I'm a bit confused by what you're asking.  You stated you don't want to have multiple browser tabs running... how is that any different than having multiple putty windows running?

By the way, if you're looking for a good tool, check out mdude77's Antminer monitor: https://bitcointalk.org/index.php?topic=596178.0


Title: Re: Screen on an Antminer s1
Post by: stryker on July 21, 2014, 11:09:48 AM
Nothing so grand, I simply meant I'd issued "/etc/init.d/cgminer start" (or stop) in the past.  Quicker than using the web interface.