GithubHelp home page GithubHelp logo

neutrinolabs / xrdp Goto Github PK

View Code? Open in Web Editor NEW
5.3K 179.0 1.7K 16.11 MB

xrdp: an open source RDP server

Home Page: http://www.xrdp.org/

License: Apache License 2.0

Shell 0.88% C 95.92% Makefile 0.64% C++ 1.02% QMake 0.02% M4 1.48% ActionScript 0.04%
remote-desktop c linux

xrdp's Introduction

Build Status Gitter Apache-License

Latest Version

xrdp - an open source RDP server

Overview

xrdp provides a graphical login to remote machines using Microsoft Remote Desktop Protocol (RDP). xrdp accepts connections from a variety of RDP clients:

  • FreeRDP
  • rdesktop
  • KRDC
  • NeutrinoRDP
  • Windows MSTSC (Microsoft Terminal Services Client, aka mstsc.exe)
  • Microsoft Remote Desktop (found on Microsoft Store, which is distinct from MSTSC)

Many of these work on some or all of Windows, Mac OS, iOS, and/or Android.

RDP transport is encrypted using TLS by default.

demo

Features

Remote Desktop Access

  • Connect to a Linux desktop using RDP from anywhere (requires xorgxrdp Xorg module)
  • Reconnect to an existing session
  • Session resizing (both on-connect and on-the-fly)
  • RDP/VNC proxy (connect to another RDP/VNC server via xrdp)

Access to Remote Resources

Supported Platforms

xrdp primarily targets GNU/Linux operating system. x86 (including x86-64) and ARM processors are most mature architecture to run xrdp on. See also Platform Support Tier.

Some components such as xorgxrdp and RemoteFX codec have special optimization for x86 using SIMD instructions. So running xrdp on x86 processors will get fully accelerated experience.

Quick Start

Most Linux distributions should distribute the latest release of xrdp in their repository. You would need xrdp and xorgxrdp packages for the best experience. It is recommended that xrdp depends on xorgxrdp, so it should be sufficient to install xrdp. If xorgxrdp is not provided, use Xvnc server.

xrdp listens on 3389/tcp. Make sure your firewall accepts connection to 3389/tcp from where you want to access.

Ubuntu / Debian

apt install xrdp

RedHat / CentOS / Fedora

On RedHat and CentOS, make sure to enable EPEL packages first.

yum install epel-release

Install xrdp package.

yum install xrdp

yum is being replaced with dnf, so you may need to use dnf instead of yum in the above commands.

Compiling

See also https://github.com/neutrinolabs/xrdp/wiki#building-from-sources

Prerequisites

To compile xrdp from the packaged sources, you need basic build tools - a compiler (gcc or clang) and the make program. Additionally, you would need openssl-devel, pam-devel, libX11-devel, libXfixes-devel, libXrandr-devel. More additional software would be needed depending on your configuration.

To compile xrdp from a checked out git repository, you would additionally need autoconf, automake, libtool and pkg-config.

Get the source and build it

If compiling from the packaged source, unpack the tarball and change to the resulting directory.

If compiling from a checked out repository, please make sure you've got the submodules cloned too (use git clone --recursive https://github.com/neutrinolabs/xrdp)

Then run following commands to compile and install xrdp:

./bootstrap
./configure
make
sudo make install

If you want to use audio redirection, you need to build and install additional pulseaudio modules. The build instructions can be found at wiki.

Directory Structure

xrdp
├── common ······ common code
├── docs ········ documentation
├── fontutils ··· font handling utilities
├── genkeymap ··· keymap generator
├── instfiles ··· installable data file
├── keygen ······ xrdp RSA key pair generator
├── libpainter ·· painter library
├── librfxcodec · RFX codec library
├── libxrdp ····· core RDP protocol implementation
├── m4 ·········· Autoconf macros
├── mc ·········· media center module
├── neutrinordp · RDP client module for proxying RDP connections using NeutrinoRDP
├── pkgconfig ··· pkg-config configuration
├── scripts ····· build scripts
├┬─ sesman ······ session manager for xrdp
|├── chansrv ···· channel server for xrdp
|├── libsesman ·· Code common to sesman and its related executables
|└── tools ······ session management tools for sys admins
├── tests ······· tests for the code
├┬─ tools ······· tools
|└┬─ devel ······ development tools
| ├── gtcp_proxy  GTK app that forwards TCP connections to a remote host
| └── tcp_proxy · CLI app that forwards TCP connections to a remote host
├── vnc ········· VNC client module for xrdp
├── vrplayer ···· QT player redirecting video/audio to clients over xrdpvr channel
├── xrdp ········ main server code
├── xrdpapi ····· virtual channel API
├── xrdpvr ······ API for playing media over RDP
└── xup ········· xorgxrdp client module

xrdp's People

Contributors

akarl10 avatar aquesnel avatar arvidnorr avatar awakecoding avatar ben-cohen avatar bolkedebruin avatar derekschrock avatar firewave avatar hiero32 avatar iskunk avatar itamarjp avatar jgrandy-a8 avatar jsorg71 avatar kenhys avatar lawrencek avatar lk2000 avatar matt335672 avatar metalefty avatar mgorny avatar moobyfr avatar natureshadow avatar nexarian avatar nicolar avatar pmhahn avatar proski avatar seflerz avatar speidy avatar tomato-one avatar westporch avatar ziggythehamster avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

xrdp's Issues

Howto Setup keymapper correctly

Hi, I tried to setup the keymapper 0407 correctly, it seems that some keys are stuck, like the Super modifier. I'm not sure if this happens because of the Xorg version or something to do with the keymapper, but this is really annoying.

I still hav 0.6 version from ubuntu. Is it worth to update to this revision? Stuck Keys seem to be a big issue...

Help me. Freerdp1 wrapper compiling error!

Hi,
Firstly,I have compiled the FreeRDP client (the latest code from their master branch) .
Then,I tried to compile xrdp server with --enable-freerdp1 (in order to use this module for RDP PROXY), compiling fails at freerdp1 part:

Making all in freerdp1
make[2]: Entering directory /root/xrdp/xrdp-master/freerdp1' /bin/sh ../libtool --tag=CC --mode=compile gcc -DHAVE_CONFIG_H -I. -I.. -I../common -I -DXRDP_CFG_PATH=\"/etc/xrdp\" -DXRDP_SBIN_PATH=\"/usr/local/sbin\" -DXRDP_SHARE_PATH=\"/usr/local/share/xrdp\" -DXRDP_PID_PATH=\"/var/run\" -DXRDP_NODEBUG -g -O2 -MT xrdp-freerdp.lo -MD -MP -MF .deps/xrdp-freerdp.Tpo -c -o xrdp-freerdp.lo xrdp-freerdp.c libtool: compile: gcc -DHAVE_CONFIG_H -I. -I.. -I../common -I -DXRDP_CFG_PATH=\"/etc/xrdp\" -DXRDP_SBIN_PATH=\"/usr/local/sbin\" -DXRDP_SHARE_PATH=\"/usr/local/share/xrdp\" -DXRDP_PID_PATH=\"/var/run\" -DXRDP_NODEBUG -g -O2 -MT xrdp-freerdp.lo -MD -MP -MF .deps/xrdp-freerdp.Tpo -c xrdp-freerdp.c -fPIC -DPIC -o .libs/xrdp-freerdp.o xrdp-freerdp.c: In function ‘lfreerdp_cache_glyph’: xrdp-freerdp.c:958: error: incompatible types when assigning to type ‘struct GLYPH_DATA *’ from type ‘GLYPH_DATA’ xrdp-freerdp.c:966: error: incompatible types when assigning to type ‘GLYPH_DATA’ from type ‘int’ xrdp-freerdp.c: In function ‘lfreerdp_cache_brush’: xrdp-freerdp.c:1033: error: incompatible types when assigning to type ‘BYTE[256]’ from type ‘int’ xrdp-freerdp.c: In function ‘mod_init’: xrdp-freerdp.c:1810: error: ‘struct rdp_freerdp’ has no member named ‘context_size’ xrdp-freerdp.c:1811: warning: assignment from incompatible pointer type make[2]: *** [xrdp-freerdp.lo] Error 1 make[2]: Leaving directory/root/xrdp/xrdp-master/freerdp1'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/root/xrdp/xrdp-master'
make: *** [all] Error 2
[root@localhost xrdp-master]#

After I checked the definition of function "lfreerdp_cache_glyph" in the file" xrdp-freerdp.c" and the definition of "CACHE_GLYPH_ORDER" in the file "secondary.h" which is in the project of Freerdp ,I found that in the old version of Freerdp,the definition is "GLYPH_DATA* glyphData[255]" ,but in the latest version of Freerdp ,the definition is "GLYPH_DATA glyphData[255]".
Furthermore,I found a lot of similar situations in other files, So I guess that the xrdp project is not updated with the latest version of Freerdp in time.Does anyone have the same proplem?Or who have the latest xrdp(the latest code from their master branch)that can match the latest code of Freerdp?
And my email address is "[email protected]". Thanks a lot.

mstsc is crashing when using neutrinordp proxy with RAIL

I'm trying to connect: win7 using mstsc.exe -> xrdp with neutrinordp proxy -> win7 (rail server)
in RAIL mode, i.e. only Notepad window will be painted.

In this situation mstsc.exe crashes.
It seems like the win7 rail server sends the RAIL Handshake PDU as excpected and neutrinordp module is proxying it back to mstsc client.

Problem is that mstsc doesn't respond to the RAIL Handshake PDU, then mstsc crashes.

Update www.xrdp.org links!

xrdp.org does include the news about the switch to github:
http://www.xrdp.org/index.php?option=com_content&view=category&layout=blog&id=1&Itemid=2

However, this is not mentioned on the start page and all links still go to sourceforge.

I only found out there is a repository on github because I was confused that the repository is older than the last release and github is the first where I search.
Only after that I also found the news in xrdp.org

Searching in Google the first repository I find after SF is gitorious, where there also isn't a note that the new repository is at github.

Clipboard can`t transport big file!

use XRDP(based on 2012-5-28) as proxy and use libxrdpfreerdp1.so(based on 2013-4-21) as a rdp client plugin.
llibxrdpfreerdp1.so was based on a lot of freerdp Dynamic Link Library(based on 2013-4-21)

client is windows 7 (6.1.7601)
XRDP was installed on CENTOS 5.8
server is windows 2003 R2 X86 enterprise (5.2.3790)

1:
I copy a big file of 200MB in win7, and paste it in server 2003,it works well at fisrt.
2:
after I move mouse in server 2003 or type some words, the remote desktop to server 2003 was crashed.
3:
when I connect to server 2003 again,I see the error Messagebox:
pic1
it means can`t copy ywaqsj.tar: I /O operation has been abandoned because of either a thread exit or an application request.

unicode copy/paste does not working and breaks the clipboard

server: xrdp+x11rdp on debian 6
clients: ubunut, win7,..

when users login to server clipboard works fine, but when they copy any unicode string and try to paste that in remote server, operation fails and also clipboard does not work for non unicode texts and they should relogin (logout/login not disconnect/connect) to server again.

Clipboard could not use in win7 or xp

Hi,
When I use Rdesktop in Linux as client to access my remote desktop throught XRDP, I found my remote desktops clipboard works well. but when I use mstsc in win7 or xp ,Clipboard couldnt work. I don`t know why. I hope you can solve this problem.

I use libxrdpfreerdp1.so

The colormap is all NULL!

Thanks for teaching me use the NeutrinoRDP module for proxies instead of the FreeRDP module for XRDP last time.
(I download NeutrinoRDP from https://github.com/neutrinolabs/NeutrinoRDP.git and XRDP from https://github.com/FreeRDP/xrdp.git )

In order to compile xrdp server correctly,I fixed two problem as follows:

(1)the code between line 136 and 139 in the file NeutrinoRDP/channels/xrdpvr/xrdpvr_player.c is

136 #if defined(DISTRO_UBUNTU1204) || defined(DISTRO_UBUNTU1111)
137 #define CODEC_TYPE_VIDEO AVMEDIA_TYPE_VIDEO
138 #define CODEC_TYPE_AUDIO AVMEDIA_TYPE_AUDIO
139 #endif

but the operation system of my xrdp server is CentOS:
LSB Version: :base-4.0-amd64:base-4.0-noarch:core-4.0-amd64:core-4.0-noarch:graphics-4.0-amd64:graphics-4.0-noarch:printing-4.0-amd64:printing-4.0-noarch
Distributor ID: CentOS
Description: CentOS release 6.4 (Final)
Release: 6.4
So,I had to comment out the line 136 and line 139 for being able to use the redefine CODEC_TYPE_VIDEO and CODEC_TYPE_AUDIO in other place.

(2)In the same file, the code in line 385 and line 386:
385 //case AV_SAMPLE_FMT_U8:
386 case SAMPLE_FMT_U8:
I commented out line 386 and used the line 385.
After fixed the two problems , I have compiled the xrdp correctly and make install xrdp. In order to build xrdp with neutrinordp module , I ran ./configure --enable-neutrinordp and modify the xrdp.ini configuration,added the following codes:
[xrdp8]
name=neutrinordp-any
lib=libxrdpneutrinordp.so
ip=ask
port=ask3389
username=ask
password=ask

But when I tested the neutrinordp-any, the error occured!I used remote desktop of my host which is the windows system to connect the xrdp server. Having connected the xrdp server, I choose the neutrinordp-any to connect another windows server. The running log of xrdp as follows:

lib=libxrdpneutrinordp.so
mod_init:
FreeRDP version major 1 minor 0 revision 1
here
lfreerdp_context_new: 0x1af34b0
loaded module 'libxrdpneutrinordp.so' ok, interface size 404976, version 2
lfreerdp_pre_connect:
The colormap is all NULL
^Cshutting down
signal 2 threadid 0x7f812b41c7c0

The the connected aborted! The above mentioned output maybe from the file /neutrinordp/xrdp-neutrinordp.c in XRDP
How can I solve this problem?

Futhermore I used the VNC to connected the xrdp server directly, and using the following commands to connect the same windows server through the NeutrinoRDP client, it also failed:
[root@localhost .vnc]# /root/xrdp/NeutrinoRDP/client/X11/xfreerdp -u admin 172.16.210.112
in freerdp_context_new
connected to 172.16.210.112:3389
connected to 172.16.210.112:3389
connected to 172.16.210.112:3389
null server certificate
X Error of failed request: BadMatch (invalid parameter attributes)
Major opcode of failed request: 1 (X_CreateWindow)
Serial number of failed request: 32
Current serial number in output stream: 36

Thanks for reading this issue. And I really don’t know how to do about this.

Black screen talking to win 2k server

This is build using freerdp (fd0e93c35f) and xrdp master (c5862f3) , single sign on works to Win2K8 R2, WIn2K8 and Win2K3 ok. Using libfreerdp1 to win2k gives black screen. I tried without specifying the username and password and still blackscreen typing a username password assuming login box was generating log output (debug build).

X11rdp: segmentation fault

This is called from a virtual terminal, calling from xrdp-sesman results in the same error:

$ X11rdp :10
InitOutput:

X11rdp, an X server for xrdp
Version 0.7.0
Copyright (C) 2005-2012 Jay Sorg
See http://xrdp.sf.net for information on xrdp.
Underlying X server release 10903000, The X.Org Foundation
Screen width 800 height 600 depth 24 bpp 32
dpix 100 dpiy 100
buffer size 1920000

Backtrace:
0: X11rdp (0x400000+0x228e8) [0x4228e8]
1: X11rdp (0x400000+0x13607) [0x413607]
2: /lib/libc.so.6 (0x7f0813b26000+0x349f0) [0x7f0813b5a9f0]
3: X11rdp (fbInitializeColormap+0x125) [0x4b528d]
4: X11rdp (0x400000+0xbaa2f) [0x4baa2f]
5: X11rdp (0x400000+0xb5c3c) [0x4b5c3c]
6: X11rdp (0x400000+0xaa65e) [0x4aa65e]
7: X11rdp (0x400000+0xd0926) [0x4d0926]
8: X11rdp (0x400000+0xaaa3b) [0x4aaa3b]
9: X11rdp (0x400000+0xc80e) [0x40c80e]
10: /lib/libc.so.6 (__libc_start_main+0xed) [0x7f0813b4738d]
11: X11rdp (0x400000+0xc4a9) [0x40c4a9]
Segmentation fault at address 0x2

Fatal server error:
Caught signal 11 (Segmentation fault). Server aborting

Stuck modifier keys

I've recently come across an issue where clients get stuck modifier keys when accessing a XRDP server with X11RDP back-end.

Key combinations like Ctrl+C, Ctrl+=, Ctrl+-, etc. invariably result in a 'stuck' un-modified key, i.e.:

Ctrl+C gives me Ctrl+C upon key down, but CCCCCCCCCCCCCCCCCCCCCCCCC as soon as I lift either key (either Ctrl or C), until I press something else.

This can be amazingly destructive, and seems to occur on builds from a month ago onwards (older builds that used xrdp 0.6.0 and whatever was the then-current X11RDP version work fine, but newer builds and reinstalls I've been trying to do since end of May have this issue).

Please HELP me!!!

Hi,
I want to use xrdp as a RDP to RDP proxy with driver redirection and clipboard. I just do as the article say: " #8 ".
I compile FreeRDP and XRDP (both are downloaded from git, the latest master version) succeed, but when I connecting through "freerdp-any", the system told me: "error loading libxrdpfreerdp1.so specified in xrdp.ini, ....", I checked the libxrdpfreerdp1.so and find this problem:

[joader@bogon xrdp]$ ldd libxrdpfreerdp1.so
linux-gate.so.1 => (0x00270000)
libcommon.so.0 => /usr/local/lib/xrdp/libcommon.so.0 (0x00532000)
libcrypto.so.10 => /usr/lib/libcrypto.so.10 (0x00dae000)
libssl.so.10 => /usr/lib/libssl.so.10 (0x0089c000)
libpthread.so.0 => /lib/libpthread.so.0 (0x00376000)
libfreerdp-core.so.1.1 => not found
libc.so.6 => /lib/libc.so.6 (0x00391000)
libdl.so.2 => /lib/libdl.so.2 (0x006c9000)
libz.so.1 => /lib/libz.so.1 (0x00110000)
libgssapi_krb5.so.2 => /lib/libgssapi_krb5.so.2 (0x00124000)
libkrb5.so.3 => /lib/libkrb5.so.3 (0x00164000)
libcom_err.so.2 => /lib/libcom_err.so.2 (0x00c8f000)
libk5crypto.so.3 => /lib/libk5crypto.so.3 (0x00d53000)
libresolv.so.2 => /lib/libresolv.so.2 (0x00241000)
/lib/ld-linux.so.2 (0x00b22000)
libkrb5support.so.0 => /lib/libkrb5support.so.0 (0x00c7c000)
libkeyutils.so.1 => /lib/libkeyutils.so.1 (0x0025b000)
libselinux.so.1 => /lib/libselinux.so.1 (0x0053f000)
[joader@bogon xrdp]$ whereis libfreerdp-core.so.1.1
libfreerdp-core.so.1: /usr/local/lib/libfreerdp-core.so.1.1

Please give me some advise to solve the problem, thanks!!!

Can change caption in title bar of mstsc.exe

when use mstsc.exe to access remote server through xrdp proxy , the caption of mstsc.exe is xrdp proxy‘s ip. A lot of remote servers should be access and manage by me, so I can’t determine which remote server is.
Should someone know how to change the caption of mstsc.exe into the remote server‘s ip?
Can xrdp send a message to mstsc.exe which let it change the caption to real remote server’s ip?

Please HELP me!!!

Hi,
I want to use xrdp as a RDP to RDP proxy with driver redirection and clipboard. I just do as the article say: " #8 ".
I compile FreeRDP and XRDP (both are downloaded from git, the latest master version) succeed, but when I connecting through "freerdp-any", the system told me: "error loading libxrdpfreerdp1.so specified in xrdp.ini, ....", I checked the libxrdpfreerdp1.so and find this problem:

[joader@bogon xrdp]$ ldd libxrdpfreerdp1.so
linux-gate.so.1 => (0x00270000)
libcommon.so.0 => /usr/local/lib/xrdp/libcommon.so.0 (0x00532000)
libcrypto.so.10 => /usr/lib/libcrypto.so.10 (0x00dae000)
libssl.so.10 => /usr/lib/libssl.so.10 (0x0089c000)
libpthread.so.0 => /lib/libpthread.so.0 (0x00376000)
libfreerdp-core.so.1.1 => not found
libc.so.6 => /lib/libc.so.6 (0x00391000)
libdl.so.2 => /lib/libdl.so.2 (0x006c9000)
libz.so.1 => /lib/libz.so.1 (0x00110000)
libgssapi_krb5.so.2 => /lib/libgssapi_krb5.so.2 (0x00124000)
libkrb5.so.3 => /lib/libkrb5.so.3 (0x00164000)
libcom_err.so.2 => /lib/libcom_err.so.2 (0x00c8f000)
libk5crypto.so.3 => /lib/libk5crypto.so.3 (0x00d53000)
libresolv.so.2 => /lib/libresolv.so.2 (0x00241000)
/lib/ld-linux.so.2 (0x00b22000)
libkrb5support.so.0 => /lib/libkrb5support.so.0 (0x00c7c000)
libkeyutils.so.1 => /lib/libkeyutils.so.1 (0x0025b000)
libselinux.so.1 => /lib/libselinux.so.1 (0x0053f000)
[joader@bogon xrdp]$ whereis libfreerdp-core.so.1.1
libfreerdp-core.so.1: /usr/local/lib/libfreerdp-core.so.1.1

Please give me some advise to solve the problem, thanks!!!

how to install xrdp in Solaris x86

Hello,I have installed xrdp in Linux enviroment,it's great! Now I want to compile it in Solaris x86,but I got so many errors.can anyone tell how compile xrdp in solaris x86? Thanks!

can't pass login/pass in command line directly

Hi
When I use xfreerdp, I'm unable to pass the login/pass in the command line. I have to get the gui for entering the login/pass to succefully log in

xfreerdp -u login -p pass hostname the message is "no library name specified in xrdp.ini, please add lib=libxrdp-vnc.so or similar"

If I don't pass the password:
xfreerdp -u login hostname , I get the gui with the specified login, I enter the password and the gui log me in

is there a way to specify the module to load before ? (I have only one entry: X11rdp)

artwork looks outdated

Great tool, however the default login window looks really outdated. I propose we define some requirements and find/draw new artwork to use on the login window

Work I see so far:

  1. get rid of ugly colors like #FF0000 #00FF00 and #0000FF
  2. rearrange buttons and input fields
  3. look at lightdm/kdm/gdm for ideas

xrdp v0.7 + x11rdp fails with new Microsoft Remote Desktop for Mac

Client: Microsoft Remote Desktop Version 8.0.24091 (for Mac)
Server: xrdp v0.7 (64e2291) + x11rdp

I'm trying to connect xrdp with new Microsoft Remote Desktop for Mac.
Shortly after logged in with sesman-X11rdp, the client closes with following message.

"Reading 2 bytes of data at offset 100 in a buffer of total size 101"

This happens only with sesman-x11rdp. sesman-Xvnc works perfectly for me.

Fails: xrdp v0.7 sesman-X11rdp + new MS RD Client for Mac
Works: xrdp v0.7 sesman-Xvnc + new MS RD Client for Mac
Works: xrdp v0.7 sesman-X11rdp + MS RD Client on Win7
Works: xrdp v0.7 sesman-X11rdp + old MS RD client for Mac 2.1.0
Works: xrdp v0.7 sesman-X11rdp + xfreerdp 1.1

ElementaryOS: Luna - Failed to load session Gnome

Got XRDP 0.7.0 with X11R7.6 to compile on ElementaryOS, tried modifying the startwm.sh script to accept a pantheon-session and no dice, on rdp7.1->xrdp connection it states, "Failed to Load Session Gnome." Is this an xrdp issue or a pantheon issue? xrdp process is running just fine like in any other Debian-based distro. I wonder if it's an issue with the desktop manager. ElementaryOS utilizes a gnome2 fork known as Pantheon.

Help setting up xrdp -- blank screen after connection

I am having trouble setting up xrdp. I built the latest version of xrdp from source and installed it on my raspberry pi running wheezy. When I connect to it I only get a blank screen when I would expect the login prompt. I looked through the logs and everything looks ok, and I tried some simple modifications of the startwm.sh script, like launching xeyes, but I could not seem to figure out the issue.

Does anyone have any guidance?

Incorrect interface rendering

Hi,
Firstly,I downloaded the latest Xrdp and NeutrinoRDP source code of the master branch from the following website:
1)https://github.com/neutrinolabs/NeutrinoRDP
2)https://github.com/FreeRDP/xrdp

Then, installed them in a CentOS server successfully, but got incorrect interface rendering after the following steps:
1)Connect to a remote server which runs Windows Server 2003 using the NeutrinoRDP proxy
2)Open Notepad in the remote server
3)Paste some texts

I caputured some screenshots to demonstrat the problem and here is the link:
https://drive.google.com/folderview?id=0B0VfLkfdM8zmQk5VWHEtVWlwc3M&usp=sharing

Is this a bug in Xrdp or NeutrinoRDP? Have anyone ever been in such situation, or does anyone know how to solve this problem?
Thanks a lot.
My email address:[email protected]

Polish keyboard layout and AltGr

Hi

I need help with set Polish keyboard layout.
I try to generate file km-0415.ini but when I use this key-map I can't use Polish character ( eg. AltGR+a) and arrow keys not work correctly.

How setup Polish keyboard?

Thank you.
Dariusz

Include version tags in the repository

I am a bit confused about the versioning of xrdp.

There are no version tags in this repository. The old (sf) repo had at least a v0.4.1 tag.
So it is difficult to match versions to commits.

Then I am also unsure if 0.6.0 is the last release version (a download on SF exists) or if there is a 0.7.0 version, since there is a 0.7.0 branch that didn't receive any changes for 9 month, but there are lots of changes in master.

freerdp-any: this client could not display bitmap correctly

Hi,jsorg71

when I come to "Login to xrdp" , I choose freerdp-any "module". then,I get into the windows. everything seems ok except the bitmap. when I open a picture, the picture is displayed as a number of square blocks,some blocks display correctly,but others seems to be upside down ,that is to say , For a bitmap block, the graphics shown in the above should be shown in the below ,the bitmap block is top and bottom reversed.I think may be the coordinates of the bitmap error . I hope you can solve the problem. thank you!
ps:in xrdp.ini freerdp-any "module" set as:
[xrdp6]
name=freerdp-any
lib=libxrdpfreerdp1.so
ip=ask
port=ask3389
username=ask
password=ask

but if i choose rdp-any "module" is setted as
[xrdp5]
name=rdp-any
lib=librdp.so
ip=ask
port=ask3389
in xrdp.ini
every bitmap is display correctly
the version I use:
xrdp version:FreeRDP-xrdp-b124612
FreeRDP version:FreeRDP-FreeRDP-3996620
Client: mstsc

ScreenShot:

Mouse events lost when re-connecting to an existing session with monitor with different geometry

When you start a session with 1980x1080 and change to another system and re-connect on 1900x1200, the lower part of the screen between 1080 and 1200 is not clickable. You can see the randr info set to current=1900x1200, and max is 1900x1080. Once you explicity set the xrandr with --size to the new geometry, the lower part is clickable again.

This example works for any geometry >= 1024x768 and using any bigger geometry after that. The xrandr output also displays the correct new geometry as current size. So the max geometry should be increased once the new geometry is bigger then the max geometry.

Printer Redirection Questions

If xrdp is built using FreeRDP library support, then is it possible to redirect printers with xrdp? If not, will this capability be available in future releases? Has anyone tried to double redirect a printer? That is, log into a RDP session with a redirected printer, then log into another session with the first redirected printer to see if it in fact can be carried through and used end to end?

Thnxs

XRDP and HDD consumption

Hello,

First, this is a great service we have been using with excellent results so kudos for the developers behind it.

Then to my issue: I could not find a single post about xrdp eating HDD but after having to restart my ubuntu desktop for the second time in less than a week because the disk was apparently full I managed to verify that just restarting xrdp would free 50% of my HDD utilization! Is this something others are aware of? Is there any settings that could help with this situation?
Thanks!

  • Nestor

$ df -k

Filesystem 1K-blocks Used Available Use% Mounted on

/dev/sda1 37663756 35776368 4 100% /

$ sudo service xrdp restart

$ df -k

Filesystem 1K-blocks Used Available Use% Mounted on

/dev/sda1 37663756 17928168 17848204 51% /

Keyboard mapping problem in Xrdp

Hi
I didn't find in documentation
How is the keyboard handled after X is starting ?

I use a french keyboard the layout is loaded correctly
(local keymap file for 0x040c found and dosen't match built in keymap, using local keymap file)
I can log in with the correct keyboard.
But after the X session start, the keyboard goes back in a qwerty mode.
I have to make a "setxkbmap fr" to get the normal layout again

I'm using the current git version, the server is a lucid 10.4 , with xcfe4. I use xrdp+X11rdp
the client is rdesktop, (but I get the same with xfreerdp). The client use the option to specify the layout

I think that X11rdp is missing an option to load a default keymap
Or something must be done to change the keymap with XKB when X11rdp start

Emmanuel

OpenSuse 12.1 and YaST through xRDP

Hello Fellas!

Been having a lot of fun compiling xRDP and trying different builds on different distros. Love the new stuff coming up with freeRDP. Through all my installations I would have minor problems depending on the distro that I could overcome with some research. My latest one is with Open SuSe 12.1 x86_x64 that is rocking the xfce4 interface. Did a vanilla install with the latest git versions of x11rdp and xrdp.

Got everything working through an x11rdp connection, (an xvnc connection doesn't allow mouse use). My main problem though is that Gnome based utilities like gnome calc, gnome character map, and more importantly YaST cannot be accessed through an xrdp session from a windows client. Other programs not working in an xRDP session are all gnome based games, multimedia stuff etc. Connecting locally YaST and Gnome based apps work just fine. When I go into terminal and try to launch /sbin/yast2 during an x11xrdp session I get back:

(y2controlcenter -gnome:6838): Gdk-WARNING **: The program 'y2controlcenter-gnome' received an X Window System error.
This probably reflects a bug in the program. The error was 'BadLength (poly request too large or internal Xlib length erro'. (Details: serial 66 error_code 16 request_code 131 minor_code 47) (Note to programmers: normally, X errors are reported asynchronously; that is, you will receive the error a while after causing it. To debug your program, run it with the --sync command line option to change this behavior. You can then get a meaningful backtrace from your debugger if you break on the gdk_x_error() function.)

xrdp-chanserv crashing

When using clipboard-sharing, chanserv is crashing when copying some text (or a file) on the rdp-server during the rdp-session. It crashes as soon as CTRL+C is being hitted. Copying text from client to server works. (Until chanserv crashes, obviously).

Debug output from chanserv on CTRL+C:

[20120707-17:24:36] [DEBUG] clipboard_event_selection_owner_notify: window 29360129 subtype 0 owner 29360129 g_wnd 29360129
[20120707-17:24:36] [DEBUG] clipboard_event_selection_owner_notify: skipping, onwer == g_wnd
[20120707-17:24:36] [DEBUG] clipboard_event_selection_clear:
[20120707-17:24:36] [DEBUG] clipboard_event_selection_owner_notify: window 29360129 subtype 0 owner 31457523 g_wnd 29360129
[20120707-17:24:36] [DEBUG] clipboard_event_selection_notify:
[20120707-17:24:36] [DEBUG] clipboard_event_selection_notify: 285 TIMESTAMP 31

strace output from chanserv on CTRL+C: https://gist.github.com/3066966

Environment:

  • Client-OS: Ubuntu 10.10
  • RDP-client: rdesktop 1.6.0 / freerdp compiled from current master / Windows7 RDP-client
  • Server-OS: Ubuntu 12.04
  • RDP-server: xrdp compiled from current master
  • RDP-backend: X11rdp compiled with buildx.sh script from current xrdp master

xrdp-keygen error while loading libcommon.so.0

Hi,

I installed the latest version on the devel branch. Even if everything went fine during installation, xrdp refuses to start:

sudo service xrdp start

  • Generating xrdp RSA keys...... xrdp-keygen: error while loading shared libraries: libcommon.so.0: cannot open shared object file: No such file or directory

I'm running Ubuntu 13.04 64bit. Thanks.

xrdp error: undefined symbol: freerdp_get_version

[root@ceitos .libs]# xrdp -nodaemon
mod_init:
xrdp: symbol lookup error: /usr/local/lib/xrdp/libxrdpfreerdp1.so: undefined symbol: freerdp_get_version

[root@ceitos .libs]# ldd libxrdpfreerdp1.so
linux-gate.so.1 => (0x00a14000)
libcommon.so.0 => /root/FreeRDP-xrdp-968a293/common/.libs/libcommon.so.0 (0x0021c000)
libc.so.6 => /lib/libc.so.6 (0x0088b000)
.........

xorg: xdriinfo configure error

I had problems compiling the bundled xorg version. xdriinfo failes to configure, see the config.log.

Xdriinfo is using Xdamage, which itself tries to use the function _XGetRequest of libX11, but fails to do so. This function was not implemented until X11R7.7, here is the corresponding patch. I placed this patch into the directory xrdp/xorg/X11R7.6/ with the name libX11-1.4.0.patch, so the buildx.sh script picks it up. Configuration and compilation went fine afterwards.

I don't know, if this patch introduces some regressions by backporting it from X11R7.7 to X11R7.6. I've currently some problems with clipboard sharing, but that seems to be another problem. Otherwise, it seems to work fine.

Cheers,
Dennis

can't use GL on some configuration

on some installation, I get a undefined symbool related to _glapi_add_dispatch

(current git from 20121229)
X11rdp: symbol lookup error: /local/SVN/xrdp/xorg/X11R7.6/staging/lib/dri/swrast_dri.so: undefined symbol: _glapi_add_dispatch

(running ubuntu precise)

the buildx.sh default itself is running without problem, and X11rdp is working fine until a GL operation is called (glxgears for example)

"SSL_CTX_use_RSAPrivateKey_file failed" and segfault

Hi,

I have an issue with the server on client connection :

$ ./xfreerdp-server
Listening on 0.0.0.0 port 3389.
bind: Address already in use
We've got a client 127.0.0.1
Requested protocols: TLS(Y) NLA(n) RDP(n)
SSL_CTX_use_RSAPrivateKey_file failed
Failed to check freerdp file descriptor
Client 127.0.0.1 disconnected.
zsh: segmentation fault  ./xfreerdp-server

I'm under Archlinux, running the latest FreeRDP client/server from Github and my OpenSSL version is 1.0.1c 10 May 2012. I didn't find out how to get it working.

Here is the gdb stacktrace:

#0  0x00002aaaac74e221 in SSL_shutdown () from /usr/lib/libssl.so.1.0.0
#1  0x00002aaaab53580d in tls_disconnect (tls=0x2aaab0050c40) at /tmp/freerdp-1.0.1/libfreerdp-core/tls.c:125
#2  0x00002aaaab5387a2 in transport_disconnect (transport=0x2aaab0002700) at /tmp/freerdp-1.0.1/libfreerdp-core/transport.c:74
#3  0x00002aaaab53e305 in freerdp_peer_disconnect (client=0x607150) at /tmp/freerdp-1.0.1/libfreerdp-core/peer.c:287
#4  0x0000000000404189 in xf_peer_main_loop (arg=0x607150) at /tmp/freerdp-1.0.1/server/X11/xf_peer.c:697
#5  0x00002aaaacd86e0e in start_thread () from /lib/libpthread.so.0
#6  0x00002aaaad4a91ed in clone () from /lib/libc.so.6

Also I had another issue that I solved: with the NVidia proprietary driver, you need to add

   Option      "AllowSHMPixmaps"   "1"

in your xorg.conf in order to squeeze an error with SHM pixels on the server.

Session started, but not connected (X11rdp)

Sometime, for some users, something wrong goes on.
Je config is the current git, + X11rdp used as backend
The user log in, the login/pass is ok
The grey connexion Log windows says :
xrdp__mprocess_login_response: login successfl for display 20

started connecting
and 4 times "connect error"

But if I log into the server, I can see that X11rdp is running , and the user has a full session started.

Here some logs from xrdp-sesman.log

[20120918-14:34:41] [DEBUG] clipboard_event_selection_owner_notify: window 27262977 subtype 0 owner 27262977 g_wnd 27262977
[20120918-14:34:41] [DEBUG] clipboard_event_selection_owner_notify: skipping, onwer == g_wnd
[20120918-14:34:41] [DEBUG] clipboard_event_selection_request: g_wnd 27262977, .requestor 41943063 .owner 27262977 .selection 362 'CLIPBOARD' .target 376 .property 399
[20120918-14:34:41] [DEBUG] clipboard_event_selection_request: g_targets_atom
[20120918-14:34:42] [DEBUG] clipboard_event_selection_request: g_wnd 27262977, .requestor 41943063 .owner 27262977 .selection 362 'CLIPBOARD' .target 236 .property 399
[20120918-14:34:42] [DEBUG] clipboard_event_selection_request: UTF8_STRING
[20120918-14:34:42] [DEBUG] clipboard_send_data_request:
[20120918-14:34:42] [DEBUG] clipboard_send_data_request: data out, sending CLIPRDR_DATA_REQUEST (clip_msg_id = 4)
[20120918-14:34:42] [DEBUG] my_trans_data_in:
[20120918-14:34:42] [DEBUG] my_trans_data_in:
[20120918-14:34:42] [DEBUG] process_message_channel_data: chan_id 0 chan_flags 19
[20120918-14:34:42] [DEBUG] send_channel_data_response_message:
[20120918-14:34:42] [DEBUG] clipboard_process_data_response: CLIPRDR_DATA_RESPONSE
[20120918-14:34:42] [DEBUG] clipboard_process_data_response: requestor 41943063 data_in_len 0
[20120918-14:34:42] [DEBUG] my_trans_data_in:
[20120918-14:34:42] [DEBUG] process_message_channel_data: chan_id 0 chan_flags 19
[20120918-14:34:42] [DEBUG] send_channel_data_response_message:
[20120918-14:34:42] [DEBUG] clipboard_process_format_announce: CLIPRDR_FORMAT_ANNOUNCE
[20120918-14:34:42] [DEBUG] clipboard_send_format_ack: data out, sending CLIPRDR_FORMAT_ACK (clip_msg_id = 3)
[20120918-14:34:42] [DEBUG] my_trans_data_in:
[20120918-14:34:42] [DEBUG] clipboard_event_selection_owner_notify: window 27262977 subtype 0 owner 27262977 g_wnd 27262977
[20120918-14:34:42] [DEBUG] clipboard_event_selection_owner_notify: skipping, onwer == g_wnd
[20120918-14:34:42] [DEBUG] clipboard_event_selection_request: g_wnd 27262977, .requestor 16777355 .owner 27262977 .selection 362 'CLIPBOARD' .target 376 .property 462
[20120918-14:34:42] [DEBUG] clipboard_event_selection_request: g_targets_atom
[20120918-14:34:42] [DEBUG] clipboard_event_selection_request: g_wnd 27262977, .requestor 14681607 .owner 27262977 .selection 362 'CLIPBOARD' .target 376 .property 462
[20120918-14:34:42] [DEBUG] clipboard_event_selection_request: g_targets_atom
[20120918-14:35:03] [INFO ] scp thread on sck 8 started successfully
[20120918-14:35:04] [INFO ] ++ created session (access granted): username XXXXXXXX, ip XXX.XXX.XXX.XXX:37560 - socket: 8
[20120918-14:35:04] [INFO ] starting X11rdp session...
[20120918-14:35:10] [INFO ] X11rdp start:X11rdp :20 -geometry 800x600 -depth 24 -bs -ac -nolisten tcp -uds
[20120918-14:35:10] [INFO ] starting xrdp-sessvc - xpid=15218 - wmpid=15217
[20120918-14:35:10] [CORE ] main: app started pid 15241(0x00003b89)
[20120918-14:35:10] [INFO ] main: DISPLAY env var set to :20.0
[20120918-14:35:10] [INFO ] main: using DISPLAY 20
[20120918-14:35:10] [INFO ] channel_thread_loop: thread start

xrdp segfaults talking to win2k8r2 server

Trying to free memory.
This was built on Ubuntu 10.04

(gdb) backtrace
#0 0xb7ec07ec in ?? () from /lib/tls/i686/cmov/libc.so.6
#1 0xb7ec0e0e in ?? () from /lib/tls/i686/cmov/libc.so.6
#2 0xb7ec3b06 in free () from /lib/tls/i686/cmov/libc.so.6
#3 0xb73aeff7 in credssp_client_authenticate (credssp=0x8112d68)

at /home/build/TeamCity-6.5.4/buildAgent/work/b470e34e89d8c36e/submodules/freerdp_v1/libfreerdp-crypto/nla.c:259

#4 0xb73af845 in credssp_authenticate (credssp=0x8112d68)

at /home/build/TeamCity-6.5.4/buildAgent/work/b470e34e89d8c36e/submodules/freerdp_v1/libfreerdp-crypto/nla.c:612

#5 0xb73ef646 in transport_connect_nla (transport=0x80fedf0)

at /home/build/TeamCity-6.5.4/buildAgent/work/b470e34e89d8c36e/submodules/freerdp_v1/libfreerdp-core/transport.c:136

#6 0xb73e76f2 in rdp_client_connect (rdp=0x80fcb38)

at /home/build/TeamCity-6.5.4/buildAgent/work/b470e34e89d8c36e/submodules/freerdp_v1/libfreerdp-core/connection.c:97

#7 0xb73e031b in freerdp_connect (instance=0x80fc9e8)

at /home/build/TeamCity-6.5.4/buildAgent/work/b470e34e89d8c36e/submodules/freerdp_v1/libfreerdp-core/freerdp.c:69

#8 0xb74171e9 in lxrdp_connect (mod=0xb7199008) at xrdp-freerdp.c:68
#9 0x08054a8a in xrdp_mm_setup_mod2 (self=0x81202e8) at xrdp_mm.c:469
#10 0x08055726 in xrdp_mm_connect (self=0x81202e8) at xrdp_mm.c:1260
#11 0x0805c5ae in xrdp_wm_login_mode_changed (self=0x80704b8) at xrdp_wm.c:1484
#12 xrdp_wm_check_wait_objs (self=0x80704b8) at xrdp_wm.c:1670

---Type to continue, or q to quit---
#13 0x08057804 in xrdp_process_main_loop (self=0x8070400) at xrdp_process.c:179
#14 0x08050d38 in xrdp_process_run (in_val=0x0) at xrdp_listen.c:128
#15 0xb7ca596e in start_thread () from /lib/tls/i686/cmov/libpthread.so.0
#16 0xb7f2198e in clone () from /lib/tls/i686/cmov/libc.so.6

(gdb)
info sharedlibraries
0xb7fe3830 0xb7ff98ff Yes () /lib/ld-linux.so.2
0xb7fd5be0 0xb7fdc518 Yes /opt/xrdp/lib/xrdp/libcommon.so.0
0xb7fb7f00 0xb7fcc428 Yes /opt/xrdp/lib/xrdp/libxrdp.so.0
0xb7e6a9b0 0xb7f707f4 Yes (
) /lib/tls/i686/cmov/libc.so.6
0xb7d3fc40 0xb7e1b878 Yes () /lib/i686/cmov/libcrypto.so.0.9.8
0xb7cc5c10 0xb7cf75a8 Yes (
) /lib/i686/cmov/libssl.so.0.9.8
0xb7ca4340 0xb7cb0108 Yes () /lib/tls/i686/cmov/libpthread.so.0
0xb7c89ce0 0xb7c9cce8 Yes /opt/xrdp/lib/libfreerdp-codec.so.1.0
0xb7c7a930 0xb7c82e48 Yes /opt/xrdp/lib/libfreerdp-utils.so.1.0
0xb7c73a40 0xb7c74988 Yes (
) /lib/tls/i686/cmov/libdl.so.2
0xb7c5f9a0 0xb7c6c928 Yes () /lib/libz.so.1
0xb7414f20 0xb74185c8 Yes /opt/xrdp/lib/xrdp/libxrdpfreerdp1.so
0xb7406ff0 0xb740a308 Yes /opt/xrdp/lib/libfreerdp-cache.so.1.0
0xb73ff390 0xb7401fe8 Yes /opt/xrdp/lib/libfreerdp-channels.so.1.0
0xb73c72c0 0xb73f53d8 Yes /opt/xrdp/lib/libfreerdp-core.so.1.0
0xb73ac350 0xb73b35c8 Yes /opt/xrdp/lib/libfreerdp-crypto.so.1.0
0xb7393d50 0xb73a44f8 Yes /opt/xrdp/lib/libfreerdp-gdi.so.1.0
0xb737c260 0xb737d788 Yes /opt/xrdp/lib/libfreerdp-locale.so.1.0
0xb7371da0 0xb7372f28 Yes /opt/xrdp/lib/libfreerdp-rail.so.1.0
0xb73660a0 0xb736dd58 Yes /opt/xrdp/lib/libwinpr-sspi.so.1.0
0xb735bb70 0xb735d718 Yes /opt/xrdp/lib/libwinpr-rpc.so.1.0
0xb72506c0 0xb72e0c78 Yes (
) /usr/lib/libX11.so.6
---Type to continue, or q to quit---
0xb721bfb0 0xb72364c8 Yes () /usr/lib/libxkbfile.so.1
0xb7215700 0xb7216598 Yes /opt/xrdp/lib/libwinpr-registry.so.1.0
0xb720ff10 0xb7211138 Yes /opt/xrdp/lib/libwinpr-utils.so.1.0
0xb720b9a0 0xb720c538 Yes /opt/xrdp/lib/libwinpr-crt.so.1.0
0xb7208630 0xb72089c8 Yes /opt/xrdp/lib/libwinpr-sysinfo.so.1.0
0xb71f5b30 0xb72042b8 Yes (
) /usr/lib/libxcb.so.1
0xb71eab00 0xb71eb8b8 Yes () /usr/lib/libXau.so.6
0xb71e4eb0 0xb71e6b18 Yes (
) /usr/lib/libXdmcp.so.6
(*): Shared library is missing debugging information.

How could I record which program started and when it started when using xrdp to connect a remote host?

When using xrdp to connect a remote host,could I know and record which program started and when it started?

Could I address this problem just by modifing the xrdp source code?If I could,which which part of the xrdp code should I modify?

For example,when I open the IE browser in a remote host,I just want to record automatically what I opened (the program IE browser ) and when I opened it by modifing the xrdp source code.

X11rdp buildx.sh script fails - some files can't be downloaded from http://www.x.org/releases/X11R7.6/src/everything/

Hello, the xorg/X11R7.6/buildx.sh build script fails to download three files from "http://www.x.org/releases/X11R7.6/src/everything/" - libpthread-stubs-0.3.tar.bz2, libxcb-1.7.tar.bz2 and xcb-proto-1.6.tar.bz2. The x.org servers returns 403 error page - eg "Forbidden - You don't have permission to access /releases/X11R7.6/src/everything/xcb-proto-1.6.tar.bz2".

I asked on the #xorg IRC and got this answer from alanc "http://xcb.freedesktop.org/dist/libpthread-stubs-0.3.tar.bz2 is the master copy - the X11R7.6 is just a pointer to it".

XRDP does not support Audio Redirection

I understand that XRDP, unfortunately, does not support audio redirection from the server to the client.

Hopefully there is someway for this to be included in the project, I see it is available through RDP itself, but I am required to have this server running on a Linux machine, and the client is a Windows machine.

Freerdp1 wrapper compiling error

Hi,

I compiled FreeRDP client (latest code from their master branch) and then tried to compile xrdp server with --enable-freerdp1 (in order to use this module for RDP PROXY), compiling fails at freerdp1 part:

make[2]: Entering directory /opt/xrdp/freerdp1' /bin/bash ../libtool --tag=CC --mode=compile gcc -DHAVE_CONFIG_H -I. -I.. -I../common -I/usr/local/include -DXRDP_CFG_PATH=\"/etc/xrdp\" -DXRDP_SBIN_PATH=\"/usr/local/sbin\" -DXRDP_SHARE_PATH=\"/usr/local/share/xrdp\" -DXRDP_PID_PATH=\"/var/run\" -DXRDP_NODEBUG -g -O2 -MT xrdp-freerdp.lo -MD -MP -MF .deps/xrdp-freerdp.Tpo -c -o xrdp-freerdp.lo xrdp-freerdp.c libtool: compile: gcc -DHAVE_CONFIG_H -I. -I.. -I../common -I/usr/local/include -DXRDP_CFG_PATH=\"/etc/xrdp\" -DXRDP_SBIN_PATH=\"/usr/local/sbin\" -DXRDP_SHARE_PATH=\"/usr/local/share/xrdp\" -DXRDP_PID_PATH=\"/var/run\" -DXRDP_NODEBUG -g -O2 -MT xrdp-freerdp.lo -MD -MP -MF .deps/xrdp-freerdp.Tpo -c xrdp-freerdp.c -fPIC -DPIC -o .libs/xrdp-freerdp.o In file included from /usr/local/include/freerdp/freerdp.h:39:0, from xrdp-freerdp.h:29, from xrdp-freerdp.c:22: /usr/local/include/freerdp/utils/stream.h:40:40: error: macro "stream_new" requires 2 arguments, but only 1 given /usr/local/include/freerdp/utils/stream.h:41:18: error: expected identifier or '(' before 'do' /usr/local/include/freerdp/utils/stream.h:41:18: error: expected identifier or '(' before 'while' xrdp-freerdp.c: In function 'lfreerdp_cache_glyph': xrdp-freerdp.c:958:12: error: incompatible types when assigning to type 'struct GLYPH_DATA *' from type 'GLYPH_DATA' xrdp-freerdp.c:966:45: error: incompatible types when assigning to type 'GLYPH_DATA' from type 'int' xrdp-freerdp.c: In function 'lfreerdp_cache_brush': xrdp-freerdp.c:1033:29: error: incompatible types when assigning to type 'BYTE[256]' from type 'int' make[2]: *** [xrdp-freerdp.lo] Error 1 make[2]: Leaving directory/opt/xrdp/freerdp1'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/opt/xrdp'
make: *** [all] Error 2

xrdp error: undefined symbol: freerdp_get_version

[root@ceitos .libs]# xrdp -nodaemon
mod_init:
xrdp: symbol lookup error: /usr/local/lib/xrdp/libxrdpfreerdp1.so: undefined symbol: freerdp_get_version

[root@ceitos .libs]# ldd libxrdpfreerdp1.so
linux-gate.so.1 => (0x00a14000)
libcommon.so.0 => /root/FreeRDP-xrdp-968a293/common/.libs/libcommon.so.0 (0x0021c000)
libc.so.6 => /lib/libc.so.6 (0x0088b000)
.........

[root@ceitos .libs]# nm libxrdpfreerdp1.so | grep U
U bitmap_decompress
U freerdp_check_fds
U freerdp_connect
U freerdp_context_free
U freerdp_context_new
U freerdp_free
U freerdp_get_fds
U freerdp_get_version
U freerdp_new
U g_atoi
U g_free
U g_malloc
U g_memcpy
U g_memset
U g_snprintf
U g_strcmp
U g_strdup
U g_strncpy
U g_writeln
U xfree

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.