Configuration of VNC Server under CentOS 6.3

Source: Internet
Author: User
Tags require centos port number

Operating system: CentOS6.3

Linux can be controlled by using an SSH remote connection, or it can be projected on the host by executing the following command.

[root@localhost ~]# export display=ipaddress:0
[root@localhost ~]# xhost +

This command requires IPAddress machines to have X servers (such as Xmanager), but sometimes it is necessary to project the entire remote Linux desktop locally, which can still be achieved by installing the configuration Xmanager.

This article mainly introduces VNC Server configuration method, need to configure good Yum source, the article "host" refers to the installation of Linux machine.

First verify that VNC Server is installed on the host, using the

[root@localhost ~]# Yum List | grep VNC

's command. Return

tigervnc.x86_64                        1.0.90-0.10.20100115svn3945.el6    @local
tigervnc-server.x86_64                 1.0.90-0.10.20100115svn3945.el6    @local

On behalf of already exist, otherwise it will pass

[Root@localhost ~]# yum Install "*vnc*" Pixman pixman-devel

To install the command.

Single User root configuration method:

1. Start VNC Server, which will require you to enter the initial password two times to connect.

[Root@localhost ~]# Vncserver would
require a password to access your desktops.

Password://Enter password
Verify://Enter password again
xauth:creating new Authority file/root/. Xauthority

New ' localhost.localdomain:1 (root) ' Desktop is localhost.localdomain:1

creating default startup Script/root/.vnc/xstartup
starting applications specified in/root/.vnc/xstartup
Log file is/root/.vnc/ Localhost.localdomain:1.log

Note here: Each user can start multiple VNC Server remote desktops, they use IP port number: ip:1, Ip:2, ip:3 to identify the distinction, using the same port will enable the other logged-on user to automatically exit. In addition, most of the configuration files and log files for VNC Server are in the. VNC directory of the user's home directory.

Users can customize startup numbers such as:

[Root@localhost ~]# vncserver:2        #注意: 2 must be preceded by a space.
A VNC Server is already running As:2

2. Red Hat Linux supports two graphics modes: KDE mode and GNOME mode.

What graphics patterns do you use for Redh Hat? This is generally only logged in to the graphical interface to see to know, or through

[Root@localhost ~]# Ps-aux | grep Gnome

Such an order to judge.

If it is a GNOME desktop, then you need to modify the/root/.vnc/xstartup profile.

Use VI to open xstartup files as follows:

[Root@localhost/]# cd/root/.vnc
[root@localhost. vnc]# VI Xstartup

Delete the entire contents, and then add the following:

-------------------------

Unset Session_manager

Exec/etc/x11/xinit/xinitrc

-------------------------

Note: If you start the black screen, add the following script content

-------------------------------

#[-x/etc/vnc/xstartup]]&& Exec/etc/vnc/xstartup

[-R $HOME/. Xresources] && Xrdb $HOME/. Xresources

Xsetroot-solid Grey

Vncconfig-iconic &

Xterm-gemetry 80x24+10+10-ls-title "$VNCDESKTOP Desktop" &

#twm &

Gnome-session &

-------------------------------

Related Article

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.