1
0
mirror of https://github.com/tommytran732/Linux-Setup-Scripts synced 2024-12-22 23:02:25 -05:00
My setup script for my Linux systems
Go to file
2021-04-06 02:00:26 -04:00
selinux Delete my-gatekeeperd.pp 2021-03-13 09:51:57 -05:00
Fedora-WorkStation-33.sh Update Fedora-WorkStation-33.sh 2021-04-06 01:58:56 -04:00
LICENSE Initial commit 2021-03-12 23:45:30 -05:00
README.md Update README.md 2021-04-05 18:57:17 +00:00
Ubuntu-Desktop-20.04-LTS.sh Update Ubuntu-Desktop-20.04-LTS.sh 2021-04-06 02:00:26 -04:00

Linux Setup Scripts

My setup scripts for my workstations. You should edit the scripts to your liking before running it. Please run the scripts as your actual user and not root. Provide sudo password when it asks you to. Flatpak packages and themes/icons are only installed for your user and not system wide.

Fedora Workstation 33

  1. Debloat Fedora
    The script removes some ~800 useless packages from the default installation. A lot of these have Flatpak alternatives and you should be using them for app confinement.

  2. Setup basic privacy and security (Setting umask to 077, closing open ports on firewalld, randomizing mac address, disabling ptrace, install openSnitch as an outbound firewall, ...)

  3. Setup a BTRFS layout compatible with Timeshift. Credits to https://mutschler.eu/linux/install-guides/fedora-btrfs/

  4. Install proprietary Nvidia Drivers and sign them (yes, you don't have to sacrifice Secure Boot for these proprietary drivers. The drivers will be automatically built and signed every kernel update as well. It was honestly a headache to get it working, and it seems to only work on Workstation... I don't know how to get it to work on Silverblue yet.)

  5. Setup Anbox using the snap package and out of tree kernel modules (yes, the kernel modules are automatically signed by DKMS - this was also a pain. If only Fedora included the in tree ashmem and binder modules in their kernel. I also provide some selinux policies for ya as well, don't be an idiot and set it to permissive mode!) Broken since Fedora 33 updated to kernel 5.11.

  6. Setup Flathub

  7. Quality of life stuff (Installing some packages that I use, enabling autotrim, setting up a nice GNOME, GTK, and icon theme, speeding up DNF, ...)

  8. Fix broken audio with Steam

image

image

Ubuntu Desktop 20.04 LTS

Similar to the Fedora script, this script

  1. Debloat Ubuntu
    The script removes some ~150 useless packages from the minimal installation.

  2. Setup basic privacy and security (Setting umask to 077, enabling ufw, randomizing mac address, disabling ptrace, install openSnitch as an outbound firewall, removing unnecessary permissions...)

  3. Install and set AppArmor profiles to enforcing mode

  4. Replace the Snap Store with GNOME Software + Snap and Flatpak plugins

  5. Quality of life stuff (Installing some packages that I use, enabling autotrim, setting up a nice GNOME, GTK, and icon theme, ...)

  6. Remove telemetry (apports, popularity contest, whoopsie) - Keep in mind Snapd still phones home with your unique ID and installed snap packages list. Remove snapd if you don't need it.

  7. Signing Ashmem kernel modules (for whatever reason, it is not signed by default)

I would recommend that you follow this guide and setup Encrypted ZFS instead of BTRFS with Timeshift on Ubuntu: https://linsomniac.gitlab.io/post/2020-04-09-ubuntu-2004-encrypted-zfs/

image