Add lokinet script

Signed-off-by: Tommy <contact@tommytran.io>
This commit is contained in:
Tommy 2024-05-24 22:12:32 -07:00
parent ad3b6269a7
commit 2231cec2d7
No known key found for this signature in database
GPG Key ID: 555C902A34EC968F

19
debian-gnome/lokinet.sh Normal file
View File

@ -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