Book Image

Raspberry Pi Computer Architecture Essentials

By : Andrew K. Dennis, Teemu O Pohjanlehto
Book Image

Raspberry Pi Computer Architecture Essentials

By: Andrew K. Dennis, Teemu O Pohjanlehto

Overview of this book

With the release of the Raspberry Pi 2, a new series of the popular compact computer is available for you to build cheap, exciting projects and learn about programming. In this book, we explore Raspberry Pi 2’s hardware through a number of projects in a variety of programming languages. We will start by exploring the various hardware components in detail, which will provide a base for the programming projects and guide you through setting up the tools for Assembler, C/C++, and Python. We will then learn how to write multi-threaded applications and Raspberry Pi 2’s multi-core processor. Moving on, you’ll get hands on by expanding the storage options of the Raspberry Pi beyond the SD card and interacting with the graphics hardware. Furthermore, you will be introduced to the basics of sound programming while expanding upon your knowledge of Python to build a web server. Finally, you will learn to interact with the third-party microcontrollers. From writing your first Assembly Language application to programming graphics, this title guides you through the essentials.
Table of Contents (18 chapters)
Raspberry Pi Computer Architecture Essentials
Credits
About the Author
About the Reviewer
www.PacktPub.com
Preface
Index

Network-attached storage (NAS)


Now we have seen how to setup a single external HDD let's take a look at creating a Network-attached storage (NAS) device. This is particularly handy if you have a number of machines on your home network, such as Macs or Windows PCs, and want to create a central storage device for files that they can all access.

Setting up the NAS builds up the work we completed in the first part of this chapter.

The technology we will use to achieve this is Samba. Samba is an open source application suite that provides both file and print sharing services. It re-implements the SMB/CIF protocol and was originally aimed at Windows users.

You can read more about this at the Samba website by visiting https://www.samba.org/samba/what_is_samba.html.

For now, all you need to know is that it will allow you to network your Raspberry Pi 2 and use it as a storage medium on your home network.

Let's start by grabbing the packages we need to set things up.

Installing Samba

We can use apt-get to...