Book Image

Raspberry Pi Networking Cookbook - Second Edition

By : Rick Golden
Book Image

Raspberry Pi Networking Cookbook - Second Edition

By: Rick Golden

Overview of this book

<p>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.</p> <p>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.</p> <p>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.</p>
Table of Contents (14 chapters)
Raspberry Pi Networking Cookbook Second Edition
Credits
About the Author
About the Reviewers
www.PacktPub.com
Preface
Index

Installing a distributed filesystem


This recipe turns four Raspberry Pis into a highly available distributed filesystem using GlusterFS.

GlusterFS is a scalable network filesystem suitable for data-intensive tasks such as cloud storage and media streaming. GlusterFS is free and open source software and can utilize common off-the-shelf hardware like the Raspberry Pi.

After completing this recipe, you will have clustered four Raspberry Pis to create a highly available distributed filesystem.

Getting ready

Here are the ingredients for this recipe:

  • Four basic networking setups for the Raspberry Pi

  • Four available IP addresses on the local network

This recipe does not require the desktop GUI and could either be run from the text-based console or from within an LXTerminal.

With the Secure Shell server running on each Raspberry Pi, this recipe can be completed remotely using a Secure Shell client. A distributed filesystem is typically managed remotely.

How to do it...

The steps to building a highly available...