Bitcoin Forum
May 11, 2024, 12:02:36 AM *
News: Latest Bitcoin Core release: 27.0 [Torrent]
 
   Home   Help Search Login Register More  
Pages: [1]
  Print  
Author Topic: Screen on an Antminer s1  (Read 1471 times)
GrrOucH (OP)
Newbie
*
Offline Offline

Activity: 38
Merit: 0


View Profile
July 15, 2014, 04:46:18 PM
 #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.
The trust scores you see are subjective; they will change depending on who you have in your trust list.
Advertised sites are not endorsed by the Bitcoin Forum. They may be unsafe, untrustworthy, or illegal in your jurisdiction.
1715385756
Hero Member
*
Offline Offline

Posts: 1715385756

View Profile Personal Message (Offline)

Ignore
1715385756
Reply with quote  #2

1715385756
Report to moderator
1715385756
Hero Member
*
Offline Offline

Posts: 1715385756

View Profile Personal Message (Offline)

Ignore
1715385756
Reply with quote  #2

1715385756
Report to moderator
1715385756
Hero Member
*
Offline Offline

Posts: 1715385756

View Profile Personal Message (Offline)

Ignore
1715385756
Reply with quote  #2

1715385756
Report to moderator
Remember remember the 5th of November
Legendary
*
Offline Offline

Activity: 1862
Merit: 1011

Reverse engineer from time to time


View Profile
July 16, 2014, 04:06:58 AM
 #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.

BTC:1AiCRMxgf1ptVQwx6hDuKMu4f7F27QmJC2
GrrOucH (OP)
Newbie
*
Offline Offline

Activity: 38
Merit: 0


View Profile
July 16, 2014, 04:15:14 AM
 #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.
jimrome
Sr. Member
****
Offline Offline

Activity: 434
Merit: 250


View Profile
July 19, 2014, 07: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 <package>
GrrOucH (OP)
Newbie
*
Offline Offline

Activity: 38
Merit: 0


View Profile
July 19, 2014, 09: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.
stryker
Sr. Member
****
Offline Offline

Activity: 518
Merit: 250



View Profile
July 20, 2014, 06: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
jonnybravo0311
Legendary
*
Offline Offline

Activity: 1344
Merit: 1023


Mine at Jonny's Pool


View Profile WWW
July 20, 2014, 03:44:36 PM
 #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?

Jonny's Pool - Mine with us and help us grow!  Support a pool that supports Bitcoin, not a hardware manufacturer's pockets!  No SPV cheats.  No empty blocks.
stryker
Sr. Member
****
Offline Offline

Activity: 518
Merit: 250



View Profile
July 20, 2014, 05: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
jonnybravo0311
Legendary
*
Offline Offline

Activity: 1344
Merit: 1023


Mine at Jonny's Pool


View Profile WWW
July 20, 2014, 05: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://bitcointalk.org/index.php?topic=596178.0

Jonny's Pool - Mine with us and help us grow!  Support a pool that supports Bitcoin, not a hardware manufacturer's pockets!  No SPV cheats.  No empty blocks.
stryker
Sr. Member
****
Offline Offline

Activity: 518
Merit: 250



View Profile
July 21, 2014, 11: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.
Pages: [1]
  Print  
 
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.19 | SMF © 2006-2009, Simple Machines Valid XHTML 1.0! Valid CSS!