Skip to content

Instantly share code, notes, and snippets.

@wesinator
Last active September 26, 2018 17:59
Show Gist options
  • Save wesinator/cfc643f397117f4179f1a5c1d8627a65 to your computer and use it in GitHub Desktop.
Save wesinator/cfc643f397117f4179f1a5c1d8627a65 to your computer and use it in GitHub Desktop.
Useful post-install scripts for Ubuntu
# Force linux to use 24-hour time everywhere, including login screen
sudo update-locale LC_TIME="C.UTF-8"
# https://wiki.ubuntu.com/UEFI/SecureBoot/DKMS
sudo mokutil --disable-validation
# Install gnome-boxes correctly in Ubuntu 18.04
sudo apt install gnome-boxes && sudo adduser $USER kvm
# Remove junk from Mint default installation (as of LM 18.2)
# Remove old intel driver pkg
sudo apt autoremove xserver-xorg-video-intel
# Remove mono runtime to avoid running Windows exes
sudo apt autoremove mono-runtime
# If physical install:
sudo apt autoremove virtualbox-guest*
# Remove old chromium folder (run for all users)
rm -r ~/.config/chromium/
sudo ufw enable
# Prevent fw log garbage
sudo ufw deny in to 224.0.0.0/24
sudo ufw deny in to ff02::1
sudo ufw deny in 1900/udp
# Stop automatic printer detection and setup
sudo apt autoremove cups-browsed
sudo apt purge xul-ext-ubufox
sudo apt autoremove webbrowser-app # Remove Ubuntu browser and Amazon in 16.04
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment