In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-01-16 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Servers >
Share
Shulou(Shulou.com)06/01 Report--
This article introduces the relevant knowledge of "the configuration method of CentOS6.0 VNC remote Desktop". Many people will encounter such a dilemma in the operation of actual cases, so let the editor lead you to learn how to deal with these situations. I hope you can read it carefully and be able to achieve something!
VNC (Virtual Network Computing) is the abbreviation of virtual network computer. VNC is an excellent remote control tool software developed by the famous European research laboratory of AT&T. VNC is a free open source software based on UNIX and Linux operating system. Its remote control ability is powerful, efficient and practical, and its performance is comparable to that of any remote control software in Windows and MAC. In Linux, VNC includes the following four commands: vncserver,vncviewer,vncpasswd, and vncconnect. In most cases, I only need two of these commands: vncserver and vncviewer.
VNC basically belongs to a display system, that is to say, it can transfer the complete window interface to the screen of another computer through the network. The "Terminal Server" included in the Windows server, the charging software PCAnywhere developed by Symantec, the recently popular Teamviewer, domestic Xietong XT800 and Express KDT all belong to the design of this principle. At the same time, these softwares have been improved on the basis of the principle of VNC. Improved ease of use, connectivity and penetration of intranets (Teamviewer, Synergy XT800, KDT).
It is important to understand:
When VNCServer is called, it will enable the listening port on the server according to your configuration. By default, the port starts from 5900, plus your desktop number.
For example, if your desktop number is 1, then the connection port number of vnc is 5900 "1" 5901.
For example, if your desktop number is 10000, then the connection port number of vnc is 59001000015900.
The following is to configure the VNC server so that the user (root) can remotely connect to the graphical interface of the Linux system through the vnc client (provided your server installs the desktop)
1. Check whether VNC is installed on the linux system.
Enter the command in the terminal window:
The code is as follows:
Rpm-Q vnc-server
The returned information is as follows
The code is as follows:
Package vnc-server is not installed
Indicates that the vnc server is not installed
2. Run the following command to install:
The code is as follows:
Yum install vnc vnc-server
3. Start the VNC service
The code is as follows:
Vncserver
You will require a password to access your desktops.
Password:
Verify:
You will be prompted for a password, which is the password you need to enter when logging in remotely. Enter the password and enter.
4. Switch to the root account: su root and enter the password of the root account
The code is as follows:
Vi / etc/sysconfig/vncservers # vnc configuration file
VNCSERVERS= "10000:root" # cancels the previous # 10000:root (desk number: user) # VNCSERVERARGS [2] = "- geometry 800x600-nolisten tcp-localhost"
Finally save and exit
5. Configure the firewall to allow the 10000 "5900" 15900 port to pass through the firewall (otherwise the VNC server cannot be connected remotely)
The code is as follows:
Vi / etc/sysconfig/iptables
-An INPUT-m state-- state NEW-m tcp-p tcp-- dport 15900-j ACCEPT (allows port 15900 to pass through the firewall)
Save exit
6. Restart the vnc server
The code is as follows:
/ etc/init.d/vncserver restart
Or
Service vncserver restart
7. Restart the firewall to make the port configuration effective.
The code is as follows:
/ etc/init.d/iptables restart
Service iptables restart
8. Set the vnc server to boot automatically.
The first method: use the "ntsysv" command to start the graphical service configuration program, add an asterisk before the vncserver service, click OK, and the configuration is complete.
The second method: use "chkconfig" to operate in command line mode, using the following command
The code is as follows:
Chkconfig vncserver on
Chkconfig-list vncserver
Vncserver 0:off 1:off 2:on 3:on 4:on 5:on 6:off
9. Change the vnc connection password
The code is as follows:
Vncpasswd
At this point, the VNC server setup is complete, and you can connect with the VNC client.
Vnc server: your ip:15900
Note: if a gray screen appears after the connection, you can set it as follows
Enter the user's home directory, cd / home/user
If you are logged in with a root account, then the current directory is the user root directory
The code is as follows:
Cd / .vnc
Vi xstartup # Editing
# twm & # comment out this line
Gnome-session & # add this line
Save and exit to connect normally!
When you do this, you are finally done. Next, you can use http://IP:port to log in to Web, for example.
Http://IP:5801, can also use IP:1 to log in in vncviewer.
This is the end of the content of "how to configure CentOS6.0 VNC remote Desktop". Thank you for reading. If you want to know more about the industry, you can follow the website, the editor will output more high-quality practical articles for you!
Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.
Views: 0
*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.
Continue with the installation of the previous hadoop.First, install zookooper1. Decompress zookoope
"Every 5-10 years, there's a rare product, a really special, very unusual product that's the most un
© 2024 shulou.com SLNews company. All rights reserved.