Book Image

Raspberry Pi for Secret Agents

By : Stefan Sjogelid
Book Image

Raspberry Pi for Secret Agents

By: Stefan Sjogelid

Overview of this book

Ever wished you could play around with all the neat gadgets your favorite spies use (like James Bond or Michael Westen)? With the introduction of the remarkable Raspberry Pi and a few USB accessories, anybody can now join in on the action.Discover how to turn your Raspberry Pi into a multipurpose secret agent tool! Through a series of fun, easy-to-follow projects you'll learn how to set up audio/video surveillance, explore your Wi-Fi network, play pranks on your friends, and even learn how to free your Raspberry Pi from the constraints of the wall socket.Raspberry Pi for Secret Agents starts out with the initial setup of your Raspberry Pi, guides you through a number of pranks and secret agent techniques, and then shows you how to apply what you've learned out in the real world. Learn how to configure your operating system for maximum mischief and start exploring the audio, video, and Wi-Fi projects. Learn how to record, listen, or talk to people from a distance and how to distort your voice. You can even plug in your webcam and set up a motion detector with an alarm, or find out what the other computers on your Wi-Fi network are up to. Once you've mastered the techniques, combine them with a battery pack and GPS for the ultimate off-road spy kit.
Table of Contents (12 chapters)
Raspberry Pi for Secret Agents
Credits
About the Author
About the Reviewers
www.PacktPub.com
Preface
Index

Turning your TV on or off using the Pi


For this example, we are relying on a technology called Consumer Electronics Control (CEC), which is a feature of the HDMI standard for sending control messages to your home electronics equipment.

To help us send these messages, we'll need a software package called libCEC. Unfortunately, the libCEC version that is currently part of the Raspbian package repository doesn't actually support the Raspberry Pi, so we'll need to build our own software from source code.

  1. Before building the software, we will need to add some developer headers and code libraries that libCEC relies on:

    pi@raspberrypi ~ $ sudo apt-get install autoconf libtool libudev-dev liblockdev1-dev
    
  2. Next, we check out the libCEC source code from the project's Git repository:

    pi@raspberrypi ~ $ git clone git://github.com/Pulse-Eight/libcec.git
    
  3. Now we enter the source directory and build the software using the following sequence of commands:

    pi@raspberrypi ~ $ cd libcec
    pi@raspberrypi ~/libcec...