Skip to content

UBUNTU 下锐捷连网方法

2009 九月 10
by 荒野无灯

不想用锐捷官方那个老得不能再老的客户端。发现下面这个软件很好用。
首先下载 MentoHUST


更新网址:http://lewuya.ys168.com/(不支持FireFox)、http://pcyard.qupan.com/?folder=1117507(支持FireFox),需要其他版本数据包的可到该网址下载,程序新版本也会在该网址发布。

#设置数据包(可选,适用于有锐捷客户端版本要求的同学)
假设数据包文件名为“版本.mpf”

1
2
sudo mkdir /etc/mentohust
sudo cp 版本.mpf /etc/mentohust

修改mentohust.conf使Package=/etc/mentohust/版本.mpf

#将mentohust.conf修改好后放在/etc/mentohust(具体修改方法见mentohust.conf)

1
sudo cp mentohust.conf /etc/mentohust

#设置可执行权限

1
sudo chmod +x MentoHUST

#将程序放到/bin(可选,使得运行MentoHUST不需要带路径)

1
sudo cp MentoHUST /bin

#设置超级用户权限(可选,使普通用户正常执行MentoHUST)

1
sudo chmod +s /bin/MentoHUST

#开机自动认证(方法有多种)
#使用/etc/rc.local脚本实现
将以下代码添加至/etc/rc.local文件的末尾:

1
MentoHUST &

#在桌面环境程序中添加自动运行项来实现
KDE4桌面可在“系统设置”->“高级”->”自动启动”中添加程序。填入/bin/MentoHUST即可
Gnome桌面可以在“系统”->“会话“->“自动启动”中添加程序。

#后台运行

在命令行结尾加&后运行程序,可关闭终端,程序在后台继续运行。

若想将输出结果重定向到文件:

MentoHUST >file 把stdout重定向到file文件中

MentoHUST 1>file1 把stdout重定向到file1

#依赖项
#32位环境下运行依赖于
libpcap.so.0.9#使用libpcap动态库

如果运行时提示找不到库 libpcap.so.0.9 ,只要做个链接就行了。

1
ln -s /usr/lib/libpcap.so.1.0.0 /usr/lib/libpcap.so.0.9

喜欢这篇文章吗?

请订阅本站 RSS feed填写您的邮件地址,订阅我们的精彩内容:,欢迎点击这里捐赠以支持荒野无灯转播到腾讯微博 转播到腾讯微博

作者:荒野无灯
出处:Hacklog【Hacklog】

声明: 本站遵循 署名-非商业性使用-相同方式共享 3.0 共享协议. 转载请注明转自Hacklog【荒野无灯weblog】

本文链接: http://ihacklog.com/?p=2462

Leave a Reply

Allowed Tags - You may use these HTML tags and attributes in your comment.

<a href="" title=""> <abbr title=""> <acronym title=""> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <q cite=""> <strong>

 :wink:  :-|  :-x  :twisted:  :)  8-O  :(  :roll:  :-P  :oops:  :-o  :mrgreen:  :lol:  :idea:  :-D  :evil:  :cry:  8)  :arrow:  :-?  :?:  :!:

Note: You may use basic HTML in your comments. Your email address will not be published.

Subscribe to this comment feed via RSS