Post
Topic
Board Hardware
Re: GekkoScience 2Pac BM1384 Stickminer Official Support Thread
by
jogger1
on 17/04/2018, 11:53:54 UTC
You'll lose cgminer's interactive ui that way.
Practice a little bit of screen manipulation first, then revisit the script.

open two bash terminals

first terminal
Code:
screen -dmS miner1

second terminal
Code:
screen -x miner1

first terminal
Code:
screen -S miner1 -X stuff "/home/pi/git/vthoang/cgminer/cgminer --gekko-2pac-freq 180 -o stratum+tcp://bch.viabtc.com:3333 -u usaminer.2 -p 1 --suggest-diff 64 ^M"

first terminal
Code:
pkill cgminer

first terminal
Code:
screen -S mine -X stuff "/home/pi/git/vthoang/cgminer/cgminer --gekko-2pac-freq 180 -o stratum+tcp://bch.viabtc.com:3333 -u usaminer.2 -p 1 --suggest-diff 64 ^M"


Very cool, i see it working when i manually input the commands (it seems i had to install screen into raspbian stretch first). Now i will have to make it into a script. Thanks vh!

One question, what does the ^M do at the end of the cgminer configs command? I dont see that in the list of configs for cgminer.