Connect your Raspberry Pi to the world with this essential collection of recipes for basic administration and common network services
About This Book
- 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
Who This Book Is For
This book is intended for students, scientists, and hobbyists who wish to connect their Raspberry Pi to other devices on a local area network or to the Internet of Things. Whether you are new to the Raspberry Pi, or already have a lot of experience with it, the recipes in this book will be a valuable reference to you and inspire your next project. You will want to have this book handy as a guide whenever you are working on networking projects for the Raspberry Pi.
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
In Detail
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.
Style and approach
This book contains a collection of practical, engaging recipes that will guide you through enhancing your Raspberry Pi's existing network.
Preface |
|
1 | (6) |
|
Chapter 1 Installation and Setup |
|
|
7 | (38) |
|
|
7 | (2) |
|
Preparing for the initial boot |
|
|
9 | (9) |
|
Printing a case -- the Punnet |
|
|
18 | (4) |
|
|
22 | (3) |
|
Image writer for Windows cards (Win32DiskImager) |
|
|
25 | (2) |
|
Convert and copy for Linux (dd) |
|
|
27 | (3) |
|
Creating SD cards with BerryBoot |
|
|
30 | (7) |
|
Booting the "official" Raspbian Linux distribution |
|
|
37 | (4) |
|
Shutting down the Raspberry Pi (shutdown) |
|
|
41 | (4) |
|
|
45 | (20) |
|
|
45 | (1) |
|
Configuring remote access (raspi-config) |
|
|
46 | (4) |
|
Configuring memory usage (raspi-config) |
|
|
50 | (3) |
|
|
53 | (5) |
|
|
58 | (4) |
|
Changing the login password (passwd) |
|
|
62 | (3) |
|
|
65 | (26) |
|
|
65 | (1) |
|
Updating the operating system (apt-get) |
|
|
66 | (8) |
|
Searching for the software packages (apt-cache) |
|
|
74 | (1) |
|
Installing a package (apt-get) |
|
|
75 | (4) |
|
Package management (aptitude) |
|
|
79 | (4) |
|
Reading the built-in documentation (man) |
|
|
83 | (3) |
|
Reading the built-in documentation (info) |
|
|
86 | (5) |
|
|
91 | (42) |
|
|
91 | (1) |
|
Mounting USB drives (pmount) |
|
|
92 | (7) |
|
Sharing folders from other computers (mount.cifs) |
|
|
99 | (4) |
|
Automounting USB disks at boot (/etc/fstab) |
|
|
103 | (7) |
|
Automounting a shared folder at boot |
|
|
110 | (4) |
|
Creating a file server (Samba) |
|
|
114 | (8) |
|
Sharing an attached USB disk via Samba |
|
|
122 | (3) |
|
Accessing another computer's files (smbclient) |
|
|
125 | (8) |
|
Chapter 5 Advanced Networking |
|
|
133 | (52) |
|
|
133 | (1) |
|
Creating a firewall with ufw |
|
|
133 | (4) |
|
Connecting to the desktop remotely (xrdp) |
|
|
137 | (5) |
|
Installing a web server (Apache, lighttpd, Nginx) |
|
|
142 | (12) |
|
Installing a wiki (MediaWiki) |
|
|
154 | (16) |
|
Creating a wireless access point with hostapd |
|
|
170 | (15) |
Index |
|
185 | |
In the summer of 1972, Richard Golden sat in the computer lab at SUNY Fredonia and completed his first CAI tutorial for programming in APL. He was nine years old. Most of the programming that he has done since then has been in Algol-based languages like PL/I, FORTRAN, BASIC, Pascal, C, C++, C#, and Java. He occasionally writes code in languages like APL, FORTH, LISP, and Scheme; however, he could not find an employer that would actually pay him to use those non-structured languages. He has had success in recent years introducing organizations to scripting languages like Python, Perl, TCL, Ruby, Groovy, and node.js. He has also had a chance to work in many different domains applying leading technologies through each cutting edge wave of structured programming, architectural frameworks, and design patterns. He has championed distributed computing, scripting languages, SOA, browser applications, CMS, ESBs, web services, nosql, and map-reduce; top down structured approach, UML, use cases, XP - extreme programming, iterative development, and agile development. And he is still moving forward.As he approaches his fortieth year as a programmer, software architect, and product manager - a career that has spanned eighty percent of his life - he is excited to share his experiences with the Raspberry Pi