RPI first boot and settings
- Insert HDMI and power cables (in this order preferably).
- The rpi will boot.
- Log in via username pi and password raspberry
- Enter sudo
raspi-config
- In the menu:
- Resize file system so that it fills the entire SD card (the resize will happen at the next boot)
- Change your password to something you can remember (duh)
- Enable ssh login (via advanced options)
- Enable the camera if you have one
- Reboot.
- Login.
- Update the OS:
sudo apt-get update
sudo apt-get upgrade
- Turn down wifi power management:
sudo iw dev wlan0 set power_save off
sudo iwconfig wlan0 power off
- Configure wifi:
sudo nano /etc/wpa_supplicant/wpa_supplicant.conf
, and edit the file to look like this, replacing <ssid> and <password> with the correct ssid and passwords:
country=US
ctrl_interface=DIR=/var/run/wpa_supplicant GROUP=netdev
update_config=1
network={
ssid="<ssid>"
psk="<password>"
key_mgmt=WPA-PSK
}
- Restart networking:
sudo /etc/init.d/networking restart
- Take note of your IP address, shown by sudo ifconfig . Check whether the wifi did acquire an address. There should be a wlan0 section that lists an inet addr. That is the address of your rpi. It won't change until you switch off the rpi, or 24h go by (and probably not even then).
- Install screen:
sudo apt-get install screen
- If you are used to emacs, install jed (lighter weight):
sudo apt-get install jed
We can finally work on the rpi from the comfort of a laptop. Fire up a terminal window on the laptop. Then:
ssh pi@<ip-address-of-rpi>
- Let us install some packages.
sudo apt-get install git jed screen
- And let's get the bootcamp code:
git clone https://github.com/lucadealfaro/rpi_boot_camp.git
Once this is done, you can follow one of these two boot camps: