VNCServer configuration and VNCVIEW Using 1, the startup of the VNCServer service. Redhat and Fedora generally automatically install VNCServer. You can start with 2, vncserver configuration by editing file $ home / .vnc / xstartup Your favorite window manager. Use STARTKDE & to start KDE, start GNOME, FVWM2 & to start FVWM2 using Gnome-session & to start FVWM2. Below is an example############################################## ########! / bin / sh
# Uncomment the folowing two line for normal desktop: # unset session_manager # exec / etc / x11 / xinit / xinitrc
[-X / etc / vnc / xstartup] && exec / etc / vnc / xstartup [-r $ home / .xResources] && xrdb $ home / .xResourcesxsetroot -solid greyvncconfig -iconic & # xterm -geometry 80x24 10 10 - LS -TITLE "$ vncdesktop desktop" & gnome-session # startkde # twm & ########################################################################################################################################################################################################################################################### ################# 3, start using a thing to run before starting, you can use Telnet to log in to the remote system to run VNCServer To define the size of the interface, the color looks vncserver --help. If the first run is prompted, the password is prompted, the password remotely logged in, is not related to the user password. The password modification can use the VNCPasswd program. There is a prompt for the desktop number after the run is successful: 1: 2. Remember the desktop. Exit Telnet. You need to run once after each server hand. 4. Log in to Windows Download a WinVNC, after the installation is complete, do not start the service, use its viewer. Enter the VNC server address: the desktop number, you can use it again. Note that each time is used, don't log out of the system, you can close the Winvnc viewer directly, as long as the server is fine, you can continue to connect using WinVNC again. 5. Close the server on your own VNC connection vncserver -kill: Desktop 6, how to turn the server automatically run VNCServer does not require yourself using LinuxConf to set the VNCServer boot script (/etc/init.d/vncserver) to implement system self-start Start VNCServer. But the default startup script is not enough, so editing /etc/init.d/vncserver, modify:
"Su - $ {display ## *:} -c" CD && [-f .vnc / passwd] && vncserver: $ {display %%: *} "
"Su - $ {display ## *:} -c" CD && [-f .vnc / passwd] && vncserver $ {args}: $ {display %%: *} "" "" "" "" "" "" "" "" "" "" "" "" # The vncservers variable is a list of # Display: user pairs. ## uncomment the line below to start a vnc server on # Display: 1 as my 'myuser' (Adjust this to your # o). You will Also Need To Set A Vnc Password; # run 'man vncpasswd' to see how to do what. ## do not run this service if your local area network # is untrusted! for a second Way of use, see #