1
0
mirror of https://github.com/tommytran732/Linux-Setup-Scripts synced 2024-12-24 07:42:01 -05:00

Enable fstrim.timer

This commit is contained in:
Tommy 2023-07-07 02:41:36 -07:00 committed by GitHub
parent 8b6b7028d9
commit d43598710f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
6 changed files with 20 additions and 2 deletions

View File

@ -16,3 +16,6 @@ sudo apt update
sudo apt -y --no-install-recommends install runsc
sudo runsc install
sudo systemctl restart docker
# Enable fstrim.timer
sudo systemctl enable --now fstrim.timer

View File

@ -105,3 +105,6 @@ sudo mkdir -p /etc/systemd/system/NetworkManager.service.d
sudo curl https://gitlab.com/divested/brace/-/raw/master/brace/usr/lib/systemd/system/NetworkManager.service.d/99-brace.conf -o /etc/systemd/system/NetworkManager.service.d/99-brace.conf
echo "* hard core 0" | tee -a /etc/security/limits.conf
# Enable fstrim.timer
sudo ystemctl enable --now fstrim.timer

View File

@ -66,3 +66,6 @@ systemctl enable --now fwupd-refresh.timer
sed -Ezi.bak "s/(Ext.Msg.show\(\{\s+title: gettext\('No valid sub)/void\(\{ \/\/\1/g" /usr/share/javascript/proxmox-widget-toolkit/proxmoxlib.js
systemctl restart pveproxy.service
# Enable fstrim.timer
systemctl enable --now fstrim.timer

View File

@ -107,3 +107,6 @@ sudo firewall-cmd --reload
sudo sed -i 's/apply_updates = no/apply_updates = yes\nreboot = when-needed/g' /etc/dnf/automatic.conf
sudo systemctl enable --now dnf-automatic.timer
# Enable fstrim.timer
sudo systemctl enable --now fstrim.timer

View File

@ -110,3 +110,6 @@ connection.stable-id=${CONNECTION}/${BOOT}
EOF
sudo systemctl restart NetworkManager
# Enable fstrim.timer
sudo systemctl enable --now fstrim.timer

View File

@ -46,5 +46,8 @@ sudo apt install fwupd
mkdir -p /etc/systemd/system/fwupd-refresh.service.d
echo '[Service]
ExecStart=/usr/bin/fwupdmgr update' | tee /etc/systemd/system/fwupd-refresh.service.d/override.conf
systemctl daemon-reload
systemctl enable --now fwupd-refresh.timer
sudo systemctl daemon-reload
sudo systemctl enable --now fwupd-refresh.timer
# Enable fstrim.timer
sudo systemctl enable --now fstrim.timer