raspberry_pi_cookbook.pdf

(125759 KB) Pobierz
Raspberry Pi
Cookbook
SOFTWARE AND HARDWARE PROBLEMS AND SOLUTIONS
Simon Monk
2n
d
Ed
iti
on
SECOND EDITION
Raspberry Pi Cookbook
Dr. Simon Monk
Raspberry Pi Cookbook
by Simon Monk
Copyright © 2016 Simon Monk. All rights reserved.
Printed in the United States of America.
Published by O’Reilly Media, Inc., 1005 Gravenstein Highway North, Sebastopol, CA 95472.
O’Reilly books may be purchased for educational, business, or sales promotional use. Online editions are
also available for most titles (http://safaribooksonline.com). For more information, contact our corporate/
institutional sales department: 800-998-9938 or
corporate@oreilly.com.
Editors:
Susan Conant and Jeff Bleiel
Production Editor:
Kristen Brown
Copyeditor:
Nan Reinhardt
Proofreader:
Gillian McGarvey
August 2014:
June 2016:
First Edition
Second Edition
Indexer:
Judy McConville
Interior Designer:
David Futato
Cover Designer:
Karen Montgomery
Illustrator:
Rebecca Demarest
Revision History for the Second Edition
2016-05-17
First Release
See
http://oreilly.com/catalog/errata.csp?isbn=9781491939109
for release details.
The O’Reilly logo is a registered trademark of O’Reilly Media, Inc.
Raspberry Pi Cookbook,
the cover
image, and related trade dress are trademarks of O’Reilly Media, Inc.
While the publisher and the author have used good faith efforts to ensure that the information and
instructions contained in this work are accurate, the publisher and the author disclaim all responsibility
for errors or omissions, including without limitation responsibility for damages resulting from the use of
or reliance on this work. Use of the information and instructions contained in this work is at your own
risk. If any code samples or other technology this work contains or describes is subject to open source
licenses or the intellectual property rights of others, it is your responsibility to ensure that your use
thereof complies with such licenses and/or rights.
978-1-491-93910-9
[LSI]
Table of Contents
Preface to the Second Edition. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . xi
1. Setup and Management. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1
1.0 Introduction
1.1 Selecting a Model of Raspberry Pi
1.2 Enclosing a Raspberry Pi
1.3 Selecting a Power Supply
1.4 Selecting an Operating System Distribution
1.5 Writing a MicroSD Card with NOOBS
1.6 Connecting the System
1.7 Connecting a DVI or VGA Monitor
1.8 Using a Composite Video Monitor/TV
1.9 Adjusting the Picture Size on Your Monitor
1.10 Maximizing Performance
1.11 Changing Your Password
1.12 Setting the Pi to Boot Straight into a Windowing System
1.13 Shutting Down Your Raspberry Pi
1.14 Installing the Raspberry Pi Camera Module
1.15 Using Bluetooth
2.0 Introduction
2.1 Connecting to a Wired Network
2.2 Finding Your IP Address
2.3 Setting a Static IP Address
2.4 Setting the Network Name of a Raspberry Pi
2.5 Setting Up a Wireless Connection
2.6 Connecting with a Console Lead
1
1
3
5
7
7
10
12
12
13
15
18
19
20
22
25
27
27
29
31
33
34
36
iii
2. Networking. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 27
Zgłoś jeśli naruszono regulamin