|
| 1 | +Getting Started with Raspberry Pi |
| 2 | +================================= |
| 3 | + |
| 4 | +#### Objectives |
| 5 | +1. [Build a tiny computer](01-build.md) |
| 6 | +2. **[Set it up just so](02-configuring.md)** |
| 7 | +3. [Explore the Raspbian desktop](03-raspbian-desktop.md) |
| 8 | +4. [Learn a little Linux](04-linux-101.md) |
| 9 | + |
| 10 | +# Configuring the Raspberry Pi |
| 11 | + |
| 12 | +The Raspberry Pi operating system needs a few hints, provided by you, as to how it should behave. If you have used a PC computer before, this is similar to changing settings in the BIOS. |
| 13 | + |
| 14 | +## Introducing Raspi-config |
| 15 | + |
| 16 | +When you first boot up, the system will launch **raspi-config** |
| 17 | + |
| 18 | + |
| 19 | + |
| 20 | +**Raspi-config** is a text-based application, so you can't use your mouse to navigate. Instead, use the **Arrow** and **Tab** keys to move between fields, **Return** to select, and use **Esc** to cancel. You can always get back to the main page by tapting Esc a couple of times! |
| 21 | + |
| 22 | +:star: You can access this screen in the future to make other changes by typing `sudo raspi-config` in any Terminal window (more on Terminals later...) |
| 23 | + |
| 24 | +### Expand the file system |
| 25 | + |
| 26 | +The Raspbian operating system takes up just a small portion of the available storage space, but we don't start off knowing how big of a disk it was installed on. So, the first time we boot up from a new SD card we need to let the system know how much room there is for programs and doge pics. |
| 27 | + |
| 28 | +* Move the red cursor to **1 Expand Filesystem** using the arrow keys and tap **Return**. You should see a message go by the the filesystem will be enlarged next time you reboot. Simple right? |
| 29 | + |
| 30 | + |
| 31 | + |
| 32 | +### Booting to a Graphical Desktop |
| 33 | + |
| 34 | +Some systems launch to a powerful text interface by default because this saves precious memory and processor power. For now, we want to make sure the Raspi starts up in a friendly desktop environment. |
| 35 | + |
| 36 | +* Move the red cursor to **3 Enable Boot to Desktop/Scratch**, tap **Return**, and select **Desktop Log in as user 'pi' at the graphical desktop**. tap **Return**. |
| 37 | + |
| 38 | +### Setting Timezone and Keyboard Type |
| 39 | + |
| 40 | +Raspberry Pis are British computers and as such default to Greenwich Mean Time (GMT) and a UK keyboard layout. The former will make the Pi think its 5-6 hours later than it is and the latter will make some of your keys act funny when using an American keyboard. |
| 41 | + |
| 42 | +* Move the red cursor to **4 Internationalisation Options**, tap **Return**, select **I2 Change Timezone**, and tap **Return** again. |
| 43 | +* After a brief pause, you will see a menu called **Configuring tzdata**. Select **US** and then **Central**, then tap **Return** |
| 44 | +* From the main **raspi-config** page, choose **4 Internationalisation Options** again. This time, select **I3 Change Keyboard Layout** then make the following selections: |
| 45 | + * Keyboard model: Generic 101-key PC |
| 46 | + * Keyboard layout: English (US) |
| 47 | + * Key to function as AltGr: The default for the keyboard layout |
| 48 | + * Compose key: No compose key |
| 49 | + * Use Control+Alt+Backspace to termine the X server: Yes |
| 50 | + |
| 51 | +### Renaming your Pi |
| 52 | + |
| 53 | +Out of the box, all Pis are named **raspberrypi** on the network. This is going to get confusing, so you are going to give your Pi its own unique name. |
| 54 | + |
| 55 | +* Move the cursor to **8 Advanced Options**, tap **Return**, then navigate to **A2 Hostname** and tap **Return** again. Read the message about valid characters, tap **Return** one more time. |
| 56 | +* Enter a new name for your Pi in the box labeled "Please enter a hostname". When you're ready to end, use **Tab** to navigate to the **OK** field and tap **Return** |
| 57 | + |
| 58 | +#### Rules of the Road |
| 59 | + |
| 60 | +1. You can only use the characters a-z, 0-9, and the hyphen |
| 61 | +2. Try to keep your names short because you and others will have to type them |
| 62 | +3. :exclamation: All names used in our workshop have to be appropriate for a classroom setting |
| 63 | + |
| 64 | +### Enabling SPI |
| 65 | + |
| 66 | +SPI is a special interface that will be used later in the workshop. We need to turn it on in **raspi-config**. |
| 67 | + |
| 68 | +* Go to **8 Advanced Options** again and tap **Return**. Select **A6 SPI** and when asked if you would like the SPI interface to be enabled, select **Yes**. When asked if you would like the SPI kernel module to be loaded by default, again select **Yes**. |
| 69 | + |
| 70 | +### Restarting |
| 71 | + |
| 72 | +Most of the changes you made won't take effect until the computer restarts. So, let's do that now from within **raspi-config** |
| 73 | + |
| 74 | +* Navigate the cursor to **Finish** and tap **Return**, then watch the system restart. It should only take a few seconds. Then, you will be ready to explore the desktop! |
| 75 | + |
| 76 | + |
| 77 | + |
| 78 | +**The Raspbian desktop will appear after you reboot from raspi-config** |
| 79 | + |
| 80 | +## Connecting to Wifi |
| 81 | + |
| 82 | +There's a lot of corners to explore on the Raspbian desktop, but the first thing most folks want to do is connect to the Internet. If you have access to a wired, or **Ethernet**, network you can connect to it via the **Ethernet Port** on the Raspi using a cable. Most of us use wireless, or **Wifi** connections and so shall we in our workshop. |
| 83 | + |
| 84 | +* In the top right corner of the screen, click on the networking icon. It will either look like a pair of computers or a common "Wifi" signal icon. |
| 85 | + |
| 86 | + |
| 87 | + |
| 88 | +**Select the CODE@TACC network. You will not have access to the others.** |
| 89 | + |
| 90 | +* Enter either this access key **0123456789** or one provided to you by the instructors |
| 91 | + |
| 92 | + |
| 93 | + |
| 94 | +**If you entered the key correctly, when you click on the Wifi icon, it will show your Raspi to be connected to the CODE@TACC network** |
| 95 | + |
| 96 | + |
| 97 | + |
| 98 | +# What you learned |
| 99 | +* How to use navigate inside a "screen-based" application |
| 100 | +* Finding and configuring various options inside **raspi-config** |
| 101 | +* How to rename a Raspberry Pi |
| 102 | +* Connecting a Raspberry Pi to a Wifi internet connection |
| 103 | + |
| 104 | +# Challenges |
| 105 | +* None |
| 106 | + |
| 107 | +# Resources |
0 commit comments