<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>http://etcwiki.org/index.php?action=history&amp;feed=atom&amp;title=Under_construction_guides</id>
	<title>Under construction guides - Revision history</title>
	<link rel="self" type="application/atom+xml" href="http://etcwiki.org/index.php?action=history&amp;feed=atom&amp;title=Under_construction_guides"/>
	<link rel="alternate" type="text/html" href="http://etcwiki.org/index.php?title=Under_construction_guides&amp;action=history"/>
	<updated>2026-06-14T12:14:19Z</updated>
	<subtitle>Revision history for this page on the wiki</subtitle>
	<generator>MediaWiki 1.43.1</generator>
	<entry>
		<id>http://etcwiki.org/index.php?title=Under_construction_guides&amp;diff=3241&amp;oldid=prev</id>
		<title>Ddxfish: Ddxfish moved page Raspberry Pi - Beginners Guides and Projects to Under construction guides</title>
		<link rel="alternate" type="text/html" href="http://etcwiki.org/index.php?title=Under_construction_guides&amp;diff=3241&amp;oldid=prev"/>
		<updated>2013-09-25T18:13:48Z</updated>

		<summary type="html">&lt;p&gt;Ddxfish moved page &lt;a href=&quot;/wiki/Raspberry_Pi_-_Beginners_Guides_and_Projects&quot; class=&quot;mw-redirect&quot; title=&quot;Raspberry Pi - Beginners Guides and Projects&quot;&gt;Raspberry Pi - Beginners Guides and Projects&lt;/a&gt; to &lt;a href=&quot;/wiki/Under_construction_guides&quot; title=&quot;Under construction guides&quot;&gt;Under construction guides&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;=This Tutorial=&lt;br /&gt;
[[Category:Raspberry Pi]]&lt;br /&gt;
This is a guide I am making right now Aug 5 2013 that includes my first 10 working projects with setup, LEDs, switches, and status scripts that will change LEDs and perform actions based on switches or buttons. Slideshow from command line, and music player from command line, website server monitor (uptime monitor if you modify).&lt;br /&gt;
&lt;br /&gt;
&amp;#039;&amp;#039;&amp;#039;This guide is under construction as of August 8 2013&amp;#039;&amp;#039;&amp;#039; and will be split into pages when completed. &lt;br /&gt;
&lt;br /&gt;
My name is Chris, if you want to contact me or comment on this wiki feel free to email me at ddxfish@gmail.com or use the contact form on my website www.chriswest.us - I am available for:&lt;br /&gt;
*Comments on this guide&lt;br /&gt;
*Requests for additions to this guide (or request for clarification)&lt;br /&gt;
*Very basic questions about this guide (need me to add a few notes or tips?)&lt;br /&gt;
*Hire me for consultation on Raspberry Pi (raspbian)&lt;br /&gt;
*Hire me for building you a pi with any/all of these features&lt;br /&gt;
&lt;br /&gt;
==Required Items==&lt;br /&gt;
*Raspberry Pi&lt;br /&gt;
*Raspberry Pi Case&lt;br /&gt;
*8GB or more SD Card (with Raspbian 7 Wheezy) (get a class 10 or more i recommend)&lt;br /&gt;
*1.5A or greater USB charger (5V 1500ma+) DC&lt;br /&gt;
*Network Cable attached properly&lt;br /&gt;
*HDMI Cable and HDMI TV (yes tv works best for me)&lt;br /&gt;
**Alternative: RCA Video cable, and 3.5mm audio cable&lt;br /&gt;
&lt;br /&gt;
==Items for the guides==&lt;br /&gt;
*6 LEDs (Red, Yellow, Green, Blue, Purple, White) 5mm 3.0v@16mA and 2.1v@22mA but any 5mm LED will do&lt;br /&gt;
*5 Tactile Button Breadboard Switches (get 10 cuz its easy to mess them up)&lt;br /&gt;
*Pack of resistors (I would just buy a 15$ pack on amazon.com)&lt;br /&gt;
**3 x 47 ohm @ 1/4 watt (for LED)&lt;br /&gt;
**3 x 200 ohm @ 1/4 watt (for LED)&lt;br /&gt;
**3 x 1K ohm @ 1/4 watt (for switch)&lt;br /&gt;
**3 x 10K ohm @ 1/4 watt (for switch)&lt;br /&gt;
*20+ dupont (breadboard) wires (Male to Female)&lt;br /&gt;
*10+ dupont (breadboard) wires (Male to Male)&lt;br /&gt;
*22 gauge wire spool (solid core, not threaded)&lt;br /&gt;
*Breadboard (around 400 point tie in, 2 or 4 power rails)&lt;br /&gt;
&lt;br /&gt;
=Raspberry Pi Guides List=&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==Raspberry Pi - Initial Setup==&lt;br /&gt;
change root password&lt;br /&gt;
 sudo passwd&lt;br /&gt;
update OS and install vim (text editor)&lt;br /&gt;
 apt-get update&lt;br /&gt;
 apt-get upgrade&lt;br /&gt;
 apt-get install vim&lt;br /&gt;
You will need to edit your bash properties in 2 files, start with&lt;br /&gt;
 vim /root/.bashrc&lt;br /&gt;
Add aliases to the end of /root/.bashrc and /root/.bash_profile&lt;br /&gt;
 alias ls=&amp;#039;ls -al --color&amp;#039;&lt;br /&gt;
 alias goho=&amp;#039;cd /home/pi&amp;#039;&lt;br /&gt;
 alias gogp=&amp;#039;cd /home/pi/gpio&amp;#039;&lt;br /&gt;
 alias savepi=&amp;#039;chown -R pi:pi /home/pi&lt;br /&gt;
 export PS1=&amp;quot;\[\e]0;\u@\h: \w\a\]${debian_chroot:+($debian_chroot)}\[\033[0;31m\]\u@\h\[\033[00m\] \[\033[01;34m\]\w \$\[\033[00m\]&amp;quot;&lt;br /&gt;
To copy all of this to its sister file:&lt;br /&gt;
 cat /root/.bashrc &amp;gt; /root/.bash_profile&lt;br /&gt;
&lt;br /&gt;
==Remove Desktop and X from Raspberry Pi==&lt;br /&gt;
If you want to NEVER boot into desktop and not have to back up those packages every time and worry about updates for them, this is the command for you. My guides will never use the Raspberry Pi desktop. This step is not essential to follow my or any guides I know of but will simplify some types of jobs like backups. It will remove Xserver, libx11 and ALL packages that depend on it. This means removing the ability to boot into desktop! You can try to put it back on but in my opinion this is a one way journey.&lt;br /&gt;
&lt;br /&gt;
Notes:&lt;br /&gt;
*this command can trigger some major package changes on your system&lt;br /&gt;
*for me it removed MPD and a few other packages&lt;br /&gt;
*all I had to do was reinstall the packages (config files were never removed)&lt;br /&gt;
&lt;br /&gt;
&amp;#039;&amp;#039;&amp;#039;proceed at your own risk - one way journey&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
&lt;br /&gt;
 apt-get remove xserver* x11-common x11-utils x11-xkb-utils x11-xserver-utils xarchiver xauth xkb-data console-setup xinit lightdm libx{composite,cb,cursor,damage,dmcp,ext,font,ft,i,inerama,kbfile,klavier,mu,pm,randr,render,res,t,xf86}* lxde* lx{input,menu-data,panel,polkit,randr,session,session-edit,shortcut,task,terminal} obconf openbox gtk* libgtk* scratch tsconf xdg-tools desktop-file-utils&lt;br /&gt;
 apt-get --yes autoremove&lt;br /&gt;
 apt-get --yes autoclean&lt;br /&gt;
 apt-get --yes clean&lt;br /&gt;
&lt;br /&gt;
==Slim down your Raspberry Pi install==&lt;br /&gt;
I backup my pi on a regular basis and I have not been using the desktop on this install at all. I want to remove stuff that is not necessary like locales. Make sure you setup your locale before removing the others! &lt;br /&gt;
&lt;br /&gt;
Setup your Locale&lt;br /&gt;
 raspi-config&lt;br /&gt;
&lt;br /&gt;
Remove unused locales (brought me back 70mb of my 500mb image)&lt;br /&gt;
Note: this remove all BUT en_US.UTF-8 so make sure u enter the names u want to keep&lt;br /&gt;
 apt-get install localepurge     (during install you select which locales to keep!)&lt;br /&gt;
 localepurge&lt;br /&gt;
&lt;br /&gt;
Clean up apt-get junk&lt;br /&gt;
 apt-get autoremove&lt;br /&gt;
 apt-get autoclean&lt;br /&gt;
 apt-get clean&lt;br /&gt;
&lt;br /&gt;
==Complete SD card backup Raspberry Pi==&lt;br /&gt;
This is a command that lets you make a COMPLETE image of any raspberry Pi sd card. You will need to do this from a linux PC (not the raspberry pi) so you will need to shut down your pi for a bit.&lt;br /&gt;
*Stick the Pi SD card into your main PC running linux&lt;br /&gt;
*make sure you have free space enough to backup the entire size of the card&lt;br /&gt;
*this will put the image in your home directory in the file rpifull.img&lt;br /&gt;
*this backs up the boot loader, and every 1 and 0 on the card&lt;br /&gt;
*find the name/location of your card (/dev/sdc) and replace below. Use the &amp;quot;df&amp;quot; command&lt;br /&gt;
 umount /dev/sdc1&lt;br /&gt;
 umount /dev/sdc2&lt;br /&gt;
 dd if=/dev/sdc bs=1M of=~/rpifull.img&lt;br /&gt;
&lt;br /&gt;
==Complete SD Card restore Raspberry Pi==&lt;br /&gt;
This will take the image you made above and restore it to any SD card of the same size (sometimes works with diff sizes but cant guarantee).&lt;br /&gt;
*Put the SD card from the pi into your main linux PC&lt;br /&gt;
*Replace any /dev/sdc with your memory card&lt;br /&gt;
 umount /dev/sdc1&lt;br /&gt;
 umount /dev/sdc2&lt;br /&gt;
 dd if=~/rpifull.img bs=1M of=/dev/sdc&lt;br /&gt;
&lt;br /&gt;
==Zerofree on Raspberry Pi==&lt;br /&gt;
I make frequent backups of my pi using the dd command because I test and install so many different guides, hardware and software. My 32gb SD card (class 10 UHS) writes an image file that is 32gb, so each time I compress it using gzip or bzip2 and end up with a 20GB image roughly. This has the unfortunate side effect of storing all of the trash 1&amp;#039;s and 0&amp;#039;s on the partition where files used to be. To reduce the size of my zipped backup (this can reduce ZIPPED size of an image, not image size itself) I ran zerofree to write zeros to the unused space.&lt;br /&gt;
*shutdown the pi and take out its memory card&lt;br /&gt;
*boot your main pc to linux (I used linux Mint 15)&lt;br /&gt;
*backup your pi using dd (do this BEFORE you mess anything up with zerofree)&lt;br /&gt;
*run zerofree on your sdcard&lt;br /&gt;
 apt-get install zerofree&lt;br /&gt;
 umount /dev/sdc1       (change sdc1 to your raspi boot partition location)&lt;br /&gt;
 umount /dev/sdc2       (change sdc2 to your raspi ext4 partition)&lt;br /&gt;
 zerofree -v /dev/sdc    (replace sdc with your usb cards location, check the command &amp;quot;df&amp;quot;)&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==Mount Windows Share from Raspberry Pi==&lt;br /&gt;
create mount folder (do all of this as root)&lt;br /&gt;
 mkdir /myserver&lt;br /&gt;
add share to auto-mount&lt;br /&gt;
 vi /etc/fstab&lt;br /&gt;
add this line&lt;br /&gt;
 //192.168.1.69/sharename /myserver auto,owner,rw,username=user1,password=hackme 0 0&lt;br /&gt;
test to make sure it works&lt;br /&gt;
 mount -a&lt;br /&gt;
or&lt;br /&gt;
 init 6&lt;br /&gt;
now check the folder after mount&lt;br /&gt;
 cd /myserver&lt;br /&gt;
 ls&lt;br /&gt;
&lt;br /&gt;
==Setup Private Keys - Raspberry Pi==&lt;br /&gt;
This requires you to be logged into the Raspberry Pi on PuTTy or similar ssh client and logged into root&lt;br /&gt;
&lt;br /&gt;
On the Raspberry Pi:&lt;br /&gt;
 su&lt;br /&gt;
 cd /root&lt;br /&gt;
 mkdir .ssh&lt;br /&gt;
 cd .ssh&lt;br /&gt;
 ssh-keygen&lt;br /&gt;
 cat id_rsa.pub &amp;gt; authorized_keys&lt;br /&gt;
 chmod 600 authorized_keys&lt;br /&gt;
&lt;br /&gt;
On your (Windows) computer:&lt;br /&gt;
#copy &amp;quot;id_rsa&amp;quot; from /root/.ssh on the pi to your computer&lt;br /&gt;
#open PuTTygen on windows&lt;br /&gt;
#load the private keyfile you just downloaded (id_rsa) Note: You will have to search for *.* All file types&lt;br /&gt;
#save as a putty private key file with extension .ppk&lt;br /&gt;
#load your RPi session in putty, and enter the key location and name in the SSH section&lt;br /&gt;
&lt;br /&gt;
==Setup MPD and MPC - Raspberry Pi==&lt;br /&gt;
This guide will show you how to get Music Player Daemon (a SERVER that outputs to the pi audio, HDMI and regular, can be controlled locally or remotely) and Music Player Client to play music and command them from a terminal window or an MPD graphical client (to connect and control the music)&lt;br /&gt;
 apt-get install mpd mpc&lt;br /&gt;
setup mpd&lt;br /&gt;
 vi /etc/mpd.conf&lt;br /&gt;
setup these lines (just make the directory or file if it doesnt exist, use the touch command)&lt;br /&gt;
 music_directory&lt;br /&gt;
 playlist_directory&lt;br /&gt;
 db_file&lt;br /&gt;
 log_file&lt;br /&gt;
 pid_file&lt;br /&gt;
 state_file&lt;br /&gt;
 sticker_file&lt;br /&gt;
 bind_to_address (comment this line with a # at the start)&lt;br /&gt;
 port &amp;quot;6600&amp;quot; (uncomment this line, remove the #)&lt;br /&gt;
 user &amp;quot;pi&amp;quot;&lt;br /&gt;
 metadata_to_use (uncomment)&lt;br /&gt;
 mixer_type &amp;quot;software&amp;quot; (uncomment this line)&lt;br /&gt;
restart the pi&lt;br /&gt;
 reboot (dont use init 6)&lt;br /&gt;
start MPD on the pi, look for errors&lt;br /&gt;
 service mpd start&lt;br /&gt;
 (wait until its done)&lt;br /&gt;
 service mpd restart&lt;br /&gt;
&lt;br /&gt;
Connect to mpd using a client on your main computer (I use Auremo MPD Client)&lt;br /&gt;
#download Auremo MPD Client (open source!)&lt;br /&gt;
#enter the ip in the setup for the pi&lt;br /&gt;
#click connect&lt;br /&gt;
&lt;br /&gt;
==Text to Speech==&lt;br /&gt;
This is how to make your pi talk over its speakers using a generated voice&lt;br /&gt;
 apt-get install festival&lt;br /&gt;
Now make it talk&lt;br /&gt;
 echo &amp;quot;the time is&amp;quot; `date +%I` `date +%m` | festival --tts&lt;br /&gt;
&lt;br /&gt;
==How to shutdown or restart the raspberry pi==&lt;br /&gt;
After using like 5 different Raspberry Pi&amp;#039;s with multiple setups, OS, SD cards, and methods of restarting, I had found I was restarting and shutting down wrong and frequently destroying or losing files that were recently open or near to others in the data structure. I lost my entire first setup after 40 or so hours of learning and work due to using &amp;#039;&amp;#039;&amp;#039;init 6&amp;#039;&amp;#039;&amp;#039; to restart the pi.&lt;br /&gt;
&lt;br /&gt;
You will find people that will tell you this is safe. They are correct-- most of the time. You can use the &amp;#039;&amp;#039;&amp;#039;reboot&amp;#039;&amp;#039;&amp;#039; command also but it does the same thing and is also unsafe.&lt;br /&gt;
&lt;br /&gt;
My solution was to create a restart script that stops any services I can, then kills any running programs that could interfere with my file system if forced to shutdown too early, then waits 15 seconds and uses the shutdown command after the pause. I made this script reboot.sh to avoid data corruption on my pi (it happened 4 or 5 times!). Feel free to copy and modify to your taste.&lt;br /&gt;
&lt;br /&gt;
 echo &amp;quot;Beginning forced shutdown script&amp;quot;&lt;br /&gt;
 #unmount my network share (cifs)&lt;br /&gt;
 umount -f /jane&lt;br /&gt;
 #cron triggers scripts all the time on my setup, kill it!&lt;br /&gt;
 service cron stop&lt;br /&gt;
 ##service running my python buttons listen script&lt;br /&gt;
 service pybuttons stop&lt;br /&gt;
 killall python&lt;br /&gt;
 service mpd stop&lt;br /&gt;
 service ntp stop&lt;br /&gt;
 service alsa-utils stop&lt;br /&gt;
 service networking stop&lt;br /&gt;
 service ssh stop&lt;br /&gt;
 killall fbi&lt;br /&gt;
 killall samba&lt;br /&gt;
 killall mpd&lt;br /&gt;
 killall mpc&lt;br /&gt;
 killall vim&lt;br /&gt;
 killall vi&lt;br /&gt;
 killall omxplayer&lt;br /&gt;
 killall sftp-server&lt;br /&gt;
 killall python&lt;br /&gt;
 #unmount my network share (cifs) again just in case!&lt;br /&gt;
 umount -f /jane&lt;br /&gt;
 sleep 15&lt;br /&gt;
 shutdown -h -r now&lt;br /&gt;
&lt;br /&gt;
==Bash Slideshow==&lt;br /&gt;
This program will run from runlevel 2 (command line only) if you want. It uses the Frame Buffer to display images in a slideshow. It preloads and caches images that are upcoming. &lt;br /&gt;
 apt-get install fbi&lt;br /&gt;
Now create 2 scripts to turn on and off the slideshow&lt;br /&gt;
 cd /home/pi&lt;br /&gt;
 mkdir scripts&lt;br /&gt;
 cd scripts&lt;br /&gt;
 touch sson.sh&lt;br /&gt;
 chmod +x sson.sh&lt;br /&gt;
 touch ssoff.sh&lt;br /&gt;
 chmod +x ssoff.sh&lt;br /&gt;
 vi slideshow.sh&lt;br /&gt;
Now fill the file sson.sh with this&lt;br /&gt;
 #!/bin/bash&lt;br /&gt;
 PHOTODIR=/storage/wallpapers&lt;br /&gt;
 INTERVAL=30&lt;br /&gt;
 fbi -T 1 -cachemem 24 -readahead -autodown -t $INTERVAL -u `find $PHOTODIR -iname &amp;quot;*.jpg&amp;quot;`&lt;br /&gt;
And fill ssoff.sh with this&lt;br /&gt;
 #!/bin/bash&lt;br /&gt;
 killall fbi&lt;br /&gt;
Now trigger the slideshow on and off using the scripts&lt;br /&gt;
 ./sson.sh&lt;br /&gt;
 ./ssoff.sh&lt;br /&gt;
&lt;br /&gt;
==Check the CPU Temperature Raspberry Pi==&lt;br /&gt;
Make a simple script that tells u the temperature of your raspberry pi&amp;#039;s onboard temperature sensor (no, I dont know where it is!)&lt;br /&gt;
&lt;br /&gt;
Make a file called degree.sh in your scripts directory (wherever you save urs)&lt;br /&gt;
 touch degree.sh&lt;br /&gt;
 chmod +x degree.sh&lt;br /&gt;
 nano degree.sh&lt;br /&gt;
Now, Add these lines&lt;br /&gt;
 #!/bin/bash&lt;br /&gt;
 /opt/vc/bin/vcgencmd measure_temp&lt;br /&gt;
Save and exit. Test by using&lt;br /&gt;
 sh degree.sh&lt;br /&gt;
&lt;br /&gt;
==Setup LIRC on Raspberry Pi==&lt;br /&gt;
[[File:Raspberry-pi-infrared-sensor-diagram.png|thumb|right|alt RPi Connected to a TSOP4838 temperature sensor]]&lt;br /&gt;
This is a complicated guide to setting up LIRC on the Raspberry Pi to run remote commands.&lt;br /&gt;
&lt;br /&gt;
&amp;#039;&amp;#039;&amp;#039;Materials&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
*Vishay TSOP4838 $4 (aka 38kHz Infrared (IR) Receiver Module - Part Number 276-640 at Radio Shack)&lt;br /&gt;
&lt;br /&gt;
Start by installing LIRC&lt;br /&gt;
 apt-get install lirc&lt;br /&gt;
&lt;br /&gt;
Now, edit the file /etc/lirc/hardware.conf&lt;br /&gt;
 # /etc/lirc/hardware.conf&lt;br /&gt;
 #&lt;br /&gt;
 # Arguments which will be used when launching lircd&lt;br /&gt;
 LIRCD_ARGS=&amp;quot;&amp;quot;  &lt;br /&gt;
 &lt;br /&gt;
 #Don&amp;#039;t start lircmd even if there seems to be a good config file&lt;br /&gt;
 #START_LIRCMD=false&lt;br /&gt;
 &lt;br /&gt;
 #Don&amp;#039;t start irexec, even if a good config file seems to exist.&lt;br /&gt;
 START_IREXEC=true&lt;br /&gt;
 &lt;br /&gt;
 #Try to load appropriate kernel modules&lt;br /&gt;
 LOAD_MODULES=true&lt;br /&gt;
 &lt;br /&gt;
 # Run &amp;quot;lircd --driver=help&amp;quot; for a list of supported drivers.&lt;br /&gt;
 DRIVER=&amp;quot;default&amp;quot;&lt;br /&gt;
 # usually /dev/lirc0 is the correct setting for systems using udev&lt;br /&gt;
 DEVICE=&amp;quot;/dev/lirc0&amp;quot;&lt;br /&gt;
 MODULES=&amp;quot;lirc_rpi&amp;quot;&lt;br /&gt;
 &lt;br /&gt;
 # Default configuration files for your hardware if any&lt;br /&gt;
 LIRCD_CONF=&amp;quot;&amp;quot;&lt;br /&gt;
 LIRCMD_CONF=&amp;quot;&amp;quot;&lt;br /&gt;
&lt;br /&gt;
Now edit the file &amp;#039;&amp;#039;&amp;#039;/etc/modules&amp;#039;&amp;#039;&amp;#039; and add this line&lt;br /&gt;
 lirc_rpi&lt;br /&gt;
&lt;br /&gt;
Now edit (or make) the file &amp;#039;&amp;#039;&amp;#039;/lib/udev/rules.d/98-lircd.rules&amp;#039;&amp;#039;&amp;#039; and add this line&lt;br /&gt;
 KERNEL==&amp;quot;lirc[0-9]*&amp;quot;,   SUBSYSTEM==&amp;quot;lirc&amp;quot;, SUBSYSTEMS==&amp;quot;platform&amp;quot;, GOTO=&amp;quot;begin&amp;quot;&lt;br /&gt;
&lt;br /&gt;
Now test to see if receiver works, run this and press some buttons, see anything?&lt;br /&gt;
 /etc/init.d/lirc stop&lt;br /&gt;
 mode2 -d /dev/lirc0&lt;br /&gt;
&lt;br /&gt;
Now setup your remote control or use a default lircd.conf for a remote on file with LIRC&lt;br /&gt;
Notes: setup as many or as few buttons as you want. I would recommend doing them all now.&lt;br /&gt;
 irrecord --list-namespace      (print or save this, you will need it during setup)&lt;br /&gt;
 irrecord -d /dev/lirc0 ~/lircd.conf     (follow instructions and use above command for key names)&lt;br /&gt;
&lt;br /&gt;
Now copy the created ~/lircd.conf to its new home&lt;br /&gt;
 mv /etc/lirc/lircd.conf /etc/lirc/lircd.original    (backup original)&lt;br /&gt;
 cp ~/lircd.conf /etc/lirc/lircd.conf     (Copy it home)&lt;br /&gt;
&lt;br /&gt;
Now test your keys and remote setup&lt;br /&gt;
 service lirc restart&lt;br /&gt;
 killall irexec&lt;br /&gt;
 irw     (now spam some buttons! Ctrl + C to exit)&lt;br /&gt;
&lt;br /&gt;
Want to launch programs with your remote? Edit or create &amp;#039;&amp;#039;&amp;#039;~/.lircrc&amp;#039;&amp;#039;&amp;#039; ~/ means the users home directory&lt;br /&gt;
 touch ~/.lircrc&lt;br /&gt;
 vi ~/.lircrc&lt;br /&gt;
&lt;br /&gt;
Add these lines to &amp;#039;&amp;#039;&amp;#039;~/.lircrc&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
Note: Replace KEY_POWER with your key from your lircd.conf&lt;br /&gt;
Note: Use an &amp;amp; at the end of the config = line. It will run the command without making you wait for it to complete&lt;br /&gt;
 begin&lt;br /&gt;
      prog = irexec&lt;br /&gt;
      button = KEY_POWER&lt;br /&gt;
      config = /home/pi/gpio/11blink.sh &amp;amp;&lt;br /&gt;
 end&lt;br /&gt;
&lt;br /&gt;
Test... Again but this time to exec the program&lt;br /&gt;
 killall irexec&lt;br /&gt;
 service lirc restart&lt;br /&gt;
 irexec -d    (now test your button)&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==Multi LED and Switch Control==&lt;br /&gt;
[[File:Rpi-buttons-led.png|right|thumb|alt Raspberry Pi with Buttons and LEDs]]&lt;/div&gt;</summary>
		<author><name>Ddxfish</name></author>
	</entry>
</feed>