校园网下使用ubuntu最烦的一件事就是需要锐捷认证,用起来很不方便,不过总有解决的办法。
1.下载锐捷认证程序myxrgsu,以及它所依赖的相应的库文件libpcap.so.0.6.2和libstdc++.so.5。 (以下操作均root的身份完成。在命令前加上sudo表示以在一般用户状态下可以root的权限上安装,不然系统会提示权限不够,如果已经是以root进入系统的话就不用sudo。) 2.安装libpcap库文件: 把libstdc++.so.5和libpcap-0.6.2复制到/usr/lib目录就可以了。 命令: sudo cp PATH/libpcap.so.0.6.2 /usr/lib 注意其中PATH是你下载回来的文件所存放的路径。 3.开始认证:打开终端,输入以下命令sudo ifconfig eth0 xxx.xxx.xxx.xxx //后面的是你的IP(具体各人的IP),比如我的就是 sudo ifconfig eth0 192.168.74.8。然后运行myxrgsu,先cd到xrgsu所在的文件夹。比如我的是 cd /home/scubit (因为我把解压出来的bin文件夹里的myxrgsu文件复制到了桌面。) 然后sudo ./myxrgsu -d 。然后按提示输入用户名和密码,后面的可以选择默认。等待出现“Authenticate SUCCESSFULLY! Please input 'unauth' to LogOff:” 就认证成功了。下面是我的认证过程: scubit@ubuntu:~$ sudo ifconfig eth0 192.168.0.8(这个地方的ip用和windows下的一样) [sudo] password for scubit:(超级用户密码) scubit@ubuntu:~$ sudo ./myxrgsu -d XRGSupplicant 1.1.1 Ruijie Network CopyRight 2004-2005 Please input your user name:*******(锐捷帐号) Please input your password:(锐捷密码) You have 2 Nic: 0. eth0 Desc: (null) 1. wlan0 Desc: (null) Please select which NIC will be used(0-1,Default:0)0 Use default auth parameter,0-Use 1-UnUse(Default: 0):0 Searching server... Connecting server... Authenticating... Authenticate SUCCESSFULLY! eth0: no process found Internet Systems Consortium DHCP Client V3.1.3 Copyright 2004-2009 Internet Systems Consortium. All rights reserved. For info, please visit https://www.isc.org/software/dhcp/ Listening on LPF/eth0/00:26:9e:ee:bb:cb Sending on LPF/eth0/00:26:9e:ee:bb:cb Sending on Socket/fallback DHCPDISCOVER on eth0 to 255.255.255.255 port 67 interval 8 DHCPOFFER of 222.18.0.82 from 222.18.1.254 DHCPREQUEST of 222.18.0.82 on eth0 to 255.255.255.255 port 67 DHCPACK of 222.18.0.82 from 222.18.1.254 bound to 222.18.0.82 -- renewal in 2876 seconds. Searching server... Connecting server... Authenticating... Authenticate SUCCESSFULLY! Please input 'unauth' to LogOff: Please input 'unauth' to LogOff: Please input 'unauth' to LogOff: 此时已经可以上网了。大功告成!另外,成功后不要关掉终端。
转载于:https://blog.51cto.com/shuiqing/323328