Xrdp: xRDP server connections results in error 0xd06 on Microsoft Remote Desktop for Android

Created on 2 Jun 2015  ·  62Comments  ·  Source: neutrinolabs/xrdp

Connecting from the Microsoft Remote Desktop Android app to a xRDP server results in error 0xd06.

client

Most helpful comment

noorders branch draws properly now if the client does not support orders.
It compresses the bitmaps now at all color depths, no need to edit xrdp.ini.

All 62 comments

Yes, I saw this too.
The new version of MS RDP client on Android does not support orders at all.
It's either GFX or Bitmaps Updates.
xrdp login screen always used orders. We need to change this for future MS clients.
Currently it's only Andriod and Window RT client.

This also need to be fixed for RemoteFX and windows client(MSTSC).
Currently xrdp RemoteFX (Windows 7.1 mode) only works with NeutrinoRDP / FreeRDP because the login screen is drawn with orders, then codec mode is started after login.
The windows client errors when it sees orders.

I would not say this an issue with xdrp but the RDP client itself.
The app worked well until Microsoft updated it.

@anonymau5 I think you're wrong, if the client announce it does only gfx or bitmap updates, the server should not try to use other orders.

Well GFX and Bitmap updates are not what RDP called orders.
In fact this client reports that it does no orders.
Yea, this is a technically an xrdp issue but what the user sees is that it worked, then they did an update and now it does not. So it seems like a client issue.
Without orders(and GFX) the client can not even fill a rect with a color.

A couple of MS RDP guys contacted me about this after some customers complained to them.
It's nice to know they care about xrdp now.
Also they said that more of their client will be shipped like this in the future so I'm going to fix this sooner rather than later.
There is a bunch of todos in the code about this that need to be completed.

Jay

Hi Jay,

I'm really grateful you guys are continuing development of xrdp. Keep up the great work!

I was wondering if you've been able to solve the error with Android MS RDP clients... My iOS version does not have a problem connecting to my Linux Mint server, though I do have problems using the keyboard entry so I resort to OnBoard for entering texts.

Would appreciate any news on your progress.

Best,

Andres

Jay,

I'm checking in to see whether there is any progress on this issue? Are there any updates that you can share?

I would be also interested about this issue, it would be great il i coud use the app on my phone or from my windows tablet...

The range of RDP clients affected from this issue broadened a bit: the Chrome RDP client throws the above mentioned error on me, making my Chromebook a lot less usable than anticipated. An update would be appreciated very much...

I have this issue as well.

I'm in the same boat having both a Chromebook and Android devices. Hoping I can find a solution for Android at least.

@timnolte for Android I'm using an old version (8.0.5.24406) of the Microsoft Remote Desktop client that seems to be working with xrdp. You can find the apk around by googling it or ask me if you can't find it.

@karas84 Thank you for the information. Currently, it is the easiest workaround.

@karas84 I can't find the apk of that version unless I go to cringy websites which I don't trust. if you could somehow send it to me it would mean the world to me <3

Any update? It's been almost a year since the talk of a fix.

Yes guys the older version of Rd client in Android app is working fine with rpi2.. Fortunately I have an apk of it.. If you need it post your email I'd so that I can share thro cloud

I'm having issues with this as well. Any updates? Major bummer to not be able to access my pine64 (raspberry pi competitor) from my android phone.

spiedy and Jay are working on this issue in noorders branch.
will be fixed in a few more weeks.

Thank you for notifying us

That's great, guys. Appreciate your work on this awesome and useful project!

Some photos of a xoom tablet connecting to xrdp noorders branch.
http://server1.xrdp.org/xrdp/xoom/

@jsorg71 did you make some config changes? Compiled from nooders but stil getting protocol error.

@kowalski7cc yea, limit to bpp to 16 in xrdp.ini
32 is not done yet.
Remember, it's early testing.

Hi dears , I have the similar issue , how can i solve it ? Compiling the source code in noorders branch solve it totally ? Or have special configuration ?

If you'd like to join early testing, compile noorders branch and configure as Jay says.

diff --git a/xrdp/xrdp.ini b/xrdp/xrdp.ini
index 34adb07..0a02073 100644
--- a/xrdp/xrdp.ini
+++ b/xrdp/xrdp.ini
@@ -6,7 +6,7 @@ bitmap_cache=yes
 bitmap_compression=yes
 port=3389
 allow_channels=true
-max_bpp=32
+max_bpp=16
 fork=yes
 # minimum security level allowed for client

Keeping my eyes on this :)

Hi,
I get stuck on compiling libpainter when running Make. (Raspberry Pi 2 / Raspbian Jessie (ARM))
Any suggestions?

RK

I have the same problem using 2x Parallels Mobile Client on Android. When attempting to connect a blue rectangle flashes in the upper left corner of the screen and then I receive an error Code[1b/00020005] RDP Internal error.

noorders branch draws properly now if the client does not support orders.
It compresses the bitmaps now at all color depths, no need to edit xrdp.ini.

the noorders branch isn't compiling for me today:

make[2]: Entering directory '/home/john/common/devel/xrdp/xrdp'
  CC       funcs.o
  CC       lang.o
  CC       xrdp.o
  CC       xrdp_bitmap.o
  CC       xrdp_cache.o
  CC       xrdp_encoder.o
  CC       xrdp_font.o
  CC       xrdp_listen.o
  CC       xrdp_login_wnd.o
  CC       xrdp_mm.o
  CC       xrdp_painter.o
xrdp_painter.c:23:38: fatal error: painter.h: No such file or directory
compilation terminated.
Makefile:539: recipe for target 'xrdp_painter.o' failed
make[2]: *** [xrdp_painter.o] Error 1
make[2]: Leaving directory '/home/john/common/devel/xrdp/xrdp'
Makefile:443: recipe for target 'all-recursive' failed
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory '/home/john/common/devel/xrdp'
Makefile:375: recipe for target 'all' failed
make: *** [all] Error 2

I think you need to grab the libpainter sub module.
Try:
git submodule init
git submodule update
בתאריך יום ב׳, 26 בספט׳ 2016 ב-19:39 מאת John Leach <
[email protected]>:

the noorders branch isn't compiling for me today:

make[2]: Entering directory '/home/john/common/devel/xrdp/xrdp'
CC funcs.o
CC lang.o
CC xrdp.o
CC xrdp_bitmap.o
CC xrdp_cache.o
CC xrdp_encoder.o
CC xrdp_font.o
CC xrdp_listen.o
CC xrdp_login_wnd.o
CC xrdp_mm.o
CC xrdp_painter.o
xrdp_painter.c:23:38: fatal error: painter.h: No such file or directory
compilation terminated.
Makefile:539: recipe for target 'xrdp_painter.o' failed
make[2]: ** [xrdp_painter.o] Error 1
make[2]: Leaving directory '/home/john/common/devel/xrdp/xrdp'
Makefile:443: recipe for target 'all-recursive' failed
make[1]: *
* [all-recursive] Error 1
make[1]: Leaving directory '/home/john/common/devel/xrdp'
Makefile:375: recipe for target 'all' failed
make: *** [all] Error 2


You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub
https://github.com/neutrinolabs/xrdp/issues/246#issuecomment-249624974,
or mute the thread
https://github.com/notifications/unsubscribe-auth/ADTH1A6WRIR4_bejySf79hW_X-u8_5v7ks5qt_VagaJpZM4EzwRZ
.

Idan Freiberg

PGP FP: 8108 7EC9 806E 4980 75F2 72B3 8AD3 2D04 337B 1F18

Yes, you need to make and make install for the submodule.
Use the devel branch of libpainter.
I changed this to be more standard. It used to link to the .a file in the sub directory but I don't think anyone liked that.
The librfxcodec sub module will be like that soon too.

I am no longer able to connect from Windows 10 with either mstsc or the Remote Desktop app using the latest noorders branch version. The advanced region support commits in August appear to cause the issue. If I revert to the last commit in July, I am able to connect. I never got 32-bit color to work with mstsc, however 32-bit color does work with the Remote Desktop app.

If libpainter should be installed before building xrdp, I think libpainter (and librfxcodec) should be packages separately pacakged, right?

I'm not sure about the standard library style but I like current librfxcodec or libxrdp style is easy for me to package. But do people dislike linking to the library in sub directory?

I will fit RH-Matic/o-Matic to

We thought it will be better not to separate it at first, so it will be
easy to deploy it for distro maintainers.
The idea is just to statically link xrdp against libpainter at first.
בתאריך יום ד׳, 28 בספט׳ 2016 ב-18:57 מאת metalefty <[email protected]

:

If libpainter should be installed before building xrdp, I think libpainter
(and librfxcodec) should be packages separately pacakged, right?

I'm not sure about the standard library style but I like current
librfxcodec or libxrdp style is easy for me to package. But do people
dislike linking to the library in sub directory?

I will fit RH-Matic/o-Matic to


You are receiving this because you commented.
Reply to this email directly, view it on GitHub
https://github.com/neutrinolabs/xrdp/issues/246#issuecomment-250211685,
or mute the thread
https://github.com/notifications/unsubscribe-auth/ADTH1KrPVMZeqDtrJALKrP2wjCT0jAjEks5quo6FgaJpZM4EzwRZ
.

Idan Freiberg

PGP FP: 8108 7EC9 806E 4980 75F2 72B3 8AD3 2D04 337B 1F18

Now you can test noorders branch using X11RDP-RH-Matic!
Checkout develop branch and run with noorders branch. Please wait a moment for Debian distros.
I'm going to support the build of noorders branch in X11RDP-_o_-Matic.

git clone --branch develop https://github.com/metalefty/X11RDP-RH-Matic.git
cd X11RDP-RH-Matic
./X11RDP-RH-Matic.sh --branch noorders

So there.is a way to use rd client for xrdp? Or is mess up anymore?

As far as I understand, there should be a release with the fix soon, because metalefty wrote in the #429 issue:

We started to make a new release. The new release will be 0.9.1. ...
It will be released before the end of December to be in time for Debian stretch.

This should be fixed in 0.9.1 which will be released today. --enable-painter option is needed to connect from Android client.

Does anyone has some idea how to build and configure noorders branch on raspbian (debian distro). It would be really nice to be able to connect to xrdp from my windows 10 mobile remote desktop app!

You don't need the "noorders" branch anymore. You can use "devel" branch, just pass --enable-painter to configure.

Could someone who has version 8.0.5.24406 of the Microsoft Remote Desktop client for Android please post the MD5 digest of the apk? I would be very grateful. Btw, thanks for all the great work you are doing on xrdp!

The md5 of that apk is 7294d7c2bed885f66948191e0cb2d9b4

I'm still getting this "0xd06" error on my Android RD Client, using the 0.9.1 version built from the devel branch, synced on 1/25/2017, configured with --enable-painter. xrdp server is running, and I can connect to it from a Windows PC with no issue, but just not with the Android app. This is very frustrating, as I'm going on a trip tomorrow and wanted to be able to remote into my build box for some testing. Any ideas what the problem could be?

EDIT: I also adjusted the max_bpp=16 as per an earlier post with no effect.

EDIT 2: Actually I just tried connecting from Windows, and at least I'm getting the login screen, but then I'm getting s "session bus" error when trying to connect to Xorgxrdp. So my problem must lie elsewhere.

I suggest that you download as many Android RDP clients as possible, and try them when you have time. My collection includes Parallels Legacy, Parallels, MS RDP client, MS RDP client Beta, Remoter, and aFreeRDP. The last two should be most compatible. I also suggest trying X11rdp backend. xorgxrdp has some RFX issues with Parallels clients.

I'm still getting this "0xd06" error on my Android RD Client, using the 0.9.1 version built from the devel branch, synced on 1/25/2017, configured with --enable-painter. xrdp server is running, and I can connect to it from a Windows PC with no issue, but just not with the Android app. This is very frustrating, as I'm going on a trip tomorrow and wanted to be able to remote into my build box for some testing. Any ideas what the problem could be?

Same here on the Windows 10 mobile Remote Desktop app.

Working for me with xrdp v0.9.1 (release tag). The Android client is 8.1.44.223.
I'll look at Windows 10 mobile app.

screenshot_20170130-094526

I am not experienced with linux, so what do i have to do exactly with --enable-painter to make xrdp compatible with android?

EDIT1: At the moment xrdp on my raspberry pi 3B can not be accessed by android remote desktop client because of error 0xd06.

I was able to resolve this by following the updated instructions for building xrdp and xorgxrdp from source. Now all of my Android RDP clients are able to connect.

@SRaent Follow this guide: https://github.com/neutrinolabs/xrdp/wiki/Building-on-Debian-8

But modify the line
./configure --enable-fuse --disable-rfxcodec --enable-mp3lame --enable-pixman --disable-painter --disable-ipv6

to

./configure --enable-fuse --disable-rfxcodec --enable-mp3lame --enable-pixman --enable-painter --disable-ipv6

This worked for me for my windows mobile clients.

Windows Mobile in the sense of 'Windows 10 Mobile' or real Windows Mobile?

Windows 10 Mobile using the UWP remote desktop preview client.

Ah, i seem to remember that real Windows Mobile's built-in Terminal Services Client works fine with xRDP

@SRaent As the same as @lamarios said, have a try on --enable-painter and follow the Debian build instructions with the newest release. I've tested on my raspberry pi 3B, and xrdp works with Android Tablet Microsoft RD Client, after sudo service xrdp restart.

@KitKay7 Same experience on my Pi2 with UWP Remote Desktop

@jsorg71 close?

Already fixed since v0.9.1, closing.

Thanks @lamarios @KitKat7
With your advices I was able to make work Android Microsoft Remote Desktop 8.1.55.290
Just after ./configure I needed to issue a "make clean"

I tried the current command line (./configure --enable-fuse --enable-mp3lame --enable-pixman)
from https://github.com/neutrinolabs/xrdp/wiki/Building-on-Debian-8
but Android MS rdp client didn't work for me

Thanks everybody!

I was able to use the android RDP client with xrpd version 0.9.1 on ubuntu 16.04. I added --enable-painter.

./configure --enable-fuse --enable-mp3lame --enable-pixman --enable-painter

from https://github.com/neutrinolabs/xrdp/wiki/Building-on-Debian-8

I was not able to make a build. First I received warning about no configuration file in libpainter and then Error 2 also because of libpainter. What am I missing? I also tried all versions after 0.9.1. 0.9.1 is the only version that is buildable, but then I cannot use Android rdp connection. Also on Windows 10 I cannot login. I can enter credentials and connection is established but I am stuck on a green screen and after some minutes I receive message that connection is having some problems. I am testing this on Pinebook with Armbian Ubuntu 16.04 LTS.

This is what I followed:
http://ethernetworkingnotes.blogspot.de/2017/01/install-latest-xrdp-release-on-ubuntu.html

I encountered this problem as I used on old PC running Debian 7 and xrdp as the remote desktop server. The Microsoft client on Android failed with error code 0xd06 but I found another package called aFreeRDP which worked OK.

@petertalbot why don't you mention xrdp version?

Was this page helpful?
0 / 5 - 0 ratings

Related issues

zilongo picture zilongo  ·  7Comments

eduardolucioac picture eduardolucioac  ·  3Comments

porunov picture porunov  ·  3Comments

MoonMoon1919 picture MoonMoon1919  ·  5Comments

sblack1969 picture sblack1969  ·  7Comments