This guide (v0.3) is using Raspberry Pi Model B and 2014-01-07-wheezy-raspbian flavor of Linux. If you already have your Pi running how you want, your may skip to step 5 for information specific to the dualminer cgminer build.
1. Begin with fresh install of 2014-01-07-wheezy-raspbian. Instructions here:
http://elinux.org/RPi_Easy_SD_Card_Setup2. Insert SD card into Pi, insert ethernet cable connected to your network, and insert power supply cable to boot up your Pi. If you only see a red light and no green flashing you probably messed up somewhere installing Raspbian to your SD card. Try it again.
3. SSH is enabled by default, so SSH into the Pi.
a. To SSH first you need the local IP of your Pi device. The easiest way for most is to go to your router's config page (usually 192.168.1.1 or 192.168.1.2 with default login usually admin/admin- just google your specific router to find this info).
Look for devices connected to your home network, locate device called 'raspberrypi' and note the IP address it had. Example:
https://i.imgur.com/tnQkxcw.jpg b. Once you have local ip, use PuTTY (
http://www.chiark.greenend.org.uk/~sgtatham/putty/download.html?) if running windows or your kernel if Linux to SSH to the IP belonging to your Pi.
Agree to the alert that will popup. Login with default credentials: username= pi password= raspberry
c.Change default login info for security if you wish. You can lookup these details yourself or I may add later if there is need.
d.Run the following commands after you have successfully logged in:
sudo aptitude update
sudo aptitude upgrade
sudo reboot
e.If you wish run the following command to expand filesystem, change language or hostname etc.
4. Originally in the guide I use tightvnc but I am going with another solution to free up CPU resources. We are going to disable X at startup (no GUI) and we are going to set SSH up to continue the process after we terminate the SSH session. To disable x ui run the following command:
Then select choose boot option like in the picture I provide and make sure graphical desktop is not enabled.
https://i.imgur.com/x1rsDkS.jpghttps://i.imgur.com/J3692nT.jpgNow we are ready to get a program to allow us to continue the cgminer process after ending the SSH session (thanks to demonmaestro for this advice). Run:
sudo apt-get install screen
5.Install dependencies for cgminer:
sudo aptitude install git autoconf libtool libcurl4-openssl-dev libncurses5-dev pkg-config yasm make libusb-1.0-0-dev libudev-dev
#all of these may not be completely necessary but it's what I used and it works
6.Grab dualminer cgminer code from git:
git clone git://github.com/dualminer/dualminer-cgminer.git cgminer
cd cgminer
sudo chmod +x autogen.sh
sudo chmod +x configure
./autogen.sh
./configure --enable-dualminer --enable-scrypt --disable-opencl --prefix=/home/pi/cgminer
#replace 'pi' with your username if step 3c taken.
7.Now your Pi is configured. It is time to plug in hardware and make sure it is done in the proper cycle. Also I highly recommend that before you attempt connecting large arrays you test your units, hubs, power supplies etc individually to eliminate problems.
If you are sure your hardware is all good plug in your hubs like in the diagram or however yours array. Remember to make sure the DMs are getting enough power from your hubs (check power supply of hubs to calculate if they can provide for your miners- there are many threads on this).
https://i.imgur.com/np9DJGO.jpgPower hubs on following the diagram. You will not have to do this every time you reboot, but it is still best to follow the cycle to eliminate problems.
Note: while the orico p10-u2 hubs should technically support 10 DMs per hub, I have only been able to find stability with 9 DMs per hub.
8.Login to a new SSH session with your user. Run
9.Run the following commands after creating a 'screen' to run cgminer in:
#where pi is your username from step 2c.
sudo ./cgminer --scrypt -o stratum+tcp://yourfavoritepool.com:3333 -u yourusername -p x
#replace 'yourfavoritepool.com:3333' and 'yourusername' with your pool/worker information
This should get you mining. Now you can press Ctrl+A then Ctrl+D to close your screen and then you may end you SSH session to continue mining after you power off your computer. To reopen your cgminer process, simply run:
Please let me know if I have left out anything crucial. I have been running this setup for over a week with 99 DMs.
https://i.imgur.com/7QJS8yA.jpghttps://i.imgur.com/CEPbINT.jpg-CruzCoins
If this was helpful, please consider donating to the
Litecoin Core Development Fund 2014: LcUP7ZU3Xpk1BUR3qut3dTjC3aK5JoZMYx