autoNetworkAuth
is used for automated network authentication in China university, under the environment of which clients have to login to connect to the Internet via web browser.
Now, autoNetworkAuth
implements the following functions in UESTC:
- Use
selenium
to automatically login to the school network. - Use
ping
to monitor the network status, and callStep 1
to get reconnected if got offline by the network server. - Create a linux's
systemd
service to work automatically.
One should add its own account information in the config.json
file.
To register the systemd
service, the following should be cared:
- This project should be placed at
/usr/local
and owned byroot
. - Make a softlink for
autoNetworkAuth.service
bysudo ln -s ./autoNetworkAuth.service /etc/systemd/system/autoNetworkAuth.service
. - Run
sudo systemctl daemon-reload
. - To start this service manually, use
sudo systemctl start autoNetworkAuth
. - To start this service automatically at every time the server boots, use
sudo systemctl enable autoNetworkAuth
.