CGMiner on Raspberry Pi

raspberry-cgiminerI really don’t know but a few simple Unix commands so it was a painful process, but here are the steps and links I took to make it happen.

First I grabbed an 8gb SD card and copied the NOOB Setup files as described at Apparently you can actually by an SD card with NOOB installed, but it is by far the easiest step so if you get stuck here, give up. You really are just downloading files and copying them to the card. I did have to download the SD formatter utility mentioned in the article after trying first without formatting the card. It was free and easy, just took a couple of minutes. I chose the Raspbian distribution.

I first tried plugging it into a television using a standard composite video cable but got nothing. Turns out, you have to hit 1, 2, or 3 on your keyboard to switch between video sources as the board is not sending video more than one output at a time. I think 3 was the magic number, but the default and better quality is to just go with HDMI so I recommend an HDMI cable.

At this point I managed to break the SD card holder on the board while trying to get it into a plastic case I purchased for it. Without the SD card port, the board is useless and looking for a solution I found that many experience this problem. It is pretty easy to break so be careful. I attempted to glue a micro-SD adapter into place as a fix so I could just insert and remove the micro SD card as needed but I was unsuccessful and ended up buying another Raspberry Pi.

I had some trouble with my USB hub. As I needed one USB slot for WiFi, I had to switch between a mouse and keyboard until I managed to get a VNC server installed. I wanted to do this anyway so I wouldn’t need to plug it into a TV (or a mouse and keyboard for that matter). I tried a couple before I found these simple instructions:

I reserved an IP for the Raspberry Pi for consistency so I could always connect remotely by the same IP. The only speed bump here was that the instructions made it sound as if the port number was to be 1 but is actually 5901. The instructions at the link mentioned above also explain how to have it start automatically.

I was still having to enter credentials at startup so I set it up for automatic login using the instructions found at

Now I could plug it in and have it come right up with tightVNC loaded so that I could just plug it in, wait a couple minutes and then be able to access it via a VNC client on my Mac (I use iTeleport).

Finally, I was ready to run CGMiner only to discover it was not that easy. Unlike on Mac or Windows, you don’t appear to be able to download a built version and instead must build the program yourself. This took quite a lot of figuring out but in the end, these were the commands I ran to pull it off. Be prepared: some steps take a very long time (the first time, subsequently it’s much less time consuming).

sudo apt-get update
sudo apt-get upgrade
sudo apt-get install libusb-1.0-0-dev libusb-1.0-0 libcurl4-openssl-dev libncurses5-dev libudev-dev autoconf libtool 
sudo git clone
cd cgminer
sudo ./ 
sudo ./configure –enable-bitfury –enable-ants1
sudo make 
sudo make install

I created a bash script (another first for me) to avoid having to type the long command line to actually run CGMiner. Working out the command line was something I had worked out a few weeks back getting it going on OSX and Windows:

./cgminer -o stratum+tcp:// -u audiocraft.Article -p 12345 –bxm-bits=56

The bxm-bits argument is one I found to control speed. When running too fast, it would get hot and enter a zombie state. 56 is a slower speed and, coupled with a fan, lets the chip run without overheating.


I’ve got it running now and built to handle the ASIC USB devices I run on Windows and PC now. I’ve been able to run some only on Windows, others only on Mac so my hope is to run them all on Raspberry Pi now. Aside from getting USB hubs set up with fans to connect them all I’ve got a couple other problems I’m still working on:

1) I’d like CGMiner to run automatically at startup. I’ve already got a script to run it:

cd cgminer
./cgminer -o stratum+tcp:// -u audiocraft.Article -p 12345 –bxm-bits=56

I saved mine as, but had to make it executable before I could run it:

sudo chmod +x

I found a couple of ways to run the script automatically, but my problem is I want to be able to see it running in my VNC session. That I’ve not figured out how to do: I want to plug it in and have it start running CGMiner in X so that I can VNC in and see it (not a new session where it tries to run a second time).

2) I’ve also got two Yellowjacket Bitfury (Nanofury) USB devices, but I can only seem to run one per computer no matter if it is OSX, Windows or Rasbian. It seems like the solution could be here, but I’m really not sure how to move forward. I want to be able to run both on this computer at the same time. Right now, when I plug in a second one, they both show 0.00 gh/s.

Leave a comment

Posted by on May 19, 2014 in Tech


Creating Deployment Packages with Scrum

Creating Deployment Packages with Scrum

As I’ve spent more and more time in recent years working in Scrum environments, it’s got me thinking how this agile process might adapt itself well to projects outside product development. And being the “AppDeploy” guy was naturally compelled to think how it might apply well to the world of application packaging…


Leave a comment

Posted by on May 9, 2014 in Software


Tags: , , ,


Sleigh Bells at the Fillmore in Charlotte, NC: April 28th, 2014

photoCaught Sleigh Bells in Charlotte earlier this week and it was a great show. It was short at just under an hour but tons of energy and a great performance for what was not the greatest turn out. 15 minutes before opening there were only half a dozen people on line to get in but it filled up pretty good before the show actually started. The good news for me was I got right up front for some good video in a position where I wasn’t holding it up and bothering anyone behind me. The show was super loud and the camera couldn’t handle it well but the video is great if you can deal with the distortion and occasional channel issues. I got the whole show uploaded to a playlist on YouTube… Read the rest of this entry »

Leave a comment

Posted by on May 2, 2014 in Music


“Surf’s Up” by King Fantastic (with AwolNation)

Recently discovered King Fantastic and loving it. In listening to their 40 minute mixtape that has pretty much every song included I caught this one unknown to me about 17.5 minutes in and finally found it. Simply awesome.

Leave a comment

Posted by on February 3, 2014 in Uncategorized



DellWorld 2012, Camp Freddy Concert at ACL

DellWorld 2012 SetlistAt DellWorld 2012, the evening event was at Austin City Limits and the description was very odd and read only “Camp Freddy and featured guests from Linkin Park”. I’d never heard of Camp Freddy before, so like many, was in for a big surprise treat!

While the “core band” consists of Dave Navarro (guitar. Jane’s Addiction/Red Hot Chili Peppers), Billy Morrison (guitar. Billy Idol), Matt Sorum (drums. Guns N’ Roses/Velvet Revolver), Donovan Leitch, Jr. (vocals) and Chris Chaney (bass. Jane’s Addiction/Alanis Morissette). We were also treated to Mark McGrath (Sugar Ray), Sully Erna (Godsmack), Fred Durst (Limp Bizkit) , Perry Farrell (Jane’s Addiction/Porno for Pyros) and finally Mike Shinoda and Chester Bennington (Linkin Park). Unbelievable. I wasn’t so close and only had my phone but I was in the front row of the balcony which made it easy for me to hold pretty steady for some video. Some full songs and some partials, this is what I got…

Update: Amy Price took some amazing pictures of the show and posted them here on Flickr.

1 Comment

Posted by on December 12, 2012 in Music


Tags: , , , , ,

Streaming TV to AppleTV

DirecTV to AppleTV. It’s not as complicated as it sounds and may be obvious to someone who has all the parts, but here’s how I pulled it off.

I’ve got an old SlingBox hooked up to my DirecTV box in Virginia. Then in South Carolina, where I had good Internet download speeds but no TV service, I used my MacBook Pro’s mirroring over AirPlay feature to show the picture on my television. I was very impressed with how it looked. There was some pixelation only when there as a lot of fast movement on the screen at once. It only got stuck every half hour or so and corrected itself in 15 seconds or so with no intervention.

Leave a comment

Posted by on November 23, 2012 in Tech


Pumped for Virgin Mobile FreeFest 2012

Virgin Mobile FreeFest is on its way this October 6th. I’ve gone the last couple of years and it is always an awesome time. This year, I’m most excited to see Jack White, Ben Folds Five and Skrillex. A few other bands on the list are interesting too, but most I’d not heard of. As a Spotify user, I’ve created a collaborative playlist containing the top few songs by each band in an effort to make sure I don’t regret making my way over to one of the smaller stages to catch a future favorite. Check out the playlist here!

Individual Bands:

* = What to see/record

In year’s past I’ve taken lots of photos and video. (Nine Inch Nails, 2008 Show).  I’ll be doing the same again this year (may need a third battery, I always seem to run out of juice).

Leave a comment

Posted by on August 27, 2012 in Music


Tags: , , ,