Raspberry Pi For Dummies. McManus Sean

Чтение книги онлайн.

Читать онлайн книгу Raspberry Pi For Dummies - McManus Sean страница 9

Raspberry Pi For Dummies - McManus Sean

Скачать книгу

cd to go to the directory where the card is mounted:

      cd /media/65E8-9564

      7. Unzip the NOOBS download onto the card.

      This NOOBS download was stored in the folder /home/ubuntu/Downloads, so we can unzip it onto the SD card using this command:

      unzip /home/ubuntu/Downloads/NOOBS_v2_3_0.zip

      You can usually type the first couple of characters of each part of the path and then tap the Tab key on the keyboard to have Linux complete it for you, so you don’t have to remember the whole filename. It might take five minutes or so to unzip and copy the files across to the card.

       FIGURE 2-4: A list of available disks.

      Using Your NOOBS Card

      After you have a card with NOOBS on it, you’re ready to set up your Raspberry Pi. In the next chapter, we show you how to connect your Raspberry Pi up, insert the SD or MicroSD card, and finish installing the operating system.

      Flashing an SD or MicroSD card

      If you've got a NOOBS card, you're all set and can proceed to Chapter 3. Some operating systems may not be available through NOOBS, though, including RISC OS, which we cover in Appendix B on this book’s companion website. (At the time of writing, RISC OS is available through NOOBS for the Raspberry Pi 2, but not for the Pi 3.) To create a card for such operating systems, you can't use NOOBS and must instead download the operating system as an image file, and then use a process called flashing your card to convert that single image file into all the files you need on your MicroSD or SD card.

      You can find links to download operating system images at www.raspberrypi.org/downloads. You can also download Raspbian as an image file, if you prefer not to use NOOBS to install it.

      To flash your card (also called burning an image to the card), you can use Etcher, which is available for Windows, Mac and Linux. Download it at https://etcher.io/.

After installing Etcher, run it and you'll see an elegant and simple interface. (See Figure 2-5.) Follow these steps to flash your card:

      1. On the left side of the interface, choose the image file you want to copy to the card.

      Image files sometimes download inside a .zip file, and Etcher can burn those images without you needing to extract them from the .zip file first.

      2. In the central pane, choose the drive that contains the card you want to burn your image to.

      This process will erase the disk you burn to, so check it carefully. It's a sensible precaution to disconnect any drives that you don't currently need connected to avoid the risk of accidentally wiping them.

      3. Click the Flash! button on the right.

      The image file is copied to your card and converted into all the files you’ll need to run your OS.

       FIGURE 2-5: Etcher enables you to burn operating system images to your SD card.

Chapter 3

      Connecting Your Raspberry Pi

      IN THIS CHAPTER

      ❯❯ Inserting the SD or MicroSD card

      ❯❯ Connecting a monitor or TV, keyboard, and mouse

      ❯❯ Connecting to your router or Wi-Fi

      ❯❯ Connecting and testing the Raspberry Pi Camera Module

      ❯❯ Using Raspi-config to set up your Raspberry Pi

      The thought of being faced with a bare circuit board might strike you as rather daunting, but it’s actually quite easy to connect your Raspberry Pi and get it up and running. You might need to change some of its configuration (see Appendix A), but many people find that their Raspberry Pi works well the moment they connect it all together.

Before we start, make sure you have the Raspberry Pi facing the right way around, at least as far as these directions are concerned. The top of your Raspberry Pi is the side that has the most components and sockets sticking out of it, and is shown in Figures 3-1, 3-2 and 3-3. The back is relatively flat. Arrange your Raspberry Pi so that the spiky GPIO pins are in the top left, or in the case of a Pi Zero or Zero W without pins, so that the 40 holes are in the top left.

       FIGURE 3-1: The original Model B Raspberry Pi. The Model A is the same, except that it has no Ethernet.

       FIGURE 3-2: The Raspberry Pi 3 Model B. The same layout applies to the Raspberry Pi 2 Model B, the Model B+, and the Model A+ (with changes on the right).

       FIGURE 3-3: The Raspberry Pi Zero W. The same layout applies to the Raspberry Pi Zero, except that there is no camera connector.

      Figure 3-1 shows the ports and sockets you will need to use to connect up an original Model B Raspberry Pi. The Model A is the same as Figure 3-1 except that it has no Ethernet connection in the bottom right.

      Figure 3-2 shows the connection points on the Raspberry Pi 3 Model B. This layout also applies to the Raspberry Pi 2 Model B, and the Model B+. At first glance, the Model A+ looks quite different because it's a smaller board, but it's the same layout except for the right edge, where there is no Ethernet socket and just the one USB port.

      Figure 3-3 shows the Raspberry Pi Zero W. The Raspberry Pi Zero looks the same, except that it is missing the camera socket on the right.

      tip Chapter 1 lists everything you might need in order to use your Raspberry Pi, including the various cables.

      Inserting the SD Card

      To start up, the Raspberry Pi requires an SD or MicroSD card with the operating system on it. If you don’t have one, see Chapter

Скачать книгу