In Linux, vnc is configured, and VirtualNetworkComputing is short for virtual network computers. VNC is an excellent remote control tool software developed by the famous AT & amp; T European research laboratory. VNC is a free open source software based on UNIX and Linux operating systems. it has powerful remote control capabilities and is highly efficient and practical. its performance can be comparable to any remote control software in Windows and MAC. In Linux, VNC includes the following
Configure vnc in Linux to implement remote desktop in linux
VNC (Virtual Network Computing) is short for Virtual Network computers. VNC is an excellent remote control tool software developed by the famous AT&T European research laboratory. VNC is a free open source software based on UNIX and Linux operating systems. it has powerful remote control capabilities and is highly efficient and practical. its performance can be comparable to 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 commands: vncserver and vncviewer.
Installation method:
1: First, check whether your system has installed the vnc service (installed by default)
Rpm-q vnc-server
Command output:
Package vnc is not installed
Vnc-server-4.1.2-14.el5_3.1
The installation is complete, and you do not need to install it again.
2. modify the user's configuration file
# Vi/etc/sysconfig/vncservers
The modification content is as follows:
VNCSERVERS = "1: root" indicates the channel ID and user name used.
VNCSERVERARGS [2] = "-geometry 1024x768-nolisten tcp-nohttpd-localhost" adjust the resolution of the remote desktop
3: Set the remote logon password
# Vncpasswd
4. modify the remote desktop and display the configuration file parameters.
# Vi ~ /. Vnc/xstartup
# Twm &
Comment out twm and add the following two lines
Gnome-session &
Startkde &
Save. if this configuration file is not found during the first configuration and you need to start the vnc service, the xstarup file will be generated.
4. start the vnc service.
/Sbin/service vncserver start
5. firewall settings
If a firewall exists, follow the following configurations:
Vi/etc/sysconfig/iptables
Use the vi editor to open the configuration file and add the following command to the file:
-A rh-Firewall-l-INPUT-p tcp-m tcp -- dport 5900: 5903-j ACCEPT
Restart the firewall to make the configuration file take effect
Service iptables restart
6: Now you can log on remotely. open the VNC Viewer.