Error Cannot Open Display 0.0
here for a quick overview of the site Help Center Detailed answers to any questions you might have Meta Discuss the workings and policies of this site About Us Learn more about Stack Overflow the company Business Learn more about hiring developers or posting ads with us Unix & Linux Questions Tags Users Badges Unanswered Ask Question _ Unix & Linux Stack Exchange is a question and answer site for users of Linux, FreeBSD and other Un*x-like operating systems. Join them; it only takes a minute: Sign up Here's how it works: Anybody can ask a question Anybody can answer The best answers are voted up and rise to the top X client forwarded over SSH “cannot open display: localhost:11.0” up vote 13 down vote favorite 2 I have enabled X forwarding on remote machine where SSH server is running: # grep -i forward /etc/ssh/sshd_config X11Forwarding yes # On local machine, I have started SSH client with -X flag which instructs the SSH server, running on remote machine, to set up a X-server proxy. In addition, it creates the $DISPLAY variable which points to this proxy and calls the xauth to install a proxy key which authenticates to this X-server proxy on remote machine: # echo "$DISPLAY" localhost:11.0 # xauth list | grep 11 A58/unix:11 MIT-MAGIC-COOKIE-1 39324086672d1ae35e373476c3891a77 # However, X clients on remote machine do not start properly: # wireshark (wireshark:10083): Gtk-WARNING **: cannot open display: localhost:11.0 # xterm Warning: This program is an suid-root program or is being run by the root user. The full text of the error or warning message cannot be safely formatted in this environment. You may get a more descriptive message by running the program as a non-root user or by removing the suid bit on the executable. xterm: Xt error: Can't open display: %s # X forwarding doesn't use xhost so at least this can be excluded. I tried to find some useful log entries both on machine where SSH server is running and machine where SSH client is running with find /var/log/ -mmin -5 -type f command, but this did not give any hints. SSH server version is OpenSSH_5.9p1 and SSH
communities company blog Stack Exchange Inbox Reputation and Badges sign up log in tour help Tour Start here for a quick overview of the site Help Center Detailed answers to any questions you might have Meta Discuss the workings and policies of this site About Us Learn more about Stack Overflow the company Business Learn more about hiring developers or posting ads with us Ask Ubuntu Questions Tags Users Badges Unanswered Ask Question _ Ask Ubuntu is a question and answer site for Ubuntu users and developers. Join them; it only takes a minute: Sign up Here's how it works: Anybody can ask a question Anybody can answer The best answers are voted up http://unix.stackexchange.com/questions/108679/x-client-forwarded-over-ssh-cannot-open-display-localhost11-0/109322 and rise to the top “Error: cannot open display: :0.0” while starting remotelly Firefox up vote 0 down vote favorite On my ubuntu 14.04 remote server, when I try to start Mozilla Firefox 32.0 from terminal, it through error as follow: $ firefox (process:6397): GLib-CRITICAL **: g_slice_set_config: assertion 'sys_page_size == 0' failed Error: cannot open display: :0.0 I have tried by changing display to 1, 10, 11, 99, however, http://askubuntu.com/questions/523677/error-cannot-open-display-0-0-while-starting-remotelly-firefox no luck! Banging my head from a week. Any help will be appreciable. firefox ssh share|improve this question edited Sep 13 '14 at 21:30 Braiam 38.9k1693154 asked Sep 13 '14 at 20:04 RAJ ... 106127 2 When you say remote server, are you connected via ssh? Yre you forwarding X? –Jan Sep 13 '14 at 20:15 Yes, I have ssh to my server. Over there I am trying to start firefox in a same way as I am doing on my local machine i.e. from terminal type firefox and hit ENTER –RAJ ... Sep 13 '14 at 20:24 @Jan Do I need to forward X? I am using watir & headless and watir opening firefox instance programmatically –RAJ ... Sep 13 '14 at 20:41 Never heard of watir but you need to forward X. –Jan Sep 13 '14 at 20:43 how can I do this @Jan? And why I need it only on remote machine. Local machine works without it –RAJ ... Sep 13 '14 at 20:44 | show 1 more comment 1 Answer 1 active oldest votes up vote 2 down vote accepted X11 forwarding needs to be enabled on both the client sid
Haritası Araçlar Sayfa Bağlantıları İlğili Değişiklikler Özel Sayfalar Sponsors Diğer Diller Deutsch SDBtartışmaKaynağı görgeçmiş SDB:X Client Produces "Can't open display" Error tagline: openSUSE sitesinden Konu başlıkları 1 Symptom 2 https://tr.opensuse.org/SDB:X_Client_Produces_%22Can't_open_display%22_Error Background 3 Possible cause #1: no valid X authentication credentials 4 Solution to the authentication credentials problem: sux 5 Possible cause #2: the X server isn't listening 6 Solution for http://www.linuxquestions.org/questions/debian-26/gtk-warning-**-cannot-open-display-0-0-a-807450/ local connections 7 Preferred solution for non-local X connections: ssh 8 Alternative solution for non-local X connections: enable TCP/IP socket connections 9 More information on running X applications remotely Symptom error cannot Under SUSE Linux Enterprise Server 9 or a related version of SUSE Linux, an X client application, for example xterm, reports an error Can't open display on startup, for instance xterm Xt error: Can't open display: localhost:0.0. Background The X Window System is a network transparent window system that uses a client/server-architecture. X can use a number of transport protocols, including error cannot open Unix sockets (which are an inter-process communication facility that is local to a system) and TCP/IP sockets (connections using the Internet protocol s uite). Which mechanism is used, is determined by the format of the DISPLAY environment variable. When DISPLAY does not contain a hostname, e.g. it is set to :0, Unix sockets will be used. When it does contain a hostname, e.g. it is set to localhost:0.0, the X client application will try to connect to the server (in the example, localhost) via TCP/IP sockets rather than via Unix sockets. X has its own authentication mechanism to determine whether a client is allowed to connect to a server; this is used, for example, to prevent another user from being able to view or manipulate your X session. As the Internet has become an increasingly hostile environment, it has become good practice to only open up services to the Internet when they are really needed. Possible cause #1: no valid X authentication credentials With the default X authentication mechanism, an X client needs to have access to a vali
HCL Search Reviews Search ISOs Go to Page... LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Debian [SOLVED] Gtk-WARNING **: cannot open display: :0.0 User Name Remember Me? Password Debian This forum is for the discussion of Debian Linux. Notices Welcome to LinuxQuestions.org, a friendly and active Linux Community. You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today! Note that registered members see fewer ads, and ContentLink is completely disabled once you log in. Are you new to LinuxQuestions.org? Visit the following links: Site Howto | Site FAQ | Sitemap | Register Now If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here. Having a problem logging in? Please visit this page to clear all LQ-related cookies. Introduction to Linux - A Hands on Guide This guide was created as an overview of the Linux Operating System, geared toward new users as an exploration tour and getting started guide, with exercises at the end of each chapter. For more advanced trainees it can be a desktop reference, and a collection of the base knowledge needed to proceed with system and network administration. This book contains many real life examples derived from the author's experience as a Linux system and network administrator, trainer and consultant. They hope these examples will help you to get a better understanding of the Linux system and that you feel encouraged to try out things on your own. Click Here to receive this Complete Guide absolutely free. Page 1 of 2 1 2 > Search this Thread 05-12-2010, 03:03 PM #1 toxine LQ Newbie Registered: May 2010 Posts: 9 Rep: Gtk-WARNING **: cannot open display: :0.0 Hello Im trying to access gparted, i get an error Quote: (gpartedbin:4918): Gtk-WARNING **: cannot open display: I am connect via vnc if this helps. thanks. Last edited by toxine; 05-12-2010 at 06:51 PM. toxine View Public Profile View LQ Blog View Review Entries View HCL Entries Find More Posts by toxine 05-12-2010, 03:21 PM #2 acid_kewpie Mod