Linux learning-vnc remote learning vnc installation Shell code [root @ SC-026 ~] # Yum install vnc www.2cto.com vnc remote connection first, log on to the remote machine through ssh, use the command vncserver to open a port for the current user, and then use the command vncviewer to connect to the remote machine, you can perform various operations. Shell code [root @ SC-026 ~] # Ssh 192.168.15.182 root@192.168.15.182's password: Last login: Sat Oct 27 00:30:02 2012 from sfserver‑localdomain remote machine port opening Shell code [root @ sfserver20 ~] # Vncserver-geometry 1600x900: 3 New 'sfserver20. localdomain: 3 (root) 'desktop is sfserver‑localdomain: 3 Starting applications specified in/root /. vnc/xstartup Log file is/root /. vnc/sfserver‑localdomain: 3.log www.2cto.com close the port Shell code [root @ sfserver20 ~] # Vncserver-kill: 3 Killing Xvnc process ID 29665 if you want to see the desktop format, you need to modify the file Shell code [root @ sfserver20 ~] # Vim. comment out the last line of vnc/xstartup and add a new line as follows: # twm & // comment out gnome-session & // indicates that a remote user logs on to the Linux GNOME desktop or startkde & // indicates that a remote user logs on to the Linux KDE Desktop, it is better to log out at www.2cto.com from the port: Shell code [root @ sfserver20 ~] # Exit [root @ SC-026 ~] # Vncviewer 192.168.15.182: 3 VNC Viewer Free Edition 4.1.2 for X-built Jul 27 2010 10:24:13 Copyright (C) 2002-2005 RealVNC Ltd. see http://www.realvnc.com for information on VNC. thu Nov 1 15:54:10 2012 CConn: connected to host 192.168.15.182 port 5903 CConnection: Server supports RFB protocol version 3.8 CConnection: Using RFB protocol version 3.8 The following page appears, enter the password to log on to the remote machine on the desktop.