TurboVNC with LightDM+Xfce desktop preparation

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

TIMESTAMP=`date +%Y%m%d%H%M%S`

# install pkgs
yum -y groupinstall 'X Window system'
yum -y install epel-release
yum -y groupinstall xfce
yum -y remove gdm
yum -y install lightdm
yum -y install wget
yum -y install perl

# firewalld
systemctl disable firewalld --now

# selinux
sed -i_bak`date +%Y%m%d%H%M%S` \
    's/^\s*SELINUX=.*/SELINUX=disabled/g' \
/etc/selinux/config

# add a file to disable non-privilege users' powermanagement
mkdir -p /etc/xdg/xfce4/kiosk
cat > /etc/xdg/xfce4/kiosk/kioskrc << EOF
[xfce4-session]
Shutdown=root
EOF

# setup for TurboVNC
wget https://turbovnc.org/pmwiki/uploads/Downloads/TurboVNC.repo -O /etc/yum.repos.d/TurboVNC.repo
yum -y install turbovnc

#

猜你喜欢

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