Raspberry Pi Networking Cookbook - Second Edition

Raspberry Pi Networking Cookbook - Second Edition

Language: English

Pages: 352

ISBN: 178528021X

Format: PDF / Kindle (mobi) / ePub


Key Features

  • Install, administer, and maintain your Raspberry Pi
  • Explore a new world of computing with this low cost, credit-card sized computer
  • Connect your Raspberry Pi to other devices on local networks and utilise IoT services

Book Description

With increasing interest in Maker Projects and the Internet of Things (IoT), students, scientists, and hobbyists are using the Raspberry Pi as a reliable, inexpensive platform to connect local devices to Internet services.

This book begins with recipes that are essential to installing the Raspberry Pi and configuring it for network access. Then it continues with recipes on installing common networking services such as firewalls and file sharing.

The final chapters include recipes for network monitoring, streaming data from the Raspberry Pi to IoT services, and using clusters of Raspberry Pis to store and analyze large volumes of data.

What you will learn

  • Install, update, and upgrade your Raspberry PI
  • Configure a firewall to protect your Raspberry Pi and other devices on your local area network
  • Set up file sharing, remote access, a web server, and your own wiki
  • Create a wireless access point and use it as an Internet gateway
  • Stream video, audio, and local device data to IoT services as well as your own websites
  • Control devices connected to the Raspberry Pi from your phone via the web
  • Create a giant video wall using multiple monitors and Raspberry Pis

About the Author

Rick Golden, in the summer of 1972, sat in the computer lab at SUNY Fredonia and completed his first CAI tutorial on programming in APL. He was 9 years old then.

He has been programming computers for over 40 years. He has designed and developed a multitude of projects, from low-level graphics and database drivers to large-volume e-commerce platforms.

At work, Rick is currently focused on developing software to improve healthcare by mining petabytes of healthcare claims to find opportunities to improve healthcare coordination. After work, Rick teaches 10-14 year olds how to program using Raspberry Pi computers.

Table of Contents

  1. Installation and Setup
  2. Administration
  3. Maintenance
  4. File Sharing
  5. Advanced Networking
  6. IoT – Internet of Things
  7. Clustering

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

shutdown –h, you can also use the following command: pi@raspberrypi ~ $ sudo poweroff Instead of shutdown –r, you can also use the following command: pi@raspberrypi ~ $ sudo reboot More information about these commands can be found in their man pages. See also ff halt, reboot, poweroff – stop the system (http://manpages.debian.net/cgibin/man.cgi?query=halt): There are alternatives to the shutdown command. The Debian man page for halt, poweroff, and reboot describes these commands in detail.

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 http://www.packtpub.com/sites/default/files/ downloads/Raspberry_Pi_Networking_Cookbook_ColorImages.pdf. viii www.it-ebooks.info Preface Errata 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

address, gateway, and netmask are added using the parameter values discovered earlier. After the configuration file is saved, the Raspberry Pi is rebooted with its new IP address. 149 www.it-ebooks.info Advanced Networking There's more... In most networks, both at home and at work, (DHCP) servers are used to dynamically assign IP addresses to client computers and devices. Because the DHCP servers are responsible for IP address assignment, they usually need additional configuration to reserve

web page verifying that the Raspberry Pi is ready for MediaWiki. 15. The message "The environment has been checked. You can install MediaWiki." indicates MediaWiki is ready to be installed. (If you do not see this green message, click Restart installation.) 16. Scroll to the bottom of the page. Click Continue -> to accept the license and continue the installation. The screenshot shows the copyright agreement that must be accepted to continue. 17. Once the license agreement has been accepted,

about the diskutil command can be found by using the built-in man pages (man diskutil). Before the image is copied to the SD card in the preceding example, the disk partition is unmounted (diskutil unmountdisk). It is important to unmount the disk before formatting or overwriting it. 14 www.it-ebooks.info Chapter 1 When the image is copied with the dd command, ff if= specifies the input file (raspbian.img) ff of= specifies the output file (/dev/rdisk2) ff bs= specifies the size of the

Download sample

Download