Results 1 to 3 of 3

Thread: cannot do sudo wireshark - Gtk-WARNING **: cannot open display:

  1. #1

    cannot do sudo wireshark - Gtk-WARNING **: cannot open display:

    When I launch wireshark(from k-menu..run, or from the command line) it loads but doesn't list interfaces unless I do sudo wireshark or I suppose if I do su then wireshark. That's fine.
    But sudo wireshark or su<ENTER>wireshark<ENTER> isn't working.

    It worked yesterday but now when I try, I get this error






    knoppix@Microknoppix:~$ su root
    root@Microknoppix:/home/knoppix# wireshark
    No protocol specified

    (wireshark:4986): Gtk-WARNING **: cannot open display: :0
    root@Microknoppix:/home/knoppix# su knoppix
    knoppix@Microknoppix:~$ sudo wireshark
    No protocol specified

    (wireshark:503: Gtk-WARNING **: cannot open display: :0
    knoppix@Microknoppix:~$

  2. #2
    Moderator Moderator
    Join Date
    Nov 2010
    Location
    Germany/ Dietzenbach
    Posts
    1,124
    Do not run wireshark as user "root"!
    Read some documentations about wireshark. Your problem isn't a Knoppix problem.

  3. #3
    Thanks. I got it to work since some days back. For the record it was most likely this solution that I used

    http://ask.wireshark.org/questions/7...erfaces-listed
    $ sudo apt-get install wireshark
    $ sudo dpkg-reconfigure wireshark-common
    $ sudo usermod -a -G wireshark $USER
    $ sudo reboot

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
USED Micron 8GB 1Rx8 Memory PC4-2666V-SA2-11 MTABATF1G64HZ-2G6E1
$25.0
USED Micron 8GB 1Rx8 Memory PC4-2666V-SA2-11 MTABATF1G64HZ-2G6E1 pictureSanDisk Cruzer Glide 16GB USB 3.0 Flash Drive Thumb Stick Memory SEALED NEW
$6.99
SanDisk Cruzer Glide 16GB USB 3.0 Flash Drive Thumb Stick Memory SEALED NEW pictureVintage Dell Latitude CPi-A 366XT 256 Mb memory 13" display office 2003
$80.0
Vintage Dell Latitude CPi-A 366XT 256 Mb memory 13Samsung 4GB 1Rx8 PC3L-12800S-11-13-B4 DDR3-1600 MHz M471B5173DB0-YKO Memory RAM
$10.5
Samsung 4GB 1Rx8 PC3L-12800S-11-13-B4 DDR3-1600 MHz M471B5173DB0-YKO Memory RAM picturej5 Create USB Type-C Multi Adapter HDMI/ ETHERNET/ USB3.1/ PD3.0/ Memory Card
$55.0
j5 Create USB Type-C Multi Adapter HDMI/ ETHERNET/ USB3.1/ PD3.0/ Memory Card picture