Skip to content

Instantly share code, notes, and snippets.

@CrashAngelArts
Created January 11, 2026 00:16
Show Gist options
  • Select an option

  • Save CrashAngelArts/6df2f61c536ba4ac503f820f6d4fa8a7 to your computer and use it in GitHub Desktop.

Select an option

Save CrashAngelArts/6df2f61c536ba4ac503f820f6d4fa8a7 to your computer and use it in GitHub Desktop.
ArchLinux (WiFi)
#!/bin/bash
loadkeys br-abnt2
INTERFACE="wlan0"
REDE="CurvaDeRio"
SENHA=""
cp nftables.conf /etc
systemctl enable nftables --now
nft -f /etc/nftables.conf
echo "DNS=1.1.1.1" >> /etc/systemd/resolved.conf
echo "FallbackDNS=" >> /etc/systemd/resolved.conf
echo "DNSStubListener=no" >> /etc/systemd/resolved.conf
echo "DNSSEC=yes" >> /etc/systemd/resolved.conf
echo "DNSOverHTTPS=yes" >> /etc/systemd/resolved.conf
echo "Cache=yes" >> /etc/systemd/resolved.conf
systemctl restart systemd-resolved
ln -sf /run/systemd/resolve/resolve.conf /etc/resolv.conf
iwctl --passphrase "$SENHA" station "$INTERFACE" connect "$REDE"
sleep 5
pacman -Sy
pacman -S --noconfirm exfatprogs
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment