Configuration of VNC Remote Desktop Connection Based on RHEL6.0 VNC: VirtualNetworkcomputing Virtual Network Computer 1. Check whether the vnc software is installed and set a password for vnc: 123456 [root @ localhost ~] # Rpm-qvnc-servervnc-server-4.1.2-14.el5_3.1 [RHEL6.0-based VNC Remote Desktop Connection Configuration
VNC: Virtual Network computing Virtual Network Computer
1. Check whether vnc software is installed and set the password for vnc: 123456
- [root@localhost ~]# rpm -q vnc-server
- vnc-server-4.1.2-14.el5_3.1
- [root@localhost ~]# vncpasswd
- Password:
- Verify:
- [root@localhost ~]# vncserver &
- [1] 6024
- [root@localhost ~]#
- New 'localhost.localdomain:1 (root)' desktop is localhost.localdomain:1
-
- Creating default startup script /root/.vnc/xstartup
- Starting applications specified in /root/.vnc/xstartup
- Log file is /root/.vnc/localhost.localdomain:1.log
2. Open the vnc software, enter 172.16.22.1: 1 (1 is to open the desktop), and enter the password: 123456
650) this. width = 650; "border = 0>
650) this. width = 650; "border = 0>
650) this. width = 650; "border = 0>
Note: The gnome graphic interface is not enabled, so the above figure is displayed on login!
3. Change the configuration file to support graphical interfaces
# Cd. vnc
# Vim xstartup
Change the last line to gnome-session &
Enable the last two lines of the comment line,
650) this. width = 650; "border = 0>
Modify the content in the box as required.
- # vncserver -kill :2
- # vncserver -kill :1
- # vncserver &
- # chkconfig vncserver on
Then log on to vnc to test:
650) this. width = 650; "border = 0>
Haha, it's successful! Even if your linux host is in the command line mode, I can connect it with VNC and use the graphic interface. However, it should be noted that, due to the plaintext nature of password transmission, it is not recommended to use it over the Internet. It is best to use it locally.