Log In
Or create an account ->
Imperial Library
Home
About
News
Upload
Forum
Help
Login/SignUp
Index
Cover
Title
Copyright
Dedication
Contents at a Glance
Contents
About the Authors
About the Technical Reviewer
Acknowledgments
Introduction
Chapter 1: Your First Bite of Raspberry Pi
Your Freshly Baked Pi Arrives
List of Ingredients
Micro USB lead
USB Power Adapter
HDMI Lead
HDMI Capable Display
SD Card
SD Card Reader
USB Keyboard and Mouse
Whew, We’re Done!
Don’t Panic!
Linux
What Is Linux?
Downloading Raspbian
Getting Raspbian onto Your SD Card
Using Image Writer on Windows
Using dd on the Mac
First Boot
Configuring Your Pi
Expanding the Filesystem
Configuring the Keyboard
Changing the Password
Configuring the Locale
Changing the Time Zone
Allocating Memory
At Last! It’s Configured!
Summary
Chapter 2: Surveying the Landscape
Welcome to LXDE
What Do We Have Here?
The Start Menu and Bottom Left of the Task Bar
And on the Right Side…
The Start Menu
Accessories
Education
Internet
Programming
System Tools
Preferences
Summary
Chapter 3: Getting Comfortable
Ye Olde Computer
Say Hello to the Dumb Terminal
Modern Terminals
Why Do We Still Care About These Things?
Three Terminals
Console
Opening a Virtual Terminal in the GUI
Connecting via SSH
Welcome to the Command Line
Different Shells
Summary
Chapter 4: The File-Paths to Success
What Is a Filing System?
More than One Filesystem
Separate Roots
Unified Filesystem
The Mac has to be Different
Bring it All Together
Everything as a File
Filesystem Layout
/ (Root Directory)
/root
/etc
/proc
/var
/boot
/bin and /sbin
/dev
/home
/lib
/lost+found
/mnt
/media
/usr
/opt
/srv
/sys
/tmp
Wrapping it Up
Putting it to Work
Where Are We? Using pwd
What’s in Here with Us? Using ls
Creating Files to Play with: Using Touch
Somewhere to Store our Files: Using mkdir
Making Use of a New Directory: Using the mv Command
Time for Some Cloning: How to Use the cp Command
The Power to Destroy: Using the rm Command
Fully Qualified and Relative Paths
Users and Groups
File Permissions
Setting File Permissions
Shortcuts and Links
Summary
Chapter 5: Essential Commands
Become the Boss
RTFM
System Resource Monitoring
Uptime and Load Average
Tasks
CPU Utilization Percentage
Memory Usage
Process Table
Using free to View Memory Allocation
Disk Usage
Managing Processes
File Commands
Combining Commands
User Environment
The cron Command
Summary
Chapter 6: Editing Files on the Command Line
What is a Text File?
The Contenders
Starting out with nano
So What Does This All Mean?
Saving Your File
Moving Around in nano
Wrapping Up nano
Getting Started with vim
The vim Modes
Saving Your Changes
Getting Out of vim
Searching in vim
Moving to a Specific Line Number
Moving About in vim
Deleting in vim
Miscellaneous Little Commands
Visual Mode
Indenting Text
Summary
Chapter 7: Managing Your Pi
Remotely Accessing the Pi
Networking
DNS
SSH
BASH: Basic Coding
What Is BASH?
Starting in BASH
Interpreted versus Compiled
Output in BASH
Recap
Variables
Logical Operation: if
Test Based Arithmetic
Troubleshooting
Logical Operation: Loop
Troubleshooting
Practical BASH: An Init Script
Pick and Match with the case Statement
Application within Application: Forking
Update the Run Files
Creating Your Own init Script
Security and User Management
The Rules of Raspbian Security
Adding a New User
Summary
Chapter 8: A LAMP of Your Own
First Steps
L is for Linux
A is for Apache
Apache Configuration
Troubleshooting
M is for MySQL
Installing MySQL
Structured Query Language
P is for PHP
Simple Web App
HTML
Starting Our Page
Display the Database Content
Website Data Insertion
Inserting to the Database
Remove Entries
Remove Data from DB
Troubleshooting
Where From Here?
Summary
Chapter 9: WiPi: Wireless Computing
Preparing for WiPi
Simple Constraint Removal
Removing Human Input Devices
Adding a Remote GUI
True WiPi with WiFi
GUI WiFi Configuration
Managing WiFi from the Command Line
Down to One
Removing the Need for Power
Powered USB Adapters
Summary
Chapter 10: The Raspberry sPi
Materials Needed
Presetup
Getting Started
dmesg
Troubleshooting
Motion Capture
Troubleshooting
Alerting Yourself
Installing SSMTP
Installing and Using mutt
Testing the Alerting System
Troubleshooting
Bringing It All Together
Understanding the Problem
Making Decisions
Designing Solution
Script 1
Script 2
Testing
Troubleshooting
Where to Go from Here
Summary
Chapter 11: Pi Media Center
Video with XBMC
Setup to Build
Changing Files with Sed and Regular Expressions
Compiling Source Code
Troubleshooting
Starting and Using XBMC
XBMC on Boot
Troubleshooting
Stream Music with Airplay
Troubleshooting
Airport on Boot
Summary
Index
← Prev
Back
Next →
← Prev
Back
Next →