CentOS 5.5 uses VNC for remote configuration

Source: Internet
Author: User
Tags centos iptables

Reprinted from roothomes:http://blog.csdn.net/roothomes/article/details/6996109

CentOS 5.5 uses VNC for remote configuration
VNC (Virtual network Computing) is essentially a remote display system for computing tools.
It allows an administrator to view the desktop environment on the local machine where the program is running, and to see the remote machine running from anywhere on the internet, and it has cross-platform features.
Linux needs to install VNC to use Remote Desktop. (CentOS5 has VNC installed by default)

Step 1th: First verify that the package is installed OK.
1.1 Installation method for Remote Desktop:
Yum Groupinstall "X Window System"
Yum groupinstall "GNOME Desktop Environment"
1.2 Vnc-server Package:
$rpm-qa | grep vnc-server
Result: vnc-server-4.1.2-14.el5_3.1--Indicates installation of
$rpm-Q VNC vnc-server
Package VNC is not installed
vnc-server-4.1.2-14.e15_3.1--Indicates installation of
If it is not installed, run the following command to install:
Yum Install Vnc-server

2nd Step: Configure users for Remote Desktop
Vncservers= "2:roothomes"
vncserverargs[2]= "-geometry 800x600-nolisten tcp-nohttpd"
Vncservers= "2:roothomes" here gives Roothomes user the desktop number "2″" VNC desktop.
-geometry 800x600 Desktop resolution-nolisten TCP blocking VNC server via TCP
The desktop number is greater than 1, and different users need to specify a different desktop number.
When the VNC connection client enters an address similar to Xxx.xx.xx.xx:2, it is connected directly to the Roothomes user's desktop.
3rd Step: Roothomes Remote Desktop user, set remote connection password
Switch to the user's root directory by switching to a remote login: $CD ~
See if there are any hidden folders. VNC, not on the establishment.
Set Password for remote login: $VNCPASSWD Enter the password for the remote login two consecutive times.

3rd Step: Start Remote Desktop Services, modify the Remote Desktop display configuration file
$service vncserver Start
Build on Remote Desktop user after startup: ~/.vnc/xstartup files
CD ~/.vnc/
VI Xstartup
Use the VI Editor to open the configuration file and make the following modifications
#xterm-geometry 80x24+10+10-ls-title "$VNCDESKTOP Desktop" &--annotate it, add # to represent annotations
#twm &--Annotate it
Gnome-session &--add it

4th Step: Open VNC port, reboot firewall
Use the VI Editor to open the configuration file and add the following line to the file
-A rh-firewall-l-input-p tcp-m tcp--dport 5900:5903-j ACCEPT
Reboot firewall
Service Iptables Restart

5th step: Start VNC Service
/sbin/service vncserver Start
Kill the Roothomes user VNC desktop to order:
or stop vnc-server to order:
$service Vncserver Stop
6th step: Remote Connection

Open the VNC client and enter Ip:2 in the Server box

Windows Client VNC Viewer downloads VNC free Edition for Windows Version 4.1.2 from http://www.realvnc.com/download.html

(2 represents the remote user code configured above [vncservers= "2], the configuration file can be configured with multiple remote users), OK. Reprinted from roothomes:http://blog.csdn.net/roothomes/article/details/6996109
7th step: Start VNC automatically
Use the VI Editor to open the configuration file and make the following modifications

/etc/init.d/vncserver Start--New line

Reprinted from roothomes:http://blog.csdn.net/roothomes/article/details/6996109

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.