mirror of
https://github.com/tommytran732/Linux-Setup-Scripts
synced 2024-11-22 09:31:34 -05:00
Fix Networking (Again)
Signed-off-by: Tommy <contact@tommytran.io>
This commit is contained in:
parent
d6f6b008d6
commit
002eeae36f
@ -34,6 +34,11 @@ OPTIONS="-F 1"' | sudo tee /etc/sysconfig/chronyd
|
|||||||
sudo systemctl restart chronyd
|
sudo systemctl restart chronyd
|
||||||
|
|
||||||
# Setup Networking
|
# Setup Networking
|
||||||
|
echo -e '[device]\nwifi.scan-rand-mac-address=yes\n\n[connection]\nwifi.cloned-mac-address=random\nethernet.cloned-mac-address=random' | sudo tee /etc/NetworkManager/conf.d/99-random-mac.conf
|
||||||
|
echo -e '[main]\nhostname-mode=none' | sudo tee /etc/NetworkManager/conf.d/01-transient-hostname.conf
|
||||||
|
sudo nmcli general reload conf
|
||||||
|
sudo hostnamectl hostname 'localhost'
|
||||||
|
sudo hostnamectl --transient hostname ''
|
||||||
sudo firewall-cmd --set-default-zone=block
|
sudo firewall-cmd --set-default-zone=block
|
||||||
sudo firewall-cmd --permanent --add-service=dhcpv6-client
|
sudo firewall-cmd --permanent --add-service=dhcpv6-client
|
||||||
sudo firewall-cmd --reload
|
sudo firewall-cmd --reload
|
||||||
@ -126,14 +131,4 @@ sudo echo "UUID=${PARTITIONUUID} /btrfs_pool btrfs subvolid=5,ssd,
|
|||||||
sudo grub2-mkconfig -o /boot/efi/EFI/fedora/grub.cfg
|
sudo grub2-mkconfig -o /boot/efi/EFI/fedora/grub.cfg
|
||||||
sudo dnf -y install timeshift
|
sudo dnf -y install timeshift
|
||||||
|
|
||||||
# Randomize MAC address
|
|
||||||
sudo bash -c 'cat > /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
|
|
||||||
EOF
|
|
||||||
|
|
||||||
## The script is done. You can also remove gnome-terminal since gnome-console will replace it.
|
## The script is done. You can also remove gnome-terminal since gnome-console will replace it.
|
||||||
|
Loading…
Reference in New Issue
Block a user