Skip to content

Instantly share code, notes, and snippets.

@peterkir
Last active April 27, 2019 20:18
Show Gist options
  • Save peterkir/839ad2a3f80dfddc6bcc7bda1ee3d9ff to your computer and use it in GitHub Desktop.
Save peterkir/839ad2a3f80dfddc6bcc7bda1ee3d9ff to your computer and use it in GitHub Desktop.
Raspberry Pi - dpi

KnowHow - Raspberry Pi

Headless Raspbian image installation

  1. Download Raspbian Image

  2. Write Image to SD Card

  • Identify sdcard diskutil list e.g. disk4
  • Unmount disk before copying diskutil unmountDisk /dev/disk<disk# from diskutil>
  • Copy image to disk sudo dd bs=1m if=<image-path>.img of=<disk# from diskutil> conv=sync
  1. Add “SSH” File to the SD Card Root
  • Create a file to allow ssh access touch /Volumes/boot/ssh
  • Unmount disk diskutil unmountDisk /dev/disk<disk# from diskutil>
  1. Boot your Pi
  2. Find your Pi’s IP Address
  3. SSH into your Pi
  • username: pi
  • password: raspberry
  1. Configure your Pi Text-console GUI - sudo raspi-config
  • Configure hostname echo pihole | sudo tee /etc/hostname

Article: Installing operating system images on Mac OS Article: Headless Raspberry Pi Setup

Projects

sudo apt-get install git
git clone --depth 1 https://github.com/pi-hole/pi-hole.git Pi-hole
cd "Pi-hole/automated install/"
sudo bash basic-install.sh
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment