Skip to content

sidstuff/bits

Repository files navigation

How to connect to the BITS Pilani Wi-Fi on Linux via the CLI

Requirements

  • Bash
  • either wpa_supplicant or iwd
  • (optional) NetworkManager
  • (optional) Netplan

Initial setup

Run any one of

su -c "bash <(wget -qO- https://github.com/sidstuff/bits/raw/master/wifi-setup.sh)" -
su -c "bash <(curl -fsSL https://github.com/sidstuff/bits/raw/master/wifi-setup.sh)" -

while connected to another network. If no root password is set but sudo is available, prefix the above command with sudo.

Login

Once the above script is done running, you should be connected to the BITS-STUDENT Wi-Fi within a few seconds, at which point you will also need to log in through a captive portal.

This can be done via the CLI by running

su -c "/etc/bits/login.sh" -

the file for which will have been created by the earlier command.

This script will sleep for 14k seconds and exec itself again in the background after every successful login. But if you disconnect from BITS-STUDENT for a while, you may eventually need to re-run it manually.

About

Connect to the BITS Pilani Wi-Fi on Linux via the CLI.

Resources

Stars

Watchers

Forks

Languages