Cannot Open Display Error
Contents |
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
Ubuntu Cannot Open Display Error
Learn more about Stack Overflow the company Business Learn more about hiring developers or freedesktop cannot open display error posting ads with us Unix & Linux Questions Tags Users Badges Unanswered Ask Question _ Unix & Linux Stack Exchange is xhost unable to open display 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
Error Can T Open Display
can answer The best answers are voted up and rise to the top Forwarding X11 not working - Error: Can't open display: localhost:11.0 up vote 1 down vote favorite LM 17 Xfce OpenSSH_6.6.1p1 Ubuntu-2ubuntu2 Despite googling everywhere, I cannot seem to get this to work. I keep getting this error. $ xlogo Error: Can't open display: localhost:10.0 I have tried both types of connections for forwarding x11 with debug
Xt Error Can T Open Display
and normal instance of sshd ssh -Y remotehost -p 2500 ssh -X remotehost -p 2500 The server config permits x11 forwarding. Testing with a new sshd instance in debug I see this when connecting. The only relevant part of debug I could tell: debug1: channel 1: new [X11 inet listener] debug1: channel 2: new [X11 inet listener] DISPLAY is set $ echo $DISPLAY localhost:10.0 The user is a standard user with sudo access and I otherwise have no issue (everything is cli works fine.) Additionally, I am not using Multiplexing connections & I can use x11 forwarding when I connect to myself (ssh -X 127.0.0.1). Using ssh -v while connecting does not give any more useful feedback when the error shows up. If I missed anything I can try, let me know. I'm stumped. edit: $ netstat -l | grep 6010 tcp 0 0 ip6-localhost:6010 *:* LISTEN tcp6 0 0 ip6-localhost:6010 [::]:* LISTEN Also, I did ssh -X 127.0.0.1 on the server and it spit out this: Warning: No xauth data; using fake authentication data for X11 forwarding. xauth list. Is this private information I should be concerned about? Not really sure what I'm posting atm. remotehostname/unix:14 MIT-MAGIC-COOKIE-1 70f068c8dd2431088bcxxxxxxxxx remotehostname/unix:13 MIT-MAGIC-COOKIE-1 be500209ccb9fb769eexxxxxxxxx remotehostname/unix:12 MIT-MAGIC-COOKIE-1 01fc30e4887501602ebxxxxxxxxx remo
a remote server, I'm getting the "cannot open display:" error, as shown below. How do I fix this? For example, while launching the gedit on remote server, I got the following xterm xt error can t open display message. (gedit:3658): Gtk-WARNING **: cannot open display: I get similar message when I try
Error Can't Open Display Xming
to open any GUI application. For example, launching Oracle Installer on remote server also gives the "cannot open display" error. Answer: You error can't open display localhost 10.0 putty can fix the "cannot open display" error by following the xhost procedure mentioned in this article. 1. Allow clients to connect from any host using xhost+ Execute the following command to disable the access control, http://unix.stackexchange.com/questions/178513/forwarding-x11-not-working-error-cant-open-display-localhost11-0 by which you can allow clients to connect from any host. $ xhost + access control disabled, clients can connect from any host 2. Enable X11 forwarding While doing ssh use the option -X to enable X11 forwarding. $ ssh username@hostname -X Enable trusted X11 forwarding, by using the -Y option, $ ssh username@hostname -Y 3. Open GUI applications in that host After opening ssh connection to the remote host as explained http://www.thegeekstuff.com/2010/06/xhost-cannot-open-display above, you can open any GUI application which will open it without any issue. If you still get the "cannot open display" error, set the DISPLAY variable as shown below. $ export DISPLAY='IP:0.0' Note: IP is the local workstation's IP where you want the GUI application to be displayed. Tweet >Add your comment If you enjoyed this article, you might also like.. 50 Linux Sysadmin Tutorials 50 Most Frequently Used Linux Commands (With Examples) Top 25 Best Linux Performance Monitoring and Debugging Tools Mommy, I found it! – 15 Practical Linux Find Command Examples Linux 101 Hacks 2nd Edition eBook Awk Introduction – 7 Awk Print Examples Advanced Sed Substitution Examples 8 Essential Vim Editor Navigation Fundamentals 25 Most Frequently Used Linux IPTables Rules Examples Turbocharge PuTTY with 12 Powerful Add-Ons Tagged as: export DISPLAY, xhost+ Command, xhost+ Examples { 11 comments… add one } hari June 25, 2010, 9:10 am is # xhost - will block from using X server from remote login to this system? for ex: system1 # xhost - system2 # ssh -X system1 system1 # gedit new.txt it opening a new file, it not blocking X server. Link Jeff June 25, 2010, 9:39 am love this site, love these articles but xhost? pfft! hari, when you're X11 forwarding
2010-11-19 17:53:38 lubiebudyn Member Registered: 2010-11-19 Posts: 4 Error: cannot open display: :0.0 [SOLVED] Hi,After my last reebot I've got some problem with Xorg. Everything https://bbs.archlinux.org/viewtopic.php?id=108695 goes ok, kdm starts, I can log in and...On KDE I can't start any application(some parts of KDE doesn't start too(for example krunner)).On fluxbox I can start http://www.centos.org/forums/viewtopic.php?t=54325 only few apps(2-3). And when I try to start another one:No protocol specifiedError: cannot open display: :0.0Thanks for all advices. Last edited by lubiebudyn (2010-11-19 19:24:35) Offline open display #2 2010-11-19 19:01:29 PrivateLooms Member Registered: 2010-11-19 Posts: 5 Re: Error: cannot open display: :0.0 [SOLVED] Try either :export DISPLAY=":0.0"or xhost +your-usernamein the terminal, that is how I solved my problem.P.S: if xhost +your-username doesn't work try xhost + Offline #3 2010-11-19 19:13:56 lubiebudyn Member Registered: 2010-11-19 Posts: 4 Re: Error: cannot open display: :0.0 t open display [SOLVED] PrivateLooms wrote:Try either :export DISPLAY=":0.0"or xhost +your-usernamein the terminal, that is how I solved my problem.P.S: if xhost +your-username doesn't work try xhost + Unfortunately:export DISPLAY=":0.0"Doesn't change anything.xhost ...returns:No protocol specified xhost: unable to open display ":0.0" Last edited by lubiebudyn (2010-11-19 19:14:31) Offline #4 2010-11-19 19:14:26 schuay Trusted User (TU) From: Austria Registered: 2008-08-19 Posts: 564 Re: Error: cannot open display: :0.0 [SOLVED] Maybe this? https://bbs.archlinux.org/viewtopic.php?id=108562 Offline #5 2010-11-19 19:24:20 lubiebudyn Member Registered: 2010-11-19 Posts: 4 Re: Error: cannot open display: :0.0 [SOLVED] schuay wrote:Maybe this? https://bbs.archlinux.org/viewtopic.php?id=108562Thanks a lot!I didn't suspect NetworkManager... Offline Pages: 1 Index »Applications & Desktop Environments »Error: cannot open display: :0.0 [SOLVED] Board footer Jump to Newbie Corner Installation Kernel & Hardware Applications & Desktop Environments Laptop Issues Networking, Server, and Protection Multimedia and Games System Administration Other Architectures Announcements, Package & Security Advisories Arch Discussion Forum & Wiki discussion Pacman & Package Upgrade Issues [testing] Repo Forum Creating & Modifying Packages AUR Issues, Discussion & PKGBUIL
- gedit - from SSH login Issues related to applications and software problems Post Reply Print view Search Advanced search 9 posts • Page 1 of 1 Narain Posts: 4 Joined: 2015/09/24 16:51:59 Cannot open display - gedit - from SSH login Quote Postby Narain » 2015/09/24 17:04:19 Hi all,We have installed the 7.1.1503_core version of CentOS. When logging in remotely through SSH (ssh -y narain@192.168.x.x), and typing in gedit, throws the following error:** (gedit:2290): WARNING **: Could not open X display(gedit:2290): Gtk-WARNING **: cannot open display: 192.168.x.x:17.0 //the x.x is intentionally replacedI have verified the installation of xorg-x11-xauth, and the server SSH config file /etc/ssh/sshd_config includes the following:#GatewayPorts noX11Forwarding yesX11DisplayOffset 10X11UseLocalhost yes#PermitTTY yesI have no clue on the next step to try to resolve this issue and would greatly appreciate your help! Many thanks! Top TrevorH Forum Moderator Posts: 16724 Joined: 2009/09/24 10:40:56 Location: Brighton, UK Re: Cannot open display - gedit - from SSH login Quote Postby TrevorH » 2015/09/24 18:11:38 Do you have X running on the machine that you are ssh'ing from? Full time Geek, part time moderator. Use the FAQ Luke Top toracat Forum Moderator Posts: 7149 Joined: 2006/09/03 16:37:24 Location: California, US Contact: Contact toracat Website Re: Cannot open display - gedit - from SSH login Quote Postby toracat » 2015/09/24 18:40:14 Narain wrote:Hi all,We have installed the 7.1.1503_core version of CentOS. When logging in remotely through SSH (ssh -y narain@192.168.x.x), and typing in gedit, throws the following error:It's supposed to be ssh -Y (or ssh -X). Note the uppercase letter. CentOS Forum FAQ Top TrevorH Forum Moderator Posts: 16724 Joined: 2009/09/24 10:40:56 Location: Brighton, UK Re: Cannot open display - gedit - from SSH login Quote Postby TrevorH » 2015/09/24 23:15:54 Also, ssh X11 forwarding DISPLAY variables are invariably of the format localhost:10.0 (the numbers may vary) and do not use ip addresses. Are you attempting to override the automatic setting? Full time Geek, part time moderator. Use the FAQ Luke Top Narain Posts: 4 Joined: 2015/09/24 16: