GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — GitHub - sidstuff/bits: Automate the BITS Pilani Wi-Fi connection and login on Linux.

BranchesTags
Open more actions menu

Latest commit

 

History

6 Commits
6 Commits

Folders and files

NameName
Last commit message
Last commit date
99-config.yaml
99-config.yaml
 
 
BITS-STUDENT.8021x
BITS-STUDENT.8021x
 
 
BITS-STUDENT.nmconnection
BITS-STUDENT.nmconnection
 
 
README.md
README.md
 
 
Wifi_certificate.pfx
Wifi_certificate.pfx
 
 
ca.pem
ca.pem
 
 
login
login
 
 
login-setup.sh
login-setup.sh
 
 
test
test
 
 
wifi-setup.sh
wifi-setup.sh
 
 
wpa_supplicant.conf
wpa_supplicant.conf
 
 

Repository files navigation

Automate the BITS Pilani Wi-Fi connection and login on Linux

Requirements

  • Bash
  • iproute2
  • either wpa_supplicant or iwd
  • (optional) iw
  • (optional) Netplan
  • (for auto-login) any one of NetworkManager, systemd-networkd, or ifupdown

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.

If another network is not available, open a saved copy of this repo and run bash /path/to/bits/wifi-setup.sh as root.

Note

If you have already setup Wi-Fi and only want to automate the login, replace wifi-setup.sh in the above commands with login-setup.sh.

Login

Once the above script is done running, and you disconnect from the other network, you should be connected to the BITS-STUDENT Wi-Fi within a few seconds.

The captive portal login should happen automatically if you have NetworkManager, systemd-networkd, or ifupdown running, but if it doesn't, you can run

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

the file for which will have been created by the earlier command. The connection will also be kept alive by periodically fetching the keepalive page in the background when needed.

You can view the latest logs by running

tac /etc/bits/log | less

About

Automate the BITS Pilani Wi-Fi connection and login on Linux.

Resources

Readme
Activity

Stars

3 stars

Watchers

0 watching

Forks

0 forks
Report repository

Contributors

Languages

You are visitor 01402503 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.