1
0
mirror of https://github.com/tommytran732/QubesOS-Scripts synced 2024-11-09 04:11:32 -05:00
QubesOS-Scripts/debian-gnome/lokinet.sh
Tommy c6475d524c
Use SecureBlue HMalloc and suppress curl output
Signed-off-by: Tommy <contact@tommytran.io>
2024-07-03 02:19:13 -07:00

21 lines
775 B
Bash

#!/bin/sh
set -e
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 -s --proxy http://127.0.0.1:8082 https://deb.oxen.io/pub.gpg | sudo tee /usr/share/keyrings/oxen.gpg > /dev/null
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 -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
sudo systemctl enable --now lokinet-dns-fix