3, if the use of vnc-viewer expected to appear graphical interface (6.x is the default graphical interface, do not adjust), you need to make the following adjustments (add two lines).
# vi/etc/sysconfig/vncservers
A simple explanation for two lines of code
Vncservers= "2:root" indicates that the 5802 port number corresponds to the root account.
vncserverargs[2]= "-geometry 1000x720" indicates resolution
4, modify the X11 configuration file, red annotation removed (5.x is the default logoff, 6.x is the default to open)
# Vi/root/.vnc/xstartup
#!/bin/sh
# Uncomment the following two lines for normal desktop:
Unset Session_manager
Exec/etc/x11/xinit/xinitrc
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.