乞丐版 GCP VPS 装 Xfce 桌面并支持 VNC 远程登录

>>> 如果 VPS 在 n1-normal-1 级别以上,可以考虑一键脚本搭支持 windows 远程桌面的环境,Windows 上不用装软件,对小白友好 <<< * 乞丐版 GCP 就是指 f1-micro 配置(1 个 vCPU,0.6 GB 内存) 参考 https://www.howtoing.com/how-to-install-and-configure-vnc-on-debian-9 0. 防火墙设置 VNC 使用 TCP 端口 5900-5906,防火墙和 VM 实例的网络标记先设置好。 可参考 https://zelikk.blogspot.com/2019/01/gcp-v2ray-firewall_1.html 1. VPS 上安装 Xfce TightVNC IceWeasel 更新软件源 apt update 安装 Xfce apt install xfce4 安装 TightVNC apt install tightvncserver 会弹窗选择键盘布局,直接回车选默认的 US 如果在安装过程中卡住不动。(经常是在装 dbus 的时候) Ctrl+C 中止,再用下面这条命令继续。 参考 https://unix.stackexchange.com/questions/441438/gcp-debian-stuck-at-setting-up-dbus dpkg --configure -a 执行 vncserver ,设置 vnc 密码(6-8 位,大于 8 位会被截断)。view-only password 不设置。 root@xfce-vnc:~# vncserver You will require a password to access your desktops. Password: Verify: Would you like to enter a view-only password (y/n)? n xauth: file /root/.Xauthority does not exist New 'X' desktop is xfce-...