From 08936768bd3f2011d31217cdd95161de3d212a26 Mon Sep 17 00:00:00 2001 From: Vyrus 001 Date: Sun, 21 Jul 2024 07:35:27 +0000 Subject: [PATCH 1/3] adding prototype script to install / run a veilid-server node within a unifyos device (tested on a unify dream machine pro SE) --- unifyos_install.sh | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) create mode 100644 unifyos_install.sh diff --git a/unifyos_install.sh b/unifyos_install.sh new file mode 100644 index 00000000..40ff756f --- /dev/null +++ b/unifyos_install.sh @@ -0,0 +1,18 @@ +#!/bin/bash + +# install veilid via the debian package method +wget -O- https://packages.veilid.net/gpg/veilid-packages-key.public | sudo gpg --dearmor -o /usr/share/keyrings/veilid-packages-keyring.gpg +echo "deb [arch=arm64 signed-by=/usr/share/keyrings/veilid-packages-keyring.gpg] https://packages.veilid.net/apt stable main" | sudo tee /etc/apt/sources.list.d/veilid.list 1>/dev/null +apt update +apt install veilid-server veilid-cli + +# install unifios-utilities (this allows us to enable "on boot" scripts) +curl -fsL "https://raw.githubusercontent.com/unifi-utilities/unifios-utilities/HEAD/on-boot-script/remote_install.sh" | /bin/bash + +# create an on-boot script that will start veilid-server when this device is first booted, then start the server +cat > /data/on_boot.d/veilid.sh<< EOF +#!/bin/bash +sudo -u veilid veilid-server & +EOF +chmod +x /data/on_boot.d/veilid.sh +./data/on_boot.d/veilid.sh \ No newline at end of file From db05526af07a26f2376edb9eddc031b4445b70d5 Mon Sep 17 00:00:00 2001 From: Vyrus 001 Date: Sun, 21 Jul 2024 14:14:45 +0000 Subject: [PATCH 2/3] fix missing newline error and rename file --- unifyos_install.sh => unifios_install.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) rename unifyos_install.sh => unifios_install.sh (96%) diff --git a/unifyos_install.sh b/unifios_install.sh similarity index 96% rename from unifyos_install.sh rename to unifios_install.sh index 40ff756f..fbc0fdf3 100644 --- a/unifyos_install.sh +++ b/unifios_install.sh @@ -15,4 +15,4 @@ cat > /data/on_boot.d/veilid.sh<< EOF sudo -u veilid veilid-server & EOF chmod +x /data/on_boot.d/veilid.sh -./data/on_boot.d/veilid.sh \ No newline at end of file +./data/on_boot.d/veilid.sh From 059033cb23485ce4a2c09c66379f39744ea63b1c Mon Sep 17 00:00:00 2001 From: Vyrus 001 Date: Sun, 21 Jul 2024 14:15:16 +0000 Subject: [PATCH 3/3] Update unifios_install.sh --- unifios_install.sh => scripts/unifios_install.sh | 0 1 file changed, 0 insertions(+), 0 deletions(-) rename unifios_install.sh => scripts/unifios_install.sh (100%) diff --git a/unifios_install.sh b/scripts/unifios_install.sh similarity index 100% rename from unifios_install.sh rename to scripts/unifios_install.sh