First, we'll get a Raspberry Pi going. This involves downloading a Linux image, writing it to an SD card, and configuring the Pi how we'll need it. By the way, this assumes you're wanting a USA keyboard config.
- Download a Raspbian disk image
- Download Raspbian image to PC
http://downloads.raspberrypi.org/raspbian_latest - Unzip file, to get a disk image of the Raspbian install
- Download Raspbian image to PC
- Create a bootable SD card
- Download Win32DiskImager (PC application)
http://sourceforge.net/projects/win32diskimager/ - Install Win32DiskImager to the PC
- Plug the SD card you intend to burn with the image into the PC card reader
- Start Win32DiskImager
- Open the image file unzipped in step 1b.
- In the dropdown for Device, carefully select the SD card (drive letter) you intend to burn with the image.
- Click “Write” [NOTE: This will destroy any data on the selected storage device, and also format it with smaller capacity than it can support. The latter is recoverable, the former is not.]
- Once the write has finished, remove the SD card. It is ready to load into the Pi
- Download Win32DiskImager (PC application)
- Set up the Raspberry Pi hardware
- Plug a 5V micro USB converter into the micro USB jack. This is power for the Pi
- Plug an HDMI monitor into the HDMI port of the Pi
- Plug a wired USB keyboard and mouse into the Pi
- Put the SD card with the Raspbian image into the SD card slot on the Pi
- Install Raspbian - NOTE: use up/down arrows to navigate; use space to select, and tab to jump to <other options>
- Power up the Pi. This will generate a bunch of scrolling text messages on the monitor. Wait until the Raspi-config screen comes up
- Raspi-config
- Do “Expand Filesystem” - this lets the file system use the whole SD
- Do “Internationalisation Options,” "Change Locale" - Scroll down until you see the existing tick selecting "en_GB.UTF-8 UTF-8" and uncheck this by pressing the space bar. Scroll down until you see en_US.UTF-8, and select this by pressing the space bar. Tab to select "OK." Choose the same en_US.UTF-8 for the default locale.
- Do "Internationalisation Options," "Change Keyboard Layout"
- Don't actually change keyboard layout, nor any following options, except enable use of CTRL+ALT+BACKSPACE to terminate X server
- In "Advanced Options," turn on “ssh,”just in case you want to use an external terminal to control the Pi later on
- Select finish (Pi will reboot)
- Log-in
- Login: pi
- Password: raspberry
- Configure keyboard mapping
- At the terminal prompt, type...
- sudo nano /etc/default/keyboard
("sudo" is to assume admin priviledge, nano is a text editor)
- sudo nano /etc/default/keyboard
- Navigate through the file using the arrow keys, and edit the line XKBLAYOUT="gb" to say XKBLAYOUT="en". (this changes the keyboard mapping, to match our keyboards, rather than Great Britain.
- Hit CTRL-O, then Enter, to save the file
- Hit CTRL-X to exit
- At the terminal prompt, type...
- Configure automatic mapping of USB drives
- Plug in the USB drive where you'll want it (and only have one plugged in!)
- At the terminal prompt, type...
- cd /mnt
- sudo mkdir usb
- sudo nano /etc/fstab
- Below the other entries, but above the "# a swapfile..." messgage, type...
- /dev/sda1 /mnt/usb vfat defaults 0 2
- CTRL-O and Enter to save
- CTRL-X to exit
- Restart the Pi by typing at the terminal prompt...
- sudo reboot
- Configure WiFi (optional, and only if you have a USB WiFi dongle)
- At terminal prompt, type...
- sudo nano /etc/network/interfaces
- Edit the line "iface wlan0 inet manual," and all below, to say...
- iface wlan0 inet dhcp
wpa-ssid "your network"
wpa-psk "your password" - Of course, replacing "your network" and "your password" with the appropriate SSID and WiFi password
- CTRL-O, then Enter, to save the file
- CTRL-X to exit
- iface wlan0 inet dhcp
- Restart the Pi by typing at the terminal prompt...
- sudo reboot
- Log in again, and type at the terminal prompt...
- sudo ifconfig
- Look under wlan0 for an "inet addr:...." If this shows a xxx.xxx.x.xxx number, your Pi has received an IP address from your router, and is now connected to the internet.
- At terminal prompt, type...