Page 1 of 2 12 LastLast
Results 1 to 10 of 16

Thread: No protocol specified Error: Can't open display:

  1. #1
    Join Date
    Jul 2008
    Location
    Greece
    Posts
    72

    Exclamation No protocol specified Error: Can't open display:

    Hi my system is updated on a daily basis.

    When I start X and work everything is okay, but after some time I cannot execute X programs through terminal!
    I get the following error.

    Code:
    $ xclock
    No protocol specified
    No protocol specified
    Error: Can't open display: :0
    DISPLAY=:0 or localhost:0 doesn't work
    Setting XAUTHORITY doesn't work, too.

    I also cannot execute from other X opened programs like okular or kate or kwrite though Firefox or Dolphin

    It's like loosing authentication ...

    Only when I log off everything is fine again!

  2. #2
    Join Date
    Sep 2008
    Posts
    2,997

    Default Re: No protocol specified Error: Can't open display:

    are you trying to run GUI apps as root in a terminal with sudo?
    that won't work (it's a security feature) you need to use kdesu or gnomesu or xdg-su -c
    in the past you couldn't run GUI apps as root at all but now I think if you login as root
    Code:
    su -
    you might be able to run GUI apps as root (I haven't tested this as I avoid running GUI's under root mostly because of the mess they create in /root and the possibility of borking my sistem)

    or are you doing a remote login
    afaik remote GUI logins are disabled by default (another security feature)

  3. #3
    Join Date
    Sep 2008
    Posts
    2,997

    Default Re: No protocol specified Error: Can't open display:

    this might happen if your are trying to execute applications as a 2nd non-root user while being logged in with different credentials
    if you have a two or more user setup and need to run applications as a user who didn't start the X session you should add the users who you wish to allow extra privileges to the video group

  4. #4
    Join Date
    Jul 2008
    Location
    Greece
    Posts
    72

    Default Re: No protocol specified Error: Can't open display:

    I run it from terminal with the user I logged in, not root nor from another user nor from ssh

    Edit: I've edited /etc/X11/xdm/xdm-config and disabled authorization but the problem remains

  5. #5
    Join Date
    Sep 2008
    Posts
    2,997

    Default Re: No protocol specified Error: Can't open display:

    I've never had this issue but I'd still recommend adding that user to the video group

  6. #6
    Join Date
    Jul 2008
    Location
    Greece
    Posts
    72

    Default Re: No protocol specified Error: Can't open display:

    Quote Originally Posted by I_A View Post
    I've never had this issue but I'd still recommend adding that user to the video group
    I'll post the results in a minute ...
    I reboot the system and wait to happen again ...

  7. #7
    Join Date
    Jul 2008
    Location
    Greece
    Posts
    72

    Default Re: No protocol specified Error: Can't open display:

    Quote Originally Posted by filippos2 View Post
    I'll post the results in a minute ...
    I reboot the system and wait to happen again ...
    The problem remains the same.

  8. #8
    Join Date
    Jul 2008
    Location
    Greece
    Posts
    72

    Default Re: No protocol specified Error: Can't open display:

    The error from Dolphin is KDEInit could not launch '/usr/bin/kwrite'

  9. #9
    Join Date
    Sep 2008
    Posts
    2,997

    Default Re: No protocol specified Error: Can't open display:

    these are general debugging steps regarding TW

    do an update in TW
    Code:
    sudo zypper dup
    what is your repo list
    Code:
    zypper lr -d
    what kind of graphic card and driver do you have
    Code:
    sudo lspci | grep VGA

  10. #10
    Join Date
    Jul 2008
    Location
    Greece
    Posts
    72

    Default Re: No protocol specified Error: Can't open display:

    Quote Originally Posted by I_A View Post
    these are general debugging steps regarding TW

    do an update in TW
    Code:
    sudo zypper dup
    what is your repo list
    Code:
    zypper lr -d
    what kind of graphic card and driver do you have
    Code:
    sudo lspci | grep VGA
    Code:
    Repository priorities in effect:                                                                                 (See 'zypper lr -P' for details)
          98 (raised priority)  :  1 repository  
          99 (default priority) :  5 repositories
    
    # | Alias                             | Name                       | Enabled | GPG Check | Refresh | Priority | Type   | URI                                                                                              | Service
    --+-----------------------------------+----------------------------+---------+-----------+---------+----------+--------+--------------------------------------------------------------------------------------------------+--------
    1 | Tryton                            | Tryton                     | No      | ----      | ----    |   99     | rpm-md | http://download.opensuse.org/repositories/Application:/ERP:/Tryton:/Factory/openSUSE_Tumbleweed/ |        
    2 | VideoLan                          | VideoLan                   | Yes     | (r ) Yes  | Yes     |   99     | rpm-md | http://download.videolan.org/pub/vlc/SuSE/Tumbleweed                                             |        
    3 | download.opensuse.org-non-oss     | Main Repository (NON-OSS)  | Yes     | (r ) Yes  | Yes     |   99     | yast2  | http://download.opensuse.org/tumbleweed/repo/non-oss/                                            |        
    4 | download.opensuse.org-oss         | Main Repository (OSS)      | Yes     | (r ) Yes  | Yes     |   99     | yast2  | http://download.opensuse.org/tumbleweed/repo/oss/                                                |        
    5 | download.opensuse.org-tumbleweed  | Main Update Repository     | Yes     | (r ) Yes  | Yes     |   99     | rpm-md | http://download.opensuse.org/update/tumbleweed/                                                  |        
    6 | http-ftp.uni-erlangen.de-2037714e | Packman Repository         | Yes     | (r ) Yes  | Yes     |   98     | rpm-md | http://ftp.uni-erlangen.de/pub/mirrors/packman/suse/openSUSE_Tumbleweed                          |        
    7 | openSUSE-20170503-0               | openSUSE-20170503-0        | No      | ----      | ----    |   99     | yast2  | hd:///?device=/dev/disk/by-id/scsi-1PHISON_USB3-part2                                            |        
    8 | repo-debug                        | openSUSE-Tumbleweed-Debug  | No      | ----      | ----    |   99     | yast2  | http://download.opensuse.org/debug/tumbleweed/repo/oss/                                          |        
    9 | repo-source                       | openSUSE-Tumbleweed-Source | Yes     | (r ) Yes  | Yes     |   99     | yast2  | http://download.opensuse.org/source/tumbleweed/repo/oss/
    Code:
    lspci |grep VGA
    00:02.0 VGA compatible controller: Intel Corporation HD Graphics 630 (rev 04)

Page 1 of 2 12 LastLast

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
  •