1
0
mirror of https://github.com/tommytran732/Linux-Setup-Scripts synced 2024-09-19 13:44:43 -04: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 apt -y --no-install-recommends install runsc
sudo runsc install sudo runsc install
sudo systemctl restart docker 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 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 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 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 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 sed -i 's/apply_updates = no/apply_updates = yes\nreboot = when-needed/g' /etc/dnf/automatic.conf
sudo systemctl enable --now dnf-automatic.timer 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 EOF
sudo systemctl restart NetworkManager 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 mkdir -p /etc/systemd/system/fwupd-refresh.service.d
echo '[Service] echo '[Service]
ExecStart=/usr/bin/fwupdmgr update' | tee /etc/systemd/system/fwupd-refresh.service.d/override.conf ExecStart=/usr/bin/fwupdmgr update' | tee /etc/systemd/system/fwupd-refresh.service.d/override.conf
systemctl daemon-reload sudo systemctl daemon-reload
systemctl enable --now fwupd-refresh.timer sudo systemctl enable --now fwupd-refresh.timer
# Enable fstrim.timer
sudo systemctl enable --now fstrim.timer