Skip to content

Instantly share code, notes, and snippets.

@Cdaprod
Created March 26, 2025 16:30
Show Gist options
  • Save Cdaprod/9687726e5c1636a2771126ee8cb9f2af to your computer and use it in GitHub Desktop.
Save Cdaprod/9687726e5c1636a2771126ee8cb9f2af to your computer and use it in GitHub Desktop.
Enable SSH and Add Wi-Fi Config via Serial
sudo tee /etc/wpa_supplicant/wpa_supplicant.conf > /dev/null <<EOF
ctrl_interface=DIR=/var/run/wpa_supplicant GROUP=netdev
update_config=1
country=US
network={
ssid="YourWiFiSSID"
psk="YourWiFiPassword"
key_mgmt=WPA-PSK
}
EOF && sudo systemctl enable ssh && sudo systemctl start ssh && sudo wpa_cli -i wlan0 reconfigure
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment