mirror of
https://github.com/tommytran732/Linux-Setup-Scripts
synced 2024-11-22 09:31:34 -05:00
Compare commits
3 Commits
effebda27a
...
0ce4a7b30e
Author | SHA1 | Date | |
---|---|---|---|
0ce4a7b30e | |||
79a0297a7b | |||
5c7cedd512 |
@ -193,10 +193,13 @@ fi
|
|||||||
|
|
||||||
# Setup tuned
|
# Setup tuned
|
||||||
if [ "$virt_type" = '' ]; then
|
if [ "$virt_type" = '' ]; then
|
||||||
# Don't know whether using tuned would be a good idea on a laptop, power-profiles-daemon should be handling performance tuning IMO.
|
# Don't know whether using tuned would be a good idea on a laptop, power-profiles-daemon should be handling performance tuning IMO.
|
||||||
sudo dnf remove tuned -y
|
sudo dnf remove tuned -y
|
||||||
else
|
else
|
||||||
sudo tuned-adm profile virtual-guest
|
if [ "$virt_type" = 'kvm' ]; then
|
||||||
|
sudo dnf install qemu-guest-agent -y
|
||||||
|
fi
|
||||||
|
sudo tuned-adm profile virtual-guest
|
||||||
fi
|
fi
|
||||||
|
|
||||||
# Setup real-ucode and hardened_malloc
|
# Setup real-ucode and hardened_malloc
|
||||||
|
@ -14,8 +14,6 @@
|
|||||||
# License for the specific language governing permissions and limitations under
|
# License for the specific language governing permissions and limitations under
|
||||||
# the License.
|
# the License.
|
||||||
|
|
||||||
#Assuming that you are using ANSSI-BP-028
|
|
||||||
|
|
||||||
output(){
|
output(){
|
||||||
echo -e '\e[36m'"$1"'\e[0m';
|
echo -e '\e[36m'"$1"'\e[0m';
|
||||||
}
|
}
|
||||||
@ -83,6 +81,10 @@ unpriv curl https://gitlab.com/divested/brace/-/raw/master/brace/usr/lib/systemd
|
|||||||
sudo systemctl daemon-reload
|
sudo systemctl daemon-reload
|
||||||
sudo systemctl restart irqbalance
|
sudo systemctl restart irqbalance
|
||||||
|
|
||||||
|
# Remove packages
|
||||||
|
|
||||||
|
sudo dnf remove baobab chrome-gnome-shell evince firefox gedit gnome-calculator gnome-characters gnome-font-viewer gnome-screenshot gnome-tour qemu-guest-agent 'sssd*' 'yelp*'
|
||||||
|
|
||||||
# Setup dnf
|
# Setup dnf
|
||||||
unpriv curl https://raw.githubusercontent.com/TommyTran732/Linux-Setup-Scripts/main/etc/dnf/dnf.conf | sudo tee /etc/dnf/dnf.conf
|
unpriv curl https://raw.githubusercontent.com/TommyTran732/Linux-Setup-Scripts/main/etc/dnf/dnf.conf | sudo tee /etc/dnf/dnf.conf
|
||||||
sudo sed -i 's/^metalink=.*/&\&protocol=https/g' /etc/yum.repos.d/*
|
sudo sed -i 's/^metalink=.*/&\&protocol=https/g' /etc/yum.repos.d/*
|
||||||
@ -185,6 +187,9 @@ fi
|
|||||||
# Setup tuned
|
# Setup tuned
|
||||||
if [ "$virt_type" = '' ]; then
|
if [ "$virt_type" = '' ]; then
|
||||||
sudo tuned-adm profile latency-performance
|
sudo tuned-adm profile latency-performance
|
||||||
|
if [ "$virt_type" = 'kvm' ]; then
|
||||||
|
sudo dnf install qemu-guest-agent -y
|
||||||
|
fi
|
||||||
else
|
else
|
||||||
sudo tuned-adm profile virtual-guest
|
sudo tuned-adm profile virtual-guest
|
||||||
fi
|
fi
|
||||||
|
@ -123,6 +123,9 @@ fi
|
|||||||
if [ "$virt_type" = "" ]; then
|
if [ "$virt_type" = "" ]; then
|
||||||
sudo tuned-adm profile latency-performance
|
sudo tuned-adm profile latency-performance
|
||||||
else
|
else
|
||||||
|
if [ "$virt_type" = 'kvm' ]; then
|
||||||
|
sudo apt install qemu-guest-agent -y
|
||||||
|
fi
|
||||||
sudo tuned-adm profile virtual-guest
|
sudo tuned-adm profile virtual-guest
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
@ -194,9 +194,12 @@ fi
|
|||||||
|
|
||||||
# Setup tuned
|
# Setup tuned
|
||||||
if [ "$virt_type" = '' ]; then
|
if [ "$virt_type" = '' ]; then
|
||||||
# Don't know whether using tuned would be a good idea on a laptop, power-profiles-daemon should be handling performance tuning IMO.
|
# Don't know whether using tuned would be a good idea on a laptop, power-profiles-daemon should be handling performance tuning IMO.
|
||||||
sudo apt remove tuned -y
|
sudo apt remove tuned -y
|
||||||
sudo apt autoremove -y
|
sudo apt autoremove -y
|
||||||
else
|
else
|
||||||
sudo tuned-adm profile virtual-guest
|
if [ "$virt_type" = 'kvm' ]; then
|
||||||
|
sudo apt install qemu-guest-agent -y
|
||||||
|
fi
|
||||||
|
sudo tuned-adm profile virtual-guest
|
||||||
fi
|
fi
|
Loading…
Reference in New Issue
Block a user