Connect to Linux via VNC under Window
Linux Open VNC Service: Service vncserver start
Execute the "vncserver" command, note that the identity of this command is executed, and if it is root, the. vnc/directory is generated under root, generating log pid and Xstartup files
Otherwise, it is generated under the user directory. The password for the remote connection will be prompted for the first time.
Note the number of the remote desktop that is turned on, use the "IP: Number" form when connecting using the VNC Viewer, and then enter the password. The default desktop environment for VNC is TWM
Modify the last line of the Xstartup file to set the desktop environment based on your personal system
GNOME Desktop: Change to Gnome-session &
KDE Desktop: modified to Startkde &
Note Restart the Vncserver service after the change, re-use the Vncserver command to generate the remote connection listening process, view the VNC service process status service vncserver status
Using the VNC service under Linux