Vnc view installation and use
1. Installation
For vnc remote connection, you need to install vnc server on the server side and vnc viewer on the client side.
Here I mainly study how to install vnc viewer on my computer to remotely connect to the server.
1) vnc viewer download
Download address: https://www.realvnc.com/en/connect/download/viewer/
(here we download win64)
2) Confirm whether the server is installed with vncserver
First confirm whether your server is configured with vncserver, you can type the following command on the command line to check:
rpm -qa |grep vnc
vnc-server-4.1.2-14.el5 #返回VNCSEVER服务器端版本说明你已经安装了VNCSERVER。
2. Use vnc
Start vncserver, the first time you start vncserver, you will be prompted to enter a password
vncserver
You will require a password to access your desktops.
Password: 123456 #输入vnc 连接密码
Verify: 123456 #确认vnc密码
----------------------------------------------
#也可以使用如下命令
vncserver -geometry 1090x1080 :3 #设置vncserver的分辨率
Then enter the server ip and vncserver port number in vnc view:
Close open vnc ports:
vncserver -kill :1 #后面接端口号,kill后面要有空格
3. The vnc view encountered a problem
Vnc encounters an unencrypted connection problem.
When opening the previously connected vnc view, it is found that the page is a black screen, so a port is opened
vncserver -geometry 1090x1080 :3
After continue, enter the password, but cannot log in;
after searching online, I found that the configuration needs to be modified: ~./vnc/xstartup
Modify your own folder,
add the xstarup file in front
export XKL_XMODMAP_DISABLE=1
add after
gnome-panel &
gnmoe-settings-daemon &
metacity &
nautilus &
gnome-terminal &
After adding, as shown in the figure below:
After saving, open a port again, and you can get the normal graphical interface.