简体   繁体   English

XRDP - 连接到同一会话(多个用户)

[英]XRDP - Connect to the same session (multiple users)

I'm trying to setup a rdp server, but I have some problems with sessions. 我正在尝试设置rdp服务器,但是我遇到了一些会话问题。 Basically the user should connect to the same (existing) session, but I can't find a solution featuring multiple users. 基本上用户应该连接到相同的(现有的)会话,但我找不到具有多个用户的解决方案。

I tried setting the xrdp port to a certain number, but the problem was that every user connected to the same session. 我尝试将xrdp端口设置为某个数字,但问题是每个用户都连接到同一个会话。 Of course user1 should not be able to connect to the session of user2. 当然user1不能连接到user2的会话。 Setting the port to "ask-1" in the xrdp.ini goes into the right direction, but this can not be a solution because I can't expect the user to keep the port number in mind. 在xrdp.ini中将端口设置为“ask-1”是正确的方向,但这不是解决方案,因为我不能指望用户记住端口号。 Just basic skilled people should use the server. 只是基本技术人员应该使用服务器。

Moreover I tried to use tightvnc, but I just got the same results. 此外我尝试使用tightvnc,但我得到了相同的结果。

I hope somebody could help me and solve my first question :) 我希望有人可以帮助我解决我的第一个问题:)

I would like to copy the instructions from nm 's shared article here. 我想在这里复制nm共享文章中的说明。

  • echo mate-session > ~/.xsession
    • We can use other sessions as well. 我们也可以使用其他会话。 For example, "xfce4-session". 例如,“xfce4-session”。
    • Each user has his/her own ".xsession" file. 每个用户都有他/她自己的“.xsession”文件。
  • sudo service xrdp restart

The problem comes from the dependency use by xrdp, you have to remove vnc4server . 问题来自xrdp的依赖使用,你必须删除vnc4server

Then install tightvncserver instead . 然后安装tightvncserver

Next, re install xrdp . 接下来,重新安装xrdp

Xrdp should now use tightvncserver, so each user can reconnect to their own session automatically. Xrdp现在应该使用tightvncserver,因此每个用户都可以自动重新连接到自己的会话。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM