chmod 644 /etc/yum.repos.d/CentOS-Base.repo
sed -i "s/8.0.1905/$releasever/g" /etc/yum.repos.d/CentOS-Base.repo
Two, installation language, fonts, graphical interface
yum install glibc-common -y
yum install wqy-*-fonts -y
yum groupinstall "Xfce" -y
Three, install input method and browser
yum install ibus ibus-gtk2 ibus-gtk3 ibus-libpinyin im-chooser gtk2-immodule-xim gtk3-immodule-xim firefox -y
Fourth, configure RDP remote support
yum install tigervnc-server xrdp -y
Five, modify the character set to support Chinese, call xfce when configuring remote
echo 'LANG=zh_CN.utf8' > /etc/locale.conf
source /etc/locale.conf
echo '#!/bin/bash' > ~/.Xclients
echo 'XFCE="$(which xfce4-session 2>/dev/null)"' >> ~/.Xclients
echo 'exec "$XFCE"' >> ~/.Xclients
chmod +x /root/.Xclients && chkconfig xrdp on && service xrdp restart
systemctl set-default graphical.target
reboot
Seven, use remote software to go to Linux with remote graphical interface like remote Windows
I have integrated the above steps into a shell script, and directly sh xfce.sh can also achieve the goal.
Recommended Posts