Internet-Login/Logout for Linux with wget for dormitory network of the Johannes-Gutenberg-University Mainz and Studierendenwerk Mainz.
- login_config.cfg - configuration file
- login_wohnheim_uni_mainz_de.sh - Login and Logout script!
- networkmonitoring.sh - checked if the device is logged in. If not, it will be logged in with the login script.
Use:
git clone https://github.com/Tob1as/internetloginwithwget.git internetlogin && cd ./internetlogin/ && chmod +x *.sh && chmod 600 login_config.cfg
- Edit
login_config.cfg
- File and enter your credentials (username and password). - Login
- manually:
./login_wohnheim_uni_mainz_de.sh login
- automatically, when not logged in:
./networkmonitoring.sh
(for crontab:@reboot /path/to/folder/internetlogin/networkmonitoring.sh
)
- manually:
Note:
- This script is successful tested with Debian 9 Skretch.
- if source not found then write your credentials directly in the login_wohnheim_uni_mainz_de.sh.
if bash not found then write sh instead of bash in head of *.sh files.- if /bin/bash^M: bad interpreter
sed -i -e 's/\r$//' *.*
- other Mirror: GitLab.RLP.net
- on Windows install Cygwin to use or use Powershell-Version for Windows: Click