Raspberry Pi

I've got 2 Raspberry Pi's setup in the closet attached to 2TB drives. One is for peppermint sync using Syncthing, and the other is for snapshots using a piece of software called Restic.

sshfs mount pi-a on pi-b

restic backup to pi-b

perf test backup over remote mount

Script restic and sshfs mount then schedule into crontab

Unstructured notes

These are rough notes on how I setup the PI in my closet. It does need work.

Download the latest Raspberrian image

unzip 2017-11-29-raspbian-stretch-lite.zip

diskutil unmountDisk /dev/disk2

sudo dd conv=sync bs=1m if=/Users/mbgray/Desktop/2017-11-29-raspbian-stretch-lite.img of=/dev/disk2

sudo diskutil eject /dev/disk2

Configure SSH with `sudo raspi-config` under Interfaces

Setup Syncthing

Set SSH

sudo vim /etc/ssh/sshd_config

Rename user pi with `usermod -l mbgray -m -d /home/mbgray pi`, n.b. you'll need to PermitRootLogin in `/etc/ssh/sshd_config` for a short time to do so.

sudo apt-get update && sudo apt-get dist-upgrade -y

sudo apt-get install git tig vim neovim zsh rsnapshot

chsh -s $(which zsh)

scp ~/.zshrc HOST:

Replace User with 'mbgray'

Projects

Raspberry Pi SMS Gateway. project