1
0
mirror of https://github.com/tommytran732/Arch-Setup-Script synced 2024-11-09 04:01:33 -05:00

Update install.sh

This commit is contained in:
TommyTran732 2021-05-11 06:36:57 -04:00 committed by tommytran732
parent d22b749233
commit 158f58f66c
No known key found for this signature in database
GPG Key ID: 060B29EB996BD9F2

View File

@ -214,6 +214,27 @@ kernel.yama.ptrace_scope = 3
kernel.unprivileged_userns_clone = 1
EOF
# Randomize Mac Address
bash -c 'cat > /mnt/etc/NetworkManager/conf.d/00-macrandomize.conf' <<-'EOF'
[device]
wifi.scan-rand-mac-address=yes
[connection]
wifi.cloned-mac-address=random
ethernet.cloned-mac-address=random
connection.stable-id=${CONNECTION}/${BOOT}
EOF
chmod 700 /mnt/etc/NetworkManager/conf.d/00-macrandomize.conf
# Disable Connectivity Check
bash -c 'cat > /mnt/etc/NetworkManager/conf.d/20-connectivity.conf' <<-'EOF'
[connectivity]
uri=http://www.archlinux.org/check_network_status.txt
interval=0
EOF
chmod 700 /mnt/etc/NetworkManager/conf.d/20-connectivity.conf
# Configuring the system.
arch-chroot /mnt /bin/bash -e <<EOF
@ -252,9 +273,6 @@ arch-chroot /mnt /bin/bash -e <<EOF
echo "Creating GRUB config file."
grub-mkconfig -o /boot/grub/grub.cfg &>/dev/null
pacman -S --noconfirm snap-pac
#Remove unnecessary permissions
chmod o-w /var/cache
EOF
# Setting root password.