Startx startup graph interface. If xhost +
Practical Tips: Procedure for setting xhost in Linux
Step 1: Use root to log on to Linux and start the VNC service;
Step 2: Set export display = localhost: 1 (1 indicates that VNC is started on the first TTY) based on the port of the VNC. For more information about starting VNC, see Attachment 1;
Step 3: Execute xhost + and prompt "Access Control Disabled, clients can connect from any host.
The operation logs in Linux are as follows:
[Root @ localhost ~] # Vncserver
New 'localhost: 1 (Root) 'desktop is localhost: 1
Starting applications specified in/root/. VNC/xstartuplog file is/root/. VNC/localhost: 1.log
[Root @ localhost ~] # Export display = localhost: 1
[Root @ localhost ~] # Xhost +
Access Control Disabled, clients can connect from any host
When xhost is set, the problem of unable occurs. The appeal method can be used.
Or Alt + F7