This script will automate logging in to the IITG network with a single click.

- Update the login credentials in login.sh file. (interactive or hardcoded)
- Run the script file by
./login.sh.
- Update the above script file path in oneClick.bat file.
- Save it and run.
- Further, if required, an
.EXEfile can be created for the.batfile usingiexpress.exeand disable prompts as per the requirements.
- Create desktop shortcut launcher from existing .desktop files from
$ /usr/share/applications. Allow Launchingby right click on the above created desktop shortcut.- Then edit the .desktop file as per the requirement and script file path for example:
#!/bin/bash
[Desktop Entry]
Version=1.0
Type=Application
Terminal=true
Exec=bash -c "/home/u/Documents/LAN/log.sh"
Name=IITGlogin
Comment=do this and that
- One can choose to create a startup application globally for all users by saving the .desktop file in
/etc/xdg/autostart. Check for the updated startup application by using the shortcutAlt+F2and run thegnome-session-propertiescommand. - Alternatively, can use
lynx https://agnigarh.iitg.ac.in:1442/login?in shell.
- Refactoring
underDevelopment.shthat has logout featuretrap ctrl_c SIGINT. - To use curl in silent mode, i.e
-s/--silent, doesn't show a progress meter or error messages. Makes Curl mute. If this option is used twice, the second will again disable mute. - Link parsed to reload is trimmed for 600 sec (default) reload option, which might get modified in future.
- Creating def. inf. recal/reload loop => supporting remote invocation {Error handling | Remote connection}
- https://curl.se/docs/sslcerts.html {
-k/--insecure} SSL/TLS Certificate Verification