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 > Development >
Share
Shulou(Shulou.com)06/01 Report--
This article mainly introduces the relevant knowledge of "how to install and configure VNC Server under Linux". Xiaobian shows you the operation process through actual cases. The operation method is simple and fast, and practical. I hope this article "how to install and configure VNC Server under Linux" can help you solve the problem.
VNC stands for Virtual Network Console. It is an excellent remote control tool software, VNC is based on UNIX and Linux operating system free open source software, remote control capabilities powerful, efficient and practical, its performance can be and Windows and MAC in any remote control software comparable.
Server installation (CentOS 6.*)
1. Check whether VNC is installed on the server;
rpm -qa |grep vnc2. If VNC is not installed, enter the following command to install it;
yum install tigervnc tigervnc-server -y3, After installation, edit the file for configuration;
vim /etc/sysconfig/vncservers Copy the last two lines and remove the comments at the beginning of the line, then modify them as follows:
Configuration Description:
1. VNCSERVERS configure the username for logging in to the remote desktop;
2. The default listening port of VNC is 5900, and the listening port rule is 590+usernumber [for example, 2:root corresponds to port number 5902]
3. VNCSERVERARGS[2] login desktop configuration;[2 is user serial number, 1366×768 is resolution, -nolisten tcp is to block tcp packets, -nohttpd is to block http packets, -localhost represents only listening locally. For example: VNCSERVERARGS[2]="-geometry800 ×600 -nolisten tcp -nohttpd -localhost"]
4. Set the password, enter it twice;
vncpasswd5, Start vncserver service
/etc/init.d/vncserver start or service vncserver start or restart service vncserver restart
vim /root/.vnc/xstartup comment out twm & and add gnome & at the end, as shown in the figure:
Note: If Linux GUI is not installed, you need to install: rpm -qa| grep gnome [Check if graphical interface is installed] yum groupinstall "X Window System" "Chinese Support" "Desktop"[Install]
7. If Linux opens the firewall, you need to manually open the corresponding port;
iptables -I INPUT -p tcp --dport 5902 -j ACCEPT8, Set vncserver service to boot automatically, Restart Linux complete;
chkconfig vncserver on "How to install and configure VNC Server under Linux" is introduced here, thank you for reading. If you want to know more about industry-related knowledge, you can pay attention to the industry information channel. Xiaobian will update different knowledge points for you every day.
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.