Last active
July 15, 2025 03:13
-
-
Save Pusnow/c113dfa5a3d2a030c0c5e33f75f4a50e to your computer and use it in GitHub Desktop.
Tunning Ubuntu for Experiment https://gist.githubusercontent.com/Pusnow/c113dfa5a3d2a030c0c5e33f75f4a50e/raw/tune-ubuntu.sh
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
set -x | |
# disable swap | |
sudo sed -i '/swap/d' /etc/fstab | |
sudo swapoff -a | |
# uninstall packages | |
export DEBIAN_FRONTEND=noninteractive | |
TO_UNINSTALL=( | |
unattended-upgrades | |
apport | |
udisks2 | |
snapd | |
ubuntu-report | |
popularity-contest | |
lxd-installer | |
lxd-agent-loader | |
multipath-tools | |
ubuntu-release-upgrader-core | |
packagekit | |
apparmor | |
sosreport | |
byobu | |
vim | |
) | |
for pacakge in ${TO_UNINSTALL[@]}; do | |
DEBIAN_FRONTEND=noninteractive sudo apt autoremove -y $pacakge | |
done | |
sudo apt purge -y '~c' | |
# install some packages | |
sudo apt install -y bash-completion language-pack-en |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment