Author

Topic: Screen on an Antminer s1 (Read 1471 times)

sr. member
Activity: 518
Merit: 250
July 21, 2014, 06:09:48 AM
#10
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.
legendary
Activity: 1344
Merit: 1024
Mine at Jonny's Pool
July 20, 2014, 12:56:30 PM
#9
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://bitcointalksearch.org/topic/ms-miner-antsp-monitor-v52-alertsautomassscheduled-rebootmobile-miner-596178
sr. member
Activity: 518
Merit: 250
July 20, 2014, 12:15:57 PM
#8
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
legendary
Activity: 1344
Merit: 1024
Mine at Jonny's Pool
July 20, 2014, 10:44:36 AM
#7
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?
sr. member
Activity: 518
Merit: 250
July 20, 2014, 01:58:27 AM
#6
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
newbie
Activity: 38
Merit: 0
July 19, 2014, 04:08:41 PM
#5
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.
sr. member
Activity: 434
Merit: 250
July 19, 2014, 02:16:44 PM
#4
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
newbie
Activity: 38
Merit: 0
July 15, 2014, 11:15:14 PM
#3
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.
legendary
Activity: 1862
Merit: 1011
Reverse engineer from time to time
July 15, 2014, 11:06:58 PM
#2
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.
newbie
Activity: 38
Merit: 0
July 15, 2014, 11:46:18 AM
#1
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.
Jump to: