RPi Essentials
Download
[edit]Format
[edit]Use Win32 Disk Imager on Windows
For Linux you can use the following:
lsblk dd bs=4M if=image.img of=/dev/sdX conv=fsync
First command is used to identify the appropriate output filesystem
Backup
[edit]Again, use Win32DI on Windows or the following on Linux
sudo dd bs=4M if=/dev/sdb of=raspbian.img
And to restore on Linux
sudo dd bs=4M if=raspbian.img of=/dev/sdb
WiFi Setup
[edit]The easiest method is to use the raspi-config script included in Raspbian
sudo raspi-config
Alternative
[edit]We can modify the wpa-supplicant file to include our networks.
sudo nano /etc/wpa_supplicant/wpa_supplicant.conf
With Password
[edit]Add the following to the above config file:
network={
ssid="testing"
psk="testingPassword"
}
You can also use wpa_passphrase to generate an encrypted PSK:
wpa_passphrase "SSID"
You can then use the output without quotes in the above PSK slot in the config file
Without Password
[edit]network={
ssid="testing"
key_mgmt=NONE
}
Multiple Networks
[edit]Simply add both networks to the wpa_supplicant config file, however if you need to prioritize one over the other, use the priority flag:
network={
ssid="HomeOneSSID"
psk="passwordOne"
priority=1
id_str="homeOne"
}
network={
ssid="HomeTwoSSID"
psk="passwordTwo"
priority=2
id_str="homeTwo"
}
Config.txt
[edit]Under /boot/config.txt a couple of key configs to remember:
For the HDMI port on a media center you do typically want it on all the time, even if the TV is off:
hdmi_force_hotplug=1 hdmi_group=1 hdmi_mode=16 hdmi_drive=2