Tag Archives: Can’t open display XXX

Xterm Xt error: Can’t open display: xterm: DISPLAY is not set

When you run xterm the error appears as follows.

xterm Xt error: Can’t open display:
xterm: DISPLAY is not set

My system centos6.2

Solution.

1, first make sure you have x11 installed: yum -y install xorg-x11-xauth

2. Second, modify the configuration file: xorg-x11-xauth/etc/ssh/sshd_config,

AllowTcpForwarding yes

X11Forwarding yes

ForwardX11 yes or(ForwardX11Trusted)

3.restart