1
0
mirror of https://github.com/tommytran732/QubesOS-Scripts synced 2024-11-13 22:01:34 -05:00
QubesOS-Scripts/fedora/fedora.sh

59 lines
2.4 KiB
Bash
Raw Normal View History

2022-02-03 03:03:04 -05:00
#!/bin/bash
2022-02-03 12:13:50 -05:00
2022-07-01 07:58:39 -04:00
sudo dnf remove firefox thunderbird totem gnome-remote-desktop gnome-calendar gnome-disk-utility gnome-calculator gnome-connections gnome-weather gnome-contacts gnome-clocks gnome-maps gnome-screenshot gnome-logs gnome-characters gnome-font-viewer gnome-color-manager simple-scan keepassxc cheese baobab yelp evince* httpd mozilla* cups rygel -y
2022-02-04 06:58:00 -05:00
sudo dnf autoremove -y
2022-07-01 08:51:06 -04:00
sudo dnf install qubes-u2f qubes-gpg-split arc-theme qt5ct qt5-qtstyleplugins -y
2022-07-01 08:00:40 -04:00
echo "countme=False" | sudo tee -a /etc/dnf/dnf.conf
2022-02-05 01:37:24 -05:00
# Blacklisting kernel modules
sudo curl --proxy http://127.0.0.1:8082 https://raw.githubusercontent.com/Kicksecure/security-misc/master/etc/modprobe.d/30_security-misc.conf -o /etc/modprobe.d/30_security-misc.conf
# Security kernel settings.
sudo curl --proxy http://127.0.0.1:8082 https://raw.githubusercontent.com/Kicksecure/security-misc/master/etc/sysctl.d/30_security-misc.conf -o /etc/sysctl.d/30_security-misc.conf
sudo sed -i 's/kernel.yama.ptrace_scope=2/kernel.yama.ptrace_scope=3/g' /etc/sysctl.d/30_security-misc.conf
sudo curl --proxy http://127.00.1:8082 https://raw.githubusercontent.com/Kicksecure/security-misc/master/etc/sysctl.d/30_silent-kernel-printk.conf -o /etc/sysctl.d/30_silent-kernel-printk.conf
# Systemd hardening
sudo mkdir -p /etc/systemd/system/ModemManager.service.d
sudo 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 -o /etc/systemd/system/ModemManager.service.d/99-brace.conf
# Theming
2022-02-06 22:37:08 -05:00
git config --global http.proxy http://127.0.0.1:8082
2022-02-06 22:35:30 -05:00
git clone https://github.com/horst3180/arc-icon-theme
2022-05-26 17:19:12 -04:00
sudo mv arc-icon-theme/Arc /usr/share/icons
2022-02-06 22:35:30 -05:00
rm -rf arc-icon-theme
2022-07-01 08:51:06 -04:00
echo "export QT_QPA_PLATFORMTHEME=gtk2" | sudo tee /etc/environment
2022-05-26 17:39:47 -04:00
echo "[org/gnome/desktop/interface]
2022-07-01 08:51:06 -04:00
gtk-theme='Arc-Dark'
icon-theme='Arc'
[org/gnome/desktop/media-handling]
automount=false
automount-open=false" | sudo tee /etc/dconf/db/local.d/custom
2022-05-26 17:20:33 -04:00
2022-05-26 17:39:47 -04:00
sudo dconf update
2022-05-26 19:43:44 -04:00
#Flatpak update service
2022-05-26 17:39:47 -04:00
echo "[Unit]
2022-05-26 17:20:33 -04:00
Description=Update user Flatpaks
[Service]
Type=oneshot
ExecStart=/usr/bin/flatpak --user update -y
[Install]
2022-05-26 17:39:47 -04:00
WantedBy=default.target" | sudo tee /etc/systemd/user/update-user-flatpaks.service
2022-05-26 17:20:33 -04:00
2022-05-26 17:39:47 -04:00
echo "[Unit]
2022-05-26 17:20:33 -04:00
Description=Update user Flatpaks daily
[Timer]
OnCalendar=daily
Persistent=true
[Install]
2022-07-01 07:53:36 -04:00
WantedBy=timers.target" | sudo tee /etc/systemd/user/update-user-flatpaks.timer