Tuesday, September 3, 2013

Linux butterflylabs + cgminer !

Finally, I received my first order of a butterfly labs miner (little single)!!! Woohoo! This device is 30GH/s and depending on which pool you connect to, you will not do 30GH/s !  At 30GH/s the device needs 130W, at 10GH/s it needs 60W.

As you can see in my other post, my preferred mining pool is bitcoinpool. But their hashing rate is very low. As for now, they did not solve a block for few month. I also like deepbit.net. Their hashing rate is nice (1-2 block/day) but I only get 10GH/s. So I switched to btcguild.com. It is the biggest pool, there I can get 30GH/s!

Now here are the steps to configure cgminer (on kubuntu linux) to work with this device !



$sudo apt-get install libcurl4-openssl-dev git-core subversion build-essential libusb-dev libudev vim libncurses5-dev pkg-config automake yasm openssh-server openssh-client

note: if you also want to use little usb blockerupter only add "--enable-ica" after enabling bflsc

$cd
$mkdir bitcoin
$cd bitcoin
$git git://github.com/ckolivas/cgminer.git cgminer
of git pull (in the cgminer folder) if you already use cgminer
$cd cgminer
$./autogen.sh
$CFLAGS="-O2 -Wall -march=native"  LDFLAGS="-L/opt/AMDAPP/lib/x86_64" ./configure --enable-bflsc

if you are using small usb blockerupters, add --enable-icarus at the end

$make
$make install

cgminer will connect directly to the device, your user need to have access to the device, so your user need to be in the plugdev group.


$sudo usermod -G plugdev -a bitcoin
where bitcoin is your user


$cp 01-cgminer.rules /etc/udev/rules.d/

you have to reboot your computer (or restart udev and logout)

The command line should look like :
$cd ~/bitcoin/cgminer
$./cgminer -o server:port --userpass user:password

note: if you want to have a different worker for your different hardware, you can run multiple instance of cgminer. To do so you need to tell to cgminer to use which hardware. For me, I want to have one worker for my bfl and an other one for my block erupter. So when calling cgminer I have to add :  --usb BAS:10,ICA:0 this tells cgminer to load all bfl labs (up to 10) and load 0 block erupter.

Enjoy your new hardware ! :-)

Tuesday, August 27, 2013

Asic bitcoin mining!

Here we are, the asic mining is bringing up the difficulty, and GPU mining is no longer valuable.

My first butterfly labs little single is in route ! Finally ! but stuck at the border ...

I am waiting for the preorder of a few single sc.  Few guys are asking if the value of these box is as great as is was 1 year ago when we placed our order.  It is true that the difficulty level has raised a lot and with butterfly labs that promise 600 GH/S cards their first asic hardware will be deprecated very fast.

I don't know how to think about that. I've paid my asic miner with money from bitcoins, so it is a good investment, but for people having to pay with "real" money is this a good investment ? I would like to hear your opinion on this.

Also, I would like to know how you manage your gains in bitcoin ? Are you keeping everything in your wallet, or you cash few % and reinvest another % ?  Me, when the value of the bitcoin was around 300$ I sold everything I've had and sold all of my gpu (my electricity bill dropped from 300$/Month to 80$ :-). With that new hardware, I guess I will reinvest 50%, cash 25% (to pay electricity bill) and keep 25% for the future. Do you think it is a good plan ?

Anyway, when I will be able to put my hand on this package I will update this blog to explain how to configure your hardware to be up and running as fast as possible and, hopefully, get rich !

If you think this blog helped you out to configure your system, consider sending me a contribution to say thank you ! Even more, if you are from canada, INGdirect offer you 25$ (and I will also get 25$) if you open an account (with a minimum deposit of 100$).  My main account is at INGdirect and I like this bank. When I transfer money to my account in another bank it is very fast, and for the credit card billing, the payment is done in less than 24h. Also, they offer interest in their chequing account ! and there is no fee !  You can use the automatic ATM from other bank most of the transaction are free ! Yesterday I have seen a TV ad explaining they now offer online chequing deposit ! Yes, you take a picture of the cheque and it will be depositted in your account ! If you do open an account, use my orange key : 14927138S1 !


Saturday, May 11, 2013

update: ubuntu 11.04/12.04/12.10/13.04 x86_64 dedicated crypto currency (bitcoin, i0coins, solidcoins, namecoins, ixcoins) mining rig using ATI RADEON GPU and CGMINER

I decided to create a cleaner look post. Also, this tutorial is for the latest *buntu releases and will target only cgminer as mining software.

If this tutorial helps you to start mining, please consider giving a small % of your gains to my wallet : 13sRUwHbmv5ewLjQkKabDTsyPQEDD4v6mx . You know, this blog has over 90 000 page views, and no one ever said thank you for my time.  At least, press on one adsense publicity to help me maintaining this blog.  Thank you



  1. To mine you will need :
    1. A computer with a very good power supply (850W to 1200W) 80+ gold is a plus..
    2. You don't need a case, the graphics cards will become very hot, they need a very good air flow around them to cool down, be creative :-)..
    3. If you think to use more than 2 cards in your computer, be sure to use external power on the riser cards, else your motherboard connector could melt (I know, it happend to me on a 3 GPU cards computer)
    4. Linux *buntu CD version 13.04 ( I like kubuntu more than the other )
    5. AMD Catalyst driver ( from AMD ) : version 13.04
    6. AMD APP, open cl driver ( from AMD ) : version 2.8 
    7. If you want CGMINER to control the GPU/MEM/FAN speed and other hardware parameter, you will need ADL_SDK : version 5.0  


  2. Here is some advice on the choice of your computer :
    1. Don't put more memory than needed, 1GB is more than needed
    2. Try to use a USB KEY or 2.5" hard disk drive to use less energy
    3. Use the smallest CPU possible, try to get old 60W CPU or less, mining does not require a lot of CPU power to run well
    4. Remove the CD/DVD player, this computer is not a desktop, it is only used to mine
    5. The computer will produce heat, a lot of heat will be produced and will be probably noisy, very noisy. 


  3. Little note, in this tutorial, when you see " $ " it means you have to write something in the terminal prompt. If you have comment or suggestions, please be free to leave a comment, it is always a pleasure to update this tutorial.
  4. Here we start! You will need to add the following packages
    1. open a terminal and type :
    2. $ sudo apt-get install vim subversion git-core libcurl4-openssl-dev libncurses5-dev pkg-config automake yasm openssh-server openssh-client build-essential


  5. Install AMD Catalyst
    1. Here, be carefull, there is 2 way to do it, from my experience, up to version 12.04 (no update applied) you can install the driver, but for earlier version, you have to create and then install the package 
    2. open a terminal and type:
    3. $ cd ~/Downloads
    4. $ mkdir amd-driver-13.04
    5. $ cd amd-driver-13.04
    6. $ unzip ../amd-driver-installer-13.04-x86_64.zip
    7. $ chmod +x amd-driver-installer-13.04-x86_64.run
    8. $ sudo ./amd-driver-installer-13.04-x86_64.run
      1. Select install driver (< 12.04) or create a package (>=12.04)
      2. say yes to the licence and choose automatic
    9. If you used the package, you will have to install the driver, with the file explorer double click on the created package and install. Hopefully it will work (it worked nicely for me)
    10. If you have more than one card :
      1. $ echo 'export display=:0' >> ~/.bashrc
    11. Initialize the driver
      1. $ sudo aticonfig --initial --adapter=all
    12. reboot the computer
      1. $ aticonfig --odgc --adapter=all
        1. you should see the clocking of your GPU
        2.  


  6. Install AMD_APP (OpenCL Driver)
    1. $ cd ~/Downloads
    2. $ mkdir AMD_APP_2.8
    3. $ cd AMD_APP_2.8
    4. $ tar -zxvf ../AMD-APP-SDK-v2.8-lnx64.tgz
    5. $ sudo ./Install-AMD-APP.sh
    6. reboot


  7. cgminer installation !
    1. $ mkdir ~/bitcoin/
    2. $ cd ~/bitcoin
    3. $ git git://github.com/ckolivas/cgminer.git cgminer
    4. $ cd cgminer
    5. $ cd ~/Downloads
    6. $ mkdir ADL_SDK_5
    7. $ cd ADL_SDK_5
    8. $ unzip ../ADL_SDK_5.0.zip
    9. $ cp include/* ~/bitcoin/cgminer/ADL_SDK
    10. $ cd ~/bitcoin/cgminer
    11. $ ./autogen.sh
    12. $ CFLAGS="-O2 -Wall -march=native -I /opt/AMDAPP/include/" LDFLAGS="-L/opt/AMDAPP/lib/x86_64" ./configure
    13. $  make
    14. The following command should tell you the number of gpu core present on your computer
      1. $ ./cgminer -n


  8. Now you need to find a good mining pool. I like deepbit and bitcoinpool, but there is a lot of other pool, you will have to select one that fit your needs.
Good luck mining :-)