- Locate your USB or SD drive with
diskutil list
on macOS orfdisk-l
on Linux. - Unmount is with
diskutil unmountDisk /dev/disk1
orsudo umount /dev/sdb1
- Download 'Raspberry Pi OS Lite' raspi image from https://www.raspberrypi.com/software/operating-systems/
- Decompress with gunzip -d
- Blast the ISO onto the drive.
sudo dd bs=1m if=2017-04-10-raspbian-jessie-lite.img of=/dev/disk<N>
-
Unmount it again.
-
Make sure raspi-config is set up to boot from your chosen format (SD or USB).
-
Reboot.
sudo systemctl enable ssh
sudo systemctl start ssh
From Personal machine
scp ~/.ssh/$PRIVATE_KEY_FILENAME* your-raspberry-pi:~/.ssh/
sudo dpkg-reconfigure console-setup
Remap Caps-lock to control. In /etc/default/keyboard, add or append using comma separator.
echo 'XKBOPTIONS="ctrl:nocaps"' | sudo tee -a /etc/default/keyboard
Change kms
to fkms
in this line in /boot/config.txt
.
# Enable DRM VC4 V3D driver
dtoverlay=vc4-kms-v3d
Issue: raysan5/raylib#2259
sudo raspi-config
<Select System Options>
<Select S2 Audio>
Pick the right thing here, probably headphones.
# Add
cat >>"$HOME"/.ssh/config <<EOF
Host github.com
User git
IdentityFile $PRIVATE_KEY_FILENAME
EOF
cat $PRIVATE_KEY_FILENAME.pub >>authorized_keys
# Install git
sudo apt update -y
sudo apt install -y git
# Make src dir
mkdir "$HOME"/src
cd; cd src
# Install your dotfiles
# Install Rust
curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh
# Get raylib sources
git clone [email protected]:raysan5/raylib.git $HOME/src/raylib
cd $HOME/src/raylib
# Install raylib build dependencies
sudo apt-get install cmake libxrandr-dev libxinerama-dev libxcursor-dev libxi-dev clang
# Install raylib runtime dependencies
# From https://github.com/raysan5/raylib/wiki/Working-on-Raspberry-Pi
sudo apt-get install libdrm-dev libegl1-mesa-dev libgles2-mesa-dev libgbm-dev
mkdir build
cd build
cmake -DPLATFORM=DRM ..
make
sudo make install