2023-02-15 18:12:27 -05:00
|
|
|
#!/bin/sh
|
|
|
|
|
|
|
|
SSID="$1"
|
|
|
|
|
2023-02-16 23:01:31 -05:00
|
|
|
systemctl enable --now iwd systemd-networkd systemd-resolved systemd-timesyncd
|
2023-02-15 18:12:27 -05:00
|
|
|
echo "check if powered on"
|
|
|
|
iwctl device list
|
|
|
|
sleep 5
|
|
|
|
iwctl station wlan0 scan
|
|
|
|
iwctl station wlan0 get-networks
|
|
|
|
iwctl station wlan0 connect "$SSID"
|
|
|
|
cat << EOF >> /etc/iwd/main.conf
|
|
|
|
[General]
|
|
|
|
EnableNetworkConfiguration=true
|
|
|
|
EOF
|
|
|
|
|
2023-02-15 23:05:22 -05:00
|
|
|
ln -sf /run/systemd/resolve/stub-resolv.conf /etc/resolv.conf
|
2023-02-21 12:55:56 -05:00
|
|
|
sed -i 's/#DNS=.*/DNS=100.64.0.1/' /etc/systemd/resolved.conf
|
2023-02-21 12:56:42 -05:00
|
|
|
sed -i 's/#FallbackDNS=.*/FallbackDNS=1.1.1.1/' /etc/systemd/resolved.conf
|
2023-02-15 23:05:22 -05:00
|
|
|
|
2023-03-01 21:54:04 -05:00
|
|
|
cat << EOF >> /var/lib/iwd/ CLG.8021x
|
|
|
|
[IPv6]
|
|
|
|
Enabled=true
|
|
|
|
|
|
|
|
[Security]
|
|
|
|
EAP-Method=PEAP
|
|
|
|
EAP-Identity=USER
|
|
|
|
EAP-PEAP-Phase2-Method=MSCHAPV2
|
|
|
|
EAP-PEAP-Phase2-Identity=USER
|
|
|
|
EAP-PEAP-Phase2-Password=PASSWD
|
|
|
|
EOF
|
2023-03-10 00:53:39 -05:00
|
|
|
nano /var/lib/iwd/CLG.8021x
|
2023-03-01 21:54:04 -05:00
|
|
|
|
|
|
|
pacman -Sy reflector
|
|
|
|
nano /etc/xdg/reflector/reflector.conf
|
|
|
|
systemctl enable --now reflector.timer
|
2023-02-21 12:57:29 -05:00
|
|
|
|
2023-02-15 18:12:27 -05:00
|
|
|
useradd -m matt -G wheel
|
|
|
|
passwd matt
|
|
|
|
|
|
|
|
pacman -Syu
|
2023-02-15 23:05:22 -05:00
|
|
|
pacman -Sy htop pkgfile plocate rsync tailscale tmux usbutils wget git curl devtools xorg xf86-video-amdgpu mesa lib32-mesa vulkan-radeon lib32-vulkan-radeon libva-mesa-driver lib32-libva-mesa-driver mesa-vdpau lib32-mesa-vdpau bash-completion fzf
|
2023-02-15 18:12:27 -05:00
|
|
|
|
2023-03-02 17:07:33 -05:00
|
|
|
systemctl enable --now tailscale
|
2023-03-01 19:42:03 -05:00
|
|
|
|
2023-02-15 18:12:27 -05:00
|
|
|
pacman -S --needed git base-devel
|
|
|
|
git clone https://aur.archlinux.org/yay.git
|
|
|
|
cd yay
|
|
|
|
makepkg -si
|
2023-03-02 17:07:33 -05:00
|
|
|
sed -i 's/#Color/Color/' /etc/pacman.conf
|
2023-02-15 18:12:27 -05:00
|
|
|
|
2023-03-02 17:07:33 -05:00
|
|
|
su matt
|