25
14
My internet connection is provided by the university. It is protected to a username/password combination. This means when I start up my computer, I have to start a web browser and open an arbitrary website. I am then redirected to a page, which (among other things) contains two forms. In these I have to input username and password. I managed to do this with firefox (which can save the password) and also with links (which loads faster and from the command line).
Is there any way to automate the login process using a bash script? This would allow doing the login when booting, so that it is already there when I start the X server.
1You might be able to call the login script from the form's
ACTION
attribute withcurl
directly. – terdon – 2013-09-04T12:56:59.757Many Universities also offer a network that uses "Enterprise Authentication" (i.e. using a username/password for the network connection itself, instead of waiting until you try to access a page to ask for credentials). The ability to store such network credentials is built in the OS. It's also much more secure because it means that it's harder for others to snoop on your connection. If your University supports that, you should switch to it. – Moshe Katz – 2013-09-09T19:58:08.713
It would also help us if you can give an (anonymized) example of the URL you are redirected to when you log in. (Anonymized here means that you should remove your MAC Address and/or IP address from the URL if they are there, but leave everything else, including the name of the University.) – Moshe Katz – 2013-09-09T20:03:28.783