Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

enable local drive redirection with x11vnc backend #1891

Closed
van-1 opened this issue May 19, 2021 · 5 comments
Closed

enable local drive redirection with x11vnc backend #1891

van-1 opened this issue May 19, 2021 · 5 comments

Comments

@van-1
Copy link

van-1 commented May 19, 2021

Hello.
I successufully setup xrdp and tested it with xorg rdp.

Now I am interested in next case:

  1. i opened session in local console
  2. started x11vnc
  3. now i am trying connect with mstc (from win10 with enabled local drive redirection) to xrdp server

In this case local drive redirection does not work. Is it possible to enable local drive redirection with x11vnc backend ?

@matt335672
Copy link
Member

Hi @van-1

You can do it with xrdp. However you'll need the latest version (v0.9.16) to do this, as previous versions didn't support it.

Process is as follows:-

  1. In /etc/xrdp/xrdp.ini, add this line to the [Xvnc] stanza that you're using to connect:-
    chansrvport=DISPLAY(0)
    
  2. Restart the xrdp service
  3. Start your console session, and run x11vnc
  4. Run xrdp-chansrv in your console session
  5. Connect from mstsc.exe

Couple of other notes:-

  1. If you end the desktop from the remote login, the xrdp-chansrv process will be killed without getting a chance to clean up. If that happens you'll have to run the command fusermount -u ~/thinclent_drives to be able to start a new one.
  2. If xrdp-chansrv isn't running, you'll get a noticeable delay in the connection startup time, while xrdp looks for it.

Let us know how it goes.

@metalefty
Copy link
Member

I recommend using standard xorgxrdp session rather than x11vnc hack. RDP to localhost will provide consistent experience.

@van-1
Copy link
Author

van-1 commented May 21, 2021

Hi @van-1

You can do it with xrdp. However you'll need the latest version (v0.9.16) to do this, as previous versions didn't support it.

Process is as follows:-

1. In `/etc/xrdp/xrdp.ini`, add this line to the `[Xvnc]` stanza that you're using to connect:-
   ```
   chansrvport=DISPLAY(0)
   ```

2. Restart the `xrdp` service

3. Start your console session, and run `x11vnc`

4. Run `xrdp-chansrv` in your console session

5. Connect from `mstsc.exe`

Couple of other notes:-

1. If you end the desktop from the remote login, the xrdp-chansrv process will be killed without getting a chance to clean up. If that happens you'll have to run the command `fusermount -u ~/thinclent_drives` to be able to start a new one.

2. If xrdp-chansrv isn't running, you'll get a noticeable delay in the connection startup time, while xrdp looks for it.

Let us know how it goes.

Hi.
Thanks. Your advise was very useful.
Now we are testing this schema.

@matt335672
Copy link
Member

Hi @van-1

Anything else you need from us on this?

@metalefty
Copy link
Member

Closing due to no updates.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants