Kubuntu 14.10 MentoHUST configure libpcap ruijie campus network logon Summary

Source: Internet
Author: User

Kubuntu 14.10 MentoHUST configure libpcap ruijie campus network logon Summary

KUbuntu 14.10 mentohust configure libpcap ruijie campus network logon Summary

First, you must note that mentohust and ruijie both depend on the libpcap function library.

Before configuring libpcap, you must install GCC, GNU M4, flex, and bison. Otherwise, an error will be reported.

(The following are all executed as root)

1. Install GCC

GCC is installed in Ubuntu by default, but it needs to be installed according to references (1 ).

Sudo apt-get install build-essential

2. install GNU M4

Website: ftp.gnu.org/gnu/m4/

Download the latest version
Wget http://ftp.gnu.org/gnu/m4/m4-latest.tar.gz
Tar-zxvf m4-latest.tar.gz
Cd m4-1.4.17
./Configure
Make
Make install

3. install flex (if there is no software source, go to the website and decompress, configure, make, and make install, the same as installing GNU M4)

Wget http://cznic.dl.sourceforge.net/project/flex/flex-2.5.39.tar.gz
Tar-zvxf flex-2.5.39.tar.gz
Cd flex-2.5.39
./Configure
Make
Make install

Or directly

Sudo apt-get install flex

4. Install bison

Wget ftp://ftp.gnu.org/gnu/bison/bison-3.0.tar.gz
Tar-zvxf bison/bison-3.0.tar.gz
Cd bison-3.0.
./Configure
Make
Make install

Or directly

Sudo apt-get install bison

5. Install libpcap

Web http://www.tcpdump.org/

Download the latest version
Wget http://www.tcpdump.org/release/libpcap-1.4.0.tar.gz
Tar-zxvf libpcap-1.4.0.tar.gz
Cd libpcap-1.4.0
./Configure
Make
Make install

6. This step is not enough. We can see that the library libpcap. so.1 we need is not stored in the default search directory of mentohust.

View

Whereis libpcap. so.1

Will find


Libpcap. so:/usr/local/lib/libpcap. so/usr/local/lib/libpcap. so.1

Yes, but the program searches for/usr/lib/by default.

There are many solutions and one is listed. This method can solve a variety of similar problems once and for all.

Open the file ld. so. conf In The/etc directory and add two lines. I directly edited it using vi (the initial file is empty, just one line of code)

/Usr/local/lib
/Usr/lib

At this point, we have achieved success. Run mentohust as an administrator and select the NIC and authentication form based on your actual situation.

I found that the first access to the IP address was unsuccessful. After a while, you will find that the IP address has been connected ~

Good luck ~

Use MentoHUST in Ubuntu to authenticate the network of ruijie Campus Network

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.