This python script provides a simple login procedure to login the CUHK ResNet portal. The login daemon can check the connection status and login the Resnet portal with your account automatically.
For one time login.
First, modify your username and password on login_config.py
Then, use resnet_login.py to login
python3 resnet_login.py[Prerequisite] You need to have Python installed, and added to PATH variable in Windows.
First, modify your username and password on login_config.py.
Then, use windows.bat to login.
windows.batFor keeping the network alive.
You can install a systemd daemon named resnet_login.service to your system. The daemon will check the login status for every 30 min by default. You can change the checking frequency on login_freq=30 on login_config.py
./install.shFor keeping the network alive.
Add windows.bat to the Task Scheduler. Adjust the setting such that windows.bat is ran within every 12 hours to ensure the network keep alive.
To uninstall the login bot, simply run the uninstall script.
./uninstall.shRemove the task in the Task Scheduler.
Please install the requests module with pip
sudo pip3 install requestsPlease modify the user account name to something in resnet_login.service on Line 7
[Service]
User=<Your_Username>