Linux - NewbieThis Linux forum is for members that are new to Linux.
Just starting out and have a question?
If it is not in the man pages or the how-to's this is the place!
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.
I'm running RedHat Workstation Version 4 for iA64. When I telnet (ssh is unavailable) to another server then export DISPLAY=hostnam:0 and attempt to launch a motif application (or xclock for that matter) I get Error: Can't open display:
I tried xhost + to no avail.
My firewall is disabled
Is there some other security settings I need to turn off?
If you are using csh (or tcsh), the cmd line would be
peter@yourcomp> setenv DISPLAY mycomp:0.0
If it is not this and you did it in this order(or close), it may be a NAT issue. Are you or the computer you are accessing NAT'd? If so, you may have to forward the X11 port the the NAT ip. SSH has X11 tunneling.
Not a NAT issue, make sure the firewall is off on the host server. Try to nmap it to see if you see the X11 port (6000).
Not a NAT issue, did the xhost thing in that order. Ran through the security settings to disable the fire wall. Did a netstat -a and could not firn X11 on port 6000. But found...
Another test would be on the machine you are telneting to. Log directly on the console of the remote machine. If you echo $DISPLAY, then you should see :0.0 returned. Then try setting display on this shell, ex.
my@mymachine> export DISPLAY=mymachine:0.0
Then try opening an app, like xclock. If still doesn't work, try:
me@mymachine> xhost +
me@mymachine> telnet mymachine
login: me
password: *******
Last login: Tue May 23 18:51:45 on :0
me@mymachine> export DISPLAY=mymachine:0.0
me@mymachine> xclock
FYI, you can set display also on the command line:
Apparently by defalt in the gdm.conf file there is a statement DisallowTCP=true that needs to be set to false or commented out to allow this to work. I set it to false and all is fine now
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.