Eucd

Eucd 是一个linux下的eyou网关计费登录工具.

Contents
安装
配置
使用
相关

top安装

下载
./configure
make
make install
arch的PKGBUILD,编译好的软件包
pkgname=eucd
pkgver=0.0.3
pkgrel=1
pkgdesc=""
url=""
license=GPL
depends=(glibc)
makedepends=()
backup=('etc/eucd.conf')
source=(http://arithboy.org/files/$pkgname-$pkgver.tar.bz2)
md5sums=(6598c130e280433b37c2733d25c4df65)
build() {
                cd $startdir/src/$pkgname-$pkgver
                ./configure --prefix=/usr --sysconfdir=/etc
                make || return 1
                mkdir -p $startdir/pkg/etc/
                cp doc/eucd.conf $startdir/pkg/etc/
                make DESTDIR=$startdir/pkg install
        }

top配置

编辑eucd.conf 文件,位于/usr/local/etc/eucd.conf或者/etc/eucd.conf,
server=202.112.154.202:44449
domain=localhost
id=05121716
pass=yourpassword
check_time=10
mac=00169041A735
tcp_timeout=300
udp_timeout=10
retry=10
server
为服务器地址,格式如上,或者gw.njtu.edu.cn:44449
domain
为域
id
为上网账号,一般为学号
pass
为上网账号的密码,明文
check_time
单位为分钟,检查流量超支间隔的时间
mac
网卡地址
tcp_timeout
发送tcp包超时时间
udp_timeout
发送udp包超时时间,查询余额和保持连接使用该方式
retry
保持连接时,重试次数

建议只修改id,pass,mac,其它使用默认.

top使用

用法: eucd 选项
选项:
        -i,--intranet   登录城域
        -c,--civial     登录国内
        -a,--aboard     登录国际
        -o,--offline    离线
        -q,--query      查询上线时间和流量
        -r,--rereadcfg  重读配置文件
        -x,--exit       退出
        -v,--version    显示版本
        -h,-?,--help    显示帮助

top相关

http://www.elias.cn有elias用 python写的登录客户端.