1
0
mirror of https://github.com/tommytran732/Linux-Setup-Scripts synced 2024-11-23 01:41:34 -05:00

Compare commits

..

3 Commits

Author SHA1 Message Date
0eae66deec
Add basic sysadmin tools
Signed-off-by: Tommy <contact@tommytran.io>
2024-05-04 17:14:19 -07:00
f2e7ec45dd
Ubuntu calls 'sshd' 'ssh' now
Signed-off-by: Tommy <contact@tommytran.io>
2024-05-04 17:09:07 -07:00
cc8703dbff
gcc override no longer needed
Signed-off-by: Tommy <contact@tommytran.io>
2024-05-04 16:58:57 -07:00

View File

@ -38,9 +38,8 @@ sudo apt update -y
sudo apt full-upgrade -y
sudo apt autoremove -y
# Default to gcc-12 instead of gcc-11
sudo rm /usr/bin/gcc
sudo ln -s /usr/bin/gcc-12 /usr/bin/gcc
## Install basic sysadmin tools
sudo apt install nano iputils-ping
# Make home directory private
sudo chmod 700 /home/*
@ -60,7 +59,7 @@ sudo chmod 644 /etc/ssh/ssh_config.d/10-custom.conf
sudo mkdir -p /etc/systemd/system/ssh.service.d
unpriv curl https://raw.githubusercontent.com/GrapheneOS/infrastructure/main/systemd/system/sshd.service.d/local.conf | sudo tee /etc/systemd/system/ssh.service.d/override.conf
sudo systemctl daemon-reload
sudo systemctl restart sshd
sudo systemctl restart ssh
# Kernel hardening
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