Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/guzhaoyuan/net.tsinghua
Command Line Interface for Tsinghua Network Login
https://github.com/guzhaoyuan/net.tsinghua
Last synced: 4 days ago
JSON representation
Command Line Interface for Tsinghua Network Login
- Host: GitHub
- URL: https://github.com/guzhaoyuan/net.tsinghua
- Owner: guzhaoyuan
- Created: 2016-04-20T11:34:52.000Z (over 8 years ago)
- Default Branch: master
- Last Pushed: 2019-04-27T05:06:45.000Z (over 5 years ago)
- Last Synced: 2024-08-01T20:51:27.737Z (3 months ago)
- Language: Shell
- Homepage:
- Size: 13.7 KB
- Stars: 22
- Watchers: 1
- Forks: 11
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
- awesome - guzhaoyuan/net.tsinghua - Command Line Interface for Tsinghua Network Login (Shell)
README
# net.tsinghua CLI
## What's this
This is a Command Line program writen in bash using Curl. You can use it to log in & out net.tsinghua.edu.cnFirst time you use it, it will require your username and password. Then it saves the information in **~/.TsinghuaNet/netTHUservice** and next time you are able to use short commands to control your status(login or logout).
## Install
In one line:``` shell
sh -c "$(wget https://raw.githubusercontent.com/SuXY15/net.tsinghua/master/install.sh -q -O -)"
```Or download and add excutable permission by youself:
``` shell
wget https://raw.githubusercontent.com/SuXY15/net.tsinghua/master/netTHU -O /usr/local/bin/netTHU
chmod +x /usr/local/bin/netTHU
```## Usage
``` shell
netTHU -o #log in
netTHU -d #log out
netTHU -h #help
netTHU -r #remove account info
```## uninstall
In one line:
``` shell
sh -c "$(wget https://raw.githubusercontent.com/SuXY15/net.tsinghua/master/uninstall.sh -q -O -)"
```Or remove data and script by yourself:
``` shell
rm -r ~/.TsinghuaNet/netTHUservice
rm /usr/local/bin/netTHU
```##TODO
- [x] fix small bugs, recognize error type
- [x] store password at other position
- [x] added function: check current data usage
- [x] write a install and uninstall script
- [ ] encrypt the information in netTHUservice for security