Linux installation settings VNC Remote Desktop

Source: Internet
Author: User

1, first check whether the server has a VNC service installed, no installation, check the server is the installation of VNC command is as follows
[[email protected] rpms]# Ps-eaf|grep VNC
Root 1789 1557 0 17:30 pts/0 00:00:00 grep vnc
[Email protected] rpms]#
[Email protected] rpms]# Rpm-qa | grep VNC
[Email protected] rpms]#

2, if no VNC is installed, you can install it using the following command:
Yum Install Tigervnc tigervnc-server-y
Smooth installation, check under
[Email protected] rpms]# Rpm-qa | grep VNC
Tigervnc-1.1.0-16.el6.centos.x86_64
Tigervnc-server-1.1.0-16.el6.centos.x86_64
Libvncserver-0.9.7-4.el6.x86_64
[Email protected] rpms]#


3, Next is the configuration problem after installation, use the following command to edit the configuration file:
Vim/etc/sysconfig/vncservers
Vncservers= "1:root"
vncserverargs[1]= "-geometry 800x600"


The following section is the above-mentioned configuration file annotations, for reference purposes:
#这个是配置远程桌面登录的用户名, if two users, use vncservers= "1:user1
2:user2 ",,
By default, 1:user1 corresponds to 5901,2:user2 corresponding to 5902 (the default listening port for VNC is
5900, the listening port rule is 590+usernumber), as follows
Vncservers= "Usernumber:myusername"
#下面这项配置为登录桌面配置, where "1" is the user number, 800x600 is the resolution,-
Nolisten TCP to block TCP packets,-localhost represents only local listening,
vncserverargs[1]= "-geometry 800x600-nolisten tcp-localhost"
If you want to block HTTP packets, you can use the following configuration
vncserverargs[1]= "-geometry 800x600-nolisten tcp-nohttpd-localhost"


4. Set VNC password
Use the following command to set the password for VNC (use SU to switch to the user who wants to set the VNC password, such as:
Su-oracle, where Oracle is the account written in the config file above)
[Email protected] ~]# VNCPASSWD
Password:
Password must is at least 6 characters-try again
Password:
Verify:
[Email protected] ~]#
Password set to VNCPASSWD

5. Start the VNC service
Once the password is set, the VNC service is started, and when the VNC service is started, it is necessary to use Su user1 (user1
is in the above configuration file written in the account) switch to the account to start the service (many friends when using the directspace default desktop VNC, encountered the inability to connect "10061 error", you can enter under SSH
Face command to solve! )

Vncserver

Linux installation settings VNC Remote Desktop

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.