Hi kdotsky. Welcome to LinuxQuestions.org!
If I interpret your problem correclty, you log on from a remote host (using telnet or SSH or something like that) and then try to open a window on that machine. Is this correct? If so, this is what you need to do:
The user who logs on must
as you already tried. This is not enough, however, since the X server doesn't allow connections by default. You also need to look into the xhost command. The user who started X on the remote machine must issue a command like:
This allows anyone to open a window on your display. Since this might be bad from a security perspective, you could arrange that only users logged on to the machine may open a window. This is done with the command
Does this answer your question? If not, I could try to clarify it for you.