Bitcoin Forum
November 16, 2018, 12:33:47 AM *
News: Latest Bitcoin Core release: 0.17.0 [Torrent].
 
   Home   Help Search Login Register More  
Pages: « 1 ... 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 [93] 94 95 96 97 98 99 100 101 102 103 104 105 »
  Print  
Author Topic: GekkoScience 2Pac/Compac BM1384 Stickminer Official Support Thread  (Read 147929 times)
This is a self-moderated topic. If you do not want to be moderated by the person who started this topic, create a new topic.
lok8nusa
Member
**
Offline Offline

Activity: 252
Merit: 11

Call 811 before you dig


View Profile
April 16, 2018, 12:24:43 AM
 #1841

Wasn't there a CPU miner that worked with Gekko, or am I thinking Gridseed?  Can't seem to find on Google.

That's Gridseed.  http://cryptomining-blog.com/tag/cpuminer-gridseed/

Coining bits since 2017 
Avalon 741 x 2; BM S7 x 1, C1 x 1, S3 x 1; GekkoScience R808 x 2, 2Pac x 8
Kano Pool is the BEST BTC mining pool.
1542328427
Hero Member
*
Offline Offline

Posts: 1542328427

View Profile Personal Message (Offline)

Ignore
1542328427
Reply with quote  #2

1542328427
Report to moderator
1542328427
Hero Member
*
Offline Offline

Posts: 1542328427

View Profile Personal Message (Offline)

Ignore
1542328427
Reply with quote  #2

1542328427
Report to moderator
1542328427
Hero Member
*
Offline Offline

Posts: 1542328427

View Profile Personal Message (Offline)

Ignore
1542328427
Reply with quote  #2

1542328427
Report to moderator
Advertised sites are not endorsed by the Bitcoin Forum. They may be unsafe, untrustworthy, or illegal in your jurisdiction. Advertise here.
1542328427
Hero Member
*
Offline Offline

Posts: 1542328427

View Profile Personal Message (Offline)

Ignore
1542328427
Reply with quote  #2

1542328427
Report to moderator
1542328427
Hero Member
*
Offline Offline

Posts: 1542328427

View Profile Personal Message (Offline)

Ignore
1542328427
Reply with quote  #2

1542328427
Report to moderator
1542328427
Hero Member
*
Offline Offline

Posts: 1542328427

View Profile Personal Message (Offline)

Ignore
1542328427
Reply with quote  #2

1542328427
Report to moderator
flippintwit
Newbie
*
Offline Offline

Activity: 51
Merit: 0


View Profile
April 16, 2018, 12:55:57 PM
 #1842

Wasn't there a CPU miner that worked with Gekko, or am I thinking Gridseed?  Can't seem to find on Google.

That's Gridseed.  http://cryptomining-blog.com/tag/cpuminer-gridseed/


There is also a version of cgminer ( V4.3.5 ) for zeus and gridseed that has been working pretty well for my mining SCRYPT on Windows7. You should be able to find it on cryptomining-blog as well.

And now to put us back on topic.

i still can't get mine working, i keep getting no devices detected. i've followed all of the instructions. I'm on windows 10, can anyone help?

Did you install the zadig drivers from the first post?



jogger1
Newbie
*
Offline Offline

Activity: 8
Merit: 0


View Profile
April 16, 2018, 08:07:10 PM
 #1843

./autogen.sh: 4: ./autogen.sh: autoreconf: not found

You are moving forward a few steps, which is a good sign.
NOOBS probably left out some things not found by default in the raspbian stretch lite image used as a base to create those initial post instructions.

Code:
sudo apt-get install -y autoconf


Hey vh, not sure if you can help, but i am trying to set up a crontab with a script to automatically stop and restart the miner on a pi raspbian stretch. Not sure why this script isnt working but can anyone lend a hand on what is wrong with my script?

Here is my script

runtask.sh

Code:
#!/bin/bash
pkill cgminer
CURRENTDATE=`date`
echo Cron Job Started: ${CURRENTDATE} >>/home/pi/git/vthoang/cgminer/runtask-log.txt
sleep 5
cd ~/git/vthoang/cgminer/
./cgminer --gekko-2pac-freq 180 -o stratum+tcp://bch.viabtc.com:3333 -u usaminer.2 -p 1 --suggest-diff 64
CURRENTDATE=`date`
echo Cron Job Finished: ${CURRENTDATE} >>/home/pi/CronOutput/cron.txt
exit

In my crontab i have

Code:
* */4 * * * pi /home/pi/git/vthoang/cgminer/runtask.sh >> /home/pi/git/vthoang/cgminer/taskerror.log 2>&1

I keep getting all sort of errors with different edits i try, but the one thing that always works in the script is pkill cgminer after that nothing works.

The script always stops at whatever i do especially at cd ~/git/vthoang/cgminer - all the different ways i have tried dont work.

Is there something that you guys have done that makes a good crontab script work with cgminer? I know in cgminer i can schedule start and stop arguments, but those are only one offs for one time in the day. I wanted to be able to start and restart cgminer at 4 hour increments everyday.

Thanks for anyone who can help on this.  Have sepnt the last 4 days trying to get this work with no success.
vh
Hero Member
*****
Offline Offline

Activity: 621
Merit: 571


View Profile
April 16, 2018, 09:07:49 PM
 #1844

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"

Tzxuan
Newbie
*
Offline Offline

Activity: 20
Merit: 1


View Profile
April 17, 2018, 08:45:54 AM
 #1845

I still do not understand Sad
jogger1
Newbie
*
Offline Offline

Activity: 8
Merit: 0


View Profile
April 17, 2018, 11:53:54 AM
 #1846

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.
flippintwit
Newbie
*
Offline Offline

Activity: 51
Merit: 0


View Profile
April 17, 2018, 12:06:44 PM
 #1847

...
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.

The ^M is an artifact from Windows, not to be worried about. Windows uses Carrage-Return+Linefeed as the end of line codes in its text files. *NIX systems only use Carrage-Return. The artifact doesn't affect running the script.
vh
Hero Member
*****
Offline Offline

Activity: 621
Merit: 571


View Profile
April 17, 2018, 03:16:01 PM
 #1848


Yes, ^M is interpreted by screen to send a (Cr) into the terminal.

The remaining piece:

forever run cgminer with a restart every 4 hours.

second terminal
Code:
while [ true ]; do
    timeout 4h /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
    sleep 5
done

finishing it up:

runtask.sh
Code:
#!/bin/bash
screen_name=miner1

if [[ `screen -ls | grep $screen_name | wc -l` -eq 0 ]]; then
    screen -dmS $screen_name
fi

screen -S $screen_name -X stuff ^C^C^C

screen -S $screen_name -X stuff "
while [ true ]; do
    timeout 4h /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
    sleep 5
done
"

crontab
Code:
@reboot /home/pi/git/vthoang/cgminer/runtask.sh


on reboot:
check for existing screens, and attach to confirm
Code:
screen -ls
screen -x miner1


jogger1
Newbie
*
Offline Offline

Activity: 8
Merit: 0


View Profile
April 17, 2018, 11:04:38 PM
 #1849


Yes, ^M is interpreted by screen to send a (Cr) into the terminal.

The remaining piece:

forever run cgminer with a restart every 4 hours.

second terminal
Code:
while [ true ]; do
    timeout 4h /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
    sleep 5
done

finishing it up:

runtask.sh
Code:
#!/bin/bash
screen_name=miner1

if [[ `screen -ls | grep $screen_name | wc -l` -eq 0 ]]; then
    screen -dmS $screen_name
fi

screen -S $screen_name -X stuff ^C^C^C

screen -S $screen_name -X stuff "
while [ true ]; do
    timeout 4h /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
    sleep 5
done
"

crontab
Code:
@reboot /home/pi/git/vthoang/cgminer/runtask.sh


on reboot:
check for existing screens, and attach to confirm
Code:
screen -ls
screen -x miner1



So my script writing abilities arent that good, but im just trying to make a simple script (i mean ELI5 simple) and here is what i got so far.

Code:
#!/bin/bash
screen -dmS miner1
screen -S miner1 -X stuff "timeout 10s /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
done"
screen -S miner1 -r

Now here is where i am stuck. (i know i have this timeout at 10s) but once the timeout is done the screen goes back to command line and the rest of my script doesnt run. Now when i type in exit on the command line then the next part of my script starts up (which is a replica of the above script). I have tried everything to get the exit command to go into the command line after the first part of the script runs, but nothing happens.

What can i do to get my screen to exit so the rest of my script can run?

Thanks and sorry for the elementary abilities. I am having fun learning on the way, it has taken me 5 days to get where i am now!

Here is where i am stuck

Code:
#!/bin/bash
{
#
#first instance
#
screen -dmS miner1
screen -S miner1 -X stuff "timeout 10s /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
done"
screen -S miner1 -r

i need this to insert exit into the command line and go

#
#second instance
#
screen -dmS miner1
screen -S miner1 -X stuff "timeout 30s /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
done"
screen -S miner1 -r

i need this to insert exit into the command line and go

#
#third instance
#
screen -dmS miner1
screen -S miner1 -X stuff "killall screen
exit"
screen -S miner1 -r

} 2>&1 | tee script-error.log
vh
Hero Member
*****
Offline Offline

Activity: 621
Merit: 571


View Profile
April 18, 2018, 12:47:23 AM
 #1850

Don’t attach to the screen.
Run your main script file inside it.

jogger1
Newbie
*
Offline Offline

Activity: 8
Merit: 0


View Profile
April 18, 2018, 04:29:41 PM
 #1851

Don’t attach to the screen.
Run your main script file inside it.
Thanks vh, i think i figured out a decent crontab with an added @reboot command. So every 4 hours i start by killall screens, rerun the miner script after 5 minutes and then reboot my machine at 1am and start everything up again. Testing it today seems to be working so far, will test it the rest of the week to see how successful my method is.

Thanks for the help!
dogshu
Newbie
*
Offline Offline

Activity: 3
Merit: 0


View Profile
April 20, 2018, 06:00:19 AM
 #1852

This is probably old news, but the latest version of cgminer that I checked out from https://github.com/vthoang/cgminer.git is a lot newer than what I checked out just a few months ago.  In particular, cgminer always starts at 100mhz then incrementally increases the clockrate to what was set on the command line, so we can figure out the max clockrate more easily.  Pretty cool!  Happy 4-20!

[2018-04-20 01:42:13.988] GSD 3: start work @ 100.00MHz
 [2018-04-20 01:42:28.416] GSD 0: setting frequency to 125.00MHz
 [2018-04-20 01:42:28.619] GSD 1: setting frequency to 125.00MHz
 [2018-04-20 01:42:28.827] GSD 2: setting frequency to 125.00MHz
 [2018-04-20 01:42:29.033] GSD 3: setting frequency to 125.00MHz
 [2018-04-20 01:42:43.616] GSD 0: setting frequency to 150.00MHz
 [2018-04-20 01:42:43.802] GSD 1: setting frequency to 150.00MHz
 [2018-04-20 01:42:44.014] GSD 2: setting frequency to 150.00MHz
 [2018-04-20 01:42:44.203] GSD 3: setting frequency to 150.00MHz
 [2018-04-20 01:42:58.638] GSD 0: setting frequency to 175.00MHz
 [2018-04-20 01:42:58.829] GSD 1: setting frequency to 175.00MHz
 [2018-04-20 01:42:59.038] GSD 2: setting frequency to 175.00MHz
 [2018-04-20 01:42:59.225] GSD 3: setting frequency to 175.00MHz
 [2018-04-20 01:43:04.273] Pool 0 difficulty changed to 1638
 [2018-04-20 01:43:04.274] Stratum from pool 0 requested work restart
 [2018-04-20 01:43:13.659] GSD 0: setting frequency to 200.00MHz
 [2018-04-20 01:43:13.945] GSD 1: setting frequency to 200.00MHz
 [2018-04-20 01:43:14.092] GSD 2: setting frequency to 200.00MHz
 [2018-04-20 01:43:14.235] GSD 3: setting frequency to 200.00MHz
 [2018-04-20 01:43:28.725] GSD 0: setting frequency to 225.00MHz
 [2018-04-20 01:43:28.974] GSD 1: setting frequency to 225.00MHz
 [2018-04-20 01:43:29.121] GSD 2: setting frequency to 225.00MHz
 [2018-04-20 01:43:29.294] GSD 3: setting frequency to 225.00MHz
zac123
Newbie
*
Offline Offline

Activity: 91
Merit: 0


View Profile
April 29, 2018, 03:20:26 PM
 #1853

hello again everybody,

i've now decided to move my stick onto a rasp pi.

ive setup a cron job so that whenever the pi is rebooted a script called runMiner.sh is run. in my runMiner.sh file i have this:


Code:
#!/bin/bash

sudo /home/pi/git/vthoang/cgminer/cgminer -o stratum+tcp://eu.stratum.slushpool.com:3333 -u zbw123.worker1 -p x --gekko-2pac-freq 200

 i have also done this so that the terminal starts when the pi reboots


nano ~/.config/lxsession/LXDE-pi/autostart

Added this line to the end of the file:

@lxterminal

ok so i'm sure you guys are falling off your seat with laughter but basically all that happens is the terminal opens up but the miner doesnt start.

somehow i need to get the command into the terminal.

thanks for any help
zac
sidehack
Legendary
*
Online Online

Activity: 1876
Merit: 1258

Curmudgeonly hardware guy


View Profile
April 29, 2018, 04:26:23 PM
 #1854

Not sure if it's exactly what you're looking for, but if you scroll up the page just a bit there's quite a bit of discussion on cron jobs and startup scripts.

Got a new 28-135GH stick miner!
Currently in development - 100+GH USB stick; 800GH 60W pod; 6TH volt-adjustable S1/3/5 upgrade kit
Server PSU interface boards and cables. USB and small-scale miners. Hardware hosting, advice and odd-jobs. Supporting the home miner community since 2013 - http://www.gekkoscience.com
zac123
Newbie
*
Offline Offline

Activity: 91
Merit: 0


View Profile
April 29, 2018, 04:36:27 PM
 #1855

Not sure if it's exactly what you're looking for, but if you scroll up the page just a bit there's quite a bit of discussion on cron jobs and startup scripts.

Yeah thanks I tried to follow that exactly and got myself in a bit of mess and couldn't get it to work.
MGchild
Newbie
*
Offline Offline

Activity: 2
Merit: 0


View Profile
April 29, 2018, 07:14:16 PM
 #1856

hello again everybody,

i've now decided to move my stick onto a rasp pi.

ive setup a cron job so that whenever the pi is rebooted a script called runMiner.sh is run. in my runMiner.sh file i have this:


Code:
#!/bin/bash

sudo /home/pi/git/vthoang/cgminer/cgminer -o stratum+tcp://eu.stratum.slushpool.com:3333 -u zbw123.worker1 -p x --gekko-2pac-freq 200

 i have also done this so that the terminal starts when the pi reboots


nano ~/.config/lxsession/LXDE-pi/autostart

Added this line to the end of the file:

@lxterminal

ok so i'm sure you guys are falling off your seat with laughter but basically all that happens is the terminal opens up but the miner doesnt start.

somehow i need to get the command into the terminal.

thanks for any help
zac


Hello zac123, I think you are pretty close. You need to specify the path to the runMiner.sh after the @lxterminal command; on the same line.

zac123
Newbie
*
Offline Offline

Activity: 91
Merit: 0


View Profile
April 29, 2018, 07:26:32 PM
 #1857



Hello zac123, I think you are pretty close. You need to specify the path to the runMiner.sh after the @lxterminal command; on the same line.



hey MG thanks for the reply. was just about to type out my progress so far an then you posted this message.

i have just got it to work by doing the following:

show hidden files
open .bashrc
locate the very bottom and paste:

~/git/vthoang/cgminer/runMiner.sh

right click on runMiner.sh and allow anybody to run the file under permissions.

and hey presto it works.

ref: http://blog.startingelectronics.com/auto-start-a-desktop-application-on-the-rapberry-pi/

I will also try pasting the cmd after @lxterminal to confirm that as well.

now all i need to do is to have the rasp pi automatically reboot every so often and we're away!
zac123
Newbie
*
Offline Offline

Activity: 91
Merit: 0


View Profile
April 29, 2018, 07:41:56 PM
 #1858


hey MG thanks for the reply. was just about to type out my progress so far an then you posted this message.

i have just got it to work by doing the following:

show hidden files
open .bashrc
locate the very bottom and paste:

~/git/vthoang/cgminer/runMiner.sh

right click on runMiner.sh and allow anybody to run the file under permissions.

and hey presto it works.

ref: http://blog.startingelectronics.com/auto-start-a-desktop-application-on-the-rapberry-pi/

I will also try pasting the cmd after @lxterminal to confirm that as well.

now all i need to do is to have the rasp pi automatically reboot every so often and we're away!


slight problem with the above. it means i can open a separate terminal to do anything else. when i click to open another terminal window its runs the same script again and tries to start the miner. hmm
zac123
Newbie
*
Offline Offline

Activity: 91
Merit: 0


View Profile
April 29, 2018, 07:57:39 PM
 #1859



slight problem with the above. it means i can open a separate terminal to do anything else. when i click to open another terminal window its runs the same script again and tries to start the miner. hmm

your way is better

@lxterminal -e /path/to/script.sh

:-)
zac123
Newbie
*
Offline Offline

Activity: 91
Merit: 0


View Profile
May 02, 2018, 07:51:54 PM
 #1860

ok, calling any raspberry pi users!

i have the pi running cgminer, my sticks are at 200freq with no HW errors.

i found out very quickly that the pi crashes after not very long mining so i worked out a way (as above) to restart the miner to try and keep it fresh. like so:

so on the crontab i have:
Code:
pi@raspberrypi:~ $ crontab -l
*/59 * * * * sudo reboot

on the reboot i have in the autostart file:
Code:
@lxterminal -e /home/pi/git/vthoang/cgminer/runMiner.sh

and the script that is called looks like this:
Code:
#!/bin/bash

sudo /home/pi/git/vthoang/cgminer/cgminer -o stratum+tcp://eu.stratum.slushpool.com:3333 -u zbw123.worker1 -p x --gekko-2pac-freq 200

this all works bloomin lovely, i can sit and watch it reboot and the sticks start mining just as they should, excellent.

however, as soon as i turn my back.... like when i go to bed for example the pi crashes and cannot be accessed at all. the sticks are no longer flashing and there is only one option and that is to do a hard reset.

it doesn't make any difference if i reboot every few hours or every few minutes or if i mine with one stick or seven.

the sticks sit in a powered usb which can supply up to 2.1amp per port.

other people are doing what i'm doing successfully so it must be possible. i just need to get it setup right.

as always any help muchly appreciated.
zac
Pages: « 1 ... 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 [93] 94 95 96 97 98 99 100 101 102 103 104 105 »
  Print  
 
Jump to:  

Sponsored by , a Bitcoin-accepting VPN.
Powered by MySQL Powered by PHP Powered by SMF 1.1.19 | SMF © 2006-2009, Simple Machines Valid XHTML 1.0! Valid CSS!