From 2231cec2d75adbec1077429979bf925ac8e6ad79 Mon Sep 17 00:00:00 2001 From: Tommy Date: Fri, 24 May 2024 22:12:32 -0700 Subject: [PATCH] Add lokinet script Signed-off-by: Tommy --- debian-gnome/lokinet.sh | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) create mode 100644 debian-gnome/lokinet.sh diff --git a/debian-gnome/lokinet.sh b/debian-gnome/lokinet.sh new file mode 100644 index 0000000..a95367b --- /dev/null +++ b/debian-gnome/lokinet.sh @@ -0,0 +1,19 @@ +#!/bin/bash + +unpriv(){ + sudo -u nobody "$@" +} + +umask 022 + +sudo mkdir -p /etc/qubes-bind-dirs.d +echo 'binds+=( '\'''/etc/loki''\'' )' | sudo tee /etc/qubes-bind-dirs.d/50_user.conf + +unpriv curl --proxy http://127.0.0.1:8082 https://deb.oxen.io/pub.gpg | sudo tee /usr/share/keyrings/oxen.gpg +echo "deb [signed-by=/usr/share/keyrings/oxen.gpg] https://deb.oxen.io $(lsb_release -sc) main" | sudo tee /etc/apt/sources.list.d/oxen.list + +sudo apt update +sudo apt install lokinet resolvconf + +unpriv curl --proxy http://127.0.0.1:8082 https://raw.githubusercontent.com/TommyTran732/QubesOS-Scripts/main/etc/systemd/system/lokinet-dns-fix.service | sudo tee /etc/systemd/system/lokinet-dns-fix.service +sudo systemctl enable --now lokinet-dns-fix \ No newline at end of file