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 apt-mark hold "grub-*" "grub2*" "linux-generic*" "linux-headers-generic*" "linux-image-generic*" "linux-signed-generic*" "linux-signed-image-generic*" linux-firmware intel-microcode amd64-microcode |
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 apt update -y && sudo apt remove --purge -y *thunderbird* libreoffice* celluloid sticky *calendar* cmatrix hypnotix rhythmbox *yaru* *papirus* && sudo apt autopurge -y |
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 | |
| now=`date +"%Y-%m-%d"` | |
| directory=~/Documents//Overleaf/backup | |
| outputTmpDirectory=$directory/tmp.zip | |
| outputDirectory=$directory/$backup.zip | |
| # To get the cookie | |
| cookie=`python - << EOF | |
| import re | |
| # pip install mechanize |
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 -e | |
| current=$(uname -r) | |
| echo "Current kernel: $current" | |
| kernels=$(dpkg --list | grep linux-image-[0-9] | awk '{print $2}') | |
| to_remove=$(echo "$kernels" | grep -v "$current") | |
| if [ -z "$to_remove" ]; then |
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 -e | |
| # Install required packages | |
| sudo apt update | |
| sudo apt install -y qemu-kvm libvirt-daemon-system libvirt-clients bridge-utils virt-manager | |
| # Add current user to libvirt and kvm groups | |
| sudo adduser "$USER" libvirt | |
| sudo adduser "$USER" kvm |
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 | |
| # install_docker_agnostic.sh | |
| # A comprehensive, agnostic bash script for Docker Engine installation and rootless configuration on Linux. | |
| set -e | |
| # --- Global Variables --- | |
| DISTRO_ID="" | |
| DISTRO_LIKE="" | |
| PACKAGE_MANAGER="" |
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 | |
| echo "ESTE SCRIPT IRÁ INSTALAR O LAMP STACK NESTA MÁQUINA." | |
| echo "Atualizando pacotes..." | |
| sudo apt update -y && sudo apt upgrade -y | |
| echo "Instalando Apache, MySQL, PHP e dependências..." | |
| sudo apt install -y apache2 mysql-server php libapache2-mod-php php-mysql ufw |
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 | |
| # Disable rsyslog (system log) | |
| echo "Disabling rsyslog..." | |
| systemctl stop rsyslog | |
| systemctl disable rsyslog | |
| # Disable journald (persistent logs) | |
| echo "Disabling persistent logging for journald..." | |
| sed -i 's/^#\?Storage=.*/Storage=none/' /etc/systemd/journald.conf |