2024-06-26 02:42:21 -04:00
|
|
|
#!/bin/sh
|
2024-05-25 01:12:32 -04:00
|
|
|
|
2024-07-20 21:20:34 -04:00
|
|
|
set -eu
|
2024-07-03 05:19:13 -04:00
|
|
|
|
2024-05-25 01:12:32 -04:00
|
|
|
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
|
|
|
|
|
2024-07-03 05:19:13 -04:00
|
|
|
unpriv curl -s --proxy http://127.0.0.1:8082 https://deb.oxen.io/pub.gpg | sudo tee /usr/share/keyrings/oxen.gpg > /dev/null
|
2024-05-25 01:12:32 -04:00
|
|
|
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
|
|
|
|
|
2024-07-03 05:19:13 -04:00
|
|
|
unpriv curl -s --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 > /dev/null
|
2024-05-25 01:12:32 -04:00
|
|
|
sudo systemctl enable --now lokinet-dns-fix
|