mirror of
https://github.com/tommytran732/Arch-Setup-Script
synced 2024-11-22 09:31:34 -05:00
Update install.sh
This commit is contained in:
parent
b1e12ad632
commit
d4af80bd39
@ -206,9 +206,9 @@ systemctl enable apparmor --root=/mnt &>/dev/null
|
|||||||
systemctl enable firewalld --root=/mnt &>/dev/null
|
systemctl enable firewalld --root=/mnt &>/dev/null
|
||||||
|
|
||||||
# Setting umask to 077
|
# Setting umask to 077
|
||||||
sed -i 's/022/077/g' /etc/profile
|
sed -i 's/022/077/g' /mnt/etc/profile
|
||||||
echo "" >> /etc/bash.bashrc
|
echo "" >> /mnt/etc/bash.bashrc
|
||||||
echo "umask 077" >> /etc/bash.bashrc
|
echo "umask 077" >> /mnt/etc/bash.bashrc
|
||||||
|
|
||||||
#Security kernel settings
|
#Security kernel settings
|
||||||
sudo bash -c 'cat > /mnt/etc/sysctl.d/51-dmesg-restrict.conf' <<-'EOF'
|
sudo bash -c 'cat > /mnt/etc/sysctl.d/51-dmesg-restrict.conf' <<-'EOF'
|
||||||
@ -231,5 +231,8 @@ kernel.yama.ptrace_scope = 3
|
|||||||
module.sig_enforce = 1
|
module.sig_enforce = 1
|
||||||
EOF
|
EOF
|
||||||
|
|
||||||
|
#Blacklist Firewire SBP2
|
||||||
|
echo "blacklist firewire-sbp2" | sudo tee /mnt/etc/modprobe.d/blacklist.conf
|
||||||
|
|
||||||
echo "Done, you may now wish to reboot (further changes can be done by chrooting into /mnt)."
|
echo "Done, you may now wish to reboot (further changes can be done by chrooting into /mnt)."
|
||||||
exit
|
exit
|
||||||
|
Loading…
Reference in New Issue
Block a user