mirror of
https://github.com/tommytran732/Arch-Setup-Script
synced 2024-11-22 01:21:34 -05:00
Update install.sh
This commit is contained in:
parent
d22b749233
commit
158f58f66c
24
install.sh
24
install.sh
@ -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.
|
||||
|
Loading…
Reference in New Issue
Block a user