From e9748c295ebeedf4db0ee52295aeefac8d1befe7 Mon Sep 17 00:00:00 2001 From: Tommy Date: Sat, 20 Jan 2024 17:06:07 -0700 Subject: [PATCH] Fix umask dconf Signed-off-by: Tommy --- Fedora-Workstation-39.sh | 5 ++++- Ubuntu-22.04-Desktop.sh | 5 ++++- 2 files changed, 8 insertions(+), 2 deletions(-) diff --git a/Fedora-Workstation-39.sh b/Fedora-Workstation-39.sh index 960e19a..dbd370f 100644 --- a/Fedora-Workstation-39.sh +++ b/Fedora-Workstation-39.sh @@ -80,6 +80,8 @@ unpriv curl https://gitlab.com/divested/brace/-/raw/master/brace/usr/lib/systemd sudo systemctl restart NetworkManager # Setup dconf +umask 022 + unpriv curl https://raw.githubusercontent.com/TommyTran732/Linux-Setup-Scripts/main/etc/dconf/db/local.d/automount-disable | sudo tee /etc/dconf/db/local.d/automount-disable unpriv curl https://raw.githubusercontent.com/TommyTran732/Linux-Setup-Scripts/main/etc/dconf/db/local.d/locks/automount-disable | sudo tee /etc/dconf/db/local.d/locks/automount-disable @@ -87,8 +89,9 @@ unpriv curl https://raw.githubusercontent.com/TommyTran732/Linux-Setup-Scripts/m unpriv curl https://raw.githubusercontent.com/TommyTran732/Linux-Setup-Scripts/main/etc/dconf/db/local.d/adw-gtk3-dark | sudo tee /etc/dconf/db/local.d/adw-gtk3-dark unpriv curl https://raw.githubusercontent.com/TommyTran732/Linux-Setup-Scripts/main/etc/dconf/db/local.d/button-layout | sudo tee /etc/dconf/db/local.d/button-layout unpriv curl https://raw.githubusercontent.com/TommyTran732/Linux-Setup-Scripts/main/etc/dconf/db/local.d/touchpad | sudo tee /etc/dconf/db/local.d/touchpad -sudo chmod 644 /etc/dconf/db/local.d/* + sudo dconf update +umask 077 # Setup ZRAM echo -e '[zram0]\nzram-fraction = 1\nmax-zram-size = 8192\ncompression-algorithm = zstd' | sudo tee /etc/systemd/zram-generator.conf diff --git a/Ubuntu-22.04-Desktop.sh b/Ubuntu-22.04-Desktop.sh index a5ad3ca..0c3a7d8 100644 --- a/Ubuntu-22.04-Desktop.sh +++ b/Ubuntu-22.04-Desktop.sh @@ -91,6 +91,8 @@ sudo mkdir -p /etc/systemd/system/irqbalance.service.d unpriv curl https://gitlab.com/divested/brace/-/raw/master/brace/usr/lib/systemd/system/irqbalance.service.d/99-brace.conf | sudo tee /etc/systemd/system/irqbalance.service.d/99-brace.conf # Setup dconf +umask 022 + sudo mkdir -p /etc/dconf/db/local.d/locks unpriv curl https://raw.githubusercontent.com/TommyTran732/Linux-Setup-Scripts/main/etc/dconf/db/local.d/automount-disable | sudo tee /etc/dconf/db/local.d/automount-disable @@ -100,8 +102,9 @@ unpriv curl https://raw.githubusercontent.com/TommyTran732/Linux-Setup-Scripts/m unpriv curl https://raw.githubusercontent.com/TommyTran732/Linux-Setup-Scripts/main/etc/dconf/db/local.d/locks/apport-disable | sudo tee /etc/dconf/db/local.d/locks/apport-disable unpriv curl https://raw.githubusercontent.com/TommyTran732/Linux-Setup-Scripts/main/etc/dconf/db/local.d/touchpad | sudo tee /etc/dconf/db/local.d/touchpad -sudo chmod 644 /etc/dconf/db/local.d/* + sudo dconf update +umask 077 ubuntu-report -f send no sudo systemctl stop apport.service