Advertisement

Raspberry Pi
User Guide
Getting
started
Operating Systems
®
& Installation
Learn
the ropes
Linux &
Packages
Making the
most of your Pi
Pi Projects
element14.com
Raspberry Pi User Guide.indd 1
08/07/2014 14:43

Advertisement

Table of Contents
loading

Summary of Contents for Element 14 Raspberry Pi

  • Page 1 Raspberry Pi User Guide Getting started Operating Systems ® & Installation Learn the ropes Linux & Packages Making the most of your Pi Pi Projects element14.com Raspberry Pi User Guide.indd 1 08/07/2014 14:43...
  • Page 2: Table Of Contents

    CONTENTS Unpack the box Operating Systems Installation Loading the O/S Raspbian Command line: Learn the ropes Packages: How do they work? RaspBMC Camera controller Sending output Minecraft Pi Postscript Raspberry Pi User Guide.indd 2 08/07/2014 14:43...
  • Page 3: Unpack The Box

    Micro USB charging cables, those will work just fine. Raspberry Pi is a trademark of the Raspberry Pi Foundation. Parts of this manual are reproduced from ‘Raspberry Pi Beyond the Manual’ and is copyright of or licensed by Future Publishing Limited (a Future plc group company), UK 2013. All rights reserved. The rest of this manual is copyright of Premier Farnell UK Limited, 2014 and all rights are reserved.
  • Page 4: Operating Systems

    Let’s take a look at a sweet selection of tasty operating systems for the Raspberry Pi. The Raspberry Pi phenomenon appears to go from strength to strength; like a runaway train, it’s ploughing ahead and forging itself a place in the record books.
  • Page 5 Pi running and connected to the network. It doesn’t include much of To Risc OS a 700MHz 512MB Raspberry Pi is the software you may want to use, such as a luxury, what to do with all that memory? Risc OS like graphical environment, for example.
  • Page 6: Installation

    ‘Configure’ icon and image is fairly well documented, as per begin to alter any settings we see fit. the area on the Raspberry Pi site titled Arch Linux for the RPi is a different beast, Guide for beginners which can be found booting the user into a terminal environment here: goo.gl/53xgp, along with the simple...
  • Page 7: Loading The O/S

    The memory card is affectionately referred to as NOOBS. NOOBS is a way to make setting up a Raspberry Pi for the first time much, much easier. You won’t need network access, and you won’t need to download any special imaging software.
  • Page 8: Raspbian

    Raspbian For the majority of people who use it, Raspbian will be the graphical face of the Raspberry Pi. It can be obtained and installed on to an SD card by following the instructions on the previous page. Once it’s up and running, it’s a good...
  • Page 9 New Year’s Eve countdown timer with fireworks launching ability New Year’s Eve countdown timer with fireworks launching ability ■ Raspberry Pi remote fish tank controls: AKA Project Goldie Raspberry Pi remote fish tank controls: AKA Project Goldie ■ The scary door ■...
  • Page 10: Command Line: Learn The Ropes

    Command line: Learn the ropes Get to grips with your Raspberry Pi’s command line interface and unleash its full power without using the mouse. As you have no doubt discovered, Raspbian has a graphical interface similar to that of Windows or Mac OS X.
  • Page 11 Traditionally, the most common has been changes you need. Press Ctrl+X to save text editors that allow you to work on files your work and exit back to the prompt. if you don’t have a graphical connection. Raspberry Pi User Guide.indd 11 08/07/2014 14:44...
  • Page 12 (try typing cd /m and then pressing Tab twice). You can even watch movies in the command line. To stream the classic, ■ just enter telnet towel.blinkenlights.nl and put some popcorn on. Raspberry Pi User Guide.indd 12 08/07/2014 14:44...
  • Page 13 Probably the most important command in any Unix-like system is man, since it is the key to ■ understanding every other command. Take time to become familiar with the structure and language used and it will make life easier in the future. Raspberry Pi User Guide.indd 13 08/07/2014 14:44...
  • Page 14 *.txt to see if you are right. sudo When using the Raspberry Pi for normal use, your settings. However, there are times when you can work with files in your home directory you need to do this. You can use...
  • Page 15 Its book ( The Linux Command Line ) is available from bookshops, or for free online www.linuxcommand.org/ lc3_learning_the_shell.php. Use the sudo command to switch between the normal user ‘pi’, and the superuser ‘root’. ■ Raspberry Pi User Guide.indd 15 08/07/2014 14:44...
  • Page 16: Packages: How Do They Work

    This is responsible for getting a different one, so if you want to try this and managing any software you need. It distribution on your Raspberry Pi, you’ll links to a repository of software so it can need to familiarize yourself with the pacman download all the files for you.
  • Page 17 In these cases, you’ll either need to free up some space or find another application that has fewer dependencies. apt-cache in a terminal will give you a list of available packages. ■ Raspberry Pi User Guide.indd 17 08/07/2014 14:44...
  • Page 18 There are you can get it by clicking on the icon on a couple of graphical tools that make desktop. See ‘Raspberry Pi Store’ on package management a bit easier. The the next page for more information.
  • Page 19 INSTALL with This should tell you less INSTALL Raspberry Pi store The Raspberry Pi store allows users to rate the software, so you can see how useful other people have found it. It also includes some non-free software. However, it doesn’t have anywhere near...
  • Page 20: Raspbmc

    You can install a media player, such as VLC, on to Raspbian, and use that to play videos. This works fine if you’re using your Raspberry Pi as a general computer and giving it occasional multimedia functions. However, the small size of the hardware, and you may have experienced on Raspbian.
  • Page 21 Pi must be powered using a 1.8Amp or 2Amp micro USB power supply. This is the default ■ remote, but other more graphically stimulating ones are available in the RaspBMC settings. Raspberry Pi User Guide.indd 21 08/07/2014 14:44...
  • Page 22: Camera Controller

    Camera controller Back up your photos using your Pi. The size of the Raspberry Pi means we can use it to take control of other embedded devices. This may seem a little redundant – the Firstly, there’s support for most in Linux, and embedded devices obviously have some secondly there’s a range of useful projects...
  • Page 23 Powering your Pi The Raspberry Pi gets power from its other options. Four AA batteries, for micro USB port. This supplies 5V, and the instance, should provide enough power,...
  • Page 24 USB stick, and emits a stream of n characters. This it’ll back up your photographs when means that when Gphoto2 prompts to you boot up your Raspberry Pi. overwrite any previously downloaded files, In this form, it’s not ■...
  • Page 25 Pi to take resolution versions of the images, and photos as well as copy them. Networking The Raspberry Pi comes with a wired on the Pi, if you type sudo ifconfig Ethernet connection, which is fine for...
  • Page 26: Sending Output

    SD card reader are for – well, you’re about to find out. This basic circuit Figure 1. This shows ■ how half of the LEDs are wired up. The additional ones are added in exactly the same manner. Raspberry Pi User Guide.indd 26 08/07/2014 14:44...
  • Page 27 PIN PIN PIN PIN Figure 2. Connect ■ the bread board to these pins. We used commercially- available single-pin connectors, but you could also solder connectors on, or use an old IDE cable. Raspberry Pi User Guide.indd 27 08/07/2014 14:44...
  • Page 28 In its raw form, it has fewer features than the Gertboard (which includes an Arduino microcontroller), but it can be expanded with a huge range of shields. Raspberry Pi User Guide.indd 28 08/07/2014 14:44...
  • Page 29 Gert van Loo (one of the designers) this unless absolutely necessary. In our has put together an explanation, which circuits, we’ve used 1,000 Ohms, which can be found at: bit.ly/Qp4PMl gives us a safety factor of almost 5. Raspberry Pi User Guide.indd 29 08/07/2014 14:44...
  • Page 30: Minecraft Pi

    Minecraft Pi Minecraft on the Raspberry Pi Minecraft: Pi Edition is a version of Minecraft that’s designed to work on the Raspberry Pi. Based on the “Pocket Edition”, Minecraft Pi To decompress your freshly is smaller and faster as well as containing...
  • Page 31 You can use the installed then you can download it postToChat method to post all sorts of using: git clone git://github.com/ information you want the player to see. piprogramming/Minecraft.git Raspberry Pi User Guide.indd 31 08/07/2014 14:44...
  • Page 32: Postscript

    2000s of the seminal BBC Micro game Elite, was very different; a typical applicant to form the Raspberry Pi Foundation to might only have done a little web design. make it a reality. Three years later, the Raspberry Pi Model B entered mass The project started to look very realizable.
  • Page 33 See the man page for a detailed list. For example finds all files on the find / -mtime -2 -writable filesystem that were changed less than two days ago and are writable by the current user. Raspberry Pi User Guide.indd 33 08/07/2014 14:44...
  • Page 34 Displays information about the kernel. uname -m outputs the architecture it’s running on. lscpu Lists information about the CPU. dmesg Displays the kernel messages (can be useful for finding problems with hardware). Raspberry Pi User Guide.indd 34 08/07/2014 14:44...
  • Page 35 (a good idea before doing anything). will upgrade all packages that have a apt-get upgrade newer version in the repository. Will search the repository for all packages relating apt-cache search <keyword> to keyword. Raspberry Pi User Guide.indd 35 08/07/2014 14:44...
  • Page 36 Raspberry Pi User Guide.indd 36 08/07/2014 14:44...

Table of Contents