Installing Wireshark in ubuntu is a very popular protocol analysis software. Naturally, you can capture packets over the network. Sudo apt-get install wireshark www.2cto.com for security reasons, ordinary users cannot enable the NIC device for packet capture. wireshark does not recommend that you run it with the root permission through sudo, wireshark provides a non-root solution for ubuntu (Debian) users.
(For more information, see/usr/share/doc/wireshark-common/README. debian http://nariver.com/usr/share/doc/wireshark-common/README.Debian) procedure: sudo dpkg-reconfigure wireshark-common "shocould non-superusers be able to capturepackages?" Select Yes for www.2cto.com (no by default). The wireshark group will appear in the Group Policy. By default, no user belongs to this group. You only need to add a specific user to the group.
(You need to log out and log on again to make the settings take effect.) Then you can run wireshark to capture network packets in real time. After the wireshark group, add the USER sudo usermod-a-G wireshark $ USER.