Skip to content

Instantly share code, notes, and snippets.

View SFrost007's full-sized avatar
😃

Simon Frost SFrost007

😃
View GitHub Profile
@SFrost007
SFrost007 / Headless-Pi.md
Last active June 26, 2017 09:09
How-To: Setup a Headless Raspberry Pi

The below is tested with the June 2017 release of Raspbian Jessie, for setting up a Pi without any local peripherals connected.

Main steps

  1. Flash Raspbian image (see below)
  2. Create empty file named ssh in root of SD card
  3. Create wpa_supplicant.conf in root of SD card (see below)
  4. Eject and put SD card in Pi
  5. ssh pi@raspberrypi.local (or otherwise find IP address)
  6. sudo raspi-config
    1. Change pi user's password
@SFrost007
SFrost007 / Raspberry Pi Homebridge Setup.md
Last active March 18, 2018 17:13
Raspberry Pi Homebridge Setup

Based on the Raspberry Pi instructions here

First install dependencies:

Switch to newer GCC as default:

sudo update-alternatives --install /usr/bin/gcc gcc /usr/bin/gcc-4.9 60 --slave /usr/bin/g++ g++ /usr/bin/g++-4.9

Install LibAvahi-dev:

@SFrost007
SFrost007 / Raspberry Pi Basic Setup.md
Last active August 14, 2017 19:23
Raspberry Pi Basic Setup

Flashing Image

  1. Download Raspbian Jessie with PIXEL
  2. diskutil list
  3. diskutil unmountDisk /dev/disk<disk# from diskutil>
  4. sudo dd bs=1m if=image.img of=/dev/rdisk<disk# from diskutil>
  5. sudo diskutil eject /dev/rdisk<disk# from diskutil>

Checking Wifi status

Check firmware status of IoT pHAT: cat /proc/device-tree/hat/product