Xrdp: Single Linux Remote Application

Created on 12 Feb 2018  路  13Comments  路  Source: neutrinolabs/xrdp

I am new to remote desktop and I have been searching for days.

I am interested in exposing Linux remote applications on every other desktop (Linux, Windows).
Windows offer that with the RemoteApp. Is there any way that xrdp may offer the same functionality?
Just to mention that I use Apache Guacamole and I am interested in exposing just a single Linux app on the browser.

Thank you in advance!

waiting-feedback

Most helpful comment

True Remote App support in xrdp is started but not complete. It will take a some development time to finish.

All 13 comments

It is possible to start single applications in the remote desktop connection (at least when using the Xorg backend).

You just have to specify the full path of the program you want to start. In Guacamole, this should be the initial-program setting.
2018-02-12_01

The result isn't as integrated with the rest of your desktop as MS RemoteApps -- probably not a major concern since you're using Guacamole, but without a window manager you'll be missing some basic window controls.
2018-02-12_02

If you want or need the window controls, you can write a custom script to start a window manager with your application:

#!/bin/bash
openbox &
/usr/bin/geany

Thank you for your prompt answer evanlinde.
Unfortunately i believe that this is different from what I am looking for.

Using the initial_program I get the exact screen as the second of yours.

gedit_with_initial

There is a script that is executed when RDP connection is established and launched gedit.
If I try to save the file it will not be saved in my local machine.
With Windows RemoteApp this is not the case. For instance if you want to access Word it will be launched in your local machine and the file also will be persisted in your local machine.

This is a kind of scenario that I need to find out is offered from xrdp regarding linux apps.

I could be wrong, but I don't think you'll be able to accomplish what you're looking for using Guacamole.

If you use an RDP client like mstsc and get drive redirection setup correctly, you should be able work with files on your local system, but I don't think it's possible to get the same seamless experience that you describe with Windows RemoteApp.

True Remote App support in xrdp is started but not complete. It will take a some development time to finish.

This is great! Nothing to do but wait.

Why wait, why not actually help!

Was this finished ?

It is possible to start single applications in the remote desktop connection (at least when using the Xorg backend).

You just have to specify the full path of the program you want to start. In Guacamole, this should be the initial-program setting.
2018-02-12_01

The result isn't as integrated with the rest of your desktop as MS RemoteApps -- probably not a major concern since you're using Guacamole, but without a window manager you'll be missing some basic window controls.
2018-02-12_02

If you want or need the window controls, you can write a custom script to start a window manager with your application:

#!/bin/bash
openbox &
/usr/bin/geany

My MSTSC doesn't have the "programs" tab.. using win10.

Can XRDP be configured so that when a user log's in, he only sees one particular application instead of a window manager? Without having to set options in the RDP client?

We are trying to setup XRDP in a way, that one of our customers can launch an application on our infrastructure. But he must be restricted to this single application.

@defcon8 Yes, you can. In xrdp's sesman.ini file, there's a setting DefaultWindowManager=startwm.sh. You can edit or replace this startwm.sh script to do just about whatever you want.

A simpler option, if you only need to do this for one user, is to create a file .xsession in the user's home directory and make it executable with content like the following:

exec /path/to/app

Keep in mind that since the file is in the user's home directory, a sophisticated user might be able to edit, move/rename, or delete this file. You may be able to restrict file permissions on .xsession to prevent this, but I haven't tested it out.

I test with remoteapptool on windows server
remoteapp should have a native window experience
image
image

I modify the rdp file to connect I linux server.

allow desktop composition:i:1
allow font smoothing:i:1
alternate full address:s:[my server ip]
alternate shell:s:/usr/bin/geany
devicestoredirect:s:*
disableremoteappcapscheck:i:1
drivestoredirect:s:*
full address:s:[my server ip]
prompt for credentials on client:i:1
promptcredentialonce:i:0
redirectcomports:i:1
redirectdrives:i:1
remoteapplicationmode:i:1
remoteapplicationname:s:Geany
remoteapplicationprogram:s:||Gneay
span monitors:i:1
use multimon:i:1

but only got like this
image
there may need some extra processing for xrdp

I've been looking into enabling RAIL for mstc as well and I experience the same issue of the client not finishing the connection dialog.

I've traced down two problems for this issue, but there are more errors that I encounter and have not been able to fix yet.

Here are the two fixes that I made (not merged into devel yet):

So what feedback is needed for this issue? What is the prospective plan for it? Is it going to be implemented?

Was this page helpful?
0 / 5 - 0 ratings