- Download the latest Raspbian image if you haven't already.
- Use Win 32 Disk Imager to write the image to your SD card (follow these instructions if you need help).
- Put the SD card in your Pi and connect a mouse, keyboard, and screen. Connect a power adapter last.
- If everything went well, you should see text appear on the screen as your Pi is booting up.
Raspbian is an Operating System based on Linux (Debian) but optimized for the Raspberry Pi. While it comes with a Graphical User Interface (GUI), we won't be using it. Everything can and will be done using the console only.
If you have never worked with Linux before, it may seem a bit intimidating. That's okay. The trick to mastering Linux is to pretend you know what you're doing and when you've been doing that for long enough you will no longer need to pretend.
For now, three things you should know:
- Many commands start with sudo. This is a way to tell Linux "do this as an administrator". If you get an error message that sounds like "permission denied", odds are you can repeat your command with "sudo" at the start to make it work.
- You can paste text into MobaXterm. This way you don't have to worry about retyping a command exactly as you see it here. Just copy the text to clipboard, and in the terminal you right-click where you would type and select "Paste".
- nano is a simple text editor for linux. You'll be using it a lot when working with configuration files. If you're a masochist, you can replace "nano" with "vi" whenever you see it for a different text editor.
pasting text in MobaXterm
- If you downloaded Wheezy then the first time you boot up your pi it will automatically open raspi-config.
- If you downloaded the newer Jessie then you can open up a Terminal window and type "sudo raspi-config" (and press enter).
- If you downloaded Jessie-lite then you can type "sudo raspi-config" at the prompt (and press enter).
If you're asked for a login, the default is "pi" with password "raspberry".
Here's what you should configure the first time:
- Expand the file system (to make sure the OS can access the entire SD card)
- Change the user password (and don't forget it!)
- Under Enable Boot to Desktop/Scratch or Boot Options, make sure Console is selected, so you don't have to deal with that silly GUI
- Internationalisation Options: change the timezone to where you live (eg. US - Eastern)
- Under Advanced Options, go to SPI (A5) and enable it (we'll need this later when we connect things to the GPIO pins)
Use the right arrow to select Finish at the bottom and reboot (if it doesn't ask you to reboot, just type sudo reboot and press enter). When it asks for your username, enter "pi". The password is the one you just set in the second step.
And for our next trick, we will connect to the Internet.Raspberry Pi - The Internet