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 > Network Security >
Share
Shulou(Shulou.com)06/01 Report--
VNC Server is the VNC server software that comes with most Linux distributions. Vncserver is a service opened on the server for distributed users to share resources on the server. The corresponding client software is vncviewer;, which can also be different operating systems, such as remote access to linux system resources using windows. This article will briefly introduce the installation, configuration and use of vnc server
0x00: declare
Some documents refer to Internet materials.
0x01: installation convention
System: centos 6.6 x86x64 minimized installation, no desktop environment
Ip:192.168.8.3
0x02: installing vncserver
The package name of vncserver under centos is tigervnc-server. We can query this package through yum.
Yum list | grep vnc
Install tigervnc-server
Yum install tigervnc-server-y
This completes the installation of tigervnc-server and its dependent packages
0x03: configuring vnc server
First, we enter vncserver in shell, where we will enter the vnc connection authentication password
Vncserver
Then we open multiple connected desktop numbers, such as: 1, 2, 3. Wait
Add the following information to the last line of vim / etc/sysconfig/vncserver: VNCSERVERS= "1:root 2:root 3:root" VNCSERVERARGS [1] = "- geometry 800x600" VNCSERVERARGS [2] = "- geometry 800x600" VNCSERVERARGS [3] = "- geometry 800x600"
0x04: iptables opens port 5900, 5901, 5902
The default vncserver 5900 corresponds to Desktop 1, and so on.
Iptables-- line-nLiptables-I INPUT 4-p tcp-- dport 5900 nLiptables 5902-j ACCEPTservice iptables save
0x05: start vnc server
Add vncserver to boot
Chkconfig vncserver onservice vncserver start
0x06: testing
Download a vnc-viewer client tool to test vncserver
After a successful connection, the following screen appears
0x07: problem
Some friends said that after the vnc connection, the screen was black and could not be operated. At this time, something must have gone wrong. Check the cause. Check the log first. Then let's take a look at the vnc log.
Cdcd .vncless localhost.localdomain\: 1.log
The following errors were found
Prompt that the command used by vncserver is missing, so let's install it through yum.
Yum install xsetroot twm xterm-y
Then the kill vncserver process
Vncserver-kill: 1vncserver: 1
Or restart vnc server.
Service vncserver restart
Then test, basically no problem. Thank 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.