Headless Raspberry Pi Setup
I have a lot of raspberry pi's sitting around. Sometimes I flash new images and want to get install the same packages. I don't want to learn ansible (no idea if that would slow down the pi... probably), so here's a bunch of steps to get things up and running.
Before initial boot
- download the image
- use something like Etcher or
ddto flash the image cd /Volumes/bootand runtouch ssh- in the same directory, create a
wpa_supplicant.conffile
ctrl_interface=DIR=/var/run/wpa_supplicant GROUP=netdev
country=US
network={
ssid="<ssid>"
psk="<pd>"
key_mgmt=WPA-PSK
}
After booting
sudo apt-get update && sudo apt-get upgrade && sudo apt-get dist-upgradesudo apt-get install -y tmux vim git- add
gpu_mem=16to/boot/config.txtsince this will be headless - follow these instructions to install zsh/oh-my-zsh
- clone dotiles/copy over
- install any necessary zsh-plugins/themes etc.
- follow these instructions to setup weechat
Weechat setup
TODO: write a small script to replace some values in the configuration files (usernames etc) with env variables.
At some point I'll have config files in the dotfiles repo. Until then just scp all configs over except sec.conf.
/unset weechat.network.gnutls_ca_file/secure passphrase <passphrase>to store things insec.conf/secure set freenode_password xxxxxxx