Skip to content

Instantly share code, notes, and snippets.

Revisions

  1. dialupdev revised this gist May 3, 2022. 1 changed file with 2 additions and 2 deletions.
    4 changes: 2 additions & 2 deletions Setting up headless Raspberry Pi OS on macOS.md
    Original file line number Diff line number Diff line change
    @@ -1,6 +1,6 @@
    Download the latest Raspberry Pi OS Lite image from https://www.raspberrypi.com/software/operating-systems/ (2021-10-30 at the time of this writing).
    Download the latest Raspberry Pi OS Lite image from https://www.raspberrypi.com/software/operating-systems/ (2022-04-04 at the time of this writing).

    Insert your microSD card. Use [Raspberry Pi Imager](https://www.raspberrypi.org/software/) to burn the image to your microSD card.
    Insert your microSD card. Use [Raspberry Pi Imager](https://www.raspberrypi.org/software/) to burn the image to your microSD card. Make to select "Set username and password" in the config before starting. Name the user `pi` and select your own password.

    Ensure the disk is mounted again, then enable SSH.

  2. dialupdev revised this gist Jan 4, 2022. 1 changed file with 3 additions and 3 deletions.
    6 changes: 3 additions & 3 deletions Setting up headless Raspberry Pi OS on macOS.md
    Original file line number Diff line number Diff line change
    @@ -1,4 +1,4 @@
    Download the latest Raspberry Pi OS Lite image from https://www.raspberrypi.org/software/operating-systems/ (2021-05-07 at the time of this writing).
    Download the latest Raspberry Pi OS Lite image from https://www.raspberrypi.com/software/operating-systems/ (2021-10-30 at the time of this writing).

    Insert your microSD card. Use [Raspberry Pi Imager](https://www.raspberrypi.org/software/) to burn the image to your microSD card.

    @@ -8,7 +8,7 @@ Ensure the disk is mounted again, then enable SSH.
    $ touch /Volumes/boot/ssh
    ```

    If you're planning on using the built-in WiFi on the Raspberry Pi 3/Zero W or an Edimax EW-7811Un USB Wifi adapter (rtl8188cus chipset), add your Wifi configuration. Create the following file:
    If you're planning on using the built-in WiFi on the Raspberry Pi 3/4/Zero W, add your Wifi configuration. Create the following file:

    ```sh
    $ nano /Volumes/boot/wpa_supplicant.conf
    @@ -29,7 +29,7 @@ network={

    Eject your SD card and insert it into your Pi.

    Plug in your Pi and give it a minute to boot and connect to your network, either over Wifi or ethernet.
    Plug in your Pi and give it a minute to boot and connect to your network, either over WiFi or ethernet.

    Copy your public SSH key the the Pi.

  3. dialupdev revised this gist Sep 22, 2021. No changes.
  4. dialupdev renamed this gist Sep 22, 2021. 1 changed file with 0 additions and 0 deletions.
  5. dialupdev revised this gist Sep 17, 2021. 1 changed file with 2 additions and 2 deletions.
    4 changes: 2 additions & 2 deletions Setting up headless Raspbian on macOS.md
    Original file line number Diff line number Diff line change
    @@ -1,6 +1,6 @@
    Download the latest Raspbian Lite image from https://www.raspberrypi.org/downloads/raspbian/ (2020-02-13 at the time of this writing).
    Download the latest Raspberry Pi OS Lite image from https://www.raspberrypi.org/software/operating-systems/ (2021-05-07 at the time of this writing).

    Insert your microSD card. Use [balenaEtcher](https://www.balena.io/etcher/) to burn the image to your microSD card.
    Insert your microSD card. Use [Raspberry Pi Imager](https://www.raspberrypi.org/software/) to burn the image to your microSD card.

    Ensure the disk is mounted again, then enable SSH.

  6. Steve Davis revised this gist Mar 1, 2020. 1 changed file with 1 addition and 1 deletion.
    2 changes: 1 addition & 1 deletion Setting up headless Raspbian on macOS.md
    Original file line number Diff line number Diff line change
    @@ -1,4 +1,4 @@
    Download the latest Raspbian Lite image from https://www.raspberrypi.org/downloads/raspbian/ (2020-02-05 at the time of this writing).
    Download the latest Raspbian Lite image from https://www.raspberrypi.org/downloads/raspbian/ (2020-02-13 at the time of this writing).

    Insert your microSD card. Use [balenaEtcher](https://www.balena.io/etcher/) to burn the image to your microSD card.

  7. Steve Davis revised this gist Feb 8, 2020. 1 changed file with 4 additions and 0 deletions.
    4 changes: 4 additions & 0 deletions Setting up headless Raspbian on macOS.md
    Original file line number Diff line number Diff line change
    @@ -46,3 +46,7 @@ $ sudo raspi-config
    ```

    That's it! 🏆

    Some ideas for next steps:
    * [Raspberry Pi Music Server](https://gist.github.com/celeryclub/e070e99ebf04f2d278a2b6b49c3aa908)
    * [Raspberry Pi VPN Server](https://gist.github.com/celeryclub/5d4b40d557d89de1e0c9ccfe20adac74)
  8. Steve Davis revised this gist Feb 8, 2020. 1 changed file with 1 addition and 1 deletion.
    2 changes: 1 addition & 1 deletion Setting up headless Raspbian on macOS.md
    Original file line number Diff line number Diff line change
    @@ -1,4 +1,4 @@
    Download the latest Raspbian Lite image from https://www.raspberrypi.org/downloads/raspbian/ (2019-09-26 at the time of this writing).
    Download the latest Raspbian Lite image from https://www.raspberrypi.org/downloads/raspbian/ (2020-02-05 at the time of this writing).

    Insert your microSD card. Use [balenaEtcher](https://www.balena.io/etcher/) to burn the image to your microSD card.

  9. Steve Davis revised this gist Nov 28, 2019. 1 changed file with 1 addition and 1 deletion.
    2 changes: 1 addition & 1 deletion Setting up headless Raspbian on macOS.md
    Original file line number Diff line number Diff line change
    @@ -1,4 +1,4 @@
    Download the latest Raspbian Lite image from https://www.raspberrypi.org/downloads/raspbian/ (2019-06-20 at the time of this writing).
    Download the latest Raspbian Lite image from https://www.raspberrypi.org/downloads/raspbian/ (2019-09-26 at the time of this writing).

    Insert your microSD card. Use [balenaEtcher](https://www.balena.io/etcher/) to burn the image to your microSD card.

  10. Steve Davis revised this gist Jun 29, 2019. 1 changed file with 1 addition and 1 deletion.
    2 changes: 1 addition & 1 deletion Setting up headless Raspbian on macOS.md
    Original file line number Diff line number Diff line change
    @@ -1,4 +1,4 @@
    Download the latest Raspbian Lite image from https://www.raspberrypi.org/downloads/raspbian/ (2019-04-08 at the time of this writing).
    Download the latest Raspbian Lite image from https://www.raspberrypi.org/downloads/raspbian/ (2019-06-20 at the time of this writing).

    Insert your microSD card. Use [balenaEtcher](https://www.balena.io/etcher/) to burn the image to your microSD card.

  11. Steve Davis revised this gist Apr 29, 2019. 1 changed file with 3 additions and 3 deletions.
    6 changes: 3 additions & 3 deletions Setting up headless Raspbian on macOS.md
    Original file line number Diff line number Diff line change
    @@ -1,14 +1,14 @@
    Download the latest Raspbian Lite image from https://www.raspberrypi.org/downloads/raspbian/ (2018-11-13 at the time of this writing).
    Download the latest Raspbian Lite image from https://www.raspberrypi.org/downloads/raspbian/ (2019-04-08 at the time of this writing).

    Insert your microSD card. Use [Etcher](https://etcher.io/) to burn the image to your microSD card. This can take several minutes.
    Insert your microSD card. Use [balenaEtcher](https://www.balena.io/etcher/) to burn the image to your microSD card.

    Ensure the disk is mounted again, then enable SSH.

    ```sh
    $ touch /Volumes/boot/ssh
    ```

    If you're planning on using the built-in WiFi on Raspberry Pi 3/Zero W or the Edimax EW-7811Un USB Wifi adapter (rtl8188cus chipset), add your Wifi configuration. Create the following file:
    If you're planning on using the built-in WiFi on the Raspberry Pi 3/Zero W or an Edimax EW-7811Un USB Wifi adapter (rtl8188cus chipset), add your Wifi configuration. Create the following file:

    ```sh
    $ nano /Volumes/boot/wpa_supplicant.conf
  12. Steve Davis revised this gist Nov 23, 2018. 1 changed file with 5 additions and 5 deletions.
    10 changes: 5 additions & 5 deletions Setting up headless Raspbian on macOS.md
    Original file line number Diff line number Diff line change
    @@ -5,13 +5,13 @@ Insert your microSD card. Use [Etcher](https://etcher.io/) to burn the image to
    Ensure the disk is mounted again, then enable SSH.

    ```sh
    touch /Volumes/boot/ssh
    $ touch /Volumes/boot/ssh
    ```

    If you're planning on using the built-in WiFi on Raspberry Pi 3/Zero W or the Edimax EW-7811Un USB Wifi adapter (rtl8188cus chipset), add your Wifi configuration. Create the following file:

    ```sh
    nano /Volumes/boot/wpa_supplicant.conf
    $ nano /Volumes/boot/wpa_supplicant.conf
    ```

    And add this to it:
    @@ -34,15 +34,15 @@ Plug in your Pi and give it a minute to boot and connect to your network, either
    Copy your public SSH key the the Pi.

    ```sh
    cat ~/.ssh/id_rsa.pub | ssh pi@raspberrypi.local "mkdir -p ~/.ssh && cat >> ~/.ssh/authorized_keys"
    $ cat ~/.ssh/id_rsa.pub | ssh pi@raspberrypi.local "mkdir -p ~/.ssh && cat >> ~/.ssh/authorized_keys"
    ```

    Configure your Pi.

    ```sh
    ssh pi@raspberrypi.local
    $ ssh pi@raspberrypi.local

    sudo raspi-config
    $ sudo raspi-config
    ```

    That's it! 🏆
  13. Steve Davis revised this gist Nov 22, 2018. 1 changed file with 1 addition and 1 deletion.
    2 changes: 1 addition & 1 deletion Setting up headless Raspbian on macOS.md
    Original file line number Diff line number Diff line change
    @@ -1,4 +1,4 @@
    Download the latest Raspbian Lite image from https://www.raspberrypi.org/downloads/raspbian/ (2018-10-09 at the time of this writing).
    Download the latest Raspbian Lite image from https://www.raspberrypi.org/downloads/raspbian/ (2018-11-13 at the time of this writing).

    Insert your microSD card. Use [Etcher](https://etcher.io/) to burn the image to your microSD card. This can take several minutes.

  14. Steve Davis revised this gist Oct 12, 2018. 1 changed file with 8 additions and 30 deletions.
    38 changes: 8 additions & 30 deletions Setting up headless Raspbian on macOS.md
    Original file line number Diff line number Diff line change
    @@ -1,40 +1,21 @@
    I recommend starting with Stretch for development projects. Stretch Lite doesn't include the build tools that most projects require. It's easier to just start with them in place rather than spend a lot of time installing things.
    Download the latest Raspbian Lite image from https://www.raspberrypi.org/downloads/raspbian/ (2018-10-09 at the time of this writing).

    Download the latest Raspbian image from https://www.raspberrypi.org/downloads/raspbian/.

    Insert your SD card and determine where it's mounted.

    ```sh
    diskutil list
    ```

    Find the one that matches your SD card and unmount it.

    ```sh
    diskutil unmountDisk [path to disk, e.g. "/dev/disk2"]
    ```

    Burn the image to your SD card. This can take several minutes.

    ```sh
    sudo dd bs=1m if=[path to img file, e.g. "2018-06-27-raspbian-stretch.img"] of=[path to rdisk, e.g. "/dev/rdisk2"] conv=sync
    ```
    Insert your microSD card. Use [Etcher](https://etcher.io/) to burn the image to your microSD card. This can take several minutes.

    Ensure the disk is mounted again, then enable SSH.

    ```sh
    touch /Volumes/boot/ssh
    ```

    If using Edimax EW-7811Un (rtl8188cus chipset) OR built-in WiFi on Raspberry Pi 3, add your Wifi configuration. Create the following file:
    If you're planning on using the built-in WiFi on Raspberry Pi 3/Zero W or the Edimax EW-7811Un USB Wifi adapter (rtl8188cus chipset), add your Wifi configuration. Create the following file:

    ```sh
    nano /Volumes/boot/wpa_supplicant.conf
    ```

    And add this to it:


    ```sh
    country=US
    ctrl_interface=DIR=/var/run/wpa_supplicant GROUP=netdev
    @@ -46,25 +27,22 @@ network={
    }
    ```

    Eject your SD card.
    Eject your SD card and insert it into your Pi.

    ```sh
    diskutil eject [path to disk]
    ```

    Connect the Raspberry Pi to your Mac via an ethernet cable and turn on internet sharing to ethernet.
    Plug in your Pi and give it a minute to boot and connect to your network, either over Wifi or ethernet.

    Copy your public SSH key the the Pi.

    ```sh
    cat ~/.ssh/id_rsa.pub | ssh pi@raspberrypi.local "mkdir -p ~/.ssh && cat >> ~/.ssh/authorized_keys"
    # From https://www.digitalocean.com/community/tutorials/how-to-configure-ssh-key-based-authentication-on-a-linux-server
    ```

    Then set up basic configuration.
    Configure your Pi.

    ```sh
    ssh pi@raspberrypi.local

    sudo raspi-config
    ```

    That's it! 🏆
  15. Steve Davis revised this gist Sep 30, 2018. 3 changed files with 0 additions and 25 deletions.
    3 changes: 0 additions & 3 deletions start_spotify_connect.sh
    Original file line number Diff line number Diff line change
    @@ -1,3 +0,0 @@
    #!/bin/bash

    LD_LIBRARY_PATH=/home/pi/spotify-connect-web python /home/pi/spotify-connect-web/main.py -u [username] -p [password] -k /home/pi/spotify_appkey.key -n [name] -b 320 --playback_device softvol --mixer Master &
    3 changes: 0 additions & 3 deletions stop_spotify_connect.sh
    Original file line number Diff line number Diff line change
    @@ -1,3 +0,0 @@
    #!/bin/bash

    pgrep -f spotify-connect-web/main.py | xargs kill -9
    19 changes: 0 additions & 19 deletions z5. spotify-connect.sh
    Original file line number Diff line number Diff line change
    @@ -1,19 +0,0 @@
    # In /usr/lib/, add one of these libraries (Use the armv6 ones for Rpi1, armv7 for Rpi2/3) https://github.com/sashahilton00/spotify-connect-resources/tree/master/libs

    # Run this before Install section of spotify-connect-web

    ```sh
    sudo apt-get install python-pip python-gevent python-alsaaudio
    ```

    # Add this to /etc/shairport-sync.conf
    sessioncontrol = {
    run_this_before_play_begins = "/home/pi/stop_spotify_connect.sh";
    run_this_after_play_ends = "/home/pi/start_spotify_connect.sh";
    wait_for_completion = "yes";
    };

    ```sh
    chmod +x /home/pi/start_spotify_connect.sh
    chmod +x /home/pi/stop_spotify_connect.sh
    ```
  16. Steve Davis revised this gist Sep 3, 2018. 1 changed file with 1 addition and 1 deletion.
    2 changes: 1 addition & 1 deletion Setting up headless Raspbian on macOS.md
    Original file line number Diff line number Diff line change
    @@ -17,7 +17,7 @@ diskutil unmountDisk [path to disk, e.g. "/dev/disk2"]
    Burn the image to your SD card. This can take several minutes.

    ```sh
    sudo dd bs=1m if=[path to img file, e.g. "2017-08-16-raspbian-stretch.img"] of=[path to rdisk, e.g. "/dev/rdisk2"] conv=sync
    sudo dd bs=1m if=[path to img file, e.g. "2018-06-27-raspbian-stretch.img"] of=[path to rdisk, e.g. "/dev/rdisk2"] conv=sync
    ```

    Ensure the disk is mounted again, then enable SSH.
  17. Steve Davis renamed this gist Jul 5, 2018. 1 changed file with 0 additions and 0 deletions.
    File renamed without changes.
  18. Steve Davis revised this gist Jul 5, 2018. 3 changed files with 0 additions and 46 deletions.
    27 changes: 0 additions & 27 deletions 3. ES9023-setup.sh
    Original file line number Diff line number Diff line change
    @@ -1,27 +0,0 @@
    Modified from https://www.hifiberry.com/guides/configuring-linux-3-18-x/.

    # Configure device tree overlay file
    # To do this, you must edit /boot/config.txt and add the following line

    dtoverlay=hifiberry-dac

    #Configure ALSA
    #Create /etc/asound.conf with the following content:

    pcm.softvol {
    type softvol
    slave.pcm "plughw:1"
    control {
    name "Master"
    card 0
    }
    }

    # Reboot

    # Make sure device shows up:
    aplay -l
    # Look for "card { id }: sndrpihifiberry"

    # Initialize mixer
    speaker-test -D softvol -c 2 -t wav
    19 changes: 0 additions & 19 deletions 4. shairport-sync.md
    Original file line number Diff line number Diff line change
    @@ -1,19 +0,0 @@
    # Set shairport-sync to use the hifiberry-dac

    sudo nano /etc/shairport-sync.conf
    Change this:

    alsa =
    {
    output_device = "hw:1"; (or whatever number card "sndrpihifiberry" is above)
    interpolation = "soxr";
    }

    If audio is underflowing, set audio_backend_buffer_desired_length to 22050

    Change any other settings you want (name, metadata on, etc.)


    # Restart Shairport-sync

    sudo service shairport-sync restart
  19. Steve Davis revised this gist Oct 16, 2017. 2 changed files with 20 additions and 15 deletions.
    21 changes: 20 additions & 1 deletion 1. README.md
    Original file line number Diff line number Diff line change
    @@ -24,7 +24,26 @@ Ensure the disk is mounted again, then enable SSH.

    ```sh
    touch /Volumes/boot/ssh
    touch /Volumes/boot/wpa_supplicant.conf
    ```

    If using Edimax EW-7811Un (rtl8188cus chipset) OR built-in WiFi on Raspberry Pi 3, add your Wifi configuration. Create the following file:

    ```sh
    nano /Volumes/boot/wpa_supplicant.conf
    ```

    And add this to it:


    ```sh
    country=US
    ctrl_interface=DIR=/var/run/wpa_supplicant GROUP=netdev
    update_config=1

    network={
    ssid="[SSID]"
    psk="[password]"
    }
    ```

    Eject your SD card.
    14 changes: 0 additions & 14 deletions 2. WiFi.md
    Original file line number Diff line number Diff line change
    @@ -1,14 +0,0 @@
    Using Edimax EW-7811Un (rtl8188cus chipset) OR built-in WiFi on Raspberry Pi 3

    Edit /etc/wpa_supplicant/wpa_supplicant.conf to match the following.

    ```sh
    country=US
    ctrl_interface=DIR=/var/run/wpa_supplicant GROUP=netdev
    update_config=1

    network={
    ssid="[SSID]"
    psk="[password]"
    }
    ```
  20. Steve Davis revised this gist Sep 27, 2017. No changes.
  21. Steve Davis revised this gist Sep 26, 2017. 1 changed file with 1 addition and 2 deletions.
    3 changes: 1 addition & 2 deletions 5. spotify-connect.sh
    Original file line number Diff line number Diff line change
    @@ -3,8 +3,7 @@
    # Run this before Install section of spotify-connect-web

    ```sh
    sudo apt-get install libffi-dev libasound2-dev python-dev python-pip python-gevent python-alsaaudio
    sudo pip install -r requirements.txt
    sudo apt-get install python-pip python-gevent python-alsaaudio
    ```

    # Add this to /etc/shairport-sync.conf
  22. Steve Davis revised this gist Sep 26, 2017. 1 changed file with 1 addition and 0 deletions.
    1 change: 1 addition & 0 deletions 4. shairport-sync.md
    Original file line number Diff line number Diff line change
    @@ -6,6 +6,7 @@ Change this:
    alsa =
    {
    output_device = "hw:1"; (or whatever number card "sndrpihifiberry" is above)
    interpolation = "soxr";
    }

    If audio is underflowing, set audio_backend_buffer_desired_length to 22050
  23. Steve Davis revised this gist Sep 17, 2017. 3 changed files with 5 additions and 7 deletions.
    3 changes: 3 additions & 0 deletions 3. ES9023-setup.sh
    Original file line number Diff line number Diff line change
    @@ -22,3 +22,6 @@ pcm.softvol {
    # Make sure device shows up:
    aplay -l
    # Look for "card { id }: sndrpihifiberry"

    # Initialize mixer
    speaker-test -D softvol -c 2 -t wav
    2 changes: 1 addition & 1 deletion 4. shairport-sync.md
    Original file line number Diff line number Diff line change
    @@ -5,7 +5,7 @@ Change this:

    alsa =
    {
    output_device = "hw:1"; (or whatever number card "sndrpihifiberry" is above)
    output_device = "hw:1"; (or whatever number card "sndrpihifiberry" is above)
    }

    If audio is underflowing, set audio_backend_buffer_desired_length to 22050
    7 changes: 1 addition & 6 deletions 5. spotify-connect.sh
    Original file line number Diff line number Diff line change
    @@ -7,12 +7,7 @@ sudo apt-get install libffi-dev libasound2-dev python-dev python-pip python-geve
    sudo pip install -r requirements.txt
    ```

    # From https://github.com/Fornoth/spotify-connect-web/issues/11#issuecomment-148025247

    ```sh
    sudo pip install --upgrade pyalsaaudio
    ```

    # Add this to /etc/shairport-sync.conf
    sessioncontrol = {
    run_this_before_play_begins = "/home/pi/stop_spotify_connect.sh";
    run_this_after_play_ends = "/home/pi/start_spotify_connect.sh";
  24. Steve Davis revised this gist Aug 24, 2017. 1 changed file with 4 additions and 3 deletions.
    7 changes: 4 additions & 3 deletions 1. README.md
    Original file line number Diff line number Diff line change
    @@ -11,19 +11,20 @@ diskutil list
    Find the one that matches your SD card and unmount it.

    ```sh
    diskutil unmountDisk [path to disk, e.g. "/dev/disk1"]
    diskutil unmountDisk [path to disk, e.g. "/dev/disk2"]
    ```

    Burn the image to your SD card. This can take several minutes.

    ```sh
    sudo dd bs=1m if=[path to img file, e.g. "2017-08-16-raspbian-stretch.img"] of=[path to disk]
    sudo dd bs=1m if=[path to img file, e.g. "2017-08-16-raspbian-stretch.img"] of=[path to rdisk, e.g. "/dev/rdisk2"] conv=sync
    ```

    Ensure the disk is mounted again, then enable SSH.

    ```sh
    touch /Volumes/boot/ssh.txt
    touch /Volumes/boot/ssh
    touch /Volumes/boot/wpa_supplicant.conf
    ```

    Eject your SD card.
  25. Steve Davis revised this gist Aug 23, 2017. 1 changed file with 2 additions and 2 deletions.
    4 changes: 2 additions & 2 deletions 1. README.md
    Original file line number Diff line number Diff line change
    @@ -20,10 +20,10 @@ Burn the image to your SD card. This can take several minutes.
    sudo dd bs=1m if=[path to img file, e.g. "2017-08-16-raspbian-stretch.img"] of=[path to disk]
    ```

    Ensure the disk is mounted again and enable SSH.
    Ensure the disk is mounted again, then enable SSH.

    ```sh
    touch /Volumes/boot/ssh
    touch /Volumes/boot/ssh.txt
    ```

    Eject your SD card.
  26. Steve Davis revised this gist Aug 22, 2017. 1 changed file with 2 additions and 2 deletions.
    4 changes: 2 additions & 2 deletions 1. README.md
    Original file line number Diff line number Diff line change
    @@ -1,4 +1,4 @@
    I recommend starting with Jessie for development projects. Jessie Lite doesn't include the build tools that most projects require. It's easier to just start with them in place rather than spend a lot of time installing things.
    I recommend starting with Stretch for development projects. Stretch Lite doesn't include the build tools that most projects require. It's easier to just start with them in place rather than spend a lot of time installing things.

    Download the latest Raspbian image from https://www.raspberrypi.org/downloads/raspbian/.

    @@ -17,7 +17,7 @@ diskutil unmountDisk [path to disk, e.g. "/dev/disk1"]
    Burn the image to your SD card. This can take several minutes.

    ```sh
    sudo dd bs=1m if=[path to img file, e.g. "2017-03-02-raspbian-jessie.img"] of=[path to disk]
    sudo dd bs=1m if=[path to img file, e.g. "2017-08-16-raspbian-stretch.img"] of=[path to disk]
    ```

    Ensure the disk is mounted again and enable SSH.
  27. Steve Davis revised this gist Mar 6, 2017. 1 changed file with 1 addition and 1 deletion.
    2 changes: 1 addition & 1 deletion stop_spotify_connect.sh
    Original file line number Diff line number Diff line change
    @@ -1,3 +1,3 @@
    #!/bin/bash

    pgrep -f main.py | xargs kill -9
    pgrep -f spotify-connect-web/main.py | xargs kill -9
  28. Steve Davis revised this gist Mar 6, 2017. 1 changed file with 1 addition and 1 deletion.
    2 changes: 1 addition & 1 deletion stop_spotify_connect.sh
    Original file line number Diff line number Diff line change
    @@ -1,3 +1,3 @@
    #!/bin/bash

    pgrep -f connect.py | xargs kill -9
    pgrep -f main.py | xargs kill -9
  29. Steve Davis revised this gist Mar 6, 2017. 1 changed file with 1 addition and 1 deletion.
    2 changes: 1 addition & 1 deletion start_spotify_connect.sh
    Original file line number Diff line number Diff line change
    @@ -1,3 +1,3 @@
    #!/bin/bash

    LD_LIBRARY_PATH=/home/pi/spotify-connect-web python /home/pi/spotify-connect-web/connect.py -u [username] -p [password] -k /home/pi/spotify_appkey.key -n [name] -b 320 --playback_device softvol --mixer Master &
    LD_LIBRARY_PATH=/home/pi/spotify-connect-web python /home/pi/spotify-connect-web/main.py -u [username] -p [password] -k /home/pi/spotify_appkey.key -n [name] -b 320 --playback_device softvol --mixer Master &
  30. Steve Davis revised this gist Mar 5, 2017. 1 changed file with 1 addition and 1 deletion.
    2 changes: 1 addition & 1 deletion 1. README.md
    Original file line number Diff line number Diff line change
    @@ -17,7 +17,7 @@ diskutil unmountDisk [path to disk, e.g. "/dev/disk1"]
    Burn the image to your SD card. This can take several minutes.

    ```sh
    sudo dd bs=1m if=[path to img file, e.g. "2017-01-11-raspbian-jessie.img"] of=[path to disk]
    sudo dd bs=1m if=[path to img file, e.g. "2017-03-02-raspbian-jessie.img"] of=[path to disk]
    ```

    Ensure the disk is mounted again and enable SSH.