vncserver installation

My environment is centos6.5. If the desktop is not installed, first execute:
# yum groupinstall "X Window System" "Desktop"

# yum install tigervnc-server tigervnc

# vim /etc/sysconfig/vncservers
  Add the following two lines at the end:

VNCSERVERS ="1:root"
VNCSERVERARGS[1]="-geometry 1024x768 -alwaysshared -depth 24"

# cd /usr/bin
to start
# ./vncserver :1
close -kill and : must have a space between
# /vncserver -kill :1


Reference article: http://www.ha97.com/4634.html, this article is very well written. After I started the VNC connection, I couldn't see the desktop. Finally, I was reminded that it was caused by myself. I didn't install the desktop environment when I installed the system at the beginning.

Guess you like

Origin http://10.200.1.11:23101/article/api/json?id=326865499&siteId=291194637