sudo apt-get update sudo apt-get upgrade sudo apt-get install lirc liblircclient-dev sudo nano /etc/lirc/hardware.conf sudo nano /etc/modules lirc_dev lirc_rpi gpio_in_pin=18 sudo reboot sudo shutdown -r now sudo modprobe lirc_rpi sudo /etc/init.d/lirc stop sudo mode2 -d /dev/lirc0 cd ~ sudo nano lircd.conf sudo mv /home/pi/lircd.conf /etc/lirc/lircd.conf sudo /etc/init.d/lirc restart irrecord --list-namespace irrecord -d /dev/lirc0 ~/lircd.conf sudo mv /etc/lirc/lircd.conf /etc/lirc/lircd_original.conf sudo cp ~/lircd.conf /etc/lirc/lircd.conf sudo reboot (or sudo shutdown -r now) sudo /etc/init.d/lirc start cd ~ git clone git://git.drogon.net/wiringPi cd wiringPi git pull origin ./build nano ledcontrol.c gcc -o ledcontrol ledcontrol.c -lwiringPi -llirc_client sudo ./ledcontrol