当前位置:   article > 正文

TurboVNC with LightDM+Xfce desktop preparation_${sysconfdir}/xdg/xfce4/kiosk/kioskrc

${sysconfdir}/xdg/xfce4/kiosk/kioskrc

Below shows the script to prepare TurboVNC with LightDM+Xfce deskt

  1. TIMESTAMP=`date +%Y%m%d%H%M%S`
  2. # install pkgs
  3. yum -y groupinstall 'X Window system'
  4. yum -y install epel-release
  5. yum -y groupinstall xfce
  6. yum -y groupinstall "Fonts"
  7. yum -y remove gdm
  8. yum -y install lightdm
  9. yum -y install wget
  10. yum -y install perl
  11. # firewalld
  12. systemctl disable firewalld --now
  13. # selinux
  14. sed -i_bak`date +%Y%m%d%H%M%S` \
  15. 's/^\s*SELINUX=.*/SELINUX=disabled/g' \
  16. /etc/selinux/config
  17. # add a file to disable non-privilege users' powermanagement
  18. mkdir -p /etc/xdg/xfce4/kiosk
  19. cat > /etc/xdg/xfce4/kiosk/kioskrc << EOF
  20. [xfce4-session]
  21. Shutdown=root
  22. EOF
  23. # setup for TurboVNC
  24. #wget https://turbovnc.org/pmwiki/uploads/Downloads/TurboVNC.repo -O /etc/yum.repos.d/TurboVNC.repo
  25. wget https://raw.githubusercontent.com/TurboVNC/repo/main/TurboVNC.repo -O /etc/yum.repos.d/TurboVNC.repo
  26. yum -y install turbovnc
  27. # modify conf for TurboVNC
  28. sed -i_bak${TIMESTAMP} \
  29. -e 's/#\s*$wm = .*/$wm = "xfce";/g' \
  30. -e 's/#\s*$serverArgs = .*/$serverArgs = "-listen tcp";/g' \
  31. -e 's/#\s*$securityTypes = .*/$securityTypes = "TLSOtp, TLSPlain, X509Otp, X509Plain,OTP, UnixLogin, Plain";/g' \
  32. /etc/turbovncserver.conf
  33. sed -i_bak${TIMESTAMP} \
  34. -e 's/^#\s*permitted-security-types = .*/permitted-security-types = TLSOtp, TLSPlain, X509Otp, X509Plain, OTP/g' \
  35. /etc/turbovncserver-security.conf
  36. # modify conf for ssh and sshd
  37. echo "AcceptEnv DISPLAY" >> /etc/ssh/sshd_config
  38. systemctl restart sshd
  39. echo "SendEnv DISPLAY" >> /etc/ssh/ssh_config
  40. # swicth to grahphical
  41. systemctl set-default graphical.target
  42. systemctl isolate graphical.target

声明:本文内容由网友自发贡献,不代表【wpsshop博客】立场,版权归原作者所有,本站不承担相应法律责任。如您发现有侵权的内容,请联系我们。转载请注明出处:https://www.wpsshop.cn/w/很楠不爱3/article/detail/239855?site
推荐阅读
相关标签
  

闽ICP备14008679号