Simple configuration of VNCServer in RHEL5

Source: Internet
Author: User
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

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.