Installation and configuration of LinuxVNC service
Source: Internet
Author: User
Installation and configuration of LinuxVNC service 1. VNCServer configuration on Redhat this article takes the VNC server not installed in the current Linux system as the basic. if it is already installed, skip section 1st! Prerequisites: 1. connect to the Internet and use yum to install the VNC server online. verify that SSH is running 1. install Tig... linux VNC service installation and configuration 1. VNC Server configuration on Redhat this article takes the VNC Server not installed in the current Linux system as the basic. if it is already installed, skip section 1st! Prerequisites: 1. connect to the Internet and use yum to install the VNC server online. verify that SSH is running 1. install TigerVNC Server # yum search tigervnc-server returns the following: tigervnc-server.x86_64: A TigerVNC Server tigervnc-server-applet.noarch: Java TigerVNC Viewer applet for TigerVNC Server tigervnc-server-module.x86. _ 64: TigerVNC Mode to Xorg... the first line is the VNS server we want to install, the second line is the client, execute # yum install tigervnc-server.x86_64 enter will have a installation confirmation, enter y and then press Enter to install, after the installation is complete, return to the command line and enter the cursor to execute # vncs Erver will prompt you to enter the verification password, at least six digits. this password is used for client connection. 2. modify the configuration file and activate the graphic interface. run the following command: # vi/root /. vnc/xstartup comment out this line # twm & // add a line at the end of this line gnome-session & // add this line to save and exit 3. start the VNC service and run the command #/etc/init. d/vncserver start or # service vncserver start prompt after startup: Starting VNC server: no displays configured [FAILED] solution: run the command # vim/etc/sysconfig/vncservers to modify the last two lines, for example, VNCSERVERS = "1: root" VNCSERVERARGS [1] = "-geometry 1024x768" description: first behavior service configuration, currently only one VNC service is configured, start with the user root, if you still need to use its When a user logs in, he can modify the VNCSERVERS value, for example, "1: root 2: tiger" (tiger is another user in the system ). The second line can be commented out, which is to configure the window resolution. you need to remove the following-localhost VNC Server and automatically start the execution command with the system # sudo chkconfig -- level 345 vncserver on 4. stop the VNC service and run the command #/etc/init. d/vncserver stop or # service vncserver stop 2. in Windows, use VNC Viewer to ACCESS Linux. first install RealVNC, download it from the Internet, Run VNC Viewer, and enter the IP address, followed: 1 indicates using the root user to log on. 1: root configured on RH. if you want to use another user to log on, adjust the number after the colon. the password is previously configured. To solve the problem of connection failure, run the command to check what the VNC listening port is. open the port in the firewall. # netstat-ntupl | grep vnc return list, for example: 1. tcp 0 0 0.0.0.0: 5901 0.0.0.0: * LISTEN 4411/Xvnc 2. tcp 0 0 0.0.0.0: 6001 0.0.0.0: * LISTEN 4411/Xvnc 3. tcp 0 0: 6001: * LISTEN 4411/Xvnc modify the firewall configuration file and open port 5901 # vi/etc/sysconfig/iptables can copy a row of port 22, paste the modification and restart the Firewall service # service iptables restart
The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion;
products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the
content of the page makes you feel confusing, please write us an email, we will handle the problem
within 5 days after receiving your email.
If you find any instances of plagiarism from the community, please send an email to:
info-contact@alibabacloud.com
and provide relevant evidence. A staff member will contact you within 5 working days.