diff --git a/Fedora-Server-40.sh b/Fedora-Server-40.sh index a7b26bc..ae6dc95 100644 --- a/Fedora-Server-40.sh +++ b/Fedora-Server-40.sh @@ -128,9 +128,6 @@ sudo systemctl enable --now tuned if [ "$virtualization" = 'none' ]; then sudo tuned-adm profile latency-performance else - if [ "$virtualization" = 'kvm' ]; then - sudo dnf install -y qemu-guest-agent - fi sudo tuned-adm profile virtual-guest fi diff --git a/Ubuntu-24.04-Server.sh b/Ubuntu-24.04-Server.sh index 3712174..e2d1ad6 100644 --- a/Ubuntu-24.04-Server.sh +++ b/Ubuntu-24.04-Server.sh @@ -110,24 +110,24 @@ sudo systemctl enable --now fstrim.timer ### Differentiating bare metal and virtual installs # Setup tuned +sudo apt install -y tuned +sudo systemctl enable --now tuned + if [ "$virtualization" = 'none' ]; then - output "Bare Metal installation. Tuned will not be set up here - PPD should take care of it." + sudo tuned-adm profile latency-performance else - sudo apt purge -y power-profiles-daemon - sudo apt install -y tuned - systemctl enable --now tuned sudo tuned-adm profile virtual-guest fi # Setup fwupd if [ "$virtualization" = 'none' ]; then - sudo apt install -y fwupd - echo 'UriSchemes=file;https' | sudo tee -a /etc/fwupd/fwupd.conf - sudo systemctl restart fwupd - mkdir -p /etc/systemd/system/fwupd-refresh.service.d - unpriv curl https://raw.githubusercontent.com/TommyTran732/Linux-Setup-Scripts/main/etc/systemd/system/fwupd-refresh.service.d/override.conf | sudo tee /etc/systemd/system/fwupd-refresh.service.d/override.conf - sudo systemctl daemon-reload - sudo systemctl enable --now fwupd-refresh.timer + sudo apt install -y fwupd + echo 'UriSchemes=file;https' | sudo tee -a /etc/fwupd/fwupd.conf + sudo systemctl restart fwupd + mkdir -p /etc/systemd/system/fwupd-refresh.service.d + unpriv curl https://raw.githubusercontent.com/TommyTran732/Linux-Setup-Scripts/main/etc/systemd/system/fwupd-refresh.service.d/override.conf | sudo tee /etc/systemd/system/fwupd-refresh.service.d/override.conf + sudo systemctl daemon-reload + sudo systemctl enable --now fwupd-refresh.timer fi # Setup unbound