Why not run Minepeon on your Pi? It starts bfgm or cgm, or choice in the config setup. I've run as many as 60 miners across five hubs on a single Pi. For the best hash and stability I like to keep it under 35+/- sticks per Pi. I have 3 running now with 28/28/35 for a total hash of 30303mh/s.
I wanted to build it myself. More of a pride "I did it myself!" thing. Nothing wrong with minepeon. It worked great when I used it. Found it a bit unstable though, so I sought out something different.
In the end, I installed tightvncserver and start it as a service. I run my miner with in in the desktop. I know it robs some of the resources, but the cpu never gets above 25%, and is usually at just 5% - 10%.
This is the page that U used to get tightvncserver up and running:
http://www.neil-black.co.uk/raspberry-pi-beginners-guide#.UnVH0RCQOk5