asked 2 years ago viewed 38577 times active 10 months ago Linked 2 unable to open X server 52 Open a window on a remote X display (why “Cannot open display”)? You are currently viewing LQ as a guest. more stack exchange 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 eantoranz View Public Profile View LQ Blog View Review Entries View HCL Entries Find More Posts by eantoranz View Blog 03-26-2012, 06:19 PM #10 jlinkels Senior Member Registered: Oct Source
Offline #15 2010-08-29 21:11:50 mir Member Registered: 2010-08-25 Posts: 59 Re: [SOLVED] sudo gui apps cannot connect to xserver from terminal app Hmm, I found HOME unnecessary and confusing. It is not funny to see how numerous parrot posters on forums simply repeat (verbatim): "you have to turn off this option by editing xserverrc". The solution: Add to your ~/.bashrc # Fabby: 2014-11-14: http://askubuntu.com/questions/571116/ # to allow forwarding of xauth keys between users when calling su # needs to be the last line export $(dbus-launch) Browse other questions tagged 14.04 lubuntu or ask your own question.
All the applications within a session connect to the session manager, and the manager takes care about the access rights (to itself). 1 members found this post helpful. Ok that got me because on one of my Debian machines i do have that file, but some others not. I'm running KDE 4.1.1, Hardy 8.04. Cannot Connect To X Server Mac xhost + will completely switch off access control, so anyone can connect from anywhere.
Unless you're not the only user of your machine. Cannot Connect To X Server Qt Linux User #181509 * It can hardly be a coincidence that no language on this planet has ever come up with the phrase "as pretty as an airport" * -- Douglas How to stop NPCs from picking up dropped items Assigning only part of a string to a variable in bash What is the most someone can lose the popular vote by Vent kitchen hood vent to roof turbine vent?
Since it is a GUI application, I tried to use gksudo then it opens a window asking about the password, but after entering the password the application returns and GUI does P4v.bin Cannot Connect To X Server DCOP Cleaning up dead connections. ~ : Yes, Supreme Empress? $ krusader ~ : Yes, Supreme Empress? $ su Password: /home/tarahmarie: Darth Prompt (8<| # cd .. /home: Darth Prompt (8<| Frankly I despise the Xorg/KDM/KDE policy to hide, move, rename or obsolete configuration files. Find the "unwrapped size" of a list Why does top 50% need a -50% translate offset?
Cannot Connect To X Server Qt
The X authority file is normally indicated in the XAUTHORITY environment variable. Is adding the â€˜tblâ€™ prefix to table names really a problem? Cannot Connect To X Server Ssh Clarke Adv Reply Page 1 of 2 12 Last Jump to page: Quick Navigation New to Ubuntu Top Site Areas Settings Private Messages Subscriptions Who's Online Search Forums Forums Home Ubuntu Cannot Connect To X Server How can I claim compensation?
What would I have done differently? this contact form btw as others have pointed out xhost + permits any user from any host share|improve this answer edited Jan 31 '14 at 12:56 answered Jan 31 '14 at 12:48 X Tian Furniture name for waist-high floor-sitting shelf cabinet thing Find a mistake in the following bogus proof Solving a discrete equation What is the point of update independent rendering in a game the second paragraph, I would be extremely happy if someone can tell me how to switch off this option so I can experiment with it. No Protocol Specified Cannot Connect To X Server
How can the US electoral college vote be so different to the popular vote?
I made no configuration changes but I have updated my system in that time period.
If XAUTHORITY is not set in your session and su sets the HOME environment variable to root's home directory, then you need to set XAUTHORITY to /home/msz/.Xauthority where /home/msz is your
I have just added the line: Defaults env_keep="DISPLAY XAUTHORITY" at the end of visudo.
Adv Reply September 22nd, 2008 #10 Mornedhel View Profile View Forum Posts Private Message Grande Half-n-Half Cinnamon Ubuntu Join Date Oct 2006 Location Lyon, France Beans 839 DistroUbuntu 9.10 Karmic
share|improve this answer answered Jan 9 '15 at 18:48 Fabby 16.2k1241114 add a comment| up vote 1 down vote I am using SecureCRT as ssh tool, however it cannot display some
This is the first age that's paid much attention to the future, which is a little ironic since we may not have one. -- Arthur C.
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.
Thanks to all, specially @Thor for kind help share|improve this answer answered Aug 28 '14 at 9:22 Apurba 5912720 1 Defaults env_keep="DISPLAY" works for me. –bagustris Mar 9 '15 at
If you are the only user of your machine, then there's not really any security issue.
If you need administration rights, use sudo for console applications and gksu (kdesu in your case) for GUI applications. Cannot Connect To X Server Localhost Would the members of an online imageboard (or any community) be able to build a post-apocalytic society upon their reputation? Still works on Ubuntu : Code: [email protected]:~$ su Password: [email protected]:/home/mornedhel# synaptic Works like a charm.
Put these lines in root's .bashrc: if [ "$USER" != "root" ] ; then export XAUTHORITY=`eval echo ~$USER/.Xauthority` fiThat should fix it.
If I'm already root, why do I have to run it in xterm as opposed to anything else (I'm running it in Konsole). It uses QT4 to build a gui application to perform Ethernet configuration. –Samer Jan 9 '15 at 18:24 add a comment| 2 Answers 2 active oldest votes up vote 2 down Last edited by PirateJonno (2010-08-28 11:25:55) "You can watch for your administrator to install the latest kernel with watch uname -r" - From the watch man page Offline #9 2010-08-28 16:09:44 Cannot Connect To X Server Centos Would that be the correct approach?
What does: echo $DISPLAY say? By default the owner of the xserver (the user who started that session) will be able to modify it. When I tried: root# su - jlinkels -c "export DISPLAY=:0 && kdialog \"Hello\"" this worked as well. Check This Out Browse other questions tagged x11 su xauth or ask your own question.
jlinkels jlinkels View Public Profile View LQ Blog View Review Entries View HCL Entries Find More Posts by jlinkels 03-26-2012, 05:38 AM #2 ukiuki Senior Member Registered: May This book contains many real life examples derived from the author's experience as a Linux system and network administrator, trainer and consultant. Are there problems with using this? Registered Linux User #479009 Friend-->Linux; 6 and counting...
How to reply? Please report to the duty torturer. But: - I know I am able to connect from other hosts over ssh, using ssh -x, which means there connection possible from the localhost. (I believe ssh -x acts like Previous examples of large scale protests after Presidential elections in US?
Take a look at this: ~ : Yes, Supreme Empress? $ kdesu krusader passprompt kbuildsycoca running... Xterm is able to connect to the Xserver, but Console cannot because it is an external connection. The package that generates it is xbase-clients. How good should one be to participate in PS?
more stack exchange 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 I used to sell those machines in 1998 with Win98 installed. Xterm is started within the session, so there is no problem with it, but when you want to start something from the console.... Googling yields hundreds of solutions telling (a) to switch this off in /etc/X11/xinit/xserverrc, but this file and directory doesn't exist or (b) grep in /etc/ and subfolders for the string nolisten,
If you'd like to contribute content, let us know. Post your question in this forum. jlinkels jlinkels View Public Profile View LQ Blog View Review Entries View HCL Entries Find More Posts by jlinkels 03-26-2012, 06:24 PM #11 jlinkels Senior Member Registered: Oct