Post
Topic
Board Hardware
Re: [ANN] Introduction to DualMiner USB (could mine both BTC and LTC)
by
ryannguyen18
on 26/02/2014, 04:42:04 UTC
This guide (v0.1) is using Raspberry Pi Model B and 2014-01-07-wheezy-raspbian flavor of Linux.

1. Begin with fresh install of 2014-01-07-wheezy-raspbian. Instructions here: http://elinux.org/RPi_Easy_SD_Card_Setup

2. 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: http://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.
     >sudo raspi-config

4. I've been using tightvnc but you can use other options or just SSH. To install the following commands:
    >sudo aptitude install tightvncserver
    >tightvncserver
   Create a password for yourself
   To make vnc start at startup run
    >sudo nano /etc/rc.local
   Add 'sudo -u pi /usr/bin/vncserver :0 -geometry 1280x800 -depth 16 -dpi 100'  without quotes before the line 'exit 0' and replace 'pi' with your username, if step 2c is done.
   Save rc.local file.

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
  >./autogen.sh
  >./configure --enable-dualminer --enable-scrypt --disable-opencl  --prefix=/home/pi/cgminer  
   #replace 'pi' with your username if step 2c taken.
  >make && make install

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).
http://i.imgur.com/dAWzqhj.jpg
Power 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.If using tightvnc install it on your computer and connect to your Pi with it's local IP from step 3a and password from step 4 (this is not necessary, feel free to use ssh only).

9.Open a terminal if you used vnc to connect to your Raspbian's GUI or begin an SSH session. Run the following commands after gaining access to your Pi:  
  >cd /home/pi/cgminer  
      #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. Please let me know if I have left anything crucial out. I have been running this setup for over 24 hours with 99 DMs.
http://i.imgur.com/7QJS8yA.jpg


-CruzCoins

Donations for continued support/troubleshooting: 1K39hmfLN2CJyXXWcvNtkW9pNA5VJe15Su


in step 4, how I install tightvncserver on raspberry pi ? Copy it to usb or sd....if you can make youtube video...thanks