WiFi auto-connect tool for University of Eswatini students. Automatically configures WPA2-Enterprise WiFi, proxy settings, and device registration. Supports Windows and Linux with bilingual interface (English/siSwati).
# UNESWA WiFi AutoConnect
A tool that handles university WiFi connection and proxy setup automatically. Built to solve the common problem where your browser works fine on campus but package managers and command-line tools fail because they don't pick up the proxy settings.
## Why this exists
When you connect to campus WiFi, browsers usually work right away through the captive portal or proxy. But if you try to run `apt update`, `dnf install`, or `pacman -Syu`, they'll fail because they don't use the same proxy settings as your browser.
This happens because different systems handle proxies differently:
- **Ubuntu/Debian**: Usually picks up environment variables or NetworkManager settings. A simple shell export often works.
- **Arch**: Follows environment variables pretty well. System-wide changes in `/etc/environment` usually do the trick.
- **Fedora/RHEL/CentOS**: DNF ignores user-level proxy settings completely. You have to edit `/etc/dnf/dnf.conf` or it won't work at all.
- **Windows**: Registry settings for Internet Explorer/Edge, plus WinHTTP for system services and CLI tools.
The code handles all these cases so you don't have to remember which config file to edit for your particular setup.
## Supported platforms
- **Windows 10/11** - Requires administrator privileges (UAC prompt on startup)
- Windows 11: Tries the native connection method first, then falls back to the traditional approach if needed
- **Linux** - NetworkManager-based distros (Ubuntu, Debian, Fedora, Arch, Manjaro)
## Features
- **One-click setup** - WiFi, proxy, and device registration in one go
- **Automatic credential storage** - No manual prompts after first connection
- Windows: Native WLAN API for PEAP/MSCHAPv2 credentials
- Linux: NetworkManager connection profiles
- **Cross-platform proxy configuration** - Works with browsers and package managers
- **siSwati/English UI** - Language toggle for local users
- **Saved credentials** - Student ID and birthday remembered between sessions …