Setting up TurboVNC on CentOS 7.9

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

参考资料

https://turbovnc.org/Documentation/Compatibility30

猜你喜欢

转载自blog.csdn.net/thesre/article/details/122955649