Post
Topic
Board Hardware
Merits 5 from 1 user
Re: GekkoScience NewPac Stickminer Official Support Thread
by
dfib
on 14/04/2019, 12:42:16 UTC
⭐ Merited by frodocooper (5)
In connection with this, I would like to ask some n00b questions.
1st. What version of the Raspbian should I use?
2nd. Where do you save the run.sh?
3rd. How can you make the run.sh run at startup?
4th. How do you supervise your PI's?

1. I'm currently running Raspian Stretch 9.8 with no issues.

2. You will likely want to save the run.sh file in the same folder as cgminer.

Another way to approach the issue, is  to run cgminer with the initial command line arguments, then use "s" > "w" ("Y" if asked to confirm overwrite) to write a config file.

Open another command prompt and (assuming you have a default instalation) navigate to and edit the config file with:

Code:
sudo su
cd /home/pi/.cgminer
nano cgminer.conf

You can now edit the cgminer config file.

Once you have it edited as desired, exit and save the cgminer.conf file with ctrl+x.

Now you can restart cgminer with "./cgminer" in the original window that cgminer was running in, and it will run with the updated config file settings. If you are switching settings often (maybe manually trying to hone in on a frequency) just leave the second command prompt window open so you can use one window for running cgminer and one for editing cgminer.conf.

3. I'll defer to someone else on this one, I'm just learning linux... (edit: This tutorial may have what you want for a cgminer auto run at start: https://bitcointalk.org/index.php?topic=233392.0).

4. For remote access I use VNC viewer.  You do have to sign up for a free account, but it's an easy process to get up and running. https://learn.sparkfun.com/tutorials/how-to-use-remote-desktop-on-the-raspberry-pi-with-vnc/all.

Hope that helps a bit.