Practical Linux with Raspberry Pi OS: Quick Start
()
About this ebook
You'll comfortably work with the Linux command prompt, and explore the RPi OS GUI and all its base applications. Then move into writing your own programs with shell-programming and using high-level languages such as C, C++, and Python 3. You’ll also study hardware and GPIO programming. Use Python 3 for GPIO programming to drive LEDs and pushbuttons.
Examples are written in Shell, C, C++, and Python 3. Graphical output is displayed in helpful screenshots that capture just what you’ll see when working in this environment. All code examples are well tested on actual Raspberry Pi boards. After reading this book and following the examples, you’ll be able to write programs for demonstration in your academic/industrial research work, business environment, or just your circle of friends for fun!
What You'll Learn
- Navigate the core aspects of Linux and programming on a Linux platform
- Install Raspberry Pi OS on a Raspberry Pi
- Program in Shell, C, C++, and Python
- Redirect Io and work with the crontab
Who This Book Is For
Linux enthusiasts, software engineers, researchers, business analysts, and managers working with the low-cost Raspberry Pi.
Read more from Ashwin Pajankar
Arduino Made Simple: With Interactive Projects Rating: 0 out of 5 stars0 ratingsLearn SQL with MySQL: Retrieve and Manipulate Data Using SQL Commands with Ease Rating: 0 out of 5 stars0 ratingsRaspberry Pi: Amazing Projects from Scratch Rating: 0 out of 5 stars0 ratingsPython 3 Image Processing: Learn Image Processing with Python 3, NumPy, Matplotlib, and Scikit-image Rating: 0 out of 5 stars0 ratingsRaspberry Pi By Example Rating: 0 out of 5 stars0 ratingsGNU Octave by Example: A Fast and Practical Approach to Learning GNU Octave Rating: 0 out of 5 stars0 ratingsPractical Python Data Visualization: A Fast Track Approach To Learning Data Visualization With Python Rating: 4 out of 5 stars4/5
Related to Practical Linux with Raspberry Pi OS
Related ebooks
PowerShell for Beginners: Learn PowerShell 7 Through Hands-On Mini Games Rating: 0 out of 5 stars0 ratingsBuilding REST APIs with Flask: Create Python Web Services with MySQL Rating: 0 out of 5 stars0 ratingsBasic Linux Terminal Tips and Tricks: Learn to Work Quickly on the Command Line Rating: 0 out of 5 stars0 ratingsCisco Networks: Engineers' Handbook of Routing, Switching, and Security with IOS, NX-OS, and ASA Rating: 0 out of 5 stars0 ratingsLearn Windows Subsystem for Linux: A Practical Guide for Developers and IT Professionals Rating: 0 out of 5 stars0 ratingsNetwork Engineer A Complete Guide - 2019 Edition Rating: 0 out of 5 stars0 ratingsNetstat A Complete Guide - 2021 Edition Rating: 0 out of 5 stars0 ratingsNetwork Designs A Complete Guide - 2019 Edition Rating: 0 out of 5 stars0 ratingsWindows to Linux Migration Toolkita: Your Windows to Linux Extreme Makeover Rating: 0 out of 5 stars0 ratingsLinux+ Study Guide: Exam: XK0-001 Rating: 5 out of 5 stars5/5Windows 2000 Active Directory Rating: 0 out of 5 stars0 ratingsCisco Certified Network Professional CyberOps A Complete Guide - 2020 Edition Rating: 0 out of 5 stars0 ratingsNetwork Re-engineering: Foundations of Enterprise Computing Rating: 0 out of 5 stars0 ratingsLinux Networking Clearly Explained Rating: 2 out of 5 stars2/5Malware Detection Second Edition Rating: 0 out of 5 stars0 ratingsCloud Security and Risk Standards A Complete Guide - 2019 Edition Rating: 0 out of 5 stars0 ratingsRed Hat Enterprise Virtualization A Complete Guide - 2020 Edition Rating: 0 out of 5 stars0 ratingsDefending IoT Infrastructures with the Raspberry Pi: Monitoring and Detecting Nefarious Behavior in Real Time Rating: 0 out of 5 stars0 ratingsHow to Cheat at Configuring ISA Server 2004 Rating: 0 out of 5 stars0 ratingsOffensive Security A Complete Guide - 2020 Edition Rating: 0 out of 5 stars0 ratingsImplementing SSL / TLS Using Cryptography and PKI Rating: 0 out of 5 stars0 ratingsMobile Malware Protection Third Edition Rating: 0 out of 5 stars0 ratingsSplunk Certified Study Guide: Prepare for the User, Power User, and Enterprise Admin Certifications Rating: 0 out of 5 stars0 ratingsWindows Server 2012 Automation with PowerShell Cookbook Rating: 0 out of 5 stars0 ratingsMalware Protection And Removal Rating: 0 out of 5 stars0 ratingsMCTS 70-680 Exam Questions: Microsoft Windows 7, Configuring Rating: 4 out of 5 stars4/5The Real MCTS/MCITP Exam 70-640 Prep Kit: Independent and Complete Self-Paced Solutions Rating: 1 out of 5 stars1/5Intrusion Prevention and Active Response: Deploying Network and Host IPS Rating: 3 out of 5 stars3/5OSI-model Third Edition Rating: 0 out of 5 stars0 ratingsCCNA Security A Complete Guide - 2020 Edition 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 Practical Linux with Raspberry Pi OS
0 ratings0 reviews
Book preview
Practical Linux with Raspberry Pi OS - Ashwin Pajankar
© Ashwin Pajankar 2021
A. PajankarPractical Linux with Raspberry Pi OShttps://doi.org/10.1007/978-1-4842-6510-9_1
1. Introduction to Raspberry Pi
Ashwin Pajankar¹
(1)
Nashik, Maharashtra, India
I hope you have gone through the Table of Contents and Introduction. If not, I highly recommend you go through them. This is the very first chapter of the book, and I welcome you all to the exciting journey of learning Linux with the Raspberry Pi Operating System.
In this chapter, we will learn the details about the most popular platform and single-board computer family of our times, the Raspberry Pi. Then we will learn a bit about Linux and the distribution of Linux that is popularly used with the Raspberry Pi family (hereafter, I will use the abbreviation RPi), the Raspberry Pi Operating System. We will learn how to install it on a RPi board. The following is the list of the topics that we will learn in this chapter:
Single-board computers
Raspberry Pi
Linux and distributions
Raspberry Pi OS setup
Configuring the RPi board
Connecting various RPi board models to the Internet
After completing this chapter, we will be comfortable with the installation and the basic usage of the RPi board and the RPi OS.
Single-Board Computers
Single-board computers (also known as SBCs) have all the components of a fully functioning computer like the processor, GPU, RAM, and I/O on a single printed circuit board. This is in contrast with desktop or laptop computers that have a motherboard which has various slots for RAM, the processor, and the graphics card. Desktop or laptop computers can be upgraded by replacing processors and graphics cards. We can also add more RAM chips in the RAM slots. However, SBCs cannot be upgraded like that. This is one of the major differences between traditional desktops/laptops that are totally modular and SBCs. The key benefit of the lack of modularity of SBCs is that the size of an entire computer is very small. Most of the SBCs are a little bigger than a regular credit/debit card, and they are very compact.
SBCs are used as technology demonstrators (prototypes), educational computers, and embedded systems. There is a recent surge in the popularity of SBCs due to advances in the fabrication process and manufacturing technologies. We are living in an era where a new SBC or a new version of an existing one is announced almost on a monthly basis. The market is full of various SBCs and SBC families. A few prominent SBC families are Raspberry Pi, Banana Pro, BeagleBoards, and Orange Pi. Raspberry Pi is the most popular family of single-board computers available in the market, and it is one of the best-selling computers in the world. In the next section, we will have an overview of the Raspberry Pi family of computers.
Raspberry Pi
Raspberry Pi is a family of SBCs developed by the Raspberry Pi Foundation (www.raspberrypi.org/). It consists of many board models, and all the current models under production are listed on the foundation’s products page (www.raspberrypi.org/products/). Throughout the book, I will be using a Raspberry Pi 4 Model B (the latest board model in the family) with 4 GB RAM.
Table 1-1 lists the specifications of the Raspberry Pi 4 Model B.
Table 1-1
Technical Specifications of Raspberry Pi 4 B
There are many models of the boards in this family that are currently under production, and if you visit the hobby electronics store near your home, you may find older out-of-production board models at a bargain price. To keep it brief, I will be discussing the technicalities and specifications of the other models only when needed. We can purchase Raspberry Pi boards at authorized retailers (the list can be found in the products page) or at popular ecommerce websites such as Amazon.
Figure 1-1 shows a RPi 4 B board.
../images/503786_1_En_1_Chapter/503786_1_En_1_Fig1_HTML.jpgFigure 1-1
Photograph of a RPi 4 B board
Figure 1-2 shows schematics of the components of RPi 4 B.
../images/503786_1_En_1_Chapter/503786_1_En_1_Fig2_HTML.jpgFigure 1-2
Components on a RPi 4 B board
Throughout this book, I will be explaining all the demonstrations using a 4 GB RAM model of this board.
Linux and Distributions
Linux is a family of open source Unix-like free operating systems. It is based on the Linux kernel, a free and open source operating system kernel by Linus Torvalds. The Linux OS is packaged in a Linux distribution. A Linux distribution includes the Linux kernel developed and supporting system software, libraries, and APIs for programmers. Many of these components are part of the GNU Project (www.gnu.org/home.en.html), and that is why many people refer to Linux as GNU/Linux. As Linux is free and open source, anyone can create a custom distribution of