Linux Xrdp 远程桌面

发布时间: 更新时间: 总字数:328 阅读时间:1m 作者: IP上海 分享 网址

Xrdp 是一个微软 远程桌面协议(RDP) 的开源实现,支持通过图形界面控制远程 Linux 系统

安装

安装 ubuntu desktop

sudo apt install ubuntu-desktop

ubuntu desktop 远程软件:

sudo apt install xrdp xorgxrdp
  • 配置
    • 配置文件 /etc/xrdp/xrdp.ini
    • Xrdp 使用 /etc/ssl/private/ssl-cert-snakeoil.key,它仅仅对 ssl-cert 用户组成语可读,将 xrdp 用户添加到这个用户组
sudo adduser xrdp ssl-cert

使用

  • 启动服务,监听在 3389 端口
sudo systemctl enable xrdp
sudo systemctl restart xrdp
  • 链接
    • Windows:搜索栏输入 remote,点击 Remote Desktop Connection
    • Mac 使用软件 Windows App for Mac(原名 Microsoft Remote Desktop
    • Ubuntu 使用软件 Remmina 或者 Vinagre

F&Q

xrdp_wm_log_msg: login failed for display 0

  • /var/log/xrdp.log 看到如上错误日志
  • 创建 /etc/xrdp/xrdp.ini 中配置的用户:
sudo useradd -m ask
adduser ask sudo
passwd ask

$ sudo vi /etc/sudoers
ask ALL=(ALL) ALL

ask 用户登录黑屏

日志文件 /home/ask/.xorgxrdp.10.log 错误

[   211.842] (EE) Please also check the log file at ".xorgxrdp.10.log" for additional information.
[   211.842] (EE)
[   211.842] (WW) xf86CloseConsole: KDSETMODE failed: Bad file descriptor
[   211.842] (WW) xf86CloseConsole: VT_GETMODE failed: Bad file descriptor
[   211.847] (EE) Server terminated with error (1). Closing log file.
  • 解决
sudo apt install xorgxrdp
Home Archives Categories Tags Statistics
本文总阅读量 次 本站总访问量 次 本站总访客数