- Download Raspbian Jessie with PIXEL
diskutil list
diskutil unmountDisk /dev/disk<disk# from diskutil>
sudo dd bs=1m if=image.img of=/dev/rdisk<disk# from diskutil>
sudo diskutil eject /dev/rdisk<disk# from diskutil>
Check firmware status of IoT pHAT:
cat /proc/device-tree/hat/product
- If
IoT pHAT w/eep_v0.3
, does not require update - If
IoT pHAT
, does require update. Instructions
Check WiFi driver is loaded:
ifconfig
- Expect wlan0 section.
sudo nano /etc/wpa_supplicant/wpa_supplicant.conf
network={
ssid="Your AP"
psk="Your PIN"
key_mgmt=WPA-PSK
id_str="home"
}
network={
ssid="Your AP"
psk="Your PIN"
key_mgmt=WPA-PSK
id_str="work"
}
- Change the hostname in
/etc/hostname
and/etc/hosts
. - Change the default password with
passwd
- Require a password for sudo calls by editing
/etc/sudoers
- Edit
/etc/ssh/sshd_config
, changePort
line sudo systemctl restart ssh
- Change
PrintLastLog
tono
in/etc/ssh/sshd_config
- Delete
/etc/motd
- Call motd script (examples here) from
.zshrc
,.profile
, etc sudo systemctl restart ssh
sudo apt-get update
sudo apt-get dist-upgrade
sudo reboot
Will see warnings for:
/etc/sudoers.d/010_pi-nopasswd
(OK)- Flash player (OK)
lightdm.conf
(keep changes - 'N')
Run the Raspberry Pi config tool:
sudo raspi-config
- Advanced Options
- VNC
- Yes
Optional: Add the following to /boot/config.txt
to use 1024x768:
hdmi_force_hotplug=1
hdmi_group=2
hdmi_mode=16
(See HDMI_MODE for full list of available modes).
Updating Node.js to modern LTS (adapted from here)
Pi Zero is ARMv6 based, and the official Node repositories don't support this architecture. In this case, install node manually from the binary distributions:
mkdir node-tmp && cd node-tmp
wget https://nodejs.org/dist/v6.9.1/node-v6.9.1-linux-armv6l.tar.gz
for i in *.tar.gz; do
tar -xzf "$i" && rm -r "$i"
done
sudo mv ./* /opt/nodejs
cd .. && rm -rf node-tmp
Then add /opt/nodejs/bin
to the start of PATH
(both for the local user in ~/.profile
and elevated in /etc/sudoers
).