Article Title: vncserver creation process in FedoraLinux9 system. Linux is a technology channel of the IT lab in China. Includes basic categories such as desktop applications, Linux system management, kernel research, embedded systems, and open source.
# 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