"su - ${display##*:} -c "cd && [ -f .vnc/passwd ] && vncserver ${ARGS} :${display%%:*}"" 然后编辑/etc/sysconfig/vncservers: # The VNCSERVERS variable is a list of # display:user pairs. # # Uncomment the line below to start a VNC server on # display :1 as my 'myusername' (adjust this to your