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
  •  


Lenovo ThinkPad X1 Carbon Gen 9 Intel Laptop, 14.0

Lenovo ThinkPad X1 Carbon Gen 9 Intel Laptop, 14.0" IPS Low Blue Light, vPro®

$1099.99



Lenovo ThinkPad T14s Gen 2 Intel Laptop, 14.0

Lenovo ThinkPad T14s Gen 2 Intel Laptop, 14.0" FHD IPS Touch LED Backlight

$1533.95



Lenovo ThinkPad T14s Gen 2 Intel Laptop, 14.0

Lenovo ThinkPad T14s Gen 2 Intel Laptop, 14.0" FHD IPS Touch LED Backlight

$858.99



Lenovo IdeaPad 3 14

Lenovo IdeaPad 3 14" FHD Laptop Intel Core i7-1165G7 8GB RAM 512GB SSD

$439.99



Lenovo IdeaPad 3 14

Lenovo IdeaPad 3 14" FHD Laptop Intel Core i5-1135G7 8GB RAM 512GB SSD

$369.99



Lenovo - Ideapad 3i 15.6

Lenovo - Ideapad 3i 15.6" HD Touch Laptop - Core i3-1115G4 - 8GB Memory - 256...

$349.99



Lenovo ThinkBook 15 G3 ACL 15.6

Lenovo ThinkBook 15 G3 ACL 15.6" Notebook AMD Ryzen 7-5700U 16GB RAM 512GB SSD

$519.99



LENOVO CHROMEBOOK N42 WEBCAM HDMI TOUCHSCREEN 14

LENOVO CHROMEBOOK N42 WEBCAM HDMI TOUCHSCREEN 14" 4GB RAM SSD Chrome OS WiFi SD

$49.95



Lenovo ThinkBook 15, i7, 16GB RAM, 512GB SSD, No OS picture

Lenovo ThinkBook 15, i7, 16GB RAM, 512GB SSD, No OS

$290.00



Lenovo T460 - Core i5 @ 2.4GHz - 8GB RAM - 256GB SSD - Webcam - Windows 10 Pro picture

Lenovo T460 - Core i5 @ 2.4GHz - 8GB RAM - 256GB SSD - Webcam - Windows 10 Pro

$160.00