Skip to content

How To Update

Matthias edited this page May 30, 2019 · 2 revisions

Update from pre-compiled package

If a new version of HKCam is released you have to update the hkcam binary on your Raspberry Pi. Do that with the following steps.

  1. Download and extract the latest package from Github releases – for example hkcam-v0.0.7_linux_armhf.tar.gz
  2. Copy the content of the package to your Raspberry Pi via scp.
scp ~/Downloads/hkcam-v0.0.7_linux_armhf/usr/bin/hkcam pi@raspberrypi.local:~
  1. ssh into the Raspberry Pi with ssh pi@raspberrypi.local (password raspberry)
  2. Stop the currently running daemon with sudo sv stop hkcam
  3. Override the old binary with the new one sudo mv ~/hkcam /usr/bin/
  4. Restart the hkcam daemon with sudo sv start hkcam

Update from source

You can also compile the binary yourself. These steps require Git and Go to be installed. On macOS you can install it via Homebrew.

brew install git
brew install go
  1. Clone the project with git clone https://github.com/brutella/hkcam.git
  2. Fetch all branches with git fetch --all
  3. Checkout a specific commit or branch – for example git checkout <commit-hash|branch-name>
  4. Change directory into the project with cd hkcam
  5. Build hkcam with make build
  6. Copy the new binary onto the raspberry pi with scp build/hkcam-_linux_armhf/usr/bin/hkcam pi@raspberrypi.local:~
  7. ssh into the raspberry pi with ssh pi@raspberrypi.local (password raspberry)
  8. Stop the currently running daemon with sudo sv stop hkcam
  9. Override the old binary with the new one sudo mv ~/hkcam /usr/bin/
  10. Restart the hkcam daemon with sudo sv start hkcam
Clone this wiki locally