GithubHelp home page GithubHelp logo

barty78 / docker-unifi-rpi Goto Github PK

View Code? Open in Web Editor NEW

This project forked from ryansch/docker-unifi-rpi

0.0 2.0 0.0 112 KB

Unifi Controller for Raspberry Pi 2/3

Home Page: https://hub.docker.com/r/ryansch/unifi-rpi/

Shell 100.00%

docker-unifi-rpi's Introduction

Supported tags and respective Dockerfile links

Usage

On mac (or any computer really):

  • Insert rasp pi sd card into mac
  • brew install pv ssh-copy-id
  • git clone https://github.com/hypriot/flash
  • cd flash/Darwin
  • ./flash https://github.com/hypriot/image-builder-rpi/releases/download/v1.1.1/hypriotos-rpi-v1.1.1.img.zip (or latest release)
  • When complete, install sd card into rpi and power on
  • ssh-copy-id -i .ssh/id_rsa.pub [email protected] (default password is hypriot)
  • Disable password logins: PasswordAuthentication no in /etc/ssh/sshd_config

Note: You may have to enable password logins on your mac os client temporarily to complete these steps.

  • systemctl restart ssh.service

On rpi:

  • cd /opt
  • sudo git clone https://github.com/ryansch/docker-unifi-rpi unifi
  • sudo cp /opt/unifi/unifi.service /etc/systemd/system/
  • sudo systemctl enable /etc/systemd/system/unifi.service
  • docker pull ryansch/unifi-rpi:v5 (For download and extract progress)
  • sudo systemctl start unifi.service

On mac:

Unifi Image Upgrade

  • docker pull ryansch/unifi-rpi:v5
  • sudo systemctl stop unifi.service
  • sudo systemctl start unifi.service

Hypriot Upgrade

  • docker run -it --rm -v unifi_config:/config -v $(pwd):/backup --name=copy -w /config resin/rpi-raspbian:latest tar -zcf /backup/unifi_config.tar.gz .
  • Copy the tarball from the pi to another system
  • Run the flash and setup instructions above stopping before starting unifi.
  • Copy the tarball from another system back to the pi
  • docker volume create --name unifi_config
  • docker run -it --rm -v unifi_config:/config -v $(pwd):/backup --name=copy -w /config resin/rpi-raspbian:latest tar -zxf /backup/unifi_config.tar.gz .
  • Volume is now populated from backup. Continue with starting unifi.

Building

  • docker build -t ryansch/unifi-rpi:version -f Dockerfile.version .
  • docker run -it --rm ryansch/unifi-rpi:version
  • Update Dockerfile with version number from previous step
  • docker build -t ryansch/unifi-rpi:v5 .

docker-unifi-rpi's People

Contributors

ryansch avatar

Watchers

James Cloos avatar Peter Bartlett avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.