Linux systems are often used for remote maintenance and management in the command line state. What tools should be used for connection maintenance and management if a graphical environment is required? During routine maintenance in windows, pcAnywhere or remote desktop is used for remote connection. Is there any software similar to pcAnywhere in Linux? The answer is, of course, VNC, a software comparable to pcAnywhere.
Next let me introduce how to install and use Linux.
System Requirements: to use VNC, of course, your Linux system uses a graphical environment, that is, the xwindows, gnome, or KDE environment is installed when the system is installed.
Install and use the RPM package:
First, go to the official VNC website to download the corresponding VNC software version.
Official VNC Website: http://www.realvnc.com /. The latest version is vnc4.4.3. Download the latest RPM package for Linux.
2. Install the VNC software.
# Rpm-IVH vnc-E4_4_3-x86_linux.rpm
# Rpm-uvh vnc-E4_4_3-x86_linux.rpm (if the server has already installed VNC, use this command to upgrade the installation)
Third, because the download is for the Enterprise Edition, you need to enter the serial number for normal use.
# Vnclicense-add XXXXX-XXXXX-XXXXX-XXXXX-XXXXX (input serial number)
4. Set the VNC connection password.
# Vncpasswd (enter the VNC connection password)
Note: If you do not set a password, you will be prompted to set a password when you start the VNC service using vncserver.
5. Start the VNC service.
# Vncserver (start VNC Server)
New 'X' desktop is Linux: 1 (remember the number after the colon, which is the VNC server number)
Creating default startup./root/. VNC/xstartup
Starting applications specified in/root/. VNC/xstartup
Log File is/root/. VNC/Linux: 1.log
6. Disable the VNC service.
# Vncserver-kill: 1 (disable the VNC Server)
Note: there is a space between kill and: 1.
Tarball installation and use:
First, go to the official VNC website to download the corresponding VNC software version.
Official VNC Website: http://www.realvnc.com /. The latest version is vnc4.4.3. Download the latest tarball package for Linux.
2. Install the VNC software.
# Tar zxvf vnc-E4_4_3-x86_linux.tar.gz
# Cd vnc-E4_4_3_r16583-x86_linux
#./Vncinstall/usr/local/bin/usr/local/man (install the binary and man files of VNC)
Third, because the download is for the Enterprise Edition, you need to enter the serial number for normal use.
# Vnclicense-add XXXXX-XXXXX-XXXXX-XXXXX-XXXXX (input serial number)
4. Set the VNC connection password.
# Vncpasswd (enter the VNC connection password)
Note: If you do not set a password, you will be prompted to set a password when you start the VNC service using vncserver.
5. Start the VNC service.
# Vncserver (start VNC Server)
New 'X' desktop is Linux: 1 (remember the number after the colon, which is the VNC server number)
Creating default startup./root/. VNC/xstartup
Starting applications specified in/root/. VNC/xstartup
Log File is/root/. VNC/Linux: 1.log
6. Disable the VNC service.
# Vncserver-kill: 1 (disable the VNC Server)
Note: there is a space between kill and: 1.
FAQ
1. When vncviewer is used to access the VNC server, the message "encryption mismatch" is reported?
A: The only method is to switch to the Professional edition or Enterprise Edition to vncviewer.
2. The default desktop accessed by the client is only X, and a gray interface is displayed. How can I see the KDE or GNOME desktop?
A: edit the. VNC/xstartup file in the user directory where the VNC service is started. Modify the file as follows:
Xsetroot-solid gray vncconfig-iconic & xterm-geometry 80x24 + 10 + 10-ls-title "$ vncdesktop desktop" & # gnome-session & (start GNOME Desktop # Remove)
Startkde (start KDE Desktop)
# TWM & (start command line)
3. Where is the VNC password management file?
A: In the VNC/passwd directory where the VNC service is started.
4. Where is the VNC access log file?
A: In the user directory where the VNC service is started, VNC/*: 1.log.
5. When VNC is started, "a vnc Server is already running as: 1" is reported. What is the problem?
A: It indicates that a user has started the VNC service. You can run PS aux | grep VNC to check whether a VNC process exists. If yes, it indicates that someone is in the process: 1. Enable the VNC service on the desktop, if no, it indicates that the last time the VNC service was enabled, it was not normally exited. You can delete/tmp /. x11-unix X1 and restart the VNC service.
6. The VNC service can be started normally on the Linux server, but the client cannot connect to the server and reports 10061 timeout. What is the problem?
A: It should be about setting the firewall on the Linux server. Check the firewall setting rules.