The vncserver creation process under Fedora9 is as follows: # vi/etc/sysconfig/vncserver // edit vncserver configuration file VNCSERVERS = "1: root "VNCSERVERARGS [1] ="-geometry800 × 600-0.0.0.0 "# vncpasswd // create a vnc password # vncserver (servicevncserverst
The vncserver creation process under Fedora 9 is as follows:
# Vi/etc/sysconfig/vncserver // edit the vncserver configuration file
VNCSERVERS = "1: root"
VNCSERVERARGS [1] = "-geometry 800 × 600-0.0.0.0 ″
# Vncpasswd // create a vnc Password
# Vncserver (service vncserver start) // start vncserver
# Service iptables stop // disable iptables Firewall
# Vi. vnc/xstartup // edit the xstartup script
#! /Bin/sh
Vncconfig-iconic &
# Uncomment the following two lines for normal desktop:
Unset SESSION_MANAGER
Exec/etc/X11/xinit/xinitrc
[-X/etc/vnc/xstartup] & exec/etc/vnc/xstartup
[-R $ HOME/. Xresources] & xrdb $ HOME/. Xresources
Xsetroot-solid gray
Xterm-geometry 80 × 24 + 10 + 10-ls-title "$ VNCDESKTOP Desktop "&
Twm &
Open the vic viewer connection on the windowx xp Client and enter Fedora ip add: 1.
Others:
# Vi/etc/sysconfig/iptables // allow port 5901 to pass
-A RH-Firewall-1-INPUT-m state-state NEW-m tcp-p tcp-dport 5901-j ACCEPT
# Vi/etc/sysconfig/vncserver // allow two different users to connect. Of course, iptables is required to open port 5902 at the same time.
VNCSERVERS = "1: root 2: keith"
Vncviewer switch to full screen mode -- F8