Getting An Auto-Login Window on Public WiFi in Linux

I often end up connecting to public wifi networks that have a “click to accept” in order to get real network connectivity.  It’s fine on my Android and iOS devices – I’m automagically presented with a login webpage.  But I don’t get that with my linux box.

UNTIL NOW.

This script works with network-manager and wicd to emulate that same behavior.  It’s fairly straightforward – it’s actually a modification of the script I use to get my external IP and interface for conky.  It should also work just fine on OSX, as it’s a bash script.

Note that I use midori for the web browser – it’s light, and has just enough functionality to get past all the different variations of “click to accept” screens that I’ve seen to date.

NOTE FOR WICD USERS:  Run it as a startup script – wicd starts as a service before X starts, and you need to call a graphical browser for many of the login screens.

The script should be embedded below if you’re reading this on the site, or you can find it at this gist here: https://gist.github.com/uriel1998/6942365

Popular posts:

  • If there's one Nazi (or a racist) at the table...
  • Word Porn Quotes
  • SOLVED: Command line BPM (beats per minute) Analysis in Linux
  • Odds and Ends: Optimizing SSHFS, moving files into subdirectories, and getting placeholder images
  • Everything Is Awful and I'm Not Okay, in multiple formats.
  • Courting a Polyamorous Person: Clearing Out Some Misconceptions
  • Bash string padding with SED