How to run wireshark on mininet?

hayfa picture hayfa · Jan 20, 2015 · Viewed 10.6k times · Source

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 !!

Answer

shr picture shr · Feb 2, 2015

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!