Posted on 2005-03-25
Medium Priority
Last Modified: 2012-05-05

i am currently running SuSE 9.2 professional, and tried setting up synergy (http://synergy2.sourceforge.net). I recieve an error saying "XOpenDisplay(":0")"

i so ran echo $DISPLAY and found that as suggested, my display varialbe was set to ':0'

dispite this, i can use kde etc without any difficulties. am i required to run xconfig86 or the xorg equiv to get this environment variable set? and how is SuSE running xwindows without this variable (is there another env. var it uses?)

if anyone has any incite to this your comments would be greatly appreciated.


Question by:twans
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
LVL 38

Expert Comment

ID: 13635155

   Run "xhost +" first to see if it works or not.


Author Comment

ID: 13635908
hey wesley,

thanks for the reply, running xhost + as su gives the following:

Xlib: connectoin to ":0.0" refused by server
Xlib: No protocol specified

xhost: unable to open display ":0"

any ideas?


LVL 20

Accepted Solution

Gns earned 200 total points
ID: 13636706
Let me guess a bit here.
You have started X (and a KDE session) via a display manager login (a GUI login screen). You logged on as a regular user perhaps? And then started a terminal emulator and became another user (root?) via the su command?
It certainly looks a bit like that... And with that, you as the "unpriviledged" user will not be able to use xhost + to turn of the authentication system.

You need do that as the user who started X. _or_ share the xauth information ... which is icky, so let's not.

"Solution" is to start an xterm (or other terminal emulator) and _as the user who started X_ run "xhost + localhost" (Never turn of entirely.... Allowing all access from localhost is quite enough).

After that you'll probably have no more access-related problems with synergy.

-- Glenn
Ransomware-A Revenue Bonanza for Service Providers

Ransomware – malware that gets on your customers’ computers, encrypts their data, and extorts a hefty ransom for the decryption keys – is a surging new threat.  The purpose of this eBook is to educate the reader about ransomware attacks.

LVL 12

Expert Comment

ID: 13636906
You can also open a terminal and become the superuser with the command

sux -

This will keep your DISPLAY environment variable configured properly.
LVL 20

Expert Comment

ID: 13637565
.... And the DISPLAY variable isn't the problem (likely).... Even if it is, it's a no-brainer to do
export DISPLAY=:0
or similar.

-- Glenn

Author Comment

ID: 13637994
thanks everyone for your response, points were so long i didnt bother with assisted answers, but i appreciate all your help

Featured Post

Get MySQL database support online, now!

At Percona’s web store you can order your MySQL database support needs in minutes. No hassles, no fuss, just pick and click. Pay online with a credit card.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

SSH (Secure Shell) - Tips and Tricks As you all know SSH(Secure Shell) is a network protocol, which we use to access/transfer files securely between two networked devices. SSH was actually designed as a replacement for insecure protocols that sen…
Join Greg Farro and Ethan Banks from Packet Pushers (http://packetpushers.net/podcast/podcasts/pq-show-93-smart-network-monitoring-paessler-sponsored/) and Greg Ross from Paessler (https://www.paessler.com/prtg) for a discussion about smart network …
Learn several ways to interact with files and get file information from the bash shell. ls lists the contents of a directory: Using the -a flag displays hidden files: Using the -l flag formats the output in a long list: The file command gives us mor…
Learn how to find files with the shell using the find and locate commands. Use locate to find a needle in a haystack.: With locate, check if the file still exists.: Use find to get the actual location of the file.:
Suggested Courses
Course of the Month13 days, 16 hours left to enroll

800 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question