Searing
Copper Member
Legendary
Offline
Activity: 2898
Merit: 1465
Clueless!
|
|
December 05, 2019, 05:02:22 AM Last edit: December 05, 2019, 08:30:04 PM by Searing |
|
I'm finally going to get around to putting this up. I got the beginning of this in around March? sheesh. (had remodeling house projects...don't throw stuff at me in Bitcointalk!) Anyway, the directions from in the box say that this is the install I should use on this thread. https://bitcointalk.org/index.php?topic=5053833.msg50506833#msg50506833but that link is only like 1/2 way through the thread from back in 4/8/19. So I suspect there is a better link than this one by this time? I mean my box has one older than this! So the question is: "Is there a more current post on this thread I should use instead?" As for what I'm gonna try to run this on/thru it is a Compaq Evo N800v Laptop running the the latest version of Lubuntu. (Unbuntu Light Version, whatever the latest version is of Lunbuntu, that is). I have 'little' experience, from like 2014 or so, so use 'small words'. by the by, don't care about the Laptop above power use, I just use it to watch 24/7 anyway, as I did for the KNC Titan's back in the day. thanks Brad (I really, really, need to start a procrastinator club, big time, I'd be a God!) edit: running the R606 (have not even unpacked it yet)
|
Old Style Legacy Plug & Play BBS System. Get it from www.synchro.net. Updated 1/1/2021. It also works with Windows 10 and likely 11 and allows 16 bit DOS game doors on the same Win 10 Machine in Multi-Node! Five Minute Install! Look it over it uninstalls just as fast, if you simply want to look it over. Freeware! Full BBS System! It is a frigging hoot!:)
|
|
|
MoparMiningLLC
aka Stryfe
Legendary
Offline
Activity: 2254
Merit: 2419
EIN: 82-3893490
|
|
December 05, 2019, 05:25:11 AM Last edit: December 05, 2019, 10:26:31 AM by frodocooper |
|
which one are you running? the newpac? or the terminus? here is one of the scripts for my terminus, I have a few, each for different pools cgminer.exe -o stratum+tcp://solo.ckpool.org:3333 -u <btc address> -p x --api-listen --api-allow W:0/0 --gekko-r606-freq 750
|
|
|
|
zsmith
Member
Offline
Activity: 142
Merit: 60
|
|
December 05, 2019, 05:51:30 PM Last edit: December 07, 2019, 03:42:34 AM by frodocooper Merited by frodocooper (3) |
|
I've tried sudo crontab -e then entered before exit 0: 0 */12 * * * /home/pi/git/vthoang/cgminer/x1R606b.sh
This is for a continual 12hr reboot but doesn't work. Am I missing more code? Try this to see if it reboots. It might be your script or a file permission issue. If you just want to restart the miner and not the whole system, you can use this script here: https://bitcointalk.org/index.php?topic=5053833.msg48475209#msg48475209
|
|
|
|
Searing
Copper Member
Legendary
Offline
Activity: 2898
Merit: 1465
Clueless!
|
|
December 05, 2019, 08:31:54 PM Last edit: December 07, 2019, 03:43:14 AM by frodocooper |
|
which one are you running? the newpac? or the terminus?
edit: running the R606 (have not even unpacked it yet) So I need the complete instructions from downloading the cgminer to whatever if that is needed. I assume I can get that part from the front page of this thread at least?
|
Old Style Legacy Plug & Play BBS System. Get it from www.synchro.net. Updated 1/1/2021. It also works with Windows 10 and likely 11 and allows 16 bit DOS game doors on the same Win 10 Machine in Multi-Node! Five Minute Install! Look it over it uninstalls just as fast, if you simply want to look it over. Freeware! Full BBS System! It is a frigging hoot!:)
|
|
|
MoparMiningLLC
aka Stryfe
Legendary
Offline
Activity: 2254
Merit: 2419
EIN: 82-3893490
|
|
December 06, 2019, 02:15:44 AM Last edit: December 07, 2019, 03:43:27 AM by frodocooper |
|
yes - the first post will have the instructions you need - I have not done a linux install but I would assume everything you need is there.
|
|
|
|
Searing
Copper Member
Legendary
Offline
Activity: 2898
Merit: 1465
Clueless!
|
|
December 06, 2019, 09:08:26 PM Last edit: December 07, 2019, 03:43:57 AM by frodocooper |
|
Ok thanks, probably should have just contacted the OP but saw a mess of stuff as updated in the thread and have been caught in the loop of using 1st page on installs before and then having to do a complete do-over. I am going to do Linux due to the fact of the many free NEVER to be upgradeable past Windows XP laptops I have..but on that note everything, including cgminer better be sudo apt install for newbies..in that I MAYBE can follow monkey see monkey do type in as on the page anything breaks beyond that I'm screwed..that is my level of unbuntu knowledge thanks Brad
|
Old Style Legacy Plug & Play BBS System. Get it from www.synchro.net. Updated 1/1/2021. It also works with Windows 10 and likely 11 and allows 16 bit DOS game doors on the same Win 10 Machine in Multi-Node! Five Minute Install! Look it over it uninstalls just as fast, if you simply want to look it over. Freeware! Full BBS System! It is a frigging hoot!:)
|
|
|
MoparMiningLLC
aka Stryfe
Legendary
Offline
Activity: 2254
Merit: 2419
EIN: 82-3893490
|
|
December 07, 2019, 12:46:12 AM Last edit: December 07, 2019, 03:44:15 AM by frodocooper |
|
there are quite a few here who have done linux installs - I plan to get a pi eventually but I only have one terminus and it seems silly to buy a pi just for that one. maybe if i get more of them.
|
|
|
|
sidehack
Legendary
Offline
Activity: 3402
Merit: 1864
Curmudgeonly hardware guy
|
|
December 07, 2019, 03:06:43 AM |
|
Running on Linux is pretty easy. I've set up enough testing stations that, except for the dependency list, I have just about every other step memorized. The only trick to it is making sure you don't put a zero where a capital O should be in the one line.
|
|
|
|
Cohenpol
Newbie
Offline
Activity: 27
Merit: 30
|
|
December 07, 2019, 05:27:26 PM Last edit: December 09, 2019, 03:45:24 AM by frodocooper |
|
Save this code as mine.sh, edit the line starting with lxterminal with the full path to your cgminer folder and then put in the commands you usually use for your pool, mark as an executing program and run. It goes in a loop so to exit, just use control C... #!/bin/sh echo "Restarting cgminer every 6 hours" while true do lxterminal -e "/home/USERNAME/cgminer/cgminer -o POOL_URL -u USER -p PW --suggest-diff 128" sleep 21600 pkill -f cgminer echo "Restarting cgminer..." sleep 4 done
Hi zsmith and all When you say "save this code as mine.sh" , do you mean opening a text file then saving it as mine.sh in my cgminer folder? e.g. /home/pi/git/vtoang/cgminer/mine.sh? Can I run a similar file for more instances such as mine2.sh and mine3.sh? I run more than one instance for different R606' and Newpac's. What would be the script to reboot the Pi4 weekly (e.g. 0100hrs every Monday) then to reboot each cgminer .sh file every 24hrs? Does running the auto-reboot script commence from executing the .sh file and how would that conflict with the Pi4 reboot timing per week? Would sleep 86400 = 24hrs? Whats the sleep 4 at the end for? Thank you in advance from a novice although I've loved this project build. I can see the end in sight and all I need is to programme the Pi4's and miners to refresh on command
|
|
|
|
gt_addict
|
|
December 07, 2019, 05:31:14 PM |
|
Just out of curiosity, why do you need them to reset at specific intervals?
|
**SUPPORT SIDEHACK** Miner Development Donations to: 1BURGERAXHH6Yi6LRybRJK7ybEm5m5HwTr
Donations/Tips to:- 1GTADDicTXD1uachKKgW24DZDxDGhSMdRa
Join Bitconnect: https://bitconnect.co/?ref=gtaddict
|
|
|
Cohenpol
Newbie
Offline
Activity: 27
Merit: 30
|
|
December 07, 2019, 09:11:48 PM Last edit: December 09, 2019, 03:45:49 AM by frodocooper |
|
Hi GT, I may have caused slight confusion. I would like to programme a weekly reboot of the Pis and a daily/36hr reboot of cgminer. My set-up is away from home and I can't SSH into it with my USB broadband dongle. Therefore, refreshing the devices at those intervals was my plan of running stable I've tried /etc/rc.local and crontab -e scripts but it seems I have permission/path issues that I haven't bottomed out yet as nothing happens after a sudo reboot.
|
|
|
|
zsmith
Member
Offline
Activity: 142
Merit: 60
|
|
December 08, 2019, 04:54:18 PM Last edit: December 09, 2019, 03:47:25 AM by frodocooper Merited by frodocooper (4) |
|
When you say "save this code as mine.sh" , do you mean opening a text file then saving it as mine.sh in my cgminer folder? e.g. /home/pi/git/vtoang/cgminer/mine.sh?
Yes open your text editor and save it as mine.sh. You can put it in any folder, just home folder is easiest. You also have to mark it as an executing file. You can do it through the GUI by right clicking on file, select properties, then the permissions tab and check the box for executing. Can I run a similar file for more instances such as mine2.sh and mine3.sh? I run more than one instance for different R606' and Newpac's.
I would just add an additional line for each instance to your script and just run the one script. What would be the script to reboot the Pi4 weekly (e.g. 0100hrs every Monday) then to reboot each cgminer .sh file every 24hrs?
I would use crontab for the weekly reboot, this is what it is made for. Then add this as last line Does running the auto-reboot script commence from executing the .sh file and how would that conflict with the Pi4 reboot timing per week?
It won't conflict. The script just waits for a certain amount of seconds to have gone by. Would sleep 86400 = 24hrs?
Yes, it is in seconds. Whats the sleep 4 at the end for?
Just to give it some time to shutdown the first instance, so there is no conflict.
|
|
|
|
Cohenpol
Newbie
Offline
Activity: 27
Merit: 30
|
|
December 10, 2019, 09:59:43 PM Merited by frodocooper (3) |
|
Hi zsmith and all I wonder if you can help again before I headbutt my keyboard I must be doing something wrong or have a script/permission issue. My saved mine.sh text file reads as this: #!/bin/sh echo "Restarting cgminer every 24 hours" while true do lxterminal -e "/home/pi/git/vthoang/cgminer -o stratum+tcp://de.ckpool.org:3333 -u myusername -p mypassword --gekko-r606-freq 750 --widescreen" sleep 86400 pkill -f cgminer echo "Restarting cgminer..." sleep 4 done
I changed the file permission as 'only owner' and played around with all sorts of commands from page 7 and 66. No lines of code seem to work in either: or These commands don't work in crontab -e: @reboot ( /bin/sleep 30; /bin/bash /home/pi/git/vthoang/cgminer/x1R606b.sh >> /home/pi/cronjoblog 2>&1
or 01/12 * * * /bin/bash /home/pi/git/vthoang/cgminer/x1R606b.sh >> /home/pi/cronjoblog 2>&1
Once I save/exit out of crontab, it does say a new crontab instruction has been saved but nothing auto-starts from the GUI desktop after a test reboot. I've read up and watched online videos that make it seem so easy and makes me wonder if there's a root, path, permission or script problem? I'm using noobs/raspbian and recent to this phase of the project, I carried out a: sudo apt-get update && sudo apt-get -y full-upgrade
Would this 'full-upgrade' instead of just the normal 'upgrade' have caused an effect and is there a way to revert versions if this is part of the issue? I'm happy enough running 24/7 with no issues but really want to nail this last phase in-case of power, network and zombie problems when afk. Thanks in advance
|
|
|
|
zsmith
Member
Offline
Activity: 142
Merit: 60
|
|
December 11, 2019, 01:09:46 AM Merited by frodocooper (3) |
|
These commands don't work in crontab -e: @reboot ( /bin/sleep 30; /bin/bash /home/pi/git/vthoang/cgminer/x1R606b.sh >> /home/pi/cronjoblog 2>&1
or 01/12 * * * /bin/bash /home/pi/git/vthoang/cgminer/x1R606b.sh >> /home/pi/cronjoblog 2>&1
Once I save/exit out of crontab, it does say a new crontab instruction has been saved but nothing auto-starts from the GUI desktop after a test reboot. I've read up and watched online videos that make it seem so easy and makes me wonder if there's a root, path, permission or script problem? First check to see if cgminer is actually running in the background. If not, check to see if crond is even running. If cgminer isn't running and crond is, make sure you have a blank line at the end of your crontab, hit return after your last line of code. If it's still not working, check what the log at /home/pi/cronjoblog says?
|
|
|
|
Cohenpol
Newbie
Offline
Activity: 27
Merit: 30
|
|
December 11, 2019, 08:39:22 PM Last edit: December 12, 2019, 10:52:30 AM by frodocooper |
|
I have these results: pi@raspberrypi:~ $ ps -ef | grep cgminer pi 1279 640 0 Dec10 ? 00:05:42 x-terminal-emulator -e /home/pi/git/vthoang/cgminer/x1R606b.sh pi 1285 1279 0 Dec10 pts/1 00:00:00 /bin/sh /home/pi/git/vthoang/cgminer/x1R606b.sh pi 1286 1285 22 Dec10 pts/1 05:09:33 ./cgminer -o stratum+tcp://de.ckpool.org:3333 -u myusername -p mypassword --gekko-r606-freq 750 --widescreen pi 9652 9575 0 20:26 pts/0 00:00:00 grep --color=auto cgminer
pi@raspberrypi:~ $ ps -ef | grep cron root 349 1 0 Dec10 ? 00:00:00 /usr/sbin/cron -f pi 9753 9575 0 20:26 pts/0 00:00:00 grep --color=auto cron
/home/pi/cronjoblog = bash: Desktop: command not found
Does this help?
|
|
|
|
zsmith
Member
Offline
Activity: 142
Merit: 60
|
|
December 12, 2019, 01:13:35 AM |
|
Yes, it helps. Your Cron is running and so is the script and the cgminer in the background. Watch your pool, you should be submitting shares.
It should be working but if not post the results from "cat /home/pi/cronjoblog".
|
|
|
|
frieD195
Newbie
Offline
Activity: 3
Merit: 0
|
|
December 13, 2019, 03:25:07 AM Last edit: December 13, 2019, 11:56:06 AM by frodocooper |
|
I have an interesting problem. Up until this past Sunday, I was getting almost 1.1TH/s with eight Newpacs on a Sipolar 20-port, 200W, 40Amp, USB 3.0 hub. I know all of my Newpacs are getting the power they need. I even have 4 fans blowing on them at all times when operating. Specifically, I have three 140mm fans and one desktop USB speed-adjustable fan. Two of the 140's are blowing down from above and the third is 'exhausting' warm air to the side. The desktop USB fan is pointed directly at the front of my setup at max speed. As of now, as shown by the pic below, even setting it at 100MHz still results in "missing nonces from chip[0]" errors and automatic ASIC Plateau adjustments to well below what I set the frequency at. Oddly enough, I seem to only encounter this behavior with my Newpacs on Slushpool stratums and no where else. I've switched to a few different Slushpool stratums and nothing helps. This is especially wierd since I have a used Antminer S9 hashing away with no issues on the US-East Slushpool stratum, even with the "Hashrate+2.0THs" option enabled. Temps hover between 69C on the hottest board and 67C on the coolest one. https://imgur.com/a/FI85oC8https://imgur.com/a/zqiWO4MAnd below is the current operational behavior on that Bitcoin.com pool (normal behavior for my Newpacs, might bump them back up to 600 or even 650 later): https://imgur.com/a/FVOTeUZI'd ultimately like to go back to Slushpool, but if its going to treat my precious babies like crap, then no more Slushpool for me! Any recommendations for auto-profit switching SHA256 pools would also be appreciated.
|
|
|
|
MoparMiningLLC
aka Stryfe
Legendary
Offline
Activity: 2254
Merit: 2419
EIN: 82-3893490
|
|
December 13, 2019, 04:18:30 AM Last edit: December 13, 2019, 11:56:29 AM by frodocooper |
|
try poolin.com.
|
|
|
|
WilcoWi
Member
Offline
Activity: 88
Merit: 85
|
|
December 16, 2019, 07:08:09 PM Last edit: December 17, 2019, 01:16:04 AM by frodocooper |
|
[...]
i am using https://www.mining-dutch.nl, tried many pools. but best results i get here with newpacs.
|
|
|
|
gt_addict
|
|
December 17, 2019, 07:11:48 AM Last edit: December 17, 2019, 11:29:43 AM by frodocooper |
|
Whats your profits like? How many newpacs have you got running on the pool and do you use cgminer or there software?
|
**SUPPORT SIDEHACK** Miner Development Donations to: 1BURGERAXHH6Yi6LRybRJK7ybEm5m5HwTr
Donations/Tips to:- 1GTADDicTXD1uachKKgW24DZDxDGhSMdRa
Join Bitconnect: https://bitconnect.co/?ref=gtaddict
|
|
|
|