Install Wireshark in Ubuntu12.04

Source: Internet
Author: User
Wireshark installed through apt-get in Ubuntu12.04 does not seem to be able to be started, and a warning will be reported. it may be related to changing the software source. after wireshark is installed in the ubuntu Software Center, it can be opened normally. however, Therearenointerfacesonwhichacapturecanbedone may occur. I wonder whether it is caused by apt-get installation. how to solve this problem: http: // w

Wireshark installed with apt-get In Ubuntu 12.04 does not seem to be able to be started, and a warning is reported.

It may be related to changing the software source.

After wireshark is installed in the ubuntu Software Center, it can be opened normally.

There are no interfaces on which a capture can be done.

I wonder if it is caused by apt-get installation. How to solve this problem: http://www.linuxidc.com/Linux/2012-06/63580.htm

2. Create a Wireshark group. This step is also completed when Wireshark is installed.

$ Sudo-s

# Groupadd-g wireshark

# Usermod-a-G wireshark <User Name>

# Chgrp wireshark/usr/bin/dumpcap

3. grant permissions.

# Setcap cap_net_raw, cap_net_admin = eip/usr/bin/dumpcap complete.

You can use getcap/usr/bin/dumpcap for verification. The output should be:/usr/bin/dumpcap = cap_net_admin, cap_net_raw + eip.

These two steps are critical. You can use wireshark normally after setting the above two steps.

After chgrp wireshark/usr/bin/dumpcap chgrp again, it will be found that getcap/usr/bin/dumpcap will reset the previously set content. You need to reset it again.

Related Article

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.