Linux remote desktop VNC installation

Although linux can use ssh to connect remotely, sometimes it is necessary to use linux remote desktop, such as installing and configuring oracle. At this time, VNC is used to choose vnc mainly
because of the following two points:
1. The VNC scheme is relatively easy to configure
. 2 . VNC supports multiple desktop connections, and each desktop can continue the task when the network is disconnected.
3. The xmanager may be connected by UDP, and there are certain problems when it is not on the same network segment. There is still a solution for the time being.

Download resource link: http://download.csdn.net/detail/ll413343176/7675805


Installation steps:
1. Check whether VNC has been installed
[root@sky ~]# rpm -qa|grep vnc
tigervnc-server-1.0.90-0.17.20110314svn4359.el6.x86_64
If the above content appears, it proves that it has been installed. Otherwise, you need to install


2. Install VNC
Find tigervnc-server-1.0.90-0.17.20110314svn4359.el6.x86_64.rpm from the CD, copy it to radhat by ftp, and use the rpm command to install
rpm -ivh tigervnc-server-1.0.90-0.17.20110314svn4359.el6.x86_64.rpm


3. Close the firewall
service iptables stop


4. Configure after installation
Go to other users
with - sky

Execute vncserver, prompt for a password, enter:

sky@sky /]# vncserver


You will require a password to access your desktops.


Password:123456 #Enter the vnc connection password


Verify:123456 #Confirm vnc password


: creating new authority file /home/sky/.Xauthority


New ‘sky:1 (sky)’ desktop is sky:1


Creating default startup script /home/sky/.vnc/xstartup
Starting applications specified in /home/sky/.vnc/xstartup
Log file is /home/sky/.vnc/sky:1.log

5. Start the client vnc-4_1_3-x86_win32_viewer.exe, enter the corresponding address 192.168.1.107:1 in the address bar to open the default vnc desktop


6. Check the help document, you can see that multiple vncservers can be started, just execute the vncserver command multiple times
[sky@sky ~]$ vncserver


New 'sky:4 (sky)' desktop is sky:4


Starting applications specified in /home/sky/.vnc/xstartup
Log file is /home/sky/.vnc/sky:4.log


7. Check the process and listening port corresponding to each vncserver, and open the file
/home/sky/.vnc/sky:4.pid

You can see that the pid of sky:4 is 4149

You can see that the listening port is 5904 by using the command, and you can connect to the desktop by using 192.168.1.107:5904
[sky@sky .vnc]$ netstat -anp|grep 4191
tcp        0      0 0.0.0.0:5904                0.0.0.0:*                   LISTEN      4191/Xvnc 

Guess you like

Origin blog.csdn.net/ll413343176/article/details/38110263