Last week, with the company's server test, a server connected to VNC, always black screen. Today in the teaching section with their own server to find a solution.
My server defaults to minimal installation, so there is no vncserver. Install one using Yum.
The code is as follows |
Copy Code |
# yum Install Tigervnc-server Then start up: # vncserver:1 |
Try to use the Vncviewer connection under Windows, and find that the same server as the company, is a black screen interface.
Check the log ~/.vnc/localhost.localdomain:0.log
The following error was found:
/home/cake/.vnc/xstartup:line 27:xsetroot:command not found
/home/cake/.vnc/xstartup:line 28:xterm:command not found
/home/cake/.vnc/xstartup:line 29:twm:command not found
Xio:fatal IO Error One (Resource temporarily unavailable) on X server ": 0″^m
After the requests (140 known processed) with 0 events Remaining.^m
It looks as if the XSETROOT/XTERM/TWM was not caused by the installation.
Then use the Yum installation:
The code is as follows |
Copy Code |
# yum Install Xsetroot # yum Install xterm # yum Install Twm |
Then kill the Vncserver process and reboot.
The code is as follows |
Copy Code |
# vncserver-kill:1 # vncserver:1 |
Then again with the Vncviewer connection, the discovery has been able to show the normal ~