xrdp 0.6.1-2 doesn't work via sesman-X11rdp

Bug #220005 reported by bamble
88
This bug affects 12 people
Affects Status Importance Assigned to Milestone
xrdp (Ubuntu)
Fix Released
Low
Unassigned

Bug Description

Binary package hint: xrdp

1) lsb_release -rd
Description: Ubuntu Vivid Vervet (development branch)
Release: 15.04

2) apt-cache policy xrdp
xrdp:
  Installed: 0.6.1-2
  Candidate: 0.6.1-2
  Version table:
 *** 0.6.1-2 0
        500 http://us.archive.ubuntu.com/ubuntu/ vivid/universe amd64 Packages
        100 /var/lib/dpkg/status

3) What is expected to happen in a new install is one installs xrdp only (no further packages), use Remote Desktop Connection via Windows -> Module sesman-X11rdp -> valid Username and Password and it works, just like it does with Suse Linux Enterprise Server 11.x.

4) What happens instead is the it dumps one back out to the initial Remote Desktop Connection screen.

The /var/log/sesman.log from Hardy (same error in Vivid) shows:
[20080420-14:12:25] [INFO ] starting signal handling thread...
[20080420-14:12:25] [INFO ] signal handler thread started successfully
[20080420-14:12:25] [CORE ] starting sesman with pid 14940
[20080420-14:12:25] [INFO ] listening...
[20080420-14:19:01] [INFO ] scp thread on sck 5 started successfully
[20080420-14:19:01] [INFO ] granted TS access to user bowser
[20080420-14:19:01] [INFO ] starting Xrdp session...
[20080420-14:19:01] [CORE ] error starting X server - user bowser - pid 15059
[20080420-14:19:01] [INFO ] starting sessvc - xpid=15059 - wmpid=15058
[20080420-14:19:01] [CORE ] error starting sessvc - pid 15057 - xpid=15059 - wmpid=15058
[20080420-14:19:01] [DEBUG] errno: 2, description: No such file or directory
[20080420-14:19:01] [DEBUG] execve parameter list:
[20080420-14:19:01] [DEBUG] argv[0] = //sessvc
[20080420-14:19:01] [DEBUG] argv[1] = 15059
[20080420-14:19:01] [DEBUG] argv[2] = 15058
[20080420-14:19:01] [DEBUG] argv[3] = (null)
[20080420-14:19:01] [DEBUG] errno: 2, description: No such file or directory
[20080420-14:19:01] [DEBUG] execve parameter list: 9
[20080420-14:19:01] [DEBUG] argv[0] = X11rdp
[20080420-14:19:01] [DEBUG] argv[1] = :10
[20080420-14:19:01] [DEBUG] argv[2] = -geometry
[20080420-14:19:01] [DEBUG] argv[3] = 1024x768
[20080420-14:19:01] [DEBUG] argv[4] = -depth
[20080420-14:19:01] [DEBUG] argv[5] = 16
[20080420-14:19:01] [DEBUG] argv[6] = -bs
[20080420-14:19:01] [DEBUG] argv[7] = -ac
[20080420-14:19:01] [DEBUG] argv[8] = (null)
[20080420-14:19:02] [ERROR] another Xserver is already active on display 10
[20080420-14:19:02] [DEBUG] aborting connection...
[20080420-14:19:03] [INFO ] session 15057 - user bowser - terminated

This used to work in Trusty.

WORKAROUND: Install tightvncserver, and then choose sesman-Xvnc.

Upstream report: https://github.com/neutrinolabs/xrdp/issues/203

Revision history for this message
Julien Muller (julien-muller) wrote :

Hi,

I've the same issue and I'm really interesting into a solution....

i've read that it could be linked to the x11rdp missing...

Keep you update if i found something...

Julien

Revision history for this message
Arno Peters (awpeters) wrote :

Do you also have a vnc server installed?

  apt-get install tightvncserver

Revision history for this message
TJ Rothwell (tj-rothwell) wrote :

[20080420-14:19:01] [INFO ] starting sessvc - xpid=15059 - wmpid=15058
[20080420-14:19:01] [CORE ] error starting sessvc - pid 15057 - xpid=15059 - wmpid=15058
[20080420-14:19:01] [DEBUG] errno: 2, description: No such file or directory

It seems that we don't have sessvc installed. I saw that debian had fixed it recently though.

Revision history for this message
DonQuichote (r-launchpad-w-p-dds-nl) wrote :

Same error here. I deliberately do not select anything that has to do with VNC. I am on an internal network, so if this is insecure I will live with that.

When I choose "sesman-X11rdp", I can give a username and a password, which leads to the "another X server active" error.

When I choose "rdp-any", I have to supply an IP address. What do I have to supply here?

I did not install any VNC package and frankly I don't think I should.

Revision history for this message
Jim Rorie (jfrorie) wrote :

I believe to log in under rdp, you need to select the sesman-x11rdp option and proceed as usual. The other options appear to allow the session manager to handle VNC connections, etc.

However, the package is definitely broke. I'm pretty sure it's the x11rdp file missing. See this link for a detailed solution:

http://www.linuxquestions.org/questions/linux-server-73/xrdp-authenticates-but-does-not-load-x-server-rdp-592138/

I'm in the process of building it, but I may be above my head as it is a monster.

Revision history for this message
Eviltechie (eviltechie) wrote :

I really hope this gets fixed soon.

Revision history for this message
spider-byte (wickenit) wrote :

Hello all !!!!

I ran into the same thing. There where two simply things i did to get it working perfectly.

Just install tightvncserver (even though it doesnt get installed automatically with xrdp)
Restart the system (it would not work until it was restarted for some reason)

by looking at the log, I think the vncserver gets called from sesman (127.0.0.1:5910) so at least some type of vncserver has to be installed, i just used tightvncserver as stated above and it worked great ***after restarting the system***.

So now using Remote Desktop from a windows box to my linux box works great. I tested it on two fresh installs of Ubuntu, gnome and KDE. To fix this whole thing it seems like the vncserver should be a dependent and it should prompt for a restart after a successful install.

Hope this helps.

Revision history for this message
Eviltechie (eviltechie) wrote :

Doesn't quite work. It almost connected once. And it only seems to work once. Do I need to have kde installed?

Revision history for this message
spider-byte (wickenit) wrote :

Eviltechie

What exactly are the details of what your doing and errors your getting? What have you tried? Did you install xrdp and tightvncserver then restart? What is the error in the log that comes up when you try to connect? What version of ubuntu are you using (I use 8.04)? Are you trying to connect to a linux box thats in on your local network, remote, or vmware? What version of windows? Please provide some more details to make it easier to help.

You should not need to have kde installed. I got it working on a vanilla gnome install without a problem.

Revision history for this message
Eviltechie (eviltechie) wrote : Re: [Bug 220005] Re: xrdp package doesn't work out of box
Download full text (3.6 KiB)

I'm using 8.10 I had xrdp installed for some time, and then installed
tightvncserver as you suggested, and the restarted. When I tried to connect
from a vista computer on my local network, it almost worked the first time.
I got the X shaped mouse and the black and white pixel background. But it
failed. I'm not sure what the error was, but I noticed that if I tried to
connect again without rebooting, it would just fail oughtright.

On Mon, Dec 15, 2008 at 12:14 AM, spider-byte <email address hidden> wrote:

> Eviltechie
>
> What exactly are the details of what your doing and errors your getting?
> What have you tried? Did you install xrdp and tightvncserver then
> restart? What is the error in the log that comes up when you try to
> connect? What version of ubuntu are you using (I use 8.04)? Are you
> trying to connect to a linux box thats in on your local network, remote,
> or vmware? What version of windows? Please provide some more details to
> make it easier to help.
>
> You should not need to have kde installed. I got it working on a vanilla
> gnome install without a problem.
>
> --
> xrdp package doesn't work out of box
> https://bugs.launchpad.net/bugs/220005
> You received this bug notification because you are a direct subscriber
> of the bug.
>
> Status in "xrdp" source package in Ubuntu: New
>
> Bug description:
> Binary package hint: xrdp
>
> What I expected: Post install of xrdp, rdp from windows to work.
>
> What happened: After installing the xrdp (0.4.0~dfsg-3) package on a fresh
> install of ubuntu hardy 8.04 RC; trying to rdp from windows I see:
>
> login succesfful for display 10
> started connecting
> some problem
>
>
> The /var/log/sesman.log shows:
>
> [20080420-14:12:25] [INFO ] starting signal handling thread...
> [20080420-14:12:25] [INFO ] signal handler thread started successfully
> [20080420-14:12:25] [CORE ] starting sesman with pid 14940
> [20080420-14:12:25] [INFO ] listening...
> [20080420-14:19:01] [INFO ] scp thread on sck 5 started successfully
> [20080420-14:19:01] [INFO ] granted TS access to user bowser
> [20080420-14:19:01] [INFO ] starting Xrdp session...
> [20080420-14:19:01] [CORE ] error starting X server - user bowser - pid
> 15059
> [20080420-14:19:01] [INFO ] starting sessvc - xpid=15059 - wmpid=15058
> [20080420-14:19:01] [CORE ] error starting sessvc - pid 15057 - xpid=15059
> - wmpid=15058
> [20080420-14:19:01] [DEBUG] errno: 2, description: No such file or
> directory
> [20080420-14:19:01] [DEBUG] execve parameter list:
> [20080420-14:19:01] [DEBUG] argv[0] = //sessvc
> [20080420-14:19:01] [DEBUG] argv[1] = 15059
> [20080420-14:19:01] [DEBUG] argv[2] = 15058
> [20080420-14:19:01] [DEBUG] argv[3] = (null)
> [20080420-14:19:01] [DEBUG] errno: 2, description: No such file or
> directory
> [20080420-14:19:01] [DEBUG] execve parameter list: 9
> [20080420-14:19:01] [DEBUG] argv[0] = X11rdp
> [20080420-14:19:01] [DEBUG] argv[1] = :10
> [20080420-14:19:01] [DEBUG] argv[2] = -geometry
> [20080420-14:19:01] [DEBUG] argv[3] = 1024x768
> [20080420-14:19:01] [DEBUG] argv[4] = -depth
> [20080420-14:19:01] [DEBUG] argv[5] = 16
> [200...

Read more...

Revision history for this message
Jim Rorie (jfrorie) wrote : Re: xrdp package doesn't work out of box

I'm changing this to confirmed since no one else has. After research, I have determined that
A) xrdp doesn't come with an X Server. You must install one.

From developer site:
http://sourceforge.net/mailarchive/forum.php?thread_name=479BE6B0.9030704%40gmail.com&forum_name=xrdp-devel

>> Note that I've installed the vnc4server package, even though the current
>> release of xrdp includes a lightweight vnc server. (I couldn't find
>> anything in install.txt or readme.txt about how to install or start this
>> included vnc server, though.)

> xrdp does not include any vnc server.
> it does have a module to connect to one though.

B) xrdp is designed and tested to work with tightvncserver

>> It appears that Version 3 is starting the fluxbox window manager
>> successfully. I've done some research on fluxbox, however, and it
>> appears that the implementation on Ubuntu differs from other versions.
>> So far, I haven't been able to get it to produce anything other than the
>> empty window (and I've lost that small menu bar too!)
>
>I've seen that you're using RealVNC, as a vnc server.
>xrdp development is usually based on tightvnc so I suspect that's a problem
>with RealVNC.
>connecting to the Xvnc session with the vnc client works well?

Apparently the server included with Ubuntu by default wont work. I'm not sure the ramifications of adding tightVNC as a dependency to xrdp.

Hope this helps.

Changed in xrdp:
status: New → Confirmed
Revision history for this message
sludge99 (allnightlong69) wrote :

I think this bug is fixed. on a clean 8.10 install ive had no problems.

to clarify how i got things working.

1. apt-get install xrdp. it has a dependency on vnc4server and installs that automatically.

2.System->perferences->remote desktop

3. tick allow others to view your desktop. (you can change any of the other options here if you wish).click ok

4.connect to the machine from your favourite rdp client.

5.click the drop down box. select vnc-any. enter 127.0.0.1 as the ip. and a password if u set 1 in step 3

6.click ok and your desktop on the remote machine should appear

Changed in xrdp:
status: Confirmed → Fix Released
Revision history for this message
Eviltechie (eviltechie) wrote :

I'm pretty sure that isn't how this is supposed to work. Isn't this supposed to be like a terminal services login rather than a resumeable VNC session?

Revision history for this message
Jim Rorie (jfrorie) wrote :

Sorry sludge99, but you just connected via VNC. Changing back to confirmed.

Revision history for this message
sludge99 (allnightlong69) wrote :

the fact that i can connect to my linux desktop from a windows xp machine using microsoft remote desktop would say that this does work. is this not what you would like to be able to do?

Revision history for this message
Jim Rorie (jfrorie) wrote :

Ok, now we are getting somewhere. You said you did a fresh install. Did you add any packages? Did you install the package updates? What option did you select in the drop down box?

Also, were you able to connect three times in a row without lockups? (Different problem, just curious)

I'm still having trouble, but my system could be borked from all the attempts at making it work.

Thanks

Revision history for this message
sludge99 (allnightlong69) wrote :

Did you add any packages?
just xrdp that i think would be related. ubuntu-restricted-extras, rtorrent and ndiswrapper i installed as well.

Did you install the package updates?
my system was completely up-to-date when i installed xrdp. the version is 0.4.0~dfsg-8.

What option did you select in the drop down box?
vnc-any
ip:127.0.0.1
port:5900 (was the default)

were you able to connect three times in a row without lockups?
i managed to connect and disconnect more than 10 times and ive had no lockups at all.

Revision history for this message
Eviltechie (eviltechie) wrote : Re: [Bug 220005] Re: xrdp package doesn't work out of box
Download full text (3.3 KiB)

I quote "The goal of this project is to provide a fully functional Linux
terminal server"

VNC is not a terminal server. What you discovered is good, but that is not
what the package is supposed to do.

On Tue, Mar 3, 2009 at 10:23 AM, sludge99 <email address hidden> wrote:

> Did you add any packages?
> just xrdp that i think would be related. ubuntu-restricted-extras, rtorrent
> and ndiswrapper i installed as well.
>
> Did you install the package updates?
> my system was completely up-to-date when i installed xrdp. the version is
> 0.4.0~dfsg-8.
>
> What option did you select in the drop down box?
> vnc-any
> ip:127.0.0.1
> port:5900 (was the default)
>
> were you able to connect three times in a row without lockups?
> i managed to connect and disconnect more than 10 times and ive had no
> lockups at all.
>
> --
> xrdp package doesn't work out of box
> https://bugs.launchpad.net/bugs/220005
> You received this bug notification because you are a direct subscriber
> of the bug.
>
> Status in “xrdp” source package in Ubuntu: Fix Released
>
> Bug description:
> Binary package hint: xrdp
>
> What I expected: Post install of xrdp, rdp from windows to work.
>
> What happened: After installing the xrdp (0.4.0~dfsg-3) package on a fresh
> install of ubuntu hardy 8.04 RC; trying to rdp from windows I see:
>
> login succesfful for display 10
> started connecting
> some problem
>
>
> The /var/log/sesman.log shows:
>
> [20080420-14:12:25] [INFO ] starting signal handling thread...
> [20080420-14:12:25] [INFO ] signal handler thread started successfully
> [20080420-14:12:25] [CORE ] starting sesman with pid 14940
> [20080420-14:12:25] [INFO ] listening...
> [20080420-14:19:01] [INFO ] scp thread on sck 5 started successfully
> [20080420-14:19:01] [INFO ] granted TS access to user bowser
> [20080420-14:19:01] [INFO ] starting Xrdp session...
> [20080420-14:19:01] [CORE ] error starting X server - user bowser - pid
> 15059
> [20080420-14:19:01] [INFO ] starting sessvc - xpid=15059 - wmpid=15058
> [20080420-14:19:01] [CORE ] error starting sessvc - pid 15057 - xpid=15059
> - wmpid=15058
> [20080420-14:19:01] [DEBUG] errno: 2, description: No such file or
> directory
> [20080420-14:19:01] [DEBUG] execve parameter list:
> [20080420-14:19:01] [DEBUG] argv[0] = //sessvc
> [20080420-14:19:01] [DEBUG] argv[1] = 15059
> [20080420-14:19:01] [DEBUG] argv[2] = 15058
> [20080420-14:19:01] [DEBUG] argv[3] = (null)
> [20080420-14:19:01] [DEBUG] errno: 2, description: No such file or
> directory
> [20080420-14:19:01] [DEBUG] execve parameter list: 9
> [20080420-14:19:01] [DEBUG] argv[0] = X11rdp
> [20080420-14:19:01] [DEBUG] argv[1] = :10
> [20080420-14:19:01] [DEBUG] argv[2] = -geometry
> [20080420-14:19:01] [DEBUG] argv[3] = 1024x768
> [20080420-14:19:01] [DEBUG] argv[4] = -depth
> [20080420-14:19:01] [DEBUG] argv[5] = 16
> [20080420-14:19:01] [DEBUG] argv[6] = -bs
> [20080420-14:19:01] [DEBUG] argv[7] = -ac
> [20080420-14:19:01] [DEBUG] argv[8] = (null)
> [20080420-14:19:02] [ERROR] another Xserver is already active on display 10
> [20080420-14:19:02] [DEBUG] a...

Read more...

Revision history for this message
Paulo Fernandes (otangas) wrote : Re: xrdp package doesn't work out of box

I had installed a fresh ubuntu 8.10 and after with Synaptic Package Manager add xrdp.
- don't work.

after with the some tool, remove "vnc4server" and add "tightvncserver"
- staring working with sesman-Xvnc
That's ok.

Now i have a big problem.
When i send the username and password (to auto login) i only get a black screen.
if i don't send the username/password everything work.

some one have this ?

Revision history for this message
pedemoz (pedemoz) wrote :

Got it working...

Running Ubuntu 8.10 I initially had similar problems to others. I run a fairly standard install but it is not fresh - it's been updated since the 7.04 days and has all updates. I had previously configured VNC but it is the default vino, not tightvnc as some have suggested is required.

The first issue was that nothing was listening on the RDP port (3389). Running xrdp as root fixed that (sudo xrdp).

One problem I had was that mstsc would not provide the xrdp menu; it would just try the default (first) option and give an X session but without a display manager. While trying some modifications to /etc/xrdp/xrdp.ini I caused an connection error that then had the session selection menu display... perhaps the 'default' session needs to throw an error so you at least get the menu ;)

Anyway, selecting 'vnc-any' got it working. As the only difference between this session and the default was the port (-1 by default, 5900 for vnc-any) I just changed the default to use port 5900 and it works. The first (default) entry in /etc/xrdp/xrdp.ini is now:

[xrdp1]
name=my.default
lib=libvnc.so
username=ask
password=ask
ip=127.0.0.1
port=5900

It appears you need to restart sesman (the xrdp session manager) for any changes to take effect.

Summary:
- install xrdp
  sudo apt-get install xrdp
- mod /etc/xrdp/xrdp.ini as above
  - change port=-1 to port=5900
- restart sesman
  sudo sesman --kill && sudo sesman
- run xrdp as root (if not already running)
  sudo xrdp

That's it - connection works from MS Remote Desktop client. Refresh rates are much better than VNC alone. Desktop effects (compiz) is even usable and VirtualBox is working fine for me. The only problem I've noticed so far is that some key combinations are not working: Ctrl-Alt-arrows to switch desktops (but Ctrl-Alt-left mouse button works with the cube!) and anything with the meta/super/win key.

Note to maintainers: The best fix would be to keep port=-1 but ensure that it connects to an existing session rather than creating a new session (which will not have a display manager by default). Otherwise, default to port=5900 and it should work with a default install of VNC.

Revision history for this message
pedemoz (pedemoz) wrote :

Eviltechie...

I don't claim to be knowledgeable about xrdp (only starting using it 2 hours ago!) but it is an RDP server; xrdp allows RDP clients to connect using the remote desktop protocol. What it does is to use VNC as a type of backend:
  RDP client -> xrdp -> vnc -> X

Importantly, the VNC traffic is all on the server and thus very fast while comms to the client are via RDP, which is much faster than VNC. Using xrdp (as opposed to VNC on its own) thus gives two big advantages: you can use mstsc, which is provided on every install of Windows; and most importantly, speed - screen updates are much faster. I have no idea why VNC isn't much faster, but that's a discussion for another forum.

Revision history for this message
Jim Rorie (jfrorie) wrote :

I'm confirming that pedemoz's work around appears to work. I'm a little confused by the RDP->VNC layer bit, But I will accept it on face value as it functions.

I'm wondering if there is a pure RDP capability available as well using the sesman-x11rdp option? That option is what I was stalled on trying to get working. Perhaps that is a capability not available under ubuntu? The xrdp.ini file is not well documented, and I believe that is part of the problem.

Revision history for this message
Craig Ringer (ringerc) wrote :

xrdp is _severely_ bugged when using vnc4server as a backend. gnome-panel tends to launch, then crash out with a BadWindow xlib error, resulting in a flickering gnome-panel and otherwise a default stippled x server background.

If you remove vnc4server and install xtightvnc, login should work. However, at least on the systems I've tried, the gnome theme seems to be constantly reset to a flat generic theme and the keyboard mapping is completely insane (dvorak? something similarly mad).

At present, xrfb seems pretty broken.

Revision history for this message
Craig Ringer (ringerc) wrote :

Sorry - install tightvncserver, not xtightvnc. And I meant xrdp not xrfb at the end there.

Revision history for this message
Deadpan110 (deadpan110) wrote :

Also confirmed in a fresh install of Jaunty

sudo apt-get install tightvncserver
sudo apt-get install xrdp

Log in on a remote machine using the rdp protocols (I used the default Ubuntu Terminal server Client and also the Windows XP remote desktop client thing)

Log in was a success... if the window is not full screen, you can close the window and resume your session.

Gnome theme seems to become a mixture of some kind of default and human.

Mouse functions correctly.

Keyboard mapping is (quote Craig Ringer) 'insane', it is unusable for anything other than mouse actions.

To get back on track with the subject of this thread, it would seem that xrdp within the Ubuntu repos is really borked and will only work without a keyboard or a stable theme if you use tightvncserver and no other vnc service installed - a pity really - although - according to sourceforge - it seems to be still in beta and code is still being commited upstream (at the time of writing, 30 hours ago).

I will report back when I get a lil more time.

Before I abandon my attempts on using xrdp, I will try and use the latest cvs trunk and build myself

Revision history for this message
Deadpan110 (deadpan110) wrote :

FIX FOR KEYBOARD MAPPING and THEME BEHAVIOUR (Gnome)

I am not sure why this works, but found it somewhere on a forum (I should have bookmarked the link to paste credits here).

using the above mentioned:

sudo apt-get install tightvncserver
sudo apt-get install xrdp

1. Log in as the user on the local machine
2. Open a terminal
3. Type 'gconf-editor'
4. Browse to /apps/gnome_settings_daemon/plugins/keyboard
5. Un-tick 'active'

Odd keymapping is now fixed for that user and the theme appears to work correctly.

Unfortunately, If you have a lot of users - It will take a while to do all this manually, it is likely possible to write a script to run as root to change this in one pass.

I hope this helps someone :)

Revision history for this message
Adam Bolte (boltronics) wrote :

@Deadpan110, nice find. It helped! Hope I can return the favor.

To change this setting for all users, the magic command you are looking for seems to be (all one line):

$ sudo gconftool-2 --direct --config-source xml:readwrite:/etc/gconf/gconf.xml.mandatory --type boolean --set /apps/gnome_settings_daemon/plugins/keyboard/active false

Discovered this while browsing the "Desktop Administrators' Guide to GNOME Lockdown and Preconfiguration":
http://library.gnome.org/admin/deployment-guide/

Revision history for this message
Jim Salter (jrssnet) wrote :

xrdp works with Karmic's version of vncserver/Vino out-of-the-box with no problems that I can see, and works with tightvncserver with the disable-active-keyboard workaround. Working cookbook for multiple xrdp logins on one machine is here:

http://ubuntuwiki.net/index.php/Xrdp,_installing

Revision history for this message
ZioNemo (zionemo) wrote :

It does not work for me in 9.4 (jaunty).
I can connect, but:

If I chose sesman-Xvnc (default) it connects, but the screen remains X-standard background (B&W checkerboard) and the two panels (gnome top and bottom) keep flashing. no way to use it.
/var/log/sesman.log says: "[20100308-12:10:29] [INFO ] scp thread on sck 5 started successfully" which looks good.

If I chose sesman-X11rdp I get the (very informative!) "some problem" message
/var/log/sesman.log says: "[20100308-12:16:24] [INFO ] scp thread on sck 5 started successfully" same as above.

I don't have the option to upgrade to karmic.
Any chance to get a backport of the fix?

Revision history for this message
DaleEMoore (daleemoore) wrote :

How do I debug xrdp failing on Ubuntu 10.04?

xRDP, Login to xrdp, Module sesman-Xvnc.
connecting to sesman ip 127.0.0.1 port 3350
sesman connect ok
sending login info to sesman
login successful for display 10
started connecting
connecting to 127.0.0.1 5910
error - problem connecting
OK

/var/log/sesman.log
[20100526-23:44:14] [INFO ] scp thread on sck 5 started successfully
[20100526-23:44:14] [INFO ] granted TS access to user dalem
[20100526-23:44:14] [INFO ] starting Xvnc session...
[20100526-23:44:14] [INFO ] starting sessvc - xpid=22896 - wmpid=22895
[20100526-23:44:18] [INFO ] session 22893 - user dalem - terminated
[20100526-23:44:50] [INFO ] scp thread on sck 5 started successfully
[20100526-23:44:50] [INFO ] granted TS access to user dalem
[20100526-23:44:50] [INFO ] starting Xrdp session...
[20100526-23:44:50] [CORE ] error starting X server - user dalem - pid 22958
[20100526-23:44:50] [DEBUG] errno: 2, description: No such file or directory
[20100526-23:44:50] [DEBUG] execve parameter list: 9
[20100526-23:44:50] [DEBUG] argv[0] = X11rdp
[20100526-23:44:50] [DEBUG] argv[1] = :10
[20100526-23:44:50] [DEBUG] argv[2] = -geometry
[20100526-23:44:50] [DEBUG] argv[3] = 1024x768
[20100526-23:44:50] [DEBUG] argv[4] = -depth
[20100526-23:44:50] [DEBUG] argv[5] = 16
[20100526-23:44:50] [DEBUG] argv[6] = -bs
[20100526-23:44:50] [DEBUG] argv[7] = -ac
[20100526-23:44:51] [DEBUG] argv[8] = (null)
[20100526-23:44:50] [INFO ] starting sessvc - xpid=22958 - wmpid=22957
[20100526-23:44:51] [ERROR] another Xserver is already active on display 10
[20100526-23:44:51] [DEBUG] aborting connection...
[20100526-23:44:51] [INFO ] session 22956 - user dalem - terminated
[20100526-23:45:46] [INFO ] scp thread on sck 5 started successfully
[20100526-23:45:46] [INFO ] granted TS access to user dalem
[20100526-23:45:46] [INFO ] starting Xvnc session...
[20100526-23:45:46] [INFO ] starting sessvc - xpid=22982 - wmpid=22981
[20100526-23:45:48] [INFO ] session 22980 - user dalem - terminated
[20100526-23:47:22] [INFO ] scp thread on sck 5 started successfully
[20100526-23:47:22] [INFO ] granted TS access to user dalem
[20100526-23:47:22] [INFO ] starting Xvnc session...
[20100526-23:47:22] [INFO ] starting sessvc - xpid=23045 - wmpid=23043
[20100526-23:47:24] [INFO ] session 23042 - user dalem - terminated
[20100526-23:50:10] [INFO ] scp thread on sck 5 started successfully
[20100526-23:50:28] [INFO ] scp thread on sck 5 started successfully
[20100526-23:50:28] [INFO ] granted TS access to user dalem
[20100526-23:50:28] [INFO ] starting Xvnc session...
[20100526-23:50:28] [INFO ] starting sessvc - xpid=23110 - wmpid=23109
[20100526-23:50:30] [INFO ] session 23108 - user dalem - terminated

I've tried lots of variety of package installation and mostly I get "error - problem connecting".

apt-get remove tightvncserver vnc4server xrdp
apt-get install xrdp

Revision history for this message
DaleEMoore (daleemoore) wrote :

This fails with "rdesktop localhost -z" and remote access, too.

Revision history for this message
DaleEMoore (daleemoore) wrote :

I wonder if there is some footprint, a log or something that will indicate what is failing.

I have 3 Ubuntu 10.04 machines that I've installed xrdp on and 2 of them work without problem, but; the 3rd just says "error - problem connecting."

Revision history for this message
DaleEMoore (daleemoore) wrote :

I've found at least one Ubuntu 10.04 system where there is insufficient logging or notification to determine what is causing and to correct "error - problem connecting."

Changed in xrdp (Ubuntu):
status: Fix Released → Confirmed
Revision history for this message
hanasaki (hanasaki-ubuntu) wrote :

Also noticing that in 10.10 the "d" in a gnome terminal does not type "d"
Instead it does "show desktop" as if the panel icon were clicked.

Revision history for this message
Zachary Dea (zdea) wrote :

I encountered this behavior in my installation of ubuntu 10.04 on my server. I have virtualbox installed and loaded up several vms with ubuntu 10.04 and now 10.10. Installing xrdp using the ubuntu software center (as I did on the host after many unsuccessful attempts from the command line) works flawlessly on the vms but can't seem to get it to work on the host no matter how much I mess around with it. I've given up fixing it at this point because I believe if I were to wipe the host and start from scratch it would probably work.

I also can confirm the bug hanasaki reported above which I've also found in the ubuntu forums, namely that the "super" key is essentially "stuck" when remoting, thus causing the "d" key to enact the hotkey of "showing the desktop". I believe this merits a separate bug ticket, which I'm considering opening as I don't see one out there.

Revision history for this message
David Gradwell (david-gradwell) wrote :

I had the same problem with "d" doing a show desktop.

My work around was to go System/Preferences/Keyboard Shortcuts.

Look down the list of shortcuts on the right until you find "d". Click on it until it goes to "Disabled". At least then you can do stuff !

Revision history for this message
hanasaki (hanasaki-ubuntu) wrote :

Noticed on my system it was MOD "d" not just "d"
This would lead me to think that under xrdp the system thinks the MOD (windows key) is down even when it is not.

Revision history for this message
mjunker (markojunker) wrote :

same failure here

penalvch (penalvch)
description: updated
Changed in xrdp (Ubuntu):
importance: Undecided → Low
status: Confirmed → Triaged
penalvch (penalvch)
description: updated
tags: added: regression-release vivid
summary: - xrdp package doesn't work out of box
+ xrdp 0.6.1-2 doesn't work via sesman-X11rdp
description: updated
Revision history for this message
John Moser (nigelenki) wrote :

I did some strace magic.

execve("/bin/X11rdp", ["X11rdp", ":10", "-geometry", "1920x1080", "-depth", "24", "-bs", "-ac", "-nolisten", "tcp"], [/*
 6 vars */]) = -1 ENOENT (No such file or directory)
execve("/usr/bin/X11rdp", ["X11rdp", ":10", "-geometry", "1920x1080", "-depth", "24", "-bs", "-ac", "-nolisten", "tcp"],
 [/* 6 vars */]) = -1 ENOENT (No such file or directory)
execve("/usr/X11R6/bin/X11rdp", ["X11rdp", ":10", "-geometry", "1920x1080", "-depth", "24", "-bs", "-ac", "-nolisten", "
tcp"], [/* 6 vars */]) = -1 ENOENT (No such file or directory)
execve("/usr/local/bin/X11rdp", ["X11rdp", ":10", "-geometry", "1920x1080", "-depth", "24", "-bs", "-ac", "-nolisten", "
tcp"], [/* 6 vars */]) = -1 ENOENT (No such file or directory)
mkdir("/tmp/.xrdp/xrdp-sesman-dP1LGR", 0700) = 0
stat64("/etc/localtime", {st_mode=S_IFREG|0644, st_size=3545, ...}) = 0
write(3, "[20170107-20:25:15] [CORE ] erro"..., 76) = 76
stat64("/etc/localtime", {st_mode=S_IFREG|0644, st_size=3545, ...}) = 0
write(3, "[20170107-20:25:15] [DEBUG] errn"..., 77) = 77

It seems xrdp requires X11rdp for this to work. That's why you get a "no such file or directory" error.

Revision history for this message
John Moser (nigelenki) wrote :

We can probably easily fix this by providing weston-rdp (from weston, which currently doesn't supply weston-rdp) and creating a replacement command for X11rdp to start a weston-rdp compositor with Wayland-X, thus giving an X display rendering to RDP.

It looks like xrdp used to build X11rdp by building a new Xorg server that wrote out to RDP. Since Weston simply provides that, getting that into the Weston package would be simpler and less-insane.

이동언 (dongeun)
Changed in xrdp (Ubuntu):
assignee: nobody → 이동언 (dongeun)
penalvch (penalvch)
Changed in xrdp (Ubuntu):
assignee: 이동언 (dongeun) → nobody
Lenin (gagarin)
Changed in xrdp (Ubuntu):
status: Triaged → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.