1小时入门tigervnc

For rhel6

# install
yum install -y tigervnc tigervnc-server
chkconfig tigervnc on
/etc/init.d/tigervnc start

# vi /etc/sysconfig/vncservers
VNCSERVERS="1:usera 2:userb"
VNCSERVERARGS[1]="-geometry 1440x1080 -nolisten tcp -AcceptCutText=0 -SendCutText=0 -AllowOverride=0"
VNCSERVERARGS[2]="-geometry 1440x1080 -nolisten tcp -AcceptCutText=0 -SendCutText=0 -AllowOverride=0"

For rhel7

# install
yum install -y tigervnc tigervnc-server
systemctl enable vncserver && systemctl restart vncserver
# config 
cp /lib/systemd/system/[email protected]  /etc/systemd/system/vncserver@:1.service
# vi /etc/systemd/system/vncserver@:1.service
43 ExecStart=/usr/sbin/runuser -l  -c "/usr/bin/vncserver %i -geometry 1440x1080 -nolisten tcp -AcceptCutText=0 -SendCutText=0 -AllowOverride=0"
44 PIDFile=//.vnc/%H%i.pid
systemctl daemon-reload