Last active
January 29, 2024 15:34
-
-
Save MarsTechHAN/0a90d1d997bf7154199d0b57112451bb to your computer and use it in GitHub Desktop.
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
echo "You need to be su to run this script!, run \"sudo -i\" if you havn't." | |
echo "APT::Periodic::Update-Package-Lists \"0\";" > /etc/apt/apt.conf.d/20auto-upgrades | |
echo "APT::Periodic::Download-Upgradeable-Packages \"0\";" >> /etc/apt/apt.conf.d/20auto-upgrades | |
echo "APT::Periodic::AutocleanInterval \"0\";" >> /etc/apt/apt.conf.d/20auto-upgrades | |
echo "APT::Periodic::Unattended-Upgrade \"0\";" >> /etc/apt/apt.conf.d/20auto-upgrades |
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
sudo nvidia-uninstall | |
sudo apt purge -y '^nvidia-*' '^libnvidia-*' | |
sudo rm -r /var/lib/dkms/nvidia | |
sudo apt -y autoremove | |
sudo update-initramfs -c -k `uname -r` | |
sudo update-grub2 | |
read -p "Press any key to reboot... " -n1 -s | |
sudo reboot |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment