mirror of
https://github.com/tommytran732/Linux-Setup-Scripts
synced 2024-11-09 11:41:33 -05:00
Enable fstrim.timer
This commit is contained in:
parent
8b6b7028d9
commit
d43598710f
@ -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
|
@ -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
|
@ -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
|
@ -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
|
@ -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
|
@ -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
|
Loading…
Reference in New Issue
Block a user