mirror of
https://github.com/tommytran732/Linux-Setup-Scripts
synced 2024-11-23 01:41:34 -05:00
Compare commits
No commits in common. "7177cdf77471f80aa600db671f71039581409a3d" and "dfe149a763edd23833d86826f7629a08b9e88bdd" have entirely different histories.
7177cdf774
...
dfe149a763
@ -53,10 +53,6 @@ sudo /usr/bin/sed -i 's/\s+nullok//g' /etc/pam.d/system-auth
|
|||||||
unpriv curl https://raw.githubusercontent.com/TommyTran732/Linux-Setup-Scripts/main/etc/ssh/ssh_config.d/10-custom.conf | sudo tee /etc/ssh/ssh_config.d/10-custom.conf
|
unpriv curl https://raw.githubusercontent.com/TommyTran732/Linux-Setup-Scripts/main/etc/ssh/ssh_config.d/10-custom.conf | sudo tee /etc/ssh/ssh_config.d/10-custom.conf
|
||||||
sudo chmod 644 /etc/ssh/ssh_config.d/10-custom.conf
|
sudo chmod 644 /etc/ssh/ssh_config.d/10-custom.conf
|
||||||
unpriv curl https://raw.githubusercontent.com/TommyTran732/Linux-Setup-Scripts/main/etc/ssh/sshd_config.d/10-custom.conf | sudo tee /etc/ssh/sshd_config.d/10-custom.conf
|
unpriv curl https://raw.githubusercontent.com/TommyTran732/Linux-Setup-Scripts/main/etc/ssh/sshd_config.d/10-custom.conf | sudo tee /etc/ssh/sshd_config.d/10-custom.conf
|
||||||
sudo mkdir -p /etc/systemd/system/sshd.service.d/
|
|
||||||
unpriv curl https://raw.githubusercontent.com/GrapheneOS/infrastructure/main/systemd/system/sshd.service.d/local.conf | sudo tee /etc/systemd/system/sshd.service.d/override.conf
|
|
||||||
sudo systemctl daemon-reload
|
|
||||||
sudo systemctl restart sshd
|
|
||||||
|
|
||||||
# Security kernel settings
|
# Security kernel settings
|
||||||
unpriv curl https://raw.githubusercontent.com/Kicksecure/security-misc/master/etc/modprobe.d/30_security-misc.conf | sudo tee /etc/modprobe.d/30_security-misc.conf
|
unpriv curl https://raw.githubusercontent.com/Kicksecure/security-misc/master/etc/modprobe.d/30_security-misc.conf | sudo tee /etc/modprobe.d/30_security-misc.conf
|
||||||
@ -107,7 +103,6 @@ sudo systemctl enable fstrim.timer
|
|||||||
|
|
||||||
# Installing tuned first here because virt-what is 1 of its dependencies anyways
|
# Installing tuned first here because virt-what is 1 of its dependencies anyways
|
||||||
sudo dnf install tuned -y
|
sudo dnf install tuned -y
|
||||||
sudo systemctl enable --now tuned
|
|
||||||
|
|
||||||
virt_type=$(virt-what)
|
virt_type=$(virt-what)
|
||||||
if [ "$virt_type" = '' ]; then
|
if [ "$virt_type" = '' ]; then
|
||||||
|
@ -218,7 +218,6 @@ sudo systemctl enable fstrim.timer
|
|||||||
|
|
||||||
# Installing tuned first here because virt-what is 1 of its dependencies anyways
|
# Installing tuned first here because virt-what is 1 of its dependencies anyways
|
||||||
sudo dnf install tuned -y
|
sudo dnf install tuned -y
|
||||||
sudo systemctl enable --now tuned
|
|
||||||
|
|
||||||
virt_type=$(virt-what)
|
virt_type=$(virt-what)
|
||||||
if [ "$virt_type" = '' ]; then
|
if [ "$virt_type" = '' ]; then
|
||||||
@ -236,7 +235,6 @@ 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 systemctl disable --now tuned
|
|
||||||
sudo dnf remove tuned -y
|
sudo dnf remove tuned -y
|
||||||
else
|
else
|
||||||
if [ "$virt_type" = 'kvm' ]; then
|
if [ "$virt_type" = 'kvm' ]; then
|
||||||
|
Loading…
Reference in New Issue
Block a user