I am trying to issue xterm and am getting the following error: xterm Xt error: Can't open display: xterm: DISPLAY is not set. oops, the 't' in 'twm' is Tom not Ted. View 5 Replies View Related 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. Asking for help, clarification, or … 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. Launch other remote clients in the same manner. Or if im not understanding this at all let me know. Please be sure to answer the question.Provide details and share your research! 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, 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. xterm: Xt error: Can't open display! 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. 'xterm' stands for X terminal. Thanks for contributing an answer to Server Fault! The Xsecurity man page explains it … 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. 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: I guess it might show SYN_SENT (or any other different than ESTABLISHED). Please advise me. I couldnt find an answer to this issue that fixed my issue so im posting here. If not, you need to start an Xserver. I just want to be able to connect to this machine via putty and xterm to pull up my desktop. If your login scripts unconditionally set DISPLAY to something else, this will break X11 forwarding. 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. The source of the problem is that you don’t have a MIT-MAGIC-COOKIE on the remote system. xterm: DISPLAY is not set I am doing this while i am also logged into the machine directly. For 'xterm' to work you must invoke it from within a running X environment, 'twm' in your current case. $ ssh -YC remotebox [[email protected] ~]$ xterm You should now have an xterm from the remote machine on your local computer. 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. But avoid …. OpenSUSE :: Xterm: DISPLAY Is Not Set Mar 25, 2010. startxwin -- -listen tcp Im new at this. xterm: display is not set Hi, I've just installed xterm, ant trying to run it from my windows machine using ssh. 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. Last word in this line reports the status of Xterm connection. (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.