Wireshark in Ubuntu cannot detect eth

Wireshark is a computer application that can be use to sniff packet in computer network. It can be used for network troubleshooting, analysis, software and communication protocol development. Wireshark released for Windows OS, Linux OS, Mac OS and others.

Yesterday, I’ve installed Wireshark in my computer with Ubuntu OS, and would like to get it running, but it doesn’t detect any network devices. I’ve tried it in Windows and it works. So, i browse using google whats the solution. After a while, I found a solution. The solution I have to run it as a superuser. So, I type the command :

sudo wireshark

And it works, my wireshark can detect the eth.
The next step, i change my desktop shortcut, so i can use it directly from desktop menu. These are the steps :
Create file :

touch /usr/share/applications/wireshark-sudo.desktop

and put in the following content using text editor. In this case i use nano

sudo nano /usr/share/applications/wireshark-sudo.desktop

and type the following content

[Desktop Entry]
Type=Application
Version=1.0
Name=Wireshark (as root)
GenericName=Network Analyzer
Comment=Network traffic analyzer
Icon=hi48-app-wireshark.png
TryExec=sudo
Exec=sudo -S /usr/bin/wireshark
Path=
Terminal=true
MimeType=
Categories=GNOME;Network;
X-KDE-SubstituteUID=true

Then save and close. Now, under menu wireshark, there is another menu wireshark(for root). Test it, i hope it works.


Tags:

Leave a Reply