-
Notifications
You must be signed in to change notification settings - Fork 140
How To Update
Matthias edited this page May 30, 2019
·
2 revisions
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.
- Download and extract the latest package from Github releases – for example hkcam-v0.0.7_linux_armhf.tar.gz
- Copy the content of the package to your Raspberry Pi via scp.
scp ~/Downloads/hkcam-v0.0.7_linux_armhf/usr/bin/hkcam [email protected]:~
- ssh into the Raspberry Pi with
ssh [email protected]
(password raspberry) - Stop the currently running daemon with
sudo sv stop hkcam
- Override the old binary with the new one
sudo mv ~/hkcam /usr/bin/
- Restart the hkcam daemon with
sudo sv start hkcam
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
- Clone the project with
git clone https://github.com/brutella/hkcam.git
- Fetch all branches with
git fetch --all
- Checkout a specific commit or branch – for example
git checkout <commit-hash|branch-name>
- Change directory into the project with
cd hkcam
- Build hkcam with
make build
- Copy the new binary onto the raspberry pi with
scp build/hkcam-_linux_armhf/usr/bin/hkcam [email protected]:~
- ssh into the raspberry pi with
ssh [email protected]
(password raspberry) - Stop the currently running daemon with
sudo sv stop hkcam
- Override the old binary with the new one
sudo mv ~/hkcam /usr/bin/
- Restart the hkcam daemon with
sudo sv start hkcam