Here we go:
This instructions may are only usable on a Debian system. Raspbian would work just fine. You may know some parts of what I'm describing here already. I dont want to offend you. Just pick the info you need.
I'm not using Minera or other webinterfaces, just cgminer itself. Bfgminer should work too. Maybe there are some different starting parameters... For connecting to the individual cgminer-screens, I'm using a software called 'screen'. You will find info about screen on Google. I set up all cgminer commands I want to use as aliases.
First, install screen:
sudo apt-get install screen
Second, create all aliases:
Open the file
~/.bashrc, insert your aliases and specify all the start parameters. My file looks like this:
alias cgminer-start-g1="cd /opt/cgminer-gekko && sudo screen -dmS cgminer-g1 ./cgminer --usb 1:4 --compac-freq 162.5 -o stratum+tcp://de.ckpool.org:3333 -u 1LF2fmvVCbUV3WqXagf8RMzZHmEUvyfPwH_G1 -p 1234"
[...Removed miner 2 to 5 for better clarity...]
alias cgminer-start-g6="cd /opt/cgminer-gekko && sudo screen -dmS cgminer-g6 ./cgminer --usb 1:9 --compac-freq 162.5 -o stratum+tcp://de.ckpool.org:3333 -u 1LF2fmvVCbUV3WqXagf8RMzZHmEUvyfPwH_G6 -p 1234 "
These aliases will start a cgminer instance with the specified USB devices (--usb parameter) and set up a screen session. Change the BTC address to one of your own addresses!
Here you have a list in post #1 with the possible frequency rates:
https://bitcointalk.org/index.php?topic=1173963.0Blue: | Alias name |
Brown: | Path to cgminer binary |
Red: | Screen name |
--usb | Device selection |
Green: | Worker extension |
You can print a list of all devices if you start cgminer (with no --usb parameter selected, so that every connected device is used) an press the key 'U', then 'L'.
Now insert all screen aliases to ~/.bashrc:
alias cgminer-g1="screen -x cgminer-g1"
alias cgminer-g2="screen -x cgminer-g2"
alias cgminer-g3="screen -x cgminer-g3"
alias cgminer-g4="screen -x cgminer-g4"
alias cgminer-g5="screen -x cgminer-g5"
alias cgminer-g6="screen -x cgminer-g6"
As before, blue is the alias name and red the screen name.
Save the file, exit the text editor and execute the following command to reload all aliases:
source ~/.bashrc
Third, start it!
Starting a specific cgminer instance: cgminer-start-g1
Connecting to the screen a specific cgminer instance:cgminer-g1
Important notes about screen: If you are watching a process over screen, don't press CTRL + C to exit or 'screen' will pass the key combination to cgminer and it will stop to mine instead of leaving the screen session. Always detach safely from a screen session with the key cobination CTRL + A and then CTRL + D.
Also, don't connect to a started screen immediately. After you started a cgminer instance just wait 10 to 20 seconds before connecting to the screen session. Cgminer has to be startet and initialized completely, otherwise it may crash or freeze.
Feel free to leave your questions. If someone has a more elegant way to do this, please drop a post!
Please consider that I'm not a Linux expert
Edit: Typos
Edit 2: Link to config source:
http://pastie.org/10816473