现在就来介绍一下ruijieclient的设置方法:
首先,先去ruijieclient官方去下载一个客户端
地址:http://code.google.com/p/ruijieclient/downloads/list
新人的话建议下载ruijieclient_0.8.1svn129local-0_i386.deb deb安装包,这个安装起来没难度
安装: dpkg -i file.deb
下载安装后还要设置帐号密码IP网关等信息:
1.先创建配置文件:sudo ruijieclient -g
2.修改配置文件:sudo gedit /etc/ruijie.conf
这时候会打开一个配置文件,再里面有很多参数,而这些参数并不是所有的都要修改,只需要修改一部分就可以了:
查看这里
<?xml version="1.0" encoding="UTF-8"?>
<ruijie.conf version="0.8.1svn129">
<!--This is a sample configuration file of RuijieClient, change it appropriately according to your settings.-->
<account>
<Name>username</Name> #这里填写的是你的用户名
<Password>password</Password> #这里是密码
</account>
<settings>
<!--Network Adapter Name-->
<NIC>eth0</NIC> #这里是网卡,一般你只有一块网卡的话就默认
<!--0: Standard, 1: Private-->
<AuthenticationMode>1</AuthenticationMode> #这个默认不用改
<EchoInterval>40</EchoInterval> #保活延迟选项,建议设置在40~50之间
<!--IntelligentReconnect: 0: Disable IntelligentReconnect, 1: Enable IntelligentReconnect -->
<IntelligentReconnect>1</IntelligentReconnect>
#保活与否,要不断线就选1
<!--AutoConnect: 0: Disable AutoConnect, 1: Enable AutoConnect (only available in gruijieclient) -->
<AutoConnect>0</AutoConnect> #自动重连只有GUI界面的才能选1,不知道的话还是选0
<!--Fake Version for cheating server-->
<FakeVersion>3.33</FakeVersion> #伪装成任意版本
<!--Fake IP for cheating server-->
<FakeAddress></FakeAddress>
<!--DHCP mode 0: Disable, 1: Enable DHCP before authentication, 2: Enable DHCP after authentication 3: DHCP after DHCP authentication andre-authentication(You should use this if your net env is DHCP)-->
<DHCPmode>0</DHCPmode> #DHCP服务,要先知道你们的学校能不能支持,0是关,1是开,2是认证后获取DHCP
<!--Add if you don't want ruijieclient to ping the default gateway-->
<PingHost>122.18.148.254</PingHost> #默认网关。
</ruijie.conf>
---------------------------------------------------------------------
修改后保存关闭。
这样修改下就行了,然后可以在终端执行sudo ruijieclient命令认证上网了! (部分机器可能需要重启再执行才能上网)
配置IP地址:
sudo gedit(vi也行) /etc/network/interfaces
先清空配置文件,然后输入:
auto eth0 #这行照抄
iface eth0 inet static #这行也照抄
address xx.xx.xxx.xxx #你的IP
netmask 255.255.255.0 #子网掩码
gateway xxx.xx.xxx.xxx #默认网管
4.配置下你的DNS服务器
sudo gedit /etc/resolv.conf
内容:
# Generated by NetworkManager
nameserver xx.xx.xxx.x #你们学校的DNS服务器地址
然后就可以上网了。
在Ubuntu 10.10 Linux 下安装锐捷客户端方法
1.首先在google code中找到ruijieclient项目
其下载地址如下:
http://code.google.com/p/ruijieclient/downloads/list
2.选择你要的软件包deb或者rpm和版本
Ubuntu用户就可以直接下载deb包,Fedora用户选择rpm包
下载之后可以之间点击安装
安装后运行命令:sudo ruijieclient
出现以下提示的话:
ruijieclient: error while loading shared libraries: libpcap.so: cannot open shared object file: No such file or directory
那么你可以到下面网站下一个libpcap0.8_1.1.1-2_i386.deb包
地址: http://packages.Ubuntu.com/zh-cn/maverick/i386/libpcap0.8/download
最好是点亚洲源下载
安装此包。
3.安装完成之后
命令:sudo gedit /etc/ruijie.con
对配置文件进行修改,有三个地方需要修改,www.linuxidc.com红字已经指出
<?xml version="1.0" ?><ruijie.conf version="0.1.1"> #配置版本
<!--This is a sample configuration file of RuijieClient, change it appropriately according to your settings.-->
<account> <Name>输入学号</Name> #用户名 <Password>输入密码</Password> #密码 </account> <settings> <!--0: Standard, 1: Private--> <AuthenticationMode>1</AuthenticationMode> #服务器发现包类型 0 标准发现包 1 锐捷私有发现包 <NIC>eth0</NIC> #网卡设备界面名 <EchoInterval>4</EchoInterval> #保活延时 单位秒 <!--IntelligentReconnect: 0: Disable IntelligentReconnect, 1: Enable IntelligentReconnect --> <IntelligentReconnect>1</IntelligentReconnect> #智能重连 <!--AutoConnect: 0: Disable AutoConnect, 1: Enable AutoConnect (only available in gruijieclient) --> <AutoConnect>0</AutoConnect> #自动连接 <!--Fake Version for cheating server--> <FakeVersion>3.99</FakeVersion> #版本伪装 <!--Fake IP for cheating server--> <FakeAddress></FakeAddress> #IP地址伪装 <!--DHCP mode 0: Disable, 1: Enable DHCP before authentication, 2: Enable DHCP after authentication 3: DHCP after DHCP authentication andre-authentication(You should use this if your net env is DHCP)--> <DHCPmode>1</DHCPmode> #DHCP认证模式 0 关闭 1 认证前DHCP 2 认证后DHCP <!--Add if you don't want ruijieclient to ping the default gateway--> <PingHost>4.2.2.2</PingHost> #自动重连使用的测试主机地址 </settings></ruijie.conf>4.使用锐捷终端命令:sudo ruijieclient
本篇文章来源于 Linux公社网站(www.linuxidc.com) 原文链接:http://www.linuxidc.com/Linux/2010-11/29597.htm