Skip to content

zhujinliang/cas_login

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

12 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Overview

This script is for UCAS student to login the network in Chinese Academy of Sciences.

Notice

  • 若第一次使用,注意先在user_data中的username和password中修改自己的信息。
  • Python version: above 2.5 but lower than 3. If your Python version is above 3, it will report syntax error.
  • In order to display the CAS picture, you need keep the cas.png picture in the same directory with the script.
  • In some Linux distribution, the desktop notification will be forced to display 10 seconds. So, maybe the next notification is delayed.

How To Use

Synopsis

Run it like:

python cas_login.py [option]

You can only input one option. Options are as follows:

0: 登出
1: 连接城域
2: 连接国内
3: 连接国际

Example

When you want to connect to international, input this:

python cas_login.py 3

When you want to logout, input this:

python cas_login.py 0

Tips

You can use this command to create a symbol link:

sudo ln -s (the absolute path of your cas_login dir)/cas_login.py /bin/cas_login

Then, you can use cas_login as a Shell command to login UCAS net, like this:

cas_login 3

Update History

Ver1.2, 9 Sep 2013 * Normalize all the unicode string. * Normalize all the indentation. * Update the README file.

Ver1.1, 20 Jan 2013 * Add desktop notification when login or logout.

Ver1.0, 20 Dec 2012 * Login and logout the UCAS net automatically. * Three mode to login the net.

Note

Since the author's ability is limited, the software may exist many bugs that I didn't have found and solve them. Please write them in a file, and send to me if possible. I'll appreciate your work very much!

Contact

If you want to make contact with me, mail me at this: zhujinlianghust#gmail.com

-Jinliang Zhu, Dec 2012

About

For UCAS student to login network

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages