Mark Lehrer | 26 Jan 21:10 2015

xrdp and broken 'p' key

We're preparing to roll out rdesktop instead of VNC in one of our labs, and 
there is just one show stopping issue: all of the keys seem to work except 
for the lower case 'p'.

It isn't a problem with VNC or ssh.  I am using el6 and xfce4.

Any idea where to start debugging this problem?  I guess I'll try loading 
the normal gnome session and see if it happens there too.

Thanks,
Mark

------------------------------------------------------------------------------
Dive into the World of Parallel Programming. The Go Parallel Website,
sponsored by Intel and developed in partnership with Slashdot Media, is your
hub for all things parallel software development, from weekly thought
leadership blogs to news, videos, case studies, tutorials and more. Take a
look and join the conversation now. http://goparallel.sourceforge.net/
Tom Slenter | 21 Jan 12:08 2015
Picon

OpenSuse 13.2 build

Dear Sir or Madam,

I had some problems installing:

If you post any of this info, please do not post it in my name.
So i added some extra info(The hyperV info is not needed):

# Install for OpenSuse 13.2 (KDE)in HyperV
# For HyperV
# Enable 1080p
sudo nano /boot/grub2/grub.cfg
video=hyperv_fb:1920x1080 # add as kernel option

# Install dependencies
sudo aptitude install util-macros-devel
git clone git://anongit.freedesktop.org/xorg/proto/inputproto
cd inputproto
make
make install

# as root
# this is package installation step
zypper update
reboot
zypper install git autoconf automake libtool make gcc gcc-c++ libX11-devel libXfixes-devel libXrandr-devel fuse-devel patch flex bison intltool libxslt-tools perl-libxml-perl font-util libxml2-devel openssl-devel pam-devel python-libxml2
# this is xrdp build step
git clone git://github.com/neutrinolabs/xrdp
cd xrdp

# this step is only needed it you don't want master branch, ie, devel, v0.8, v1.0
# git checkout v0.8
./bootstrap
./configure --enable-fuse
make
make install
xrdp-keygen xrdp auto
cp instfiles/pam.d/xrdp-sesman.other /etc/pam.d/xrdp-sesman

# this is X11rdp build step
cd xorg
cd X11R7.6
sudo mkdir /opt/X11rdp
sudo chmod 777 /opt/X11rdp
sh buildx.sh /opt/X11rdp
# create the symbolic link for sesman
ln -s /opt/X11rdp/bin/X11rdp /usr/local/bin/X11rdp

# start on boot
# as root
# cp /etc/xrdp/xrdp.sh /etc/init.d/
# chkconfig --add xrdp.sh # Not working..... kill and start script are installed, but nothing happens
crontab -e
<at> reboot /etc/xrdp/xrdp.sh start

turn firewall off or open TCP port 3389
reboot
enjoy

# Working for 4K resolution

Yours faithfully,

Tom
------------------------------------------------------------------------------
New Year. New Location. New Benefits. New Data Center in Ashburn, VA.
GigeNET is offering a free month of service with a new server in Ashburn.
Choose from 2 high performing configs, both with 100TB of bandwidth.
Higher redundancy.Lower latency.Increased capacity.Completely compliant.
http://p.sf.net/sfu/gigenet
_______________________________________________
xrdp-devel mailing list
xrdp-devel@...
https://lists.sourceforge.net/lists/listinfo/xrdp-devel
Alan Messias | 15 Jan 20:01 2015
Picon

Re: Patch to fix SBINDIR issue

Hi Jay,

Infact we dont even need to remove pid files. I just kept this thinking that maybe there is a strong reason for this and tried to simplify the remove statement.
To be hosnet I really think that this should be dropped from the script - of course if there is no a strong reason for this.

Thanks,

On Thu, Jan 15, 2015 at 4:43 PM, Jay Sorg <jay.sorg-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote:
Alpine looks like a good fit for xrdp.

I do see one error in the patch.
The last
+    find /var/run -name xrdp-sesman.pid -exec rm {} \;
is wrong I believe.

A summary might be
remove --noheading for ps
use "which" to locate the xrdp and xrd-sesman binaries.

But why do you change "if test" to "find" ?

Jay



On Thu, Jan 15, 2015 at 3:30 AM, Alan Messias <alancordeiro-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote:
> Hi developers,
>
> Please, consider to apply this patch http://sprunge.us/SMdO
>
> This is due to the fact that with the previous code we cannot port xrdp to
> every Linux distros. Eg.: I am trying to port it to Alpine Linux[1]
>
>
> [1] http://www.alpinelinux.org
> Thanks,
> --
> Atenciosamente,
> Alan Messias Cordeiro
>
> The nice thing about standards is that there are so many to choose from. And
> if you really don't like all the standards you just have to wait another
> year until the one arises you are looking for. -- A. Tanenbaum,
> "Introduction to Computer Networks"
>
>
> ------------------------------------------------------------------------------
> New Year. New Location. New Benefits. New Data Center in Ashburn, VA.
> GigeNET is offering a free month of service with a new server in Ashburn.
> Choose from 2 high performing configs, both with 100TB of bandwidth.
> Higher redundancy.Lower latency.Increased capacity.Completely compliant.
> http://p.sf.net/sfu/gigenet
> _______________________________________________
> xrdp-devel mailing list
> xrdp-devel <at> lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/xrdp-devel
>



--
Atenciosamente,
Alan Messias Cordeiro

The nice thing about standards is that there are so many to choose from. And if you really don't like all the standards you just have to wait another year until the one arises you are looking for. -- A. Tanenbaum, "Introduction to Computer Networks"

------------------------------------------------------------------------------
New Year. New Location. New Benefits. New Data Center in Ashburn, VA.
GigeNET is offering a free month of service with a new server in Ashburn.
Choose from 2 high performing configs, both with 100TB of bandwidth.
Higher redundancy.Lower latency.Increased capacity.Completely compliant.
http://p.sf.net/sfu/gigenet
_______________________________________________
xrdp-devel mailing list
xrdp-devel@...
https://lists.sourceforge.net/lists/listinfo/xrdp-devel
Alan Messias | 15 Jan 12:30 2015
Picon

Patch to fix SBINDIR issue

Hi developers,

Please, consider to apply this patch http://sprunge.us/SMdO

This is due to the fact that with the previous code we cannot port xrdp to every Linux distros. Eg.: I am trying to port it to Alpine Linux[1]


Thanks,
--
Atenciosamente,
Alan Messias Cordeiro

The nice thing about standards is that there are so many to choose from. And if you really don't like all the standards you just have to wait another year until the one arises you are looking for. -- A. Tanenbaum, "Introduction to Computer Networks"

------------------------------------------------------------------------------
New Year. New Location. New Benefits. New Data Center in Ashburn, VA.
GigeNET is offering a free month of service with a new server in Ashburn.
Choose from 2 high performing configs, both with 100TB of bandwidth.
Higher redundancy.Lower latency.Increased capacity.Completely compliant.
http://p.sf.net/sfu/gigenet
_______________________________________________
xrdp-devel mailing list
xrdp-devel@...
https://lists.sourceforge.net/lists/listinfo/xrdp-devel
omkar siddaiah | 7 Jan 06:00 2015
Picon

help to rail in xrdp

Hi team,

I need help to invoke rail (remote-app) feature of xrdp.

I have set the xrdp.ini to default ( all channel set to true)

I am trying to use freerdp client ( not mstsc)
xfreerdp -u abc -p abc123 --app --plugin rail --data '/usr/bin/xterm' -- 192.168.100.100


greatly appreciate any pointers to proceed with debug/configuration

Regards,
Omkar
------------------------------------------------------------------------------
Dive into the World of Parallel Programming! The Go Parallel Website,
sponsored by Intel and developed in partnership with Slashdot Media, is your
hub for all things parallel software development, from weekly thought
leadership blogs to news, videos, case studies, tutorials and more. Take a
look and join the conversation now. http://goparallel.sourceforge.net
_______________________________________________
xrdp-devel mailing list
xrdp-devel@...
https://lists.sourceforge.net/lists/listinfo/xrdp-devel
Neil | 30 Dec 15:46 2014
Picon

Newbie Question

Hi,
Just to outline the situation I have:
I have a Windows 7 laptop which i use as a host for a guest operating 
system Linux Mint Maya 13, in Virtualbox (v 4.3.20).

I have installed xrdp in the Linux guest to allow me to use Windows 
Remote desktop to access the guest OS via a second physical PC.

The second physical PC is running Windows 8.1 and is a tablet/laptop 
with detachable keyboard.

I want to be able to use the onscreen keyboard (Onboard) on the tablet 
without having to have the physical keyboard attached.

The first problem I have is that i need to have the physical keyboard 
attached to my tablet in order to type into the xrdp login screen.

The second problem I have is when I am remoted onto the Linux guest via 
Remote Desktop (xrdp) from the second physical PC, I cannot get the 
onboard keyboard to work correctly. Most of the keys are showing the "?" 
character and the space bar shows the message "No X keyboard found, 
retrying...".
As i say this is only a problem when remoting onto the guest OS via 
Remote Desktop (xrdp).  I have tested this theory by using a 3rd PC and 
Remote Desktop and have the same issue as with the other computer.

I also have a third issue which also seems to only be present when 
connected via xrdp, i cannot change the physical keyboard layout from US 
to UK as all of the options are greyed out. I have tested this by 
logging into the guest OS via the host physically and can see the 
keyboard layout is set to UK, and all of the options are available to 
me. So again the issue only seems to be present when connecting to the 
Linux guest via xrdp.

In xrdp I use the sesman X-VNC module, as this is the only option which 
allows me to login to the Linux system.
I hope I have explained the situation clearly to you and welcome any 
further questions you have to clarify anything.
I look forward to your response.

Kind regards,
Neil.

--

-- 
------------------------------------------

"Oh, so they have internet on computers now!" ~ Homer Simpson.
--------
Sent From My Windows PC

------------------------------------------------------------------------------
Dive into the World of Parallel Programming! The Go Parallel Website,
sponsored by Intel and developed in partnership with Slashdot Media, is your
hub for all things parallel software development, from weekly thought
leadership blogs to news, videos, case studies, tutorials and more. Take a
look and join the conversation now. http://goparallel.sourceforge.net
USB, d.o.o Miran | 23 Dec 13:13 2014
Picon

Remote Client print to Local printer ?

Please Tell me, can the xRDP server accept remote/local printer from the client. In the windows remote desktop you can push printer across to the remote RDP server. Is it possible for a Windows Client to push their local printers to an xRDP Linux server, so that those printers pop up in the Linux.Thanks
------------------------------------------------------------------------------
Dive into the World of Parallel Programming! The Go Parallel Website,
sponsored by Intel and developed in partnership with Slashdot Media, is your
hub for all things parallel software development, from weekly thought
leadership blogs to news, videos, case studies, tutorials and more. Take a
look and join the conversation now. http://goparallel.sourceforge.net
_______________________________________________
xrdp-devel mailing list
xrdp-devel@...
https://lists.sourceforge.net/lists/listinfo/xrdp-devel
jjc | 17 Dec 15:38 2014
Picon

Questions about the judgment Of a new window creation

Hi,Jay:

   I want to record titles of every new window in normal desktop mode. I can record all characters in freerdp now ,but can’t judge which is the title string .So I want to consult

Some questions as follows:

 

1.      I want to kown if there is a way to judge the event of creating a new window by the update orders so I can filter lots of information.

2.      Does freerdp handle characters in window top area(such as tiltle, the toolbar area)and the editing area in a same procedure?

3.      Is there a regular pattern to paint characters of a whole new window such as from top to bottom and from left to right ?

 

I am looking forward to your help, thank you !

 

  Best wishes!

                                                                                                                       Jiang Junchao

                                                                                                                        2014.12.17

------------------------------------------------------------------------------
Download BIRT iHub F-Type - The Free Enterprise-Grade BIRT Server
from Actuate! Instantly Supercharge Your Business Reports and Dashboards
with Interactivity, Sharing, Native Excel Exports, App Integration & more
Get technology previously reserved for billion-dollar corporations, FREE
http://pubads.g.doubleclick.net/gampad/clk?id=164703151&iu=/4140/ostg.clktrk
_______________________________________________
xrdp-devel mailing list
xrdp-devel@...
https://lists.sourceforge.net/lists/listinfo/xrdp-devel
Picon

Re: font rendering over slow connections

On 29/11/14 11:44, mail-7ab2YHgw0Wc+UGhm3MpsTQ@public.gmane.org wrote:
> Hi,
>
> I am using xrdp with X11rdp quite often over slow connections (long
> distance internet connections). In doing so, I noticed that some
> programs (e.g. gedit, gnome-terminal - probably any gtk and qt based
> program) seem to have a quite slow font rendering. Other programs (e.g.
> nedit, xterm - more simple programs, probably those using the
> fontserver) are very fast - more or less same speed as a text-only ssh
> connection. My impression is that the slower programs result in bitmap
> screen updates to be send to the client, while the fast programs render
> the fonts differently so high-level updates can be sent and the fonts
> are rendered on the client.
>
> Is this correct?

Yes

If yes, is there any way to enable the more modern
> programs not using the fontserver (but probably xrender) to also use
> client-side font rendering?

No

>
> Btw: I am using a very recent git version of xrdp (pulled from the
> master branch), but I observed this problem also with a much much older
> version 0.6.0 with a separate X11rdp package. Maybe I am installing or
> configuring it wrong?
>

No.

Font handling in X11 is stone age. Anything modern it is all rendered in
the widget set (aka gtk/qt) and sent as a bitmap. For the older programs
it is done in the Xserver and hence it is much more efficient.

It is one of the issues as to why things like Wayland are being pushed.

Thanks for this clarification. It seems to me that NX (as used e.g. in x2go) does a better job at this actually. As far as I understand, they use some kind of glyph cache, so the bitmap for each character has to be transmitted only once. This would imply that it is technically not impossible, unless maybe the rdp protocol does not allow something like this?

Cheers,
Martin

PS: I hope replying to a digested mail works like this. If not, I apologise for whatever mess I created... :-)

------------------------------------------------------------------------------
Download BIRT iHub F-Type - The Free Enterprise-Grade BIRT Server
from Actuate! Instantly Supercharge Your Business Reports and Dashboards
with Interactivity, Sharing, Native Excel Exports, App Integration & more
Get technology previously reserved for billion-dollar corporations, FREE
http://pubads.g.doubleclick.net/gampad/clk?id=164703151&iu=/4140/ostg.clktrk
_______________________________________________
xrdp-devel mailing list
xrdp-devel@...
https://lists.sourceforge.net/lists/listinfo/xrdp-devel
Anthony Takata | 16 Dec 04:33 2014
Picon

Use a "greeter session" instead of xrdp session?

I would like to skip the xrdp's session login screen and instead use the greeter session provided by the distribution (in this case, mate) to serve as the login.

I would imagine there's no way to get around the xrdp session manager, and I would also think that using the libxup.so module to silently log into a dummy account that subsequently launches the greeter program would not work (still wrapping my head around how I would attempt that).

Any thoughts? I'm aiming to emulate what happens when you connect to a remote desktop machine with no credentials, and you are prompted with multiple user profiles to click on.
------------------------------------------------------------------------------
Download BIRT iHub F-Type - The Free Enterprise-Grade BIRT Server
from Actuate! Instantly Supercharge Your Business Reports and Dashboards
with Interactivity, Sharing, Native Excel Exports, App Integration & more
Get technology previously reserved for billion-dollar corporations, FREE
http://pubads.g.doubleclick.net/gampad/clk?id=164703151&iu=/4140/ostg.clktrk
_______________________________________________
xrdp-devel mailing list
xrdp-devel@...
https://lists.sourceforge.net/lists/listinfo/xrdp-devel
Lionel Rocket | 15 Dec 15:28 2014
Picon

reconnection to X11rdp occasionally fails

Hello,

I'm having problems reconnecting to X11rdp sessions. I can't reproduce this but its occurring quite often.

Log output shows only the following lines, it finds the correct X11rdp session on display 11 but after that it immediately closes the connection and the Microsoft RDP client freezes.

2014-12-15T12:42:33.759+01:00 srv1 XRDP-sesman[8213] info: (8213)(140565769365440)[INFO ] A connection received from: 127.0.0.1 port 46705
2014-12-15T12:42:33.759+01:00 srv1 XRDP[25753] debug: (25753)(140019385399232)[DEBUG] returnvalue from xrdp_mm_connect 0
2014-12-15T12:42:33.759+01:00 srv1 XRDP-sesman[8213] info: (8213)(140565769365440)[INFO ] scp thread on sck 8 started successfully
2014-12-15T12:42:33.760+01:00 srv1 XRDP-sesman[8213] notice: pam_unix(xrdp-sesman:auth): authentication failure; logname= uid=0 euid=0 tty= ruser= rhost=  user=usr1
2014-12-15T12:42:33.769+01:00 srv1 XRDP-sesman[8213] info: (8213)(140565769144064)[INFO ] ++ reconnected session: username usr1, display :11.0, session_pid 3526, ip 172.16.51.68:50662 - socket: 8
2014-12-15T12:42:33.770+01:00 srv1 XRDP-sesman[8213] info: (8213)(140565769144064)[INFO ] An established connection closed to endpoint: 127.0.0.1:46705 - socket: 8

The process tree looks like this:

    1  8209  8194  1670 ?           -1 S       0:00 /usr/sbin/xrdp
 8209  3500  8194  1670 ?           -1 S       0:30  \_ /usr/sbin/xrdp
 8209 13964  8194  1670 ?           -1 S       0:00  \_ /usr/sbin/xrdp
    1  8213  8194  1670 ?           -1 S       0:00 /usr/sbin/xrdp-sesman
 8213  3526  8194  1670 ?           -1 S       0:00  \_ /usr/sbin/xrdp-sessvc 3528 3527
 3526  3527  8194  1670 ?           -1 S       0:00      \_ /usr/sbin/xrdp-sesman
 3527  3531  8194  1670 ?           -1 S       0:00      |   \_ /usr/bin/ck-xinit-session /usr/bin/ssh-agent /etc/X11/xinit/Xclients
 3531  3579  8194  1670 ?           -1 Sl      0:00      |       \_ /usr/bin/gnome-session
 3579  3580  3580  3580 ?           -1 Ss      0:00      |           \_ /usr/bin/ssh-agent /etc/X11/xinit/Xclients
 3579  3607  8194  1670 ?           -1 S       0:00      |           \_ metacity
 3579  3612  8194  1670 ?           -1 S       0:02      |           \_ gnome-panel
 3579  3622  8194  1670 ?           -1 S       0:15      |           \_ nautilus
 3579  3628  8194  1670 ?           -1 S       0:00      |           \_ /usr/libexec/polkit-gnome-authentication-agent-1
 3526  3528  8194  1670 ?           -1 S       0:44      \_ X11rdp :11 -geometry 1600x900 -depth 24 -bs -ac -nolisten tcp -uds
 3526  3532  8194  1670 ?           -1 Sl      0:00      \_ xrdp-chansrv


xrdp.ini content looks like this

[globals]
# xrdp.ini file version number
ini_version=1

bitmap_cache=yes
bitmap_compression=yes
port=3389
crypt_level=high
allow_channels=true
max_bpp=24
fork=yes

# regulate if the listening socket use socket option tcp_nodelay
# no buffering will be performed in the TCP stack
tcp_nodelay=yes

# regulate if the listening socket use socket option keepalive
# if the network connection disappear without close messages the connection will be closed
tcp_keepalive=yes

#tcp_send_buffer_bytes=32768
#tcp_recv_buffer_bytes=32768

# when true, userid/password *must* be passed on cmd line
# require_credentials=yes

bulk_compression=yes

# You can set the PAM error text in a gateway setup (MAX 256 chars)
#pamerrortxt=change your password according to policy at http://url
#new_cursors=no
#nego_sec_layer=0
allow_multimon=true

#
# configure login screen
#

# top level window background color in RGB format
ls_top_window_bg_color=003399

# width and height of login screen
ls_width=350
ls_height=430

# login screen background color in RGB format
ls_bg_color=ffffff

# logo
ls_logo_filename=/usr/share/logo.bmp
ls_logo_x_pos=35
ls_logo_y_pos=55

# for positioning labels such as username, password etc
ls_label_x_pos=30
ls_label_width=60

# for positioning text and combo boxes next to above labels
ls_input_x_pos=110
ls_input_width=210

# y pos for first label and combo box
ls_input_y_pos=220

# OK button
ls_btn_ok_x_pos=142
ls_btn_ok_y_pos=370
ls_btn_ok_width=85
ls_btn_ok_height=30

# Cancel button
ls_btn_cancel_x_pos=237
ls_btn_cancel_y_pos=370
ls_btn_cancel_width=85
ls_btn_cancel_height=30

[Logging]
EnableSyslog=1
SyslogLevel=DEBUG

[channels]
# Channel names not listed here will be blocked by XRDP.
# You can block any channel by setting its value to false.
# IMPORTANT! All channels are not supported in all use
# cases even if you set all values to true.
# You can override these settings on each session type
# These settings are only used if allow_channels=true
rdpdr=true
rdpsnd=true
drdynvc=true
cliprdr=true
rail=true
xrdpvr=true

# for debugging xrdp, in section xrdp1, change port=-1 to this:
# port=/tmp/.xrdp/xrdp_display_10

# for debugging xrdp, add following line to section xrdp1
# chansrvport=/tmp/.xrdp/xrdp_chansrv_socket_7210

[xrdp1]
name=sesman-X11rdp
lib=libxup.so
username=ask
password=ask
ip=127.0.0.1
port=-1
xserverbpp=24
code=10

# You can override the common channel settings for each session type
#channel.rdpdr=true
#channel.rdpsnd=true
#channel.drdynvc=true
#channel.cliprdr=true
#channel.rail=true
#channel.xrdpvr=true


Content of sesman.ini:

[Globals]
ListenAddress=127.0.0.1
ListenPort=3350
EnableUserWindowManager=1
UserWindowManager=startwm.sh
DefaultWindowManager=startwm.sh

[Security]
AllowRootLogin=1
MaxLoginRetry=4
TerminalServerUsers=tsusers
TerminalServerAdmins=tsadmins
# When AlwaysGroupCheck = false access will be permitted
# if the group TerminalServerUsers is not defined.
AlwaysGroupCheck = false

[Sessions]
X11DisplayOffset=10
MaxSessions=50
# if 1, true, or yes, kill session after 60 seconds
KillDisconnected=0
# if not zero, the seconds without mouse or keyboard input before disconnect
# not complete yet
IdleTimeLimit=0
# if not zero, the seconds before a disconnected session is killed
# min 60 seconds
DisconnectedTimeLimit=0

[Logging]
EnableSyslog=1
SyslogLevel=DEBUG

[X11rdp]
param1=-bs
param2=-ac
param3=-nolisten
param4=tcp
param5=-uds

[Xvnc]
param1=-bs
param2=-ac
param3=-nolisten
param4=tcp
param5=-localhost
param6=-dpi
param7=96

[Chansrv]
# drive redirection, defaults to xrdp_client if not set
FuseMountName=thinclient_drives


I have to kill the X11rdp thats making trouble and a new Session is created. It is not possible to reconnect to this session any more.
Is there any info i can provide to make debugging easier?

Used software is xrdp 0.8.0 running on rhel6.3. Connected via Windows 7 RDP client.


BR,
Lionel
------------------------------------------------------------------------------
Download BIRT iHub F-Type - The Free Enterprise-Grade BIRT Server
from Actuate! Instantly Supercharge Your Business Reports and Dashboards
with Interactivity, Sharing, Native Excel Exports, App Integration & more
Get technology previously reserved for billion-dollar corporations, FREE
http://pubads.g.doubleclick.net/gampad/clk?id=164703151&iu=/4140/ostg.clktrk
_______________________________________________
xrdp-devel mailing list
xrdp-devel@...
https://lists.sourceforge.net/lists/listinfo/xrdp-devel

Gmane