安装步骤
1.更新软件包,安装轻量级桌面lxde,安装远程桌面xrdp,安装中文语言包:
apt-get update && apt-get install -y lxde xrdp fonts-wqy-zenhei xfonts-intl-chinese
2.设置成中文:
sudo locale-gen zh_CN.UTF-8 && sudo update-locale LANG=zh_CN.UTF-8
3.防火墙放行:
sudo ufw allow 3389
4.重启reboot,让中文生效。或者断开ssh,重新连接一次,中文也可以生效。
输入:locale
改密码:passwd
卸载
卸载远程桌面,并还原语言为英文
apt remove –purge -y lxde xrdp
echo ‘LANG=”en_US.UTF-8″‘ > /etc/default/locale
update-locale LANG=en_US.UTF-8