Centos 6.3 vnc connection -- catalog is not properly configured, attem

Source: Internet
Author: User

Centos 6.3 vnc connection -- catalog is not properly configured, attempting to determine an appropriate font p Abstract: in linux, using VNC to connect to remote desktop is often used. Here, we will introduce how to connect to the remote desktop using VNC on centos and solutions to two common problems. 1) VNCserver cannot be started due to font problems. 2) due to firewall problems, after VNCserver is enabled, it cannot be connected to VNCviewer. 1. Check whether VNC is installed [root @ xen ~] # Rpm-qa | grep tigervnctigervnc-1.0.90-0.17.20110314svn4359.el6.x86_64tigervnc-server-1.0.90-0.17.20110314svn4359.el6.x86_64 if there is no installation under the [root @ xen ~] # Yum install tigervnc-server add startup Item [root @ xen ~] # Chkconfig -- add vncserver [root @ xen ~] # Chkconfig vncserver on 2. Set the VNC password [root @ xen ~] # VncserverCreating default startup script/root /. vnc/xstartupStarting applications specified in/root /. vnc/xstartupLog file is/root /. vnc/xen: 1.log is generated in the current user's home directory. vnc directory and configuration file [root @ xen ~] # Vncpasswd Password: Verify: the Password is saved in/root /. vnc/passwd 3. Modify the VNC configuration xstartup file and add gnome-session to the last twm & delete file. Edit/root /. vnc/xstartup, vi/root /. vnc/xstartup if you directly start [root @ xen. vnc] #/etc/init. d/vncserver start is starting VNC Server: no displays configured [failed] So you need to modify the/etc/sysconfig/vncservers file and add the following content VNCSERVERS = "2: root" # desktop Number: after the user listens to port 590 * VNCSERVERARGS [2] = "-geometry 800x600", it can be normal even if the/etc/inittab startup mode is 3. Go to the graphic interface and start vncserver [root @ xen ~] #/Etc/init. d/vncserver start is starting VNC Server: 2: root xauth: (stdin): 1: bad display name "xen: 2" in "add" command New 'xen: 2 (root) 'desktop is xen: 2 Starting applications specified in/root /. vnc/xstartupLog file is/root /. vnc/xen: 2.log 4. FAQs 1) external connection to the Remote Desktop fails due to the firewall. Solution: Use netstat-nat to view the listening port after the firewall is started. The default value is 5901,5902, 5903), if the firewall is enabled, You need to configure rules to allow the corresponding port tcp packet to pass. Iptables-I INPUT 1-p tcp -- dport 5901-j ACCEPT) 2) the error message "WARNING: the first attempt to star Xvnc failed, possibly because the font catalog is not properly configured" is returned because of a font error, attempting to determine an appropriate font path for this system and restart Xvnc using that font path... solution:. view the font to be updated: yum list updates | grep fontb. install all fonts to be updated in the previous step.

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.