Any hint about using WireShark under Linux?

This forum is dedicated to feedback, discussions about ongoing or future developments, ideas and suggestions regarding the ChibiOS projects are welcome. This forum is NOT for support.
User avatar
Giovanni
Site Admin
Posts: 14444
Joined: Wed May 27, 2009 8:48 am
Location: Salerno, Italy
Has thanked: 1074 times
Been thanked: 921 times
Contact:

Any hint about using WireShark under Linux?

Postby Giovanni » Mon Aug 21, 2017 5:02 pm

I am installing it on Mint using the SW manager, I am getting permission errors when trying to select usbmon.

Can anybody help?

Giovanni

utzig
Posts: 359
Joined: Sat Jan 07, 2012 6:22 pm
Location: Brazil
Has thanked: 1 time
Been thanked: 20 times
Contact:

Re: Any hint about using WireShark under Linux?

Postby utzig » Mon Aug 21, 2017 5:55 pm

Hi, I use Arch Linux and there were some permission errors on files/dirs to get wireshark running for a non-priviledged user:

/sys/kernel/debug was not accessible, fix:

Code: Select all

$ sudo chmod 755 /sys/kernel/debug


/usr/bin/dumpcap which used by wireshark was also not able to run as non-root, fix:

Code: Select all

$ sudo chmod 755 /usr/bin/dumcap


Also you have to be sure to load usbmon:

Code: Select all

$ sudo modprobe usbmon


That's what got everything working for me. If none of those fix the problem, try running as root (sudo wireshark) to be sure it works.

User avatar
DeusExMachina
Posts: 223
Joined: Tue Apr 03, 2012 5:08 am
Location: South Korea
Has thanked: 3 times
Been thanked: 3 times

Re: Any hint about using WireShark under Linux?

Postby DeusExMachina » Tue Aug 22, 2017 8:31 am

also you may try running WireShark under root

Code: Select all

sudo wireshark
ugly, but for the casual usage it is fine

User avatar
Giovanni
Site Admin
Posts: 14444
Joined: Wed May 27, 2009 8:48 am
Location: Salerno, Italy
Has thanked: 1074 times
Been thanked: 921 times
Contact:

Re: Any hint about using WireShark under Linux?

Postby Giovanni » Tue Aug 22, 2017 8:36 am

Thanks both,

I had to assign the group wireshark to my user and change permissions on the USB pipes under usbmon but now it is working without having to work as root.

It is good at decoding protocols but apparently it is not able to give details about the setup phase. I need to find a cheap USB analyzer for that.

Giovanni


Return to “Development and Feedback”

Who is online

Users browsing this forum: No registered users and 18 guests