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

Sharing folders from other computers (mount.cifs)


This recipe shows how to mount folders that have been shared from another computer.

Recent Linux kernels, including the kernel used by the Raspbian Linux distribution for the Raspberry Pi, have built-in support for mounting shared folders using the SMB (CIFS) protocol. This is the file sharing protocol used commonly by Windows computers and home file sharing devices. It is also used on OS X when sharing files.

This is the simplest recipe for mounting a shared folder from the command line on the Raspberry Pi.

Once you've completed this recipe, you will be able to share files with other computers on the same network using the SMB (CIFS) protocol.

Note

SMB and CIFS are synonyms for the same file sharing protocol.

Getting ready

Here are the ingredients for this recipe:

  • An initial setup or basic networking setup for the Raspberry Pi that has been powered on. You have also logged in as the user pi (see the recipes in Chapter 1, Installation and Setup,...