Setting VNC in RedHat is troublesome. I have found many articles on this topic on the Internet and have some inspiration. RedHatLinuxAS5 has already installed vnc when installing the system, so you only need to start it. Enter the vncserver service on the terminal to start the instance. The first time you start the instance, you will be prompted to enter the password. The following information will pop up when you start the instance: creatingdefastartupscript/root/. vnc/xstartupStartingap
Setting VNC in RedHat is troublesome. I have found many articles on this topic on the Internet and have some inspiration.
RedHat Linux AS 5 has already installed vnc when installing the system, so you only need to start it.
Enter
Vncserver
Start the service. The first time you start the service, you are prompted to enter the password. The following information will appear when you start the service.
Creating default startup script/root/. vnc/xstartup
Starting applications specified in/root/. vnc/xstartup
Log file is/root/. vnc/localhost. localdomain: 1.log
1 because it is used during Client Login
Now log on to Windows with a vnc Browser
Click "OK" to go to the page and you will find that only the command line input interface is displayed. I want to modify the configuration of the/root/. vnc/xstartup file in the graphic interface.
Many folders under root are hidden. Click "View-" Show Hidden Files "to check the. vnc folder. Open it in a text document and
Unset SESSION_MANAGER
Exec/etc/X11/xinit/xinitrc
Remove the comments. The files after the covering are as follows:
#! /Bin/sh
# 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
Vncconfig-iconic &
Xterm-geometry 80x24 + 10 + 10-ls-title "$ VNCDESKTOP Desktop "&
Gnome-session & // the change from & tmw to the current one
Save and restart the VNC service
Vncserver-kill: 1
Start with the vncserver command
Use vnc to connect to Linux in Windows to view the Linux Desktop.