Results 1 to 3 of 3

Thread: Gtk-WARNING **: cannot open display: 0:0

  1. #1
    Senior Member Shatter's Avatar
    Join Date
    Jan 2010
    Posts
    192

    Default Gtk-WARNING **: cannot open display: 0:0

    If you setup Backtrack 4 in a way that you use a normal non-root user for everyday work you'll notice that most tools require you to run them as root. This is no problem, as you can always fire up a terminal, "su root" and fire away or simply use gksudo for graphical apps. I noticed that whenever wireshark is started via terminal while logged in as my normal user, it would start up properly, but not show any networking interfaces. So I did a "su root" in terminal and fired up wireshark again as root only to be greeted by a warning like this:

    Gtk-WARNING **: cannot open display: 0:0
    I was able to fix this by issuing the following command in a terminal as my normal user:

    xhost +local:
    I have the card in me head, but you have the memory problems?

  2. #2
    Member
    Join Date
    Jan 2010
    Posts
    140

    Default Re: Gtk-WARNING **: cannot open display: 0:0

    You get this when logging into your root account. Try this instead and then run your application.
    Code:
    # su -

  3. #3

    Default Re: Gtk-WARNING **: cannot open display: 0:0

    hi,

    1st. start your console application
    2nd. run
    Code:
    xhost +
    as normal user
    3.
    Code:
    su -
    4.
    Code:
    export DISPLAY=:0.0
    or just execute your app through sudo

    /brtw2003

Similar Threads

  1. apt-get authenticated warning ?
    By capron in forum Beginners Forum
    Replies: 3
    Last Post: 06-21-2010, 10:36 PM

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •