Learning Raspbian
4.5/5
()
About this ebook
- Acquire the practical skills required to develop applications in Raspbian
- Interact with the Raspbian operating system via its console
- Explore the Raspbian GUI and the bundled console applications with this easy-to-follow guide
This book is intended for developers who have worked with the Raspberry Pi and who want to learn how to make the most of the Raspbian operating system and their Raspberry Pi. Whether you are a beginner to the Raspberry Pi or a seasoned expert, this book will make you familiar with the Raspbian operating system and teach you how to get your Raspberry Pi up and running.
Related to Learning Raspbian
Related ebooks
Getting Started with Raspberry Pi Zero Rating: 5 out of 5 stars5/5Raspberry Pi Essentials Rating: 0 out of 5 stars0 ratingsRaspberry Pi Android Projects Rating: 0 out of 5 stars0 ratingsRaspberry Pi Server Essentials Rating: 0 out of 5 stars0 ratingsRaspberry Pi LED Blueprints Rating: 0 out of 5 stars0 ratingsLearning Raspberry Pi Rating: 0 out of 5 stars0 ratingsRaspberry Pi By Example Rating: 0 out of 5 stars0 ratingsRaspberry Pi Home Automation with Arduino - Second Edition Rating: 0 out of 5 stars0 ratingsArduino Android Blueprints Rating: 0 out of 5 stars0 ratingsBuilding a Home Security System with Raspberry Pi Rating: 0 out of 5 stars0 ratingsRaspberry Pi Insider Guide Rating: 0 out of 5 stars0 ratingsRaspberry Pi Super Cluster Rating: 0 out of 5 stars0 ratingsRaspberry Pi Gaming - Second Edition Rating: 0 out of 5 stars0 ratingsRaspberry Pi for Secret Agents - Second Edition Rating: 3 out of 5 stars3/5BeagleBone Home Automation Blueprints Rating: 0 out of 5 stars0 ratingsRaspberry Pi Computer Architecture Essentials Rating: 0 out of 5 stars0 ratingsRaspberry Pi Robotics Essentials Rating: 0 out of 5 stars0 ratingsAdvanced Home Automation Using Raspberry Pi: Building Custom Hardware, Voice Assistants, and Wireless Nodes Rating: 0 out of 5 stars0 ratingsRaspberry Pi Robotic Blueprints Rating: 2 out of 5 stars2/5Mastering BeagleBone Robotics Rating: 5 out of 5 stars5/5Raspberry Pi Blueprints Rating: 0 out of 5 stars0 ratingsYocto for Raspberry Pi Rating: 0 out of 5 stars0 ratingsBuilding Smart Homes with Raspberry Pi Zero Rating: 0 out of 5 stars0 ratingsRaspberry Pi: Beginner's Guide - Learn Raspberry Pi in Easy Steps Rating: 2 out of 5 stars2/5Arduino Networking Rating: 4 out of 5 stars4/5Android System Programming Rating: 5 out of 5 stars5/5Getting Started with Python and Raspberry Pi Rating: 3 out of 5 stars3/5Raspberry Pi 3 Projects for Java Programmers Rating: 0 out of 5 stars0 ratings
Hardware For You
Computer Science: A Concise Introduction Rating: 4 out of 5 stars4/5CompTIA A+ Complete Review Guide: Core 1 Exam 220-1101 and Core 2 Exam 220-1102 Rating: 5 out of 5 stars5/5Chip War: The Fight for the World's Most Critical Technology Rating: 4 out of 5 stars4/5Raspberry Pi Cookbook for Python Programmers Rating: 0 out of 5 stars0 ratingsUpgrading and Fixing Computers Do-it-Yourself For Dummies Rating: 4 out of 5 stars4/5Creative Selection: Inside Apple's Design Process During the Golden Age of Steve Jobs Rating: 5 out of 5 stars5/5CompTIA A+ Complete Review Guide: Exam Core 1 220-1001 and Exam Core 2 220-1002 Rating: 5 out of 5 stars5/5Macs For Dummies Rating: 5 out of 5 stars5/5Dancing with Qubits: How quantum computing works and how it can change the world Rating: 5 out of 5 stars5/5Fitbit For Dummies Rating: 0 out of 5 stars0 ratingsProgramming Arduino: Getting Started with Sketches Rating: 4 out of 5 stars4/5Build Your Own PC Do-It-Yourself For Dummies Rating: 4 out of 5 stars4/5Arduino: A Quick-Start Beginner's Guide Rating: 4 out of 5 stars4/5Apple Watch Series 4: Your Ultimate Guide to Using the Apple Watch Like A Pro Rating: 5 out of 5 stars5/5TI-84 Plus CE Graphing Calculator For Dummies Rating: 0 out of 5 stars0 ratingsSamsung Galaxy S23 Ultra User Guide for Beginners and Seniors Rating: 3 out of 5 stars3/5Tor Darknet Bundle: Master the Art of Invisibility Rating: 0 out of 5 stars0 ratingsExploring Apple Mac - Ventura Edition: The Illustrated, Practical Guide to Using MacOS Rating: 0 out of 5 stars0 ratingsRaspberry Pi Electronics Projects for the Evil Genius Rating: 3 out of 5 stars3/5Macs All-in-One For Dummies Rating: 0 out of 5 stars0 ratingsRaspberry Pi Mechatronics Projects HOTSHOT Rating: 5 out of 5 stars5/5iPhone X Hacks, Tips and Tricks: Discover 101 Awesome Tips and Tricks for iPhone XS, XS Max and iPhone X Rating: 3 out of 5 stars3/5The Richest Man in Babylon: with The Magic Story Rating: 0 out of 5 stars0 ratingsLinux All-in-One For Dummies Rating: 3 out of 5 stars3/5iPhone 14 Pro Max User Guide for Beginners and Seniors Rating: 0 out of 5 stars0 ratingsAmazon Web Services (AWS) Interview Questions and Answers Rating: 5 out of 5 stars5/5Raspberry Pi for Secret Agents - Second Edition Rating: 3 out of 5 stars3/5
Reviews for Learning Raspbian
2 ratings1 review
- Rating: 4 out of 5 stars4/5This book should be kept as a reference manual. It seems to be slightly outdated in some areas, but still has much needed information.
Book preview
Learning Raspbian - William Harrington
Table of Contents
Learning Raspbian
Credits
About the Author
About the Reviewers
www.PacktPub.com
Support files, eBooks, discount offers, and more
Why subscribe?
Free access for Packt account holders
Preface
What this book covers
What you need for this book
Who this book is for
Conventions
Reader feedback
Customer support
Errata
Piracy
Questions
1. The Raspberry Pi and Raspbian
The Raspberry Pi
The Raspberry Pi Foundation
History of the Raspberry Pi
The Raspberry Pi hardware
Graphic capabilities
The Raspberry Pi model
Accessories
Raspbian
Debian
Open source software
Raspbian components
The Raspberry Pi bootloader
The Linux kernel
Daemons
The shell
Shell utilities
The X.Org graphical server
The desktop environment
Summary
2. Getting Started with Raspbian
SD card specifications
Downloading Raspbian
Imaging Raspbian onto your SD card
Writing the image using Windows
Writing the image using Mac
Writing the image using Linux
Summary
3. Starting Raspbian
Raspberry Pi Model A and Raspberry Pi Model B
Raspberry Pi A+
Raspberry Pi B+
Plugging in your Raspberry Pi
Power supply
Monitor
Keyboard and mouse
SD card
Network connection
Booting your Raspberry Pi for the first time
The bootloader
The Linux kernel
The Raspberry Pi Software Configuration Tool
Setting up the Raspberry Pi
Resizing the root filesystem of your Raspberry Pi
Changing the default password for the Raspberry Pi
Enable boot to Desktop/Scratch
Internationalisation Options
Adding your locale
Selecting your time zone
Changing your keyboard
Enabling the Raspberry Pi camera
Adding to Rastrack
Enabling SSH
Finishing up
Common problems
Summary
4. An Introduction to the Raspbian Desktop
The Raspbian desktop
The Raspbian filesystem
A tour of the Raspbian desktop
The desktop
The bottom panel
The main menu
Panel items
Virtual desktops
Network management with Raspbian
Connecting your Raspberry Pi to an Ethernet network
Connecting your Raspberry Pi to a Wi-Fi network
Connecting your Wi-Fi dongle to your Raspberry Pi
Connecting to a wireless network
Customizing your Raspbian desktop
Changing your display resolution
Customizing the look and feel of your desktop
Openbox Configuration Manager
Changing the default background picture
Customizing your panels
Adding a new panel
Adding and removing panel items
Preinstalled software
Web browsers
Epiphany
Dillo
Netsurf
LXTerminal
Sonic Pi
Debian Reference
Integrated Development Environment
Scratch
Minecraft Pi
Pi Store
Mathematica
Other software included with Raspbian
File management in Xfce
Summary
5. Installing Software on Raspbian
Package management in Linux
Methods of installing software
dpkg
APT
The main archive
The contrib archive
The non-free archive
Package verification
Using the console
apt-get update
apt-get install
apt-get remove
Searching for packages
Synaptic GUI Package Manager
Searching and installing packages in Synaptic
Uninstalling packages using Synaptic
The Pi Store
Installing software from source
Installing updates
Installing updates using apt-get
Installing updates using Synaptic
Other software that you can install
LibreOffice
IceDove e-mail client
IceWeasel
Summary
6. The Console
Bash
Launching the bash command interpreter
Basic bash commands
The autocompletion of commands
Running commands as root
Moving around the filesystem using bash
Absolute paths
Relative paths
Manipulating files
ls
cd
pwd
cat
head and tail
cp
mv
rm
mkdir
touch
adduser
addgroup
passwd
Changing your password
Changing another user's password
chown
chmod
Octal representation of permissions
Redirection in bash
> and >>
<
Environmental variables
Basic scripting
Rebooting and shutting down your Raspberry Pi
Text editors
nano
vim
Summary
7. Other Linux Distributions Based on Raspbian
Raspbmc
Volumio
ThinBox
PiPlay
Torberry
Kali
Summary
A. References
Chapter 1, The Raspberry Pi and Raspbian
Chapter 2, Getting Started with Raspbian
Chapter 4, An Introduction to the Raspbian Desktop
Chapter 5, Installing Software on Raspbian
Chapter 6, The Console
Chapter 7, Other Linux Distributions Based on Raspbian
Index
Learning Raspbian
Learning Raspbian
Copyright © 2015 Packt Publishing
All rights reserved. No part of this book may be reproduced, stored in a retrieval system, or transmitted in any form or by any means, without the prior written permission of the publisher, except in the case of brief quotations embedded in critical articles or reviews.
Every effort has been made in the preparation of this book to ensure the accuracy of the information presented. However, the information contained in this book is sold without warranty, either express or implied. Neither the author, nor Packt Publishing, and its dealers and distributors will be held liable for any damages caused or alleged to be caused directly or indirectly by this book.
Packt Publishing has endeavored to provide trademark information about all of the companies and products mentioned in this book by the appropriate use of capitals. However, Packt Publishing cannot guarantee the accuracy of this information.
First published: February 2015
Production reference: 1190215
Published by Packt Publishing Ltd.
Livery Place
35 Livery Street
Birmingham B3 2PB, UK.
ISBN 978-1-78439-219-2
www.packtpub.com
Cover image by William Harrington (<william@usee.com.au>)
Credits
Author
William Harrington
Reviewers
Robin David
Özen Özkaya
Nicola Pisanti
Commissioning Editor
Amarabha Banerjee
Acquisition Editor
Neha Nagwekar
Content Development Editor
Ritika Singh
Technical Editor
Mitali Somaiya
Copy Editors
Dipti Kapadia
Vikrant Phadke
Rashmi Sawant
Project Coordinator
Aboli Ambardekar
Proofreaders
Simran Bhogal
Safis Editing
Paul Hindle
Indexer
Rekha Nair
Graphics
Sheetal Aute
Production Coordinator
Komal Ramchandani
Cover Work
Komal Ramchandani
About the Author
William Harrington lives and works at his family's cattle station, Olga Downs, in northwest Queensland, Australia. He attended university at James Cook University, Townsville. At the age of 20, he established his own company, Harrington Systems Electronics, which sells the NLIS RFID tag reader – The Pipe Reader that he designed and manufactures. He also received the AgForce President's Innovation Award in 2005. In 2006, he graduated with honors as a computer systems engineer and received the Queensland Primary Industries Young Achiever Award. Since then, he has gone on to design the uSee remote monitoring system, a revolutionary and low-cost remote monitoring solution.
Having a home-based company has become part of a unique diversification strategy for the family and has provided them the opportunity to stay on the land. Due to a never-ending passion for technology, William speaks regularly on many topics, so he will bring a futuristic version of the technology that is possible in the next decade.
Since 2011, he has also been a director and programmer for Farm Apps Pty Ltd, developing smartphone and tablet apps that increase farming efficiency.
He enjoys travelling and brewing beer at home.
William works alongside his wife Hollie, having recently welcomed their young son, Jack, into the world.
I would like to thank my wife, Hollie, for her love and support throughout the process of writing this book. I would also like to thank our son, Jack, for reminding us that he is there, along with the rest of my family, Peter, Carmel, Emily, and Grace!
About the Reviewers
Robin David is a technology enthusiast who is passionate about computer security and electronics. His background in computer science and his experience in Linux administration, especially Debian, inevitably led him to use Raspbian as the operating system for Raspberry-Pi-related projects. From his point of view, the Raspberry Pi is currently the best prototyping platform, which brings new perspectives to experimenting and creating small and lightweight projects at a low cost.
That's why he was glad to participate in the review of this book, which is a great introduction to Raspbian for any newcomers to the Linux ecosystem and the Raspberry Pi world.
His Twitter handle is @RobinDavid1 or you can reach him via e-mail at <mail.robin.david@gmail.com>.
I would to thank everyone participating in the Raspberry Pi community and more generally, all the people who encourage open source initiatives as well as share ideas, projects, and efforts in order to make the Internet a better and safer place.
Özen Özkaya is an embedded systems engineer who has been involved in the design, development, and verification of various kinds of embedded systems for more than 6 years now. His skills are not limited to embedded systems. He has a deep knowledge of computer vision, cryptography, software quality, machine learning, and the Internet of Things. He strongly believes in the power of sharing knowledge and continuously extending the vision.
After 6 years of experience in the profession, he is now working for Siemens as a senior development engineer, where he is involved in the research and development of industrial control devices and industrial communication processors. He also contributes to software quality assurance projects at Siemens. He has a total of eight patent applications, and all of his applications are still in progress.
He has a bachelor's degree in electronics engineering from Istanbul Technical University (ITU) with high honor