What Can I Do If the Tool Window Is Not Displayed in the Linux Operating System?
Symptom
In the Linux OS, the GUI cannot be displayed when the remote connection tool is used.
Solution
For Linux, log in to the server using a remote connection tool, such as the management network port or VNC, and perform operations on a terminal. If the GUI cannot be displayed when the remote connection tool is used, perform the following operations:
Ensure that the tool supports remote graphical desktop. The GUI can be displayed only when the SSH connection tool supports remote graphical desktop. PuTTY and SecureCRT do not support remote graphical desktop by default. MobaXterm supports remote graphical desktop by default. For the SSH connection tools that supports remote graphical desktop, enable the X11 forwarding function. For details, see the corresponding SSH connection tool description.
Check the value of the environment variable DISPLAY.
echo $DISPLAY
localhost:10.0
- If no result is displayed, assign a value to the environment variable DISPLAY.
- Check the terminal ID.
tty
- Run the w command. Query the IP address of the SSH connection tool using the terminal ID. The command output example is as follows:
USER TTY FROM LOGIN@ IDLE JCPU PCPU HAT ossuser pts/0 192.168.1.100 15:16 1.00s 0.10s 0.04s sshd: ossuser [priv] ossuser pts/1 10.120.123.100 15:26 1:53 0.04s 0.04s -bash
- Set the variable DISPLAY using the IP address.
For example, if the IP address is 192.168.1.100, run the following command:
export DISPLAY=192.168.1.100:0.0
- Run the following command to test the setting:
xclock
- Check the terminal ID.