Linux - SoftwareThis forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.
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.
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.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
When starting a program that uses X as user from the console everything works perfectly. But when I become root with su and then try to strart the same program, it fails with this message:
Xlib: connection to ":0.0" refused by server
Xlib: No protocol specified
Error: Can't open display: :0.0
I am using Suse 9.0 AMD64 with a nvidia card and driver. This problem appears for example when I want to use the graphical installer of crossover-office, to install into another directory than the home.
Thank for any help!
Originally posted by nyk When starting a program that uses X as user from the console everything works perfectly. But when I become root with su and then try to strart the same program, it fails with this message:
Xlib: connection to ":0.0" refused by server
Xlib: No protocol specified
Error: Can't open display: :0.0
I am using Suse 9.0 AMD64 with a nvidia card and driver. This problem appears for example when I want to use the graphical installer of crossover-office, to install into another directory than the home.
Thank for any help!
Try in the console window either export Display=0.0 or export Display 0.0 I think is is the first one that is the correct syntax
your problem is that your loggin in the X server as user so root cant access it. im not sure if theres a way around it. maybe xnest although im not sure exactly what it does because ive never used it
Actually, I don't believe it is a strange problem. I think this is X working as designed. I know I had to add a line like that to my .xinitrc file so I could run graphical apps as root if I needed to. And it certainly doesn't have anything to do with your graphics card.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.