Introduction
- Welcome!
- What are we trying to do?
- Who is this book for?
- What will we need?
- Why on earth did I write this rambling tome?
- Where can you get more information?
The History of the Raspberry Pi
Raspberry Pi Versions
- Version Comparison
Raspberry Pi Peripherals
- SD Card
- Keyboard / Mouse
- Video
- Network
- Power supply
- Cases
Operating Systems
- Welcome to Raspberry Pi OS
- Raspberry Pi OS and Raspbian
- Operating System Evolution
- Downloading
- Writing the Operating System image to the SD Card
- Enabling Secure Shell Access
- Powering On
- The Command Line interface
- Raspberry Pi Software Configuration Tool
- Software Updates
Power Up the Pi
- Static IP Address
- The Netmask
- CIDR Notation
- Distinguish Dynamic from Static
- Default Gateway
- Lets edit the
dhcpcd.conffile - Remote access
- Remote access via SSH
- Setting up the Server (Raspberry Pi)
- Setting up the Client (Windows)
- WinSCP
- Setting up a WiFi Network Connection
- Built in WiFi Enabling
- Make the changes operative
- Make the built in WiFi IP address static
- Make the changes operative
- Reconnecting to the wireless network automatically
- Let’s write a script
- Lets run our script on a regular schedule
- Let’s test it
Setting up the Raspberry Pi Software
- Web Server, PHP and Database
- Install NGINX and PHP
- Configuration
- Database
- Create a database and a table
Connecting Analog Sensors to the Raspberry Pi
- Analog and Digital
- Analog
- Digital
- The Boards
- The Analog Sensor
- The Light Dependant Resistor (LDR or Photoresistor)
- Analog to Digital Conversion (ADC)
- The ADS1015 Analog to Digital Converter
- Measure
- Hardware required
- Connect
- Test
- Record
- Record the readings
- Recording data on a regular basis with
cron - Managing database size
- Explore
- Simple data point API
- Extracting a Range of Data
- Wrap Up
- Bibliography
Linux Concepts
- What is Linux?
- Linux Directory Structure
//bin/boot/dev/etc/etc/cron.d/etc/rc?.d/home/lib/lost+found/media/mnt/opt/proc/root/sbin/srv/tmp/usr/usr/bin/usr/lib/usr/local/usr/sbin/var/var/lib/var/log/var/spool/var/tmp- Everything is a file in Linux
- Traditional Files
- Directories
- System Information
- Devices
File Editing
- The nano Editor
Linux Commands
- Executing Commands in Linux
- The Commands
- Options
- Arguments
- Putting it all together
apt-get- The
apt-getcommand apt-get updateapt-get upgradeapt-get installapt-get removecat- The
catcommand - Options
- Arguments and Examples
- Test yourself
cd- The
cdcommand - Options
- Arguments
- Examples
- Test yourself
chmod- The
chmodcommand - Options
- Arguments
- Examples
- crontab
- The
crontabcommand - Options
- Examples
- Test yourself
ifconfig- The
ifconfigcommand - Options
- Arguments
- Test yourself
ls- What’s the information in the long list format?
- The
lscommand - Options
- Arguments
- Examples
ping- The
pingcommand - Options
- Test yourself
sudo- The
sudocommand - The ‘sudoers’ file
sudovssu- Test yourself