Configuring VNC under CentOS

Source: Internet
Author: User
Tags i18n ultravnc viewer

Configure the Desktop

# Install the GNOME desktop environment

Yum Groupinstall desktop-y

# Install Chinese Language Support package (optional)

Yum Groupinstall ' Chinese support '-y

# Set the system default language to Chinese (optional)

Sed-i '/lang/c\lang= ' ZH_CN. UTF-8 "'/etc/sysconfig/i18n

source/etc/sysconfig/i18n

?

?

?

?

Configure VNC Server

#安装vncserver包

Yum Install Tigervnc Tigervnc-server–y

#开启自启动

Chkconfig Vncserver on

You can access the Remote Desktop via the UltraVNC Viewer, TigerVNC Viewer, or RealVNC viewer.

#确认vncserver包已经安装

[Email protected] ~]# Rpm-qa | Egrep-i VNC

Tigervnc-server-1.1.0-16.el6.centos.x86_64

[Email protected] ~]#

#确认rpm包配置文件路径

[Email protected] ~]# RPM-QL tigervnc-server-1.1.0-16.el6.centos.x86_64

/etc/rc.d/init.d/vncserver

/etc/sysconfig/vncservers

/usr/bin/xvnc

/usr/bin/vncconfig

/usr/bin/vncpasswd

/usr/bin/vncserver

/usr/bin/x0vncserver

/usr/share/man/man1/xvnc.1.gz

/usr/share/man/man1/vncconfig.1.gz

/usr/share/man/man1/vncpasswd.1.gz

/usr/share/man/man1/vncserver.1.gz

/usr/share/man/man1/x0vncserver.1.gz

?

?

?

#root用户启动vncserver

#输入以root用户登录vncserver时的密码

[Email protected] ~]# Vncserver

?

You'll require a password to access your desktops.

?

Password:

Verify:

Xauth: (stdin): 1:bad display Name "Su172:1" in "Add" command

?

New ' su172:1 (root) ' Desktop is su172:1

?

Creating default startup Script/root/.vnc/xstartup

Starting applications specified In/root/.vnc/xstartup

Log file Is/root/.vnc/su172:1.log

?

[[Email protected] ~]# CD. vnc/

[email protected]. vnc]# ls

passwd Su172:1.log su172:1.pid Xstartup

#普通用户启动vncserver

[[Email protected] ~] $vncserver

#普通用户需要手工改密码

[Email protected] ~]$ VNCPASSWD

Password:

Verify:

?

?

?

?

?

?

?

?

?

?

?

?

?

#root验证

?

?

?

?

#普通user验证

?

?

?

?

#在Server端进行端口验证

?

#确认vcn进程

?

?

#kill VNC Process Verification

?

?

?

?

?

?

#参考

Http://www.centoscn.com/image-text/config/2014/1120/4151.html

Configuring VNC under CentOS

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.