So does that mean its an access control restriction? lamachine View Public Profile View LQ Blog View Review Entries View HCL Entries Find More Posts by lamachine 04-13-2010, 02:12 PM #11 lamachine LQ Newbie Registered: Apr 2010 Posts: The time now is 01:26 AM. Try rebooting and it should auto-generate the file I think. his comment is here
Answer: You can fix the "cannot open display" error by following the xhost procedure mentioned in this article. 1. This is the same for all programs, not just Synaptic. I'm logged in as bar: [[email protected] ~]$ sudo -u foo -H firefox Sadly that command failed with the same error as in the question (i.e. 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.
But if you use ssh -Y remotemachine the remote machine is treated as trusted client. Furniture name for waist-high floor-sitting shelf cabinet thing How can I open the next/previous file alphabetically? The xclock shows gently up and and ./RUN_setup.sh brings the promising dialog box for my Java application. Notably the default configuration of Debian GNU/Linux is to disable the X server listening on the TCP port.
Did some more research, especially this answer http://askubuntu.com/a/137584/163331 and realised I had to add more options to the visudo file. In Debian $XAUTHORITY is usually not set explicitly. debian x11 kde gui share|improve this question asked Mar 9 '14 at 7:31 Octopus 5634820 stackoverflow.com/a/20612084 this worked perfectly for me. –user88494 Oct 20 '14 at 9:42 add a Gtk Warning Cannot Open Display Ubuntu Henk van Velden Reply With Quote 24-Jan-2011,05:45 #7 please_try_again View Profile View Forum Posts View Blog Entries View Articles Flux Capacitor Penguin Join Date Sep 2008 Posts 7,443 Re: Using gedit
The dash will force user2's .bash_profile to get sourced. Gedit Gtk-warning Cannot Open Display Just add export XAUTHORITY=~/.Xauthority to your .bashrc or explicitly say XAUTHORITY=~/.Xauthority sudo ... I tried export DISPLAY=localhost:10.0 while sshed into my VM and then running gedit .bashrc, but I get: (gedit:9625): Gtk-WARNING **: cannot open display: localhost:10.0 What could be different in the configuration tethysgods View Public Profile View LQ Blog View Review Entries View HCL Entries Find More Posts by tethysgods 08-11-2005, 10:40 AM #4 trickykid LQ Guru Registered: Jan 2001 Posts:
Thus the need for setting the DISPLAY environment variable. Gedit Cannot Open Display Ssh Any help guys. What is this line of counties voting for the Democratic party in the 2016 elections? Pl.
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 On Fedora 21 running xhost gives a list in the format SI:localuser:USERNAME, so xhost SI:localuser:user2 should work. Gedit Cannot Open Display Ubuntu Boss sends a birthday message. Gedit Cannot Open Display Putty For example, launching Oracle Installer on remote server also gives the "cannot open display" error.
xhost si:localuser:foo And that was it, I was then able to launch Firefox (and other X application) using sudo and the user foo. this content Want to know which application is best for the job? Both gave me an error - xhost: bad hostname "user2" when executing from user1, and No protocol specified xhost: unable to open display ":0" when executed from user2. –sashoalm Jan 10 Not the answer you're looking for? Xhost: Unable To Open Display ":0"
When I try to run xclock as user or root I end up with “Error: Can't open display: 0.0” I'm running virtual server Debian/Lenny. It allows to edit and display the authorization information in the .xauthority file.Have a look at "man xauth". This happens for any GUI app that I try to run. weblink Do you want to help us debug the posting issues ? < is the place to report it, thanks !
cjcoats View Public Profile View LQ Blog View Review Entries View HCL Entries Visit cjcoats's homepage! I had the same question as you but for a normal user. It shouldn't pull in too much [email protected]:~$ aptitude show kdesudo Package: kdesudo State: installed Automatically installed: no Version: 22.214.171.124-2ubuntu2 Priority: optional Section: kde Maintainer: Kubuntu Developers
How do I fix this? Allow clients to connect from any host using xhost+ Execute the following command to disable the access control, by which you can allow clients to connect from any host. $ xhost Tried both the "xhost +localhost" and "setenv XAUTHORITY /home/foo/.Xauthority" (for both 'foo" and "bar"); neither works (whether alone or in combination). check over here Offline #7 2011-04-05 16:05:11 bergqvistjl Member Registered: 2011-01-05 Posts: 50 Re: Can't run X applications in root - "cannot open display" karol wrote:Have you read https://wiki.archlinux.org/index.php/Ru â€¦ ps_as_root ?Yes.
Not the answer you're looking for? Advanced Search
no protocol specified & cannot open display) My solution was to simply add the user foo to the list of authorised access to the X server. also export DISPLAY='IP:0.0′ with local ip, can any one help me to remove this error to run geany #geany Geany: cannot open display Link Peter June 29, 2014, 3:26 am xhost+ Cannot open display: Run 'gedit --help' to see a full list of available command line options. But if I ssh -Y into my Ubuntu 11.04 machine, gedit .bashrc works.
Polyglot Anagrams Cops' Thread How good should one be to participate in PS? Homepage: https://launchpad.net/kdesudo If this helped you, please take the time to rate the value of this post: http://rate.affero.net/andrewthomas/ Adv Reply Page 1 of 2 12 Last Jump to page: Quick How can the US electoral college vote be so different to the popular vote? Results 1 to 9 of 9 Thread: Using gedit as root: "Gtk-WARNING **: cannot open display:" Thread Tools Show Printable Version Subscribe to this Thread… Display Linear Mode Switch to Hybrid
tethysgods View Public Profile View LQ Blog View Review Entries View HCL Entries Find More Posts by tethysgods 12-10-2010, 04:16 PM #15 cjcoats LQ Newbie Registered: Jul 2004 Location: Polyglot Anagrams Robbers' Thread Find the rate of change at a point on a polynomial How can I save a file to a new location from inside Vim? Henk van Velden Reply With Quote 23-Jan-2011,07:06 #4 malcolmlewis View Profile View Forum Posts View Blog Entries Visit Homepage View Articles Administrator Join Date Jun 2008 Location Podunk Posts 20,984 Re: and a show-stopper for my using debian.
Bug? I have no idea why this is necessary, it's stupidly inconvenient to say the least This has been happening since I first installed openSUSE, so I haven't screwed up anywhere in