Ubuntu desktop
跳到导航
跳到搜索
Remote(Windows)
Port: 3389, 3350
- apt install ubuntu-desktop
- apt install xrdp
- systemctl restart xrdp
如果访问出问题,需要将相应用户加入组:
- adduser xrdp ssl-cert
# /var/log/xrdp.log
# [ERROR] Cannot read private key file /etc/xrdp/key.pem: Permission denied
# -rw-r----- 1 root ssl-cert 1704 Nov 18 05:58 /etc/ssl/private/ssl-cert-snakeoil.key
VNC
apt install xfce4 xfce4-goodies xorg dbus-x11 x11-xserver-utils
apt install tigervnc-standalone-server tigervnc-common
- INIT: vncserver
- Run : vncserver :1 -localhost no -geometry 1280x800 -depth 32
no 允许远程机器连接,默认不允许
- List: vncserver -list
- Exit: vncserver -kill :1