Vncviewer remote connection to Desktop linux 1. Enable vnc on the server (1) Check whether vnc is installed [root @ localhost ~] # Rpm-qa | grep vnc gtk-vnc-0.3.2-3.el5 vnc-4.1.2-14.el5 vnc-server-4.1.2-14.el5 gtk-vnc-python-0.3.2-3.el5 (2) root User Login www.2cto.com [root @ localhost ~] # Vncserver You will require a password to access your tops. Password: (3) enter the root user password and confirm [root @ localhost ~] # Vncserver You will require a password to access your tops. password: Verify: New 'X' desktop is localhost. localdomain: 1 Creating default startup script/root /. vnc/xstartup Starting applications specified in/root /. vnc/xstartup Log file is/root /. vnc/localhost. localdomain: 1.log 2. Stop vnc www.2cto.com [root @ localhost ~] # Vncserver-kill: 1 Killing Xvnc process ID 24659 3. Change the/root/. vnc/xstartup file to www.2cto.com linux :~ # Vi/root/. vnc/xstartup #! /Bin/shunset SESSION_MANAGERexec/etc/X11/xinit/xinitrc [-x/etc/vnc/xstartup] & exec/etc/vnc/xstartup [-r $ HOME /. xresources] & xrdb $ HOME /. xresources xrdb $ HOME /. xresourcesxsetroot-solid greyvncconfig-iconic & xterm-geometry 80x24 + 10 + 10-ls-title "$ VNCDESKTOP Desktop" & twm &
4. Restart vnc linux :~ /. Vnc # vncserver New 'X' desktop is linux: 1 Starting applications specified in/root/. vnc/xstartupLog file is/root/. vnc/linux: 1.log linux :~ /. Vnc #5. Run vncviewer.exe on the Remote Desktop client (disable the firewall) www.2cto.com, and run the server: 192.1.2.240: 1 Password :********