Please be sure to answer the question.Provide details and share your research! oops, the 't' in 'twm' is Tom not Ted. The Xsecurity man page explains it … (2) Open a telnet session and run in your HP-UX server: $ export DISPLAY=UR_PC_IP:0 $ xterm & $ netstat -an | grep 'UR_PC_IP.6000' Last command should print a line. xterm: DISPLAY is not set I am doing this while i am also logged into the machine directly. Thanks for contributing an answer to Server Fault! Im new at this. I just want to be able to connect to this machine via putty and xterm to pull up my desktop. I use Putty from my machine (named host1) to ssh into an OpenSUSE box (named box1) and would like to have a gui to use. : xterm: DISPLAY is not set When I run xterm through putty (with X11 enabled) (from my host to the VM), I get: PuTTY X11 proxy: unable to connect to forwarded X server: Network error: Connection refused xterm: Xt error: Can't open display: mininet-vm:10.0 Some of the outputs of the ssh config files: xterm: display is not set Hi, I've just installed xterm, ant trying to run it from my windows machine using ssh. Or if im not understanding this at all let me know. OpenSUSE :: Xterm: DISPLAY Is Not Set Mar 25, 2010. If you simply try sudo xterm, it won’t work, because the xterm is running as root, but root doesn’t have the proper X11 authentication to connect to the X server machine. But when I try to open an xterm the same way I do on the beta instance: ssh -YT user@public-ip xterm -ls < /dev/null & I invariably get: xterm Xt error: Can't open display: xterm: DISPLAY is not set I don't know how to set DISPLAY any earlier than I do - I even tried putting it as the first line in /etc/profile, but that made no difference. I guess it might show SYN_SENT (or any other different than ESTABLISHED). But avoid …. The source of the problem is that you don’t have a MIT-MAGIC-COOKIE on the remote system. I have X11Forwarding yes on /etc/ssh/sshd_config when I use, MobaXterm, np, I can use xterm after I log ssh -X xxx but when I use Cygwin, and do ssh -X xxx, and then xterm, Last word in this line reports the status of Xterm connection. startxwin -- -listen tcp For local clients, use DISPLAY=:0.0, rather than DISPLAY=localhost:0.0, DISPLAY=127.0.0.1:0.0, DISPLAY=::1:0.0, etc. I couldnt find an answer to this issue that fixed my issue so im posting here. Also, some programs behave differently depending on the value of DISPLAY -- usually, they will try to display a GUI if DISPLAY is set and use a terminal-only fallback if DISPLAY is not set. Launch other remote clients in the same manner. I am trying to issue xterm and am getting the following error: xterm Xt error: Can't open display: xterm: DISPLAY is not set. xterm: Xt error: Can't open display! 'xterm' stands for X terminal. $ ssh -YC remotebox [[email protected] ~]$ xterm You should now have an xterm from the remote machine on your local computer. You can now launch remote X clients in your ssh session, for example: $ xterm & will launch an xterm running on your remote host that will display on your Cygwin/X screen. Please advise me. If it does not work (if you are connecting from remote): Use the -listen tcp option to restore the previous behaviour, allowing the X server to open a TCP/IP socket as well e.g. If your login scripts unconditionally set DISPLAY to something else, this will break X11 forwarding. For 'xterm' to work you must invoke it from within a running X environment, 'twm' in your current case. To run an X11-based tool, you need to set the proper X credentials in the sudo session by fixing the xauth profile for root. Asking for help, clarification, or … View 5 Replies View Related If not, you need to start an Xserver. If you are not using X, but DISPLAY is set, such programs will try to show a GUI and crash, whereas they would have worked if you had left DISPLAY unset.