Raspberry Pi Networking Cookbook - Second Edition

Connect your Raspberry Pi to the world with this essential collection of recipes for basic administration and common network services

Raspberry Pi Networking Cookbook - Second Edition

Rick Golden

2 customer reviews
Connect your Raspberry Pi to the world with this essential collection of recipes for basic administration and common network services
Mapt Subscription
FREE
€29.98/m after trial
eBook
€27.72
RRP €39.58
Save 29%
Print + eBook
€40.99
RRP €40.99
What do I get with a Mapt Pro subscription?
  • Unlimited access to all Packt’s 5,000+ eBooks and Videos
  • Early Access content, Progress Tracking, and Assessments
  • 1 Free eBook or Video to download and keep every month after trial
What do I get with an eBook?
  • Download this book in EPUB, PDF, MOBI formats
  • DRM FREE - read and interact with your content when you want, where you want, and how you want
  • Access this title in the Mapt reader
What do I get with Print & eBook?
  • Get a paperback copy of the book delivered to you
  • Download this book in EPUB, PDF, MOBI formats
  • DRM FREE - read and interact with your content when you want, where you want, and how you want
  • Access this title in the Mapt reader
What do I get with a Video?
  • Download this Video course in MP4 format
  • DRM FREE - read and interact with your content when you want, where you want, and how you want
  • Access this title in the Mapt reader
€0.00
€27.72
€40.99
€29.98p/m after trial
RRP €39.58
RRP €40.99
Subscription
eBook
Print + eBook
Start 30 Day Trial
Subscribe and access every Packt eBook & Video.
 
  • 5,000+ eBooks & Videos
  • 50+ New titles a month
  • 1 Free eBook/Video to keep every month
Start Free Trial
 
Code Files
Preview in Mapt

Book Details

ISBN 139781785280214
Paperback352 pages

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.

Table of Contents

Chapter 1: Installation and Setup
Introduction
Preparing for the initial boot
Downloading new SD cards
Booting with NOOBS
Mac OS X disk utilities – diskutil and dd
Image Writer for Windows – Win32DiskImager.exe
Convert and copy for Linux – dd
Booting Raspbian Linux for the first time
Shutting down the Raspberry Pi
Chapter 2: Administration
Introduction
Executing commands with privileges (sudo)
Expanding the size of a filesystem (raspi-config)
Configuring memory usage (raspi-config)
Configuring remote access (raspi-config)
Obtaining remote access by using SSH
Obtaining remote access by using PuTTY
Changing the login password (passwd)
Adding a user (useradd)
Giving a user sudo privileges (id and usermod)
Chapter 3: Maintenance
Introduction
Updating the operating system (apt-get)
Upgrading Raspbian from wheezy to jessie using sources.list
Searching for software packages (apt-cache)
Installing a package (apt-get)
Package management (aptitude)
Reading the built-in documentation (man)
Reading the built-in documentation (info)
Chapter 4: File Sharing
Introduction
Mounting USB disks (pmount)
Accessing another computer's files (smbclient)
Sharing folders from other computers (mount.cifs)
Auto-mounting USB disks at boot (/etc/fstab)
Auto-mounting a shared folder at boot
Creating a file server (Samba)
Sharing an attached USB disk (Samba)
Chapter 5: Advanced Networking
Introduction
Configuring a static IP address
Creating a firewall with ufw
Remote access to a desktop session (xrdp)
Remote access to the monitor (x11vnc)
Installing a web server (Apache, lighttpd, Nginx)
Installing a wiki (mediawiki)
Creating a wireless access point with hostapd
Installing a network trace utility
Installing a network protocol analyzer
Enabling the IPv6 network protocol
Chapter 6: IoT – Internet of Things
Introduction
Easy access to hardware
Installing the GrovePi
Controlling devices from a web page
Connecting to an IoT platform
Creating an IoT gateway
Chapter 7: Clustering
Introduction
Installing a high-availability load balancer
Installing a distributed filesystem
Creating a supercomputer

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

Authors

Table of Contents

Chapter 1: Installation and Setup
Introduction
Preparing for the initial boot
Downloading new SD cards
Booting with NOOBS
Mac OS X disk utilities – diskutil and dd
Image Writer for Windows – Win32DiskImager.exe
Convert and copy for Linux – dd
Booting Raspbian Linux for the first time
Shutting down the Raspberry Pi
Chapter 2: Administration
Introduction
Executing commands with privileges (sudo)
Expanding the size of a filesystem (raspi-config)
Configuring memory usage (raspi-config)
Configuring remote access (raspi-config)
Obtaining remote access by using SSH
Obtaining remote access by using PuTTY
Changing the login password (passwd)
Adding a user (useradd)
Giving a user sudo privileges (id and usermod)
Chapter 3: Maintenance
Introduction
Updating the operating system (apt-get)
Upgrading Raspbian from wheezy to jessie using sources.list
Searching for software packages (apt-cache)
Installing a package (apt-get)
Package management (aptitude)
Reading the built-in documentation (man)
Reading the built-in documentation (info)
Chapter 4: File Sharing
Introduction
Mounting USB disks (pmount)
Accessing another computer's files (smbclient)
Sharing folders from other computers (mount.cifs)
Auto-mounting USB disks at boot (/etc/fstab)
Auto-mounting a shared folder at boot
Creating a file server (Samba)
Sharing an attached USB disk (Samba)
Chapter 5: Advanced Networking
Introduction
Configuring a static IP address
Creating a firewall with ufw
Remote access to a desktop session (xrdp)
Remote access to the monitor (x11vnc)
Installing a web server (Apache, lighttpd, Nginx)
Installing a wiki (mediawiki)
Creating a wireless access point with hostapd
Installing a network trace utility
Installing a network protocol analyzer
Enabling the IPv6 network protocol
Chapter 6: IoT – Internet of Things
Introduction
Easy access to hardware
Installing the GrovePi
Controlling devices from a web page
Connecting to an IoT platform
Creating an IoT gateway
Chapter 7: Clustering
Introduction
Installing a high-availability load balancer
Installing a distributed filesystem
Creating a supercomputer

Book Details

ISBN 139781785280214
Paperback352 pages
Read More
From 2 reviews

Read More Reviews

Recommended for You

Raspberry Pi Cookbook for Python Programmers Book Cover
Raspberry Pi Cookbook for Python Programmers
€ 25.18
€ 17.64
Raspberry Pi Android Projects Book Cover
Raspberry Pi Android Projects
€ 31.18
€ 21.84
Python Machine Learning Book Cover
Python Machine Learning
€ 39.58
€ 27.72
Python GUI Programming Cookbook Book Cover
Python GUI Programming Cookbook
€ 39.58
€ 27.72
Linux Shell Scripting Cookbook, Second Edition Book Cover
Linux Shell Scripting Cookbook, Second Edition
€ 25.18
€ 5.04
Learning Raspberry Pi Book Cover
Learning Raspberry Pi
€ 35.98
€ 25.20