Book Image

Intel Galileo Networking Cookbook

By : Marco Schwartz
Book Image

Intel Galileo Networking Cookbook

By: Marco Schwartz

Overview of this book

Table of Contents (15 chapters)
Intel Galileo Networking Cookbook
About the Author
About the Reviewers


Intel Galileo is a great development kit for all your Do-It-Yourself electronics projects. The board has an in-built powerful Intel processor, but is usable with the well-known Arduino software. It is also compatible with most Arduino shields.

This makes it the ideal board for your projects, especially in the fields where you need to use cloud-based services, for example, to store data online. It is therefore a great board for Internet of Things (IoT) applications.

In this book, we are going to start setting up your board and building simple applications with the board, such as running a web server on the board. After this, we'll dive into more complex topics, such as IoT applications. Finally, we'll sum up everything we learned in the book by building a simple home automation system based on the Galileo board.

What this book covers

Chapter 1, Installing and Configuring Linux, explains how to set up your Galileo board and the development environment, so you can start building projects. We will install the Galileo IoT image and install the required software on your computer.

Chapter 2, Connecting External Sensors, will discuss connecting sensors to the board, such as a temperature sensor. We will see how to read data from sensors and use it in our projects.

Chapter 3, Controlling Hardware Devices, covers how to control devices from the Galileo board, such as a relay that can be used to control electrical appliances.

Chapter 4, Creating a Web Server, is dedicated to running a simple web server on the Galileo board. We will see that a server can also be used to control the inputs and outputs of the board.

Chapter 5, Hosting Applications on the Galileo Board, covers how to host useful applications on the board, such as a simple file-sharing server.

Chapter 6, Local Network Monitoring, is dedicated to creating applications to monitor the activity of the Galileo board via the local network connection, for example, you will be able to monitor measurements done by the board in real time.

Chapter 7, Cloud Data Monitoring, is all about connecting your board to cloud services in order to build Internet of Things applications, such as remotely logging data on a cloud platform.

Chapter 8, Building a Home Automation System, sums up all that was done in the book with an application: building a home automation system based on Arduino, using the Galileo board as the "hub" of the system.

What you need for this book

For this entire book, you will need an Intel Galileo board. In the first chapter of the book, you will learn how to install all the required software to configure your board.

You will also need a computer running Windows, Mac OS X, or Linux, as this will be needed to configure your Galileo board.

Who this book is for

This book is intended for those who want to build exciting projects using the Intel Galileo board. It is for people who are already experienced in using more classic Arduino boards and want to extend their knowledge to the Intel Galileo board.

It is also for people who want to learn about electronics and programming, and Intel Galileo is the perfect platform for this.


In this book, you will find several headings that appear frequently (Getting ready, How to do it, How it works, There's more, and See also).

To give clear instructions on how to complete a recipe, we use these sections as follows:

Getting ready

This section tells you what to expect in the recipe, and describes how to set up any software or any preliminary settings required for the recipe.

How to do it…

This section contains the steps required to follow the recipe.

How it works…

This section usually consists of a detailed explanation of what happened in the previous section.

There's more…

This section consists of additional information about the recipe in order to make the reader more knowledgeable about the recipe.

See also

This section provides helpful links to other useful information for the recipe.


In this book, you will find a number of text styles that distinguish between different kinds of information. Here are some examples of these styles and an explanation of their meaning.

Code words in text, database table names, folder names, filenames, file extensions, pathnames, dummy URLs, user input, and Twitter handles are shown as follows: "Every time you see a line starting with root@galileo, this means we will be using the terminal."

A block of code is set as follows:

// Sensor pin
int sensorPin = 0;

void setup()
  // Start Serial connection

When we wish to draw your attention to a particular part of a code block, the relevant lines or items are set in bold:

// Sensor pin
int sensorPin = 0;

void setup()
  // Start Serial connection

Any command-line input or output is written as follows:

opkg install package_name

New terms and important words are shown in bold. Words that you see on the screen, for example, in menus or dialog boxes, appear in the text like this: "To solve this problem, simply push the Reboot button on the board."


Warnings or important notes appear in a box like this.


Tips and tricks appear like this.

Reader feedback

Feedback from our readers is always welcome. Let us know what you think about this book—what you liked or disliked. Reader feedback is important for us as it helps us develop titles that you will really get the most out of.

To send us general feedback, simply e-mail , and mention the book's title in the subject of your message.

If there is a topic that you have expertise in and you are interested in either writing or contributing to a book, see our author guide at

Customer support

Now that you are the proud owner of a Packt book, we have a number of things to help you to get the most from your purchase.

Downloading the example code

You can download the example code files from your account at for all the Packt Publishing books you have purchased. If you purchased this book elsewhere, you can visit and register to have the files e-mailed directly to you.

Downloading the color images of this book

We also provide you with a PDF file that has color images of the screenshots/diagrams used in this book. The color images will help you better understand the changes in the output. You can download this file from


Although we have taken every care to ensure the accuracy of our content, mistakes do happen. If you find a mistake in one of our books—maybe a mistake in the text or the code—we would be grateful if you could report this to us. By doing so, you can save other readers from frustration and help us improve subsequent versions of this book. If you find any errata, please report them by visiting, selecting your book, clicking on the Errata Submission Form link, and entering the details of your errata. Once your errata are verified, your submission will be accepted and the errata will be uploaded to our website or added to any list of existing errata under the Errata section of that title.

To view the previously submitted errata, go to and enter the name of the book in the search field. The required information will appear under the Errata section.


Piracy of copyrighted material on the Internet is an ongoing problem across all media. At Packt, we take the protection of our copyright and licenses very seriously. If you come across any illegal copies of our works in any form on the Internet, please provide us with the location address or website name immediately so that we can pursue a remedy.

Please contact us at with a link to the suspected pirated material.

We appreciate your help in protecting our authors and our ability to bring you valuable content.


If you have a problem with any aspect of this book, you can contact us at , and we will do our best to address the problem.