2014-09-18 22:21:10 +08:00
# zjunet
Command Line Scripts for ZJU (VPN / WLAN / DNS)
2014-09-28 21:42:50 +08:00
## Features
2014-09-18 22:21:10 +08:00
2014-09-28 21:42:50 +08:00
- ZJU VPN (l2tp)
2014-09-18 22:55:22 +08:00
- ZJU WLAN
2014-09-19 23:36:35 +08:00
- 路由器支持( written in Bourne Shell)
2014-09-18 22:55:22 +08:00
- 多拨支持(多账户负载均衡)
2014-09-28 21:42:50 +08:00
- ZJUWLAN 与 ZJUVPN 带宽叠加( 1 WLAN + N VPN, 在 ZJUWLAN 下)
- DNS 自动测试设置(适用于 DNS 坏掉的情况)
2014-09-19 23:19:16 +08:00
2014-09-28 21:46:50 +08:00
## Requirements
### vpn
- xl2tpd
### wlan
- curl
- iconv
2014-09-29 20:02:45 +08:00
## Install
2014-09-30 18:11:45 +08:00
### From source
2014-09-29 20:02:45 +08:00
```bash
git clone https://github.com/QSCTech/zjunet.git
cd zjunet
sudo ./install.sh
```
2014-09-30 18:11:45 +08:00
## Openwrt
Install xl2tpd:
https://downloads.openwrt.org/snapshots/trunk/ar71xx/packages/packages/
2014-09-29 20:02:45 +08:00
## Dev
2014-09-29 18:44:10 +08:00
QSCer 可以直接向这个 repo push 而不用发 pull request。
有什么疑虑可以提 issue 问一下,
或者直接来办公室找我(zenozeng)。
master分支请尽可能保持稳定,
如果要做破坏性变更的话,
进 dev 分支,
或者拉开发分支。
2014-09-29 21:11:49 +08:00
### Build
2014-09-30 15:46:57 +08:00
#### Debian
2014-09-29 21:11:49 +08:00
```bash
sudo apt-get install build-essential autoconf automake autotools-dev dh-make debhelper devscripts fakeroot xutils lintian pbuilder
```
2014-09-30 15:46:57 +08:00
#### see also
- http://www.webupd8.org/2010/01/how-to-create-deb-package-ubuntu-debian.html
- http://tldp.org/HOWTO/html_single/Debian-Binary-Package-Building-HOWTO/
2014-09-29 21:11:49 +08:00
2014-09-19 23:19:16 +08:00
## Links
- [Array in unix Bourne Shell ](http://unix.stackexchange.com/questions/137566/array-in-unix-bourne-shell )
2014-09-20 18:13:40 +08:00
- [How do you tell if a string contains another string in Unix shell scripting? ](http://stackoverflow.com/questions/2829613/how-do-you-tell-if-a-string-contains-another-string-in-unix-shell-scripting )