Start vncserverservicevncserverstart on rhel5 and connect to windows through RealVNC in Chinese: xx. xx. xx. xx: 1 it is found that the desktop is character-based and can be modified as follows:/root /. in the vnc/xstartup file, modify the desktop to be started: [-x/etc/vnc/xstartup] & amp; exec/etc/vnc/xstartup [
Start vncserver on rhel5
Service vncserver start
Connect to: xx. xx: 1 through RealVNC in Chinese
The desktop is character-based and can be modified as follows:
/Root/. vnc/xstartup
File to modify the started desktop:
The change is as follows:
[-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 "&
# Twm &
# Startked &
Gnome-session &
Then the error "no displays configured" is reported when service vncserver restart is started.
You need to set the resolution.
Vi/etc/sysconfig/vncservers
Add the following two rows:
VNCSERVERS = "1: root"
VNCSERVERARGS [1] = "-geometry 1024x800-nolisten tcp"
Of course, the resolution can be adjusted based on the actual situation of your system. I still cannot display the resolution when I start to use 1248*1024. It will be fine after modification.
Then the service vncserver restart will be able to connect to the gnome Desktop normally.
:
For more information about RedHat, see RedHat topic page http://www.linuxidc.com/topicnews.aspx? Tid = 10