diff --git a/README.md b/README.md index 361bb5d..0dc1a99 100644 --- a/README.md +++ b/README.md @@ -6,6 +6,8 @@ Current version 1.82.0 https://tailscale.com/changelog/ +The "ROOT" versions require root privileges on the camera and will not work on OS 12 up. + ## Testers needed I have added a new "custom" version (Tailscale_VPN_Custom_1_82_0_aarch64.eap) which allows you to set a custom server and auth key for use of headscale. diff --git a/aarch64_ROOT/Dockerfile b/aarch64_ROOT/Dockerfile new file mode 100644 index 0000000..eb1938e --- /dev/null +++ b/aarch64_ROOT/Dockerfile @@ -0,0 +1,12 @@ +ARG ARCH=aarch64 +ARG VERSION=1.3 +ARG UBUNTU_VERSION=22.04 +ARG REPO=axisecp +ARG SDK=acap-native-sdk + +FROM ${REPO}/${SDK}:${VERSION}-${ARCH}-ubuntu${UBUNTU_VERSION} + +# Building the ACAP application +COPY ./app /opt/app/ +WORKDIR /opt/app +RUN . /opt/axis/acapsdk/environment-setup* && acap-build ./ diff --git a/aarch64_ROOT/README.md b/aarch64_ROOT/README.md new file mode 100644 index 0000000..6e0fc02 --- /dev/null +++ b/aarch64_ROOT/README.md @@ -0,0 +1,5 @@ +To build, from main directory + +docker build --tag aarch64 . + +docker cp $(docker create aarch64):/opt/app ./build \ No newline at end of file diff --git a/aarch64_ROOT/app/LICENSE b/aarch64_ROOT/app/LICENSE new file mode 100644 index 0000000..9241b06 --- /dev/null +++ b/aarch64_ROOT/app/LICENSE @@ -0,0 +1,29 @@ +BSD 3-Clause License + +Copyright (c) 2020 Tailscale & AUTHORS. +All rights reserved. + +Redistribution and use in source and binary forms, with or without +modification, are permitted provided that the following conditions are met: + +1. Redistributions of source code must retain the above copyright notice, this + list of conditions and the following disclaimer. + +2. Redistributions in binary form must reproduce the above copyright notice, + this list of conditions and the following disclaimer in the documentation + and/or other materials provided with the distribution. + +3. Neither the name of the copyright holder nor the names of its + contributors may be used to endorse or promote products derived from + this software without specific prior written permission. + +THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" +AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE +IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE +DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE +FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL +DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR +SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER +CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, +OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE +OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. \ No newline at end of file diff --git a/aarch64_ROOT/app/Makefile b/aarch64_ROOT/app/Makefile new file mode 100644 index 0000000..74caba9 --- /dev/null +++ b/aarch64_ROOT/app/Makefile @@ -0,0 +1 @@ +nop: \ No newline at end of file diff --git a/aarch64_ROOT/app/Tailscale_VPN b/aarch64_ROOT/app/Tailscale_VPN new file mode 100755 index 0000000..2faa58a --- /dev/null +++ b/aarch64_ROOT/app/Tailscale_VPN @@ -0,0 +1,10 @@ +#!/bin/sh + + echo "Starting Service" + chmod 777 /usr/local/packages/Tailscale_VPN/lib/tailscale + chmod 777 /usr/local/packages/Tailscale_VPN/lib/tailscaled + /usr/local/packages/Tailscale_VPN/lib/tailscaled & + echo "Service Started" + echo "Scroll to Bottom for link" + /usr/local/packages/Tailscale_VPN/lib/tailscale up --accept-routes + wait \ No newline at end of file diff --git a/aarch64_ROOT/app/html/index.html b/aarch64_ROOT/app/html/index.html new file mode 100644 index 0000000..f0888d3 --- /dev/null +++ b/aarch64_ROOT/app/html/index.html @@ -0,0 +1,19 @@ + + + + +

Scroll to the bottom to find authentication URL

+ + + + + + + + \ No newline at end of file diff --git a/aarch64_ROOT/app/manifest.json b/aarch64_ROOT/app/manifest.json new file mode 100644 index 0000000..2929cb6 --- /dev/null +++ b/aarch64_ROOT/app/manifest.json @@ -0,0 +1,22 @@ +{ + "schemaVersion": "1.3", + "acapPackageConf": { + "setup": { + "appName": "Tailscale_VPN", + "friendlyName": "Tailscale VPN", + "vendor": "Tailscale - Packaged by Mo3he", + "embeddedSdkVersion": "3.0", + "user": { + "group": "root", + "username": "root" + }, + "vendorUrl": "https://www.tailscale.com", + "runMode": "once", + "version": "1.82.0", + "architecture": "aarch64" + }, + "configuration": { + "settingPage": "index.html" + } + } +} \ No newline at end of file diff --git a/arm_ROOT/Dockerfile b/arm_ROOT/Dockerfile new file mode 100644 index 0000000..3b4b59c --- /dev/null +++ b/arm_ROOT/Dockerfile @@ -0,0 +1,12 @@ +ARG ARCH=armv7hf +ARG VERSION=1.3 +ARG UBUNTU_VERSION=22.04 +ARG REPO=axisecp +ARG SDK=acap-native-sdk + +FROM ${REPO}/${SDK}:${VERSION}-${ARCH}-ubuntu${UBUNTU_VERSION} + +# Building the ACAP application +COPY ./app /opt/app/ +WORKDIR /opt/app +RUN . /opt/axis/acapsdk/environment-setup* && acap-build ./ diff --git a/arm_ROOT/README.md b/arm_ROOT/README.md new file mode 100644 index 0000000..adf52d5 --- /dev/null +++ b/arm_ROOT/README.md @@ -0,0 +1,5 @@ +To build from main directory + +docker build --tag arm . + +docker cp $(docker create arm):/opt/app ./build \ No newline at end of file diff --git a/arm_ROOT/app/LICENSE b/arm_ROOT/app/LICENSE new file mode 100644 index 0000000..9241b06 --- /dev/null +++ b/arm_ROOT/app/LICENSE @@ -0,0 +1,29 @@ +BSD 3-Clause License + +Copyright (c) 2020 Tailscale & AUTHORS. +All rights reserved. + +Redistribution and use in source and binary forms, with or without +modification, are permitted provided that the following conditions are met: + +1. Redistributions of source code must retain the above copyright notice, this + list of conditions and the following disclaimer. + +2. Redistributions in binary form must reproduce the above copyright notice, + this list of conditions and the following disclaimer in the documentation + and/or other materials provided with the distribution. + +3. Neither the name of the copyright holder nor the names of its + contributors may be used to endorse or promote products derived from + this software without specific prior written permission. + +THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" +AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE +IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE +DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE +FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL +DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR +SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER +CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, +OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE +OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. \ No newline at end of file diff --git a/arm_ROOT/app/Makefile b/arm_ROOT/app/Makefile new file mode 100644 index 0000000..74caba9 --- /dev/null +++ b/arm_ROOT/app/Makefile @@ -0,0 +1 @@ +nop: \ No newline at end of file diff --git a/arm_ROOT/app/Tailscale_VPN b/arm_ROOT/app/Tailscale_VPN new file mode 100755 index 0000000..2faa58a --- /dev/null +++ b/arm_ROOT/app/Tailscale_VPN @@ -0,0 +1,10 @@ +#!/bin/sh + + echo "Starting Service" + chmod 777 /usr/local/packages/Tailscale_VPN/lib/tailscale + chmod 777 /usr/local/packages/Tailscale_VPN/lib/tailscaled + /usr/local/packages/Tailscale_VPN/lib/tailscaled & + echo "Service Started" + echo "Scroll to Bottom for link" + /usr/local/packages/Tailscale_VPN/lib/tailscale up --accept-routes + wait \ No newline at end of file diff --git a/arm_ROOT/app/html/index.html b/arm_ROOT/app/html/index.html new file mode 100644 index 0000000..f0888d3 --- /dev/null +++ b/arm_ROOT/app/html/index.html @@ -0,0 +1,19 @@ + + + + +

Scroll to the bottom to find authentication URL

+ + + + + + + + \ No newline at end of file diff --git a/arm_ROOT/app/manifest.json b/arm_ROOT/app/manifest.json new file mode 100644 index 0000000..fe03a48 --- /dev/null +++ b/arm_ROOT/app/manifest.json @@ -0,0 +1,22 @@ +{ + "schemaVersion": "1.3", + "acapPackageConf": { + "setup": { + "appName": "Tailscale_VPN", + "friendlyName": "Tailscale VPN", + "vendor": "Tailscale - Packaged by Mo3he", + "embeddedSdkVersion": "3.0", + "user": { + "group": "root", + "username": "root" + }, + "vendorUrl": "https://www.tailscale.com", + "runMode": "once", + "version": "1.82.0", + "architecture": "armv7hf" + }, + "configuration": { + "settingPage": "index.html" + } + } +} \ No newline at end of file