From 6589b673647f70c15c470d90184d25ecdf62aba5 Mon Sep 17 00:00:00 2001 From: Tommy Date: Sun, 28 Apr 2024 21:31:41 -0700 Subject: [PATCH] Minor bug fixes Signed-off-by: Tommy --- fedora/fedora-gnome.sh | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/fedora/fedora-gnome.sh b/fedora/fedora-gnome.sh index f6dc83b..ba97306 100644 --- a/fedora/fedora-gnome.sh +++ b/fedora/fedora-gnome.sh @@ -125,7 +125,7 @@ unpriv curl --proxy http://127.0.0.1:8082 https://raw.githubusercontent.com/Tomm # Systemd hardening sudo mkdir -p /etc/systemd/system/ModemManager.service.d -curl --proxy http://127.0.0.1:8082 https://raw.githubusercontent.com/divestedcg/Brace/master/brace/usr/lib/systemd/system/ModemManager.service.d/99-brace.conf | sudo tee /etc/systemd/system/ModemManager.service.d/99-brace.conf +unpriv curl --proxy http://127.0.0.1:8082 https://raw.githubusercontent.com/divestedcg/Brace/master/brace/usr/lib/systemd/system/ModemManager.service.d/99-brace.conf | sudo tee /etc/systemd/system/ModemManager.service.d/99-brace.conf # Setup hardened_malloc sudo dnf install 'https://divested.dev/rpm/fedora/divested-release-20231210-2.noarch.rpm' -y @@ -137,7 +137,10 @@ echo 'libhardened_malloc.so' | sudo tee /etc/ld.so.preload # Setup networking unpriv curl --proxy http://127.0.0.1:8082 https://raw.githubusercontent.com/TommyTran732/Linux-Setup-Scripts/main/etc/NetworkManager/conf.d/00-macrandomize.conf | sudo tee /etc/NetworkManager/conf.d/00-macrandomize.conf unpriv curl --proxy http://127.0.0.1:8082 https://raw.githubusercontent.com/TommyTran732/Linux-Setup-Scripts/main/etc/NetworkManager/conf.d/01-transient-hostname.conf | sudo tee /etc/NetworkManager/conf.d/01-transient-hostname.conf -sudo nmcli general reload conf + +# Can't do nmcli reload here because NetworkManager is not running in a TemplateVM +# sudo nmcli general reload conf + sudo hostnamectl hostname 'localhost' sudo hostnamectl --transient hostname ''