Skip to content

Instantly share code, notes, and snippets.

@Pusnow
Last active September 16, 2024 14:44
Show Gist options
  • Save Pusnow/c113dfa5a3d2a030c0c5e33f75f4a50e to your computer and use it in GitHub Desktop.
Save Pusnow/c113dfa5a3d2a030c0c5e33f75f4a50e to your computer and use it in GitHub Desktop.
Tunning Ubuntu for Experiment
#!/bin/bash
# disable unattended upgrade
sudo systemctl stop unattended-upgrades
sudo apt autoremove -y unattended-upgrades
# disable swap
sudo sed -i '/swap/d' /etc/fstab
sudo swapoff -a
# disable snap
sudo systemctl stop snapd
sudo systemctl disable snapd
sudo apt autoremove -y snapd
# disable udisk2
sudo systemctl stop udisks2
sudo systemctl disable udisks2
# disable multipathd
sudo systemctl stop multipathd
sudo systemctl disable multipathd
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment