Getting the PS3 Dual Shock controller working with Raspberry Pi

Note that some Bluetooth dongles don't work properly with these drivers. I'm using a cheap CSR-chip-based dongle. Info from http://booting-rpi.blogspot.ro/2012/08/dualshock-3-and-raspberry-pi.html .