[Tutorial] Installing cgminer on the UDOO

Discussion in 'Linux Ubuntu' started by bugmenot, Nov 17, 2013.

  1. bugmenot

    bugmenot New Member

    Joined:
    Aug 7, 2013
    Messages:
    9
    Likes Received:
    0
    Here's how I finally got cgminer to work on UDOO, might be of use to others...

    Optional: Use nano to add sources, it's tons easier than vi! And get screen simply because it's awesome.
    Step 1 - Get more repos, we'll need them:
    Code:
    sudo nano /etc/apt/sources.list
    Code:
    deb http://ports.ubuntu.com/ oneiric main restricted universe multiverse
    deb http://ports.ubuntu.com/ oneiric-backports main multiverse restricted universe
    deb http://ports.ubuntu.com/ oneiric-security main restricted universe multiverse
    deb http://ports.ubuntu.com/ oneiric-updates main restricted universe multiverse
    
    Now update with new repos....
    Code:
    sudo apt-get update
    Step 2 - Get latest version of curl, the one in the repos is so old it's useless...
    Code:
    wget http://curl.haxx.se/download/curl-7.33.0.tar.gz
    tar -xzf curl-7.33.0.tar.gz
    cd curl-7.33.0
    ./configure
    make
    sudo make install
    Step 4 - Now install cgminer dependencies, clone it and configure it and compile it
    Code:
    sudo apt-get install libudev-dev libusb-dev libncurses5-dev pkg-config libtool autoconf automake
    git clone https://github.com/ckolivas/cgminer.git
    cd cgminer
    ./autogen.sh
    ./configure --enable-avalon --enable-bflsc --enable-bitforce --enable-bitfury --enable-hashfast --enable-icarus --enable-knc --enable-bab --enable-klondike --enable-modminer
    make
    sudo make install
    Make sure user can use usb devices -
    Code:
    sudo usermod -G plugdev -a ubuntu
    Run cgminer...
    Code:
    cgminer --help 
    Useful Example of screen:
    Code:
    sudo screen cgminer -o "127.0.0.1:8332" -u username -p password
    Ctrl+A
    Ctrl+D (now you can leave it running peacefully in the background on a screen!)
    screen -r (pulls screen back up whenever you need)
    ??? Done! :mrgreen:
     
  2. delba

    delba Administrator Staff Member

    Joined:
    May 8, 2013
    Messages:
    1,064
    Likes Received:
    9
    bugmenot,

    That's great news. I'm going to install it right now!!!!! Thanks :D
     
  3. delba

    delba Administrator Staff Member

    Joined:
    May 8, 2013
    Messages:
    1,064
    Likes Received:
    9
    bugmenot,
    i followed your guide but i wasn't able to install cgminer. At the end of step 4, after compiling the cgminer dependencies and trying to install them with "sudo make install", i get this error:

    Code:
    libtool: Version mismatch error.  This is libtool 2.4.2 Debian-2.4.2-1.3, but the
    libtool: definition of this LT_INIT comes from libtool 2.4.
    libtool: You should recreate aclocal.m4 with macros from libtool 2.4.2 Debian-2.4.2-1.3
    libtool: and run autoconf again.
    make[1]: *** [cgminer] Error 63
    make[1]: Leaving directory `/home/ubuntu/curl-7.33.0/cgminer'
    make: *** [install-recursive] Error 1
    
    Can you help me with this?

    Cheers
     

Share This Page