On TurboVNC server side,
#!/bin/bash -f
# for turbovnc
sed -ibak`date +%Y%m%d%H%M%S` \
-e 's/# $wm = "";/$wm = "xfce";/' \
-e 's/# $serverArgs = "";/$serverArgs = "-listen tcp";/' \
-e 's/# $securityTypes = ".*";/$securityTypes = "TLSPlain";/' \
/etc/turbovncserver.conf
sed -ibak`date +%Y%m%d%H%M%S` \
-e 's/#permitted-security-types = .*/permitted-security-types = TLSPlain/' \
/etc/turbovncserver-security.conf
# for pam.
cat > /etc/pam.d/turbovnc << EOF
auth include password-auth
account include password-auth
session include password-auth
EOF
On client side, use `-nosessmgrauto' to disable OTP securitytype.
/opt/TurboVNC/bin/vncviewer -sshport 22 -nosessmgrauto
Disable power management,
cat > /etc/xdg/xfce4/kiosk/kioskrc << EOF
[xfce4-session]
Shutdown=root
EOF
参考资料