Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to run wireshark on mininet?

I am trying to run wireshark on mininet using a ssh session but it does not work I have this error :

  error: XDG_RUNTIME_DIR not set in the environment.

and also this error :

  (wireshark:1945): Gtk-WARNING **: cannot open display:

I will appreciate your help thanks !!

like image 975
hayfa Avatar asked Oct 20 '22 18:10

hayfa


2 Answers

1) Make sure the ssh connection is started with -X or -Y option. Example: ssh -X usernme@ipaddress

2) Restart the ssh connection, that is just exit and log in again!

like image 154
shr Avatar answered Oct 22 '22 22:10

shr


For each host you want to observe (lets say h1): On mininet: xterm h1 On xterm of h1 try: wireshark-gtk instead of wireshark

like image 25
Dimitris Mendrinos Avatar answered Oct 22 '22 22:10

Dimitris Mendrinos