Error No Display Specified Chroot
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 Learn more about Stack Overflow error no display specified selenium the company Business Learn more about hiring developers or posting ads with us Unix & error no display specified centos Linux Questions Tags Users Badges Unanswered Ask Question _ Unix & Linux Stack Exchange is a question and answer site for users
Error No Display Specified X11
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
Firefox Error No Display Specified
to the top Why can't I run GUI apps from 'root': “No protocol specified”? up vote 12 down vote favorite 9 I installed debian onto my machine last night. Now, I don't understand why I can't run GUI apps from a terminal when running as root. For example: sudo -i glxgears Generates the following output: No protocol specified Error: couldn't open display :0 But when I first open the terminal I can run glxgears firefox error no display specified redhat from the user account. Its only after I do sudo -i that the problem crops up. This happens for any GUI app that I try to run. I think its probably related to X11, but I'm not sure. debian x11 kde gui share|improve this question asked Mar 9 '14 at 7:31 Octopus 5533820 stackoverflow.com/a/20612084 this worked perfectly for me. –user88494 Oct 20 '14 at 9:42 add a comment| 5 Answers 5 active oldest votes up vote 15 down vote accepted Accessing the X server requires two things: The $DISPLAY variable pointing to the correct display (usually :0) Proper authentication information The authentication information can be explicitly specified via $XAUTHORITY, and defaults to ~/.Xauthority otherwise. If $DISPLAY and $XAUTHORITY is set for your user, sudo will set them for the new shell, too, and everything should work fine. If they are not set, they will probably default to the wrong values and you cannot start and X applications. In Debian $XAUTHORITY is usually not set explicitly. Just add export XAUTHORITY=~/.Xauthority to your .bashrc or explicitly say XAUTHORITY=~/.Xauthority sudo ... and everything should work. You can also use xauth list to check whether proper authentication information are available. share|improve this answer answered Mar 9 '14 at 9:17 michas 11.1k22054 xauth info shows path to authority file –SummerBreeze Apr
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
No Protocol Specified Cannot Open Display
About Us Learn more about Stack Overflow the company Business Learn more about no protocol specified linux hiring developers or posting ads with us Unix & Linux Questions Tags Users Badges Unanswered Ask Question _ Unix & no protocol specified cannot open display ubuntu 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 http://unix.stackexchange.com/questions/118811/why-cant-i-run-gui-apps-from-root-no-protocol-specified can ask a question Anybody can answer The best answers are voted up and rise to the top why won't x11 display work through ssh login? up vote 3 down vote favorite 2 I have logged in to a remote server and am trying to display an x application(e.g. firefox). but an error message appears. the below are my attempts to open firefox Black@Black-PC ~ $ ssh http://unix.stackexchange.com/questions/138936/why-wont-x11-display-work-through-ssh-login -X kwagjj@$labserver -p 122 [kwagjj@James5 ~]$ firefox Error: no display specified [kwagjj@James5 ~]$ exit logout Connection to 143.248.146.204 closed. Black@Black-PC ~ $ ssh -Y kwagjj@$labserver -p 122 [kwagjj@James5 ~]$ firefox Error: no display specified [kwagjj@James5 ~]$ I used -X, -Y because I read somewhere that these two options are related with credentials regarding X11 and these switches will do the job for me. Even without the -X, -Y switches, my attempt failed. What does the 'no display speicified' error mean? P.S. The weird thing is that if I connect to the remote server through my PUTTY and repeat the command 'firefox' it works?!?!(firefox is displayed on local computer) P.S. my local computer is Windows 7 so I have Xming running on background in order to allow X11 display. As for the attempt written on the upper part, the commands were typed in at Cygwin terminal. ssh x11 cygwin share|improve this question edited Jun 24 '14 at 23:37 Gilles 371k696751126 asked Jun 24 '14 at 12:43 kwagjj 61121021 Have you tried to display something locally from your Cygwin terminal? For example, you could find a local X utility such as xclock and run it to see what happ
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, http://www.thegeekstuff.com/2010/06/xhost-cannot-open-display/ I got the following message. (gedit:3658): Gtk-WARNING **: cannot open display: I get https://productforums.google.com/forum/#!topic/chromebook-central/uj232VP_h1Q similar message when I try to open any GUI application. For example, launching Oracle Installer on remote server also gives the "cannot open display" error. Answer: You 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 error no the following command to disable the access control, 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 error no display that host After opening ssh connection to the remote host as explained 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, i
från GoogleLogga inDolda fältSök efter grupper eller meddelanden