Learn Raspberry Pi with Linux will tell you everything you need to know about the Raspberry Pi's GUI and command line so you can get started doing amazing things. You'll learn how to set up your new Raspberry Pi with a monitor, keyboard and mouse, and you'll discover that what may look unfamiliar in Linux is really very familiar. You'll find out how to connect to the internet, change your desktop settings, and you'll get a tour of installed applications. Next, you'll take your first steps toward being a Raspberry Pi expert by learning how to get around at the Linux command line. You'll learn about different shells, including the bash shell, and commands that will make you a true power user. Finally, you'll learn how to create your first Raspberry Pi projects: Making a Pi web server: run LAMP on your own network Making your Pi wireless: remove all the cables and retain all the functionality Making a Raspberry Pi-based security cam and messenger service: find out who's dropping by Making a Pi media center: stream videos and music from your Pi Raspberry Pi is awesome, and it's Linux. And it's awesome because it's Linux. But if you've never used Linux or worked at the Linux command line before, it can be a bit daunting. Raspberry Pi is an amazing little computer with tons of potential. And Learn Raspberry Pi with Linux can be your first step in unlocking that potential. What you'll learn How to get online with Raspberry Pi How to customize your Pi's desktop environment Essential commands for putting your Pi to work Basic network services - the power behind what Pi can do How to make your Pi totally wireless by removing all the cables How to turn your Pi into your own personal web server How to turn your Pi into a spy How to turn your Pi into a media center Who this book is for Raspberry Pi users who are new to Linux and the Linux command line 000......Page 1 Title Page......Page 2 Copyright Page......Page 3 Dedication Page......Page 4 Contents at a Glance......Page 5 Table of Contents......Page 6 About the Authors......Page 14 About the Technical Reviewer......Page 15 Acknowledgments......Page 16 Introduction......Page 17 It Only Costs $25......Page 19 Independence......Page 20 ARM CPU......Page 21 512MB of RAM......Page 22 GPIO Ports......Page 23 Remodeling the Landscape......Page 24 From Beginner to Admin......Page 25 Onward......Page 26 Your Freshly Baked Pi Arrives......Page 27 List of Ingredients......Page 29 USB Power Adapter......Page 30 SD Card......Page 31 SD Card Reader......Page 32 Whew, We’re Done!......Page 33 Linux......Page 34 What Is Linux?......Page 35 Getting Raspbian onto Your SD Card......Page 36 Using Image Writer on Windows......Page 37 Using the Terminal to Write the Image......Page 40 First Boot......Page 43 Configuring Your Pi......Page 44 Configuring the Keyboard......Page 45 Changing the Password......Page 49 Configuring the Locale......Page 50 Changing the Time Zone......Page 52 Allocating Memory......Page 53 At Last! It’s Configured!......Page 54 Summary......Page 56 Welcome to LXDE......Page 57 What Do We Have Here?......Page 58 And on the Right Side.........Page 59 The Start Menu......Page 60 Debian Reference......Page 62 File Manager......Page 63 Image Viewer......Page 64 Leafpad......Page 66 Root Terminal......Page 67 Education......Page 69 Scratch......Page 70 Squeak......Page 71 Internet......Page 72 Programming......Page 73 System Tools......Page 75 Desktop Preferences......Page 76 Customizing the Look and Feel......Page 77 Summary......Page 78 CHAPTER 3 Getting Comfortable......Page 79 Say Hello to the Dumb Terminal......Page 80 Modern Terminals......Page 81 Simple......Page 82 Convinced Yet?......Page 83 Console......Page 84 Connecting via SSH......Page 85 Setting Up an SSH Server on the Pi......Page 86 Putty for Windows......Page 87 SSH on the Mac......Page 91 Welcome to the Command Line......Page 92 Summary......Page 94 What Is a Filing System ?......Page 95 Separate Roots......Page 96 Bring it All Together......Page 97 Everything as a File......Page 98 /proc......Page 99 /home......Page 100 /srv......Page 101 Where Are We? Using pwd......Page 102 Creating Files to Play with: Using Touch......Page 103 Somewhere to Store our Files: Using mkdir......Page 104 Time for Some Cloning: How to Use the cp Command......Page 105 The Power to Destroy: Using the rm Command......Page 106 Users and Groups......Page 107 File Permissions......Page 108 Setting File Permissions......Page 110 Shortcuts and Links......Page 113 Summary......Page 114 Become the Boss......Page 115 System Resource Monitoring......Page 117 Uptime and Load Average......Page 118 CPU Utilization Percentage......Page 119 Process Table......Page 120 Disk Usage......Page 121 Managing Processes......Page 123 Killing a Process......Page 125 File Commands......Page 126 Combine ps and grep......Page 128 Cut Down the Results......Page 129 User Environment......Page 130 Summary......Page 133 What is a Text File?......Page 134 The Contenders......Page 135 Starting out with nano......Page 136 So What Does This All Mean?......Page 137 Saving Your File......Page 138 Moving Around in nano......Page 140 Getting Started with vim......Page 142 The vim Modes......Page 143 Saving Your Changes......Page 144 Getting Out of vim......Page 145 Searching in vim......Page 146 Moving to a Specific Line Number......Page 147 Deleting in vim......Page 148 Indenting Text......Page 151 Copy and Paste vim Style......Page 152 Summary......Page 153 Networking......Page 154 BASH: Basic Coding......Page 155 Starting in BASH......Page 156 Output in BASH......Page 157 Variables......Page 158 Logical Operation: if......Page 159 Test Based Arithmetic......Page 160 Troubleshooting......Page 162 Logical Operation: Loop......Page 164 Practical BASH: An Init Script......Page 166 Update the Run Files......Page 168 Creating Your Own init Script......Page 169 The Rules of Raspbian Security......Page 171 Adding a New User......Page 172 Summary......Page 173 First Steps......Page 174 A is for Apache......Page 175 Apache Configuration......Page 177 M is for MySQL......Page 180 Structured Query Language......Page 181 Creating Tables......Page 182 Querying a Database......Page 186 Updating a Database......Page 188 Deleting Data......Page 189 P is for PHP......Page 190 HTML......Page 193 Starting Our Page......Page 194 Display the Database Content......Page 196 Website Data Insertion......Page 198 Inserting to the Database......Page 200 Remove Entries......Page 201 Remove Data from DB......Page 203 Where From Here?......Page 204 Summary......Page 205 CHAPTER 9 WiPi: Wireless Computing......Page 206 Removing Human Input Devices......Page 207 Adding a Remote GUI......Page 208 True WiPi with WiFi......Page 211 GUI WiFi Configuration......Page 215 Managing WiFi from the Command Line......Page 219 Removing the Need for Power......Page 221 Summary......Page 222 Materials Needed......Page 223 dmesg......Page 224 Motion Capture......Page 228 Installing SSMTP......Page 232 Installing and Using mutt......Page 234 Testing the Alerting System......Page 235 Bringing It All Together......Page 236 Making Decisions......Page 237 Designing Solution......Page 238 Script 1......Page 240 Script 2......Page 241 Testing......Page 242 Where to Go from Here......Page 244 Summary......Page 245 Video with XBMC......Page 246 Setup to Build......Page 247 Changing Files with Sed and Regular Expressions......Page 251 Compiling Source Code......Page 252 Troubleshooting......Page 254 Starting and Using XBMC......Page 255 XBMC on Boot......Page 258 Stream Music with Airplay......Page 259 Airport on Boot......Page 264 Summary......Page 265 Index......Page 266
Learn Raspberry Pi with Linux will tell you everything you need to know about the Raspberry Pi's GUI and command line so you can get started doing amazing things. You'll learn how to set up your new Raspberry Pi with a monitor, keyboard and mouse, and you'll discover that what may look unfamiliar in Linux is really very familiar. You'll find out how to connect to the internet, change your desktop settings, and you'll get a tour of installed applications.
Next, you'll take your first steps toward being a Raspberry Pi expert by learning how to get around at the Linux command line. You'll learn about different shells, including the bash shell, and commands that will make you a true power user.
Finally, you'll learn how to create your first Raspberry Pi projects:
- Making a Pi web server: run LAMPon your own network
- Making your Pi wireless: remove all the cables andretain all the functionality
- Makinga Raspberry Pi-basedsecurity cam and messenger service: find out who's dropping by
- Makinga Pi media center: stream videos and music from your Pi
Raspberry Pi is awesome, and it's Linux. And it's awesome because it's Linux. But if you've never used Linux or worked at the Linux command line before, it can be a bit daunting. Raspberry Pi is an amazing little computer with tons of potential. And
Learn Raspberry Pi with Linuxcan be your first step in unlocking that potential.
What you’ll learn
- How to get online with Raspberry Pi
- How to customize your Pi's desktop environment
- Essential commands for putting your Pi to work
- Basic network services - the power behind what Pi can do
- How to make your Pi totally wireless by removing all the cables
- How to turn your Pi into your own personal web server
- How to turn your Pi into a spy
- How to turn your Pi into a media center
Who this book is for Raspberry Pi users who are new to Linux and the Linux command line.
Table of Contents1: Your First Bite of Raspberry Pi 2: Surveying the Landscape
3: Getting Comfortable 4: The File-Paths to Success 5: Essential Commands 6: Editing Fileson the Command Line 7: Managing Your Pi
8: A LAMP of Your Own
9: WiPi: Wireless Computing 10: The Raspberry sPi
11: Pi Media Center
Learn Raspberry Pi with Linux will tell you everything you need to know about the Raspberry Pi's GUI and command line so you can get started doing amazing things. You'll learn how to set up your new Raspberry Pi with a monitor, keyboard and mouse, and you'll discover that what may look unfamiliar in Linux is really very familiar. You'll find out how to connect to the internet, change your desktop settings, and you'll get a tour of installed applications. Next, you'll take your first steps toward being a Raspberry Pi expert by learning how to get around at the Linux command line. You'll learn about different shells, including the bash shell, and commands that will make you a true power user. Finally, you'll learn how to create your first Raspberry Pi projects: Making a Pi web server: run LAMP on your own network Making your Pi wireless: remove all the cables and retain all the functionality Making a Raspberry Pi-based security cam and messenger service: find out who's dropping by Making a Pi media center: stream videos and music from your Pi Raspberry Pi is awesome, and it's Linux. And it's awesome because it's Linux. But if you've never used Linux or worked at the Linux command line before, it can be a bit daunting. Raspberry Pi is an amazing little computer with tons of potential. And Learn Raspberry Pi with Linux can be your first step in unlocking that potential. -- Provided by publisher __Learn Raspberry Pi with Linux__Finally, you'll learn how to create your first Raspberry Pi projects:Making a Pi web server: run LAMP on your own network Making your Pi wireless: remove all the cables and retain all the functionality Making a Raspberry Pi-based security cam and messenger service: find out who's dropping by Making a Pi media center: stream videos and music from your Pi Raspberry Pi is awesome, and it's Linux. And it's awesome because it's Linux. But if you've never used Linux or worked at the Linux command line before, it can be a bit daunting. Raspberry Pi is an amazing little computer with tons of potential. Andcan be your first step in unlocking that potential.