Mike Gabriel | 3 Jul 2012 15:53
Picon
Favicon

Fullscreen RDP sessions with X2Go

Hi John (Sullivan),

I currently try to provide Windows 2008 Terminal Services through X2Go  
and I stumbled over an issue I was not aware of.

In fullscreen mode the X2Go client-side does not get a keyboard grab  
on the rdesktop session window. I can move+click with the mouse, I can  
view the rdesktop login screen, but I cannot type. This is with  
pyhoca-gui and x2goclient. The problem does not occur with rdesktop  
running in a Window (rootless, but not fullscreen).

I then hacked PyHoca-GUI a little and launched rdesktop (-f) not as a  
rootless application (which is the default), but inside an agent  
desktop session (type "D"). Then the keyboard grab is there.

Have you an idea on this? I know that you provide RDP session through  
X2Go quite often.

Thanks for any info,
Mike

--

-- 

DAS-NETZWERKTEAM
mike gabriel, rothenstein 5, 24214 neudorf-bornstein
fon: +49 (1520) 1976 148

GnuPG Key ID 0xB588399B
mail: mike.gabriel <at> das-netzwerkteam.de, http://das-netzwerkteam.de

(Continue reading)

Helmer Teles | 3 Jul 2012 16:09
Picon
Gravatar

Re: Fullscreen RDP sessions with X2Go

On Tuesday 03 July 2012 15:53:24 Mike Gabriel wrote:

> Hi John (Sullivan),

>

> I currently try to provide Windows 2008 Terminal Services through X2Go

> and I stumbled over an issue I was not aware of.

>

> In fullscreen mode the X2Go client-side does not get a keyboard grab

> on the rdesktop session window. I can move+click with the mouse, I can

> view the rdesktop login screen, but I cannot type. This is with

> pyhoca-gui and x2goclient. The problem does not occur with rdesktop

> running in a Window (rootless, but not fullscreen).

>

> I then hacked PyHoca-GUI a little and launched rdesktop (-f) not as a

> rootless application (which is the default), but inside an agent

> desktop session (type "D"). Then the keyboard grab is there.

>

> Have you an idea on this? I know that you provide RDP session through

> X2Go quite often.

>

> Thanks for any info,

> Mike

 

Hi Mike,

 

although i don't use rdesktop but FreeRDP i've had that problem some time ago.

The way i've managed to do it was by calling a script that do some stuff and instead of calling freerdp -f ( fullscreen ) it calls it with a windows the size of the root window.

 

Something like this:

 

#!/bin/bash

 

# Script para Proxy RDP com optimização de trafego e

# Sem necessidade de usar um Gateway Windows

# ou Expor portas rdp directamente cá fora

# Impressora funciona como PDF - nao tem problemas de compatibilidade

# Se existir um ficheiro ~/.ssh/hostname ele usará esse hostname ( requerido por algumas

# aplicações como o Primavera por exemplo para controle de postos.

#

# Tecnologias de Base: X2GO-DEV; Xfreerdp-DEV

# 2011 hteles <at> spikecs.pt

 

SCRIPTNAME=`basename $0`

LOGFILE="${HOME}/.$SCRIPTNAME.log"

SERVER=${SCRIPTNAME}

PORT="3389"

SOUND="off"

MOUNTPOINT="${HOME}/media/disk"

# Newest xfreerdp git versions have a bug with full screen ( -f ) under nxagent

DSIZE=`xdpyinfo |grep -i dimensions|awk '{print $2}'`

PRINTER=`lpstat -d |cut -d ':' -f 2 |tr -d ' '`

 

...

 

 

open_rdp()

{

 

setxkbmap -model pc105 -layout pt

setxkbmap -model pc105 -layout pt

KEYB="0x00000816"

COMMAND=" -d Domain -x 3 -z -g ${DSIZE} -k ${KEYB} --gdi hw -n ${USERHOSTNAME} --sec rdp ${FINALSTRG

} ${SERVER}:${PORT}"

 

 

Hope that this helps you,

 

 

 

regards

--

Helmer Teles

 

helmer [DOT] teles at Google Email Server

Web Page: http://hteles.wordpress.com

 

 

 

 

 

 

_______________________________________________
X2Go-Dev mailing list
X2Go-Dev <at> lists.berlios.de
https://lists.berlios.de/mailman/listinfo/x2go-dev
Mike Gabriel | 3 Jul 2012 16:24
Picon
Favicon

Re: Fullscreen RDP sessions with X2Go

Hi Helmer,

On Di 03 Jul 2012 16:09:23 CEST Helmer Teles wrote:

> On Tuesday 03 July 2012 15:53:24 Mike Gabriel wrote:
>> Hi John (Sullivan),
>>
>> I currently try to provide Windows 2008 Terminal Services through X2Go
>> and I stumbled over an issue I was not aware of.
>>
>> In fullscreen mode the X2Go client-side does not get a keyboard grab
>> on the rdesktop session window. I can move+click with the mouse, I can
>> view the rdesktop login screen, but I cannot type. This is with
>> pyhoca-gui and x2goclient. The problem does not occur with rdesktop
>> running in a Window (rootless, but not fullscreen).
>>
>> I then hacked PyHoca-GUI a little and launched rdesktop (-f) not as a
>> rootless application (which is the default), but inside an agent
>> desktop session (type "D"). Then the keyboard grab is there.
>>
>> Have you an idea on this? I know that you provide RDP session through
>> X2Go quite often.
>>
>> Thanks for any info,
>> Mike
>
> Hi Mike,
>
> although i don't use rdesktop but FreeRDP i've had that problem some  
> time ago.
> The way i've managed to do it was by calling a script that do some stuff and
> instead of calling freerdp -f ( fullscreen ) it calls it with a windows the
> size of the root window.
>
> Something like this:
>
> #!/bin/bash
>
> # Script para Proxy RDP com optimização de trafego e
> # Sem necessidade de usar um Gateway Windows
> # ou Expor portas rdp directamente cá fora
> # Impressora funciona como PDF - nao tem problemas de compatibilidade
> # Se existir um ficheiro ~/.ssh/hostname ele usará esse hostname ( requerido
> por algumas
> # aplicações como o Primavera por exemplo para controle de postos.
> #
> # Tecnologias de Base: X2GO-DEV; Xfreerdp-DEV
> # 2011 hteles <at> spikecs.pt
>
> SCRIPTNAME=`basename $0`
> LOGFILE="${HOME}/.$SCRIPTNAME.log"
> SERVER=${SCRIPTNAME}
> PORT="3389"
> SOUND="off"
> MOUNTPOINT="${HOME}/media/disk"
> # Newest xfreerdp git versions  have a bug with full screen ( -f ) under
> nxagent
> DSIZE=`xdpyinfo |grep -i dimensions|awk '{print $2}'`
> PRINTER=`lpstat -d |cut -d ':' -f 2 |tr -d ' '`
>
> ...
>
>
> open_rdp()
> {
>
>   setxkbmap -model pc105 -layout pt
>   setxkbmap -model pc105 -layout pt
>   KEYB="0x00000816"
>   COMMAND=" -d Domain -x 3  -z -g ${DSIZE} -k ${KEYB} --gdi hw -n
> ${USERHOSTNAME} --sec rdp  ${FINALSTRG
> } ${SERVER}:${PORT}"
>
>
> Hope that this helps you,

Can you provide the whole script? It feels like this (or something  
very much like this) should become part of X2Go upstream.

Thanks+Greets,
Mike

--

-- 

DAS-NETZWERKTEAM
mike gabriel, rothenstein 5, 24214 neudorf-bornstein
fon: +49 (1520) 1976 148

GnuPG Key ID 0xB588399B
mail: mike.gabriel <at> das-netzwerkteam.de, http://das-netzwerkteam.de

freeBusy:
https://mail.das-netzwerkteam.de/freebusy/m.gabriel%40das-netzwerkteam.de.xfb
_______________________________________________
X2Go-Dev mailing list
X2Go-Dev <at> lists.berlios.de
https://lists.berlios.de/mailman/listinfo/x2go-dev
Helmer Teles | 3 Jul 2012 16:57
Picon
Gravatar

Re: Fullscreen RDP sessions with X2Go

On Tuesday 03 July 2012 16:24:55 you wrote:

> > Hope that this helps you,

>

> Can you provide the whole script? It feels like this (or something  

> very much like this) should become part of X2Go upstream.

>

> Thanks+Greets,

> Mike

>

>

> -- 

>

> DAS-NETZWERKTEAM

> mike gabriel, rothenstein 5, 24214 neudorf-bornstein

 

 

Hi, Mike.

 

Here it goes, it's not even very finished but it works for some of our winblows customers. I'm more on the Linux Desktop KDE 4 Nightmare to kiosk thing ;)

I've attached it to you because it will get nasty to get something of inline text.

 

Side note: this script is running in a kind of forgotten by me linux host.

Been hard <at> working with KDE 4 as DaaS to replace our aging Debian Lenny with kde3 Linux cloud Desktops.

 

components on the server :

 

freerdp:20120301-2hteles2

cups-x2go:3.0.0.3-0~54~oneiric1

pyhoca-cli:0.1.4.2-0~108~oneiric1

pyhoca-gui:0.1.0.10-0~487~oneiric1

python-x2go:0.1.1.9-0-0~612~oneiric1

x2goagent:2:3.5.0.10-0~186~oneiric1

x2goclient:3.99.0.6-0~144~oneiric1

x2goplugin:3.99.0.6-0~144~oneiric1

x2goserver:3.0.99.10-0~434~oneiric1

x2goserver-compat:3.0.99.10-0~434~oneiric1

x2goserver-extensions:3.0.99.10-0~434~oneiric1

x2goserver-printing:3.0.99.10-0~434~oneiric1

 

 

 

#!/bin/bash

 

# V1.1 (2012/03/01)

# Script para Proxy RDP com optimização de trafego e

# Sem necessidade de usar um Gateway Windows ou

# Expor portas rdp directamente cá fora

# Impressora funciona como PDF - nao tem problemas de compatibilidade

# Se existir um ficheiro ~/.ssh/hostname ele usará esse hostname ( requerido por algumas

# aplicações como o Primavera por exemplo para controle de postos. )

#

# Tecnologias de Base: X2GO-DEV; Xfreerdp-DEV

# 2011 hteles <at> spikecs.pt; helmer.teles <at> gmail.com ; http://hteles.wordpress.com

 

 

SCRIPTNAME=`basename $0`

LOGFILE="${HOME}/.$SCRIPTNAME.log"

SERVER=${SCRIPTNAME}

PORT="3389"

SOUND="off"

MOUNTPOINT="${HOME}/media/disk"

 

# Newest x2go have a bug : error loading libNX_Xext.so.6

export LD_LIBRARY_PATH="$LD_LIBRARY_PATH:/usr/lib/nx/X11"

 

# Newest xfreerdp git versions have a bug with full screen ( -f ) under nxagent

DSIZE=`xdpyinfo |grep -i dimensions|awk '{print $2}'`

 

 

PRINTER=`lpstat -d |cut -d ':' -f 2 |tr -d ' '`

 

check_hostname()

{

USERHOSTFILE="${HOME}/.ssh/hostname"

if ! [ -e ${USERHOSTFILE} ]; then

USERHOSTNAME="SPIKEDEV"

else

MYHOSTNAME=`cat ${USERHOSTFILE} | wc -c`

if [ "$MYHOSTNAME" == "0" ]; then

USERHOSTNAME=${USERHOSTNAME}

else

USERHOSTNAME=`cat ${USERHOSTFILE}`

fi

fi

}

 

check_session_mount_stuff()

{

MYSESSION=`x2golistsessions |cut -d '|' -f2`

PTUNEL=`x2golistmounts ${MYSESSION} |grep -i spool | wc -l`

STUNEL=`x2golistmounts ${MYSESSION} |grep -i disk | wc -l`

}

 

check_mounted_share()

{

if [ "$STUNEL" = "1" ]; then

SHARESTR="disk:PCLOCAL:${MOUNTPOINT}"

else

SHARESTR=""

fi

}

 

check_mounted_printer()

{

if [ "$PTUNEL" = "1" ]; then

PRINTERSTR="printer:$PRINTER"

else

PRINTERSTR=""

fi

}

 

construct_string()

{

BASESTRG="--plugin cliprdr "

 

if [ "$STUNEL" = "1" ] || [ "$PTUNEL" = "1" ]; then

COMMAND="$BASESTRG --plugin rdpdr --data "

CLOSESTRG="--"

fi

 

if [ "$STUNEL" = "1" ]; then

COMMAND="$COMMAND $SHARESTR "

fi

if [ "$PTUNEL" = "1" ]; then

COMMAND="$COMMAND $PRINTERSTR "

fi

 

FINALSTRG="$COMMAND $CLOSESTRG "

}

 

check_user_kbd()

{

#TODO

echo "todo"

}

 

check_user_dimensions()

{

echo "todo"

}

 

 

open_rdp()

{

 

setxkbmap -model pc105 -layout pt

setxkbmap -model pc105 -layout pt

KEYB="0x00000816"

COMMAND=" -d pikets -x 3 -z --gdi hw -g ${DSIZE} -k ${KEYB} -n ${USERHOSTNAME} --sec rdp ${FINALSTRG} ${SERVER}:${PORT}"

# COMMAND=" -d pikets -x 3 -z -f -k ${KEYB} -n ${USERHOSTNAME} --sec rdp ${FINALSTRG} ${SERVER}:${PORT}"

echo "----------------------------------------------------------- SESSION LOG START -----------------------------------------------------" >> $LOGFILE

echo "Our connection is starting <at> `date +%F_%T`" >> $LOGFILE

echo "Will Connect to Server: $SERVER <at> Port: $PORT " >> $LOGFILE

echo "Will Use Keyboard Code $KEYB" >> $LOGFILE

echo "Will Use ${USERHOSTNAME} as Client Hostname" >> $LOGFILE

echo "Will Exec: xfreerdp -u \"\" $COMMAND" >> $LOGFILE

echo "----------------------------------------------------------- SESSION LOG CLOSE -----------------------------------------------------" >> $LOGFILE

exec xfreerdp -u "" $COMMAND

x2goterminate-session ${MYSESSION}

}

 

touch $LOGFILE

check_hostname

sleep 3

check_session_mount_stuff

check_mounted_share

check_mounted_printer

construct_string

open_rdp

 

 

 

 

 

--

Helmer Teles

 

eM <at> il : helmer.teles <at> gmail.com

MSN_ID : helmer.teles <at> gmail.com

Web Page: http://hteles.wordpress.com

Phone: : +351 96 792 10 86

 

 

 

 

 

Attachment (generic.freerdp): application/x-shellscript, 3411 bytes
_______________________________________________
X2Go-Dev mailing list
X2Go-Dev <at> lists.berlios.de
https://lists.berlios.de/mailman/listinfo/x2go-dev
John A. Sullivan III | 3 Jul 2012 19:42

Re: Fullscreen RDP sessions with X2Go

On Tue, 2012-07-03 at 15:57 +0100, Helmer Teles wrote:
> <snip>> 
> 
> > Can you provide the whole script? It feels like this (or something  
> 
> > very much like this) should become part of X2Go upstream.
> <snip> 
> 
> Here it goes, it's not even very finished but it works for some of our
> winblows customers. I'm more on the Linux Desktop KDE 4 Nightmare to
> kiosk thing ;)
> 
> I've attached it to you because it will get nasty to get something of
> inline text.
> 
>  
> 
> Side note: this script is running in a kind of forgotten by me linux
> host.
> 
> Been hard  <at>  working with KDE 4 as DaaS to replace our aging Debian
> Lenny with kde3 Linux cloud Desktops.
> 
<snip>
Interesting.  Maybe that's why I have not seen it as we are not using
the latest xfreerdp yet.

Helmer, as an aside, we sidestepped the KDE4 nightmare by switching to
the Trinity desktop.  In case you are not familiar with it -
www.trinitydesktop.org. It is a maintained fork of KDE3 and has worked
well for us.  Good luck - John
Helmer Teles | 3 Jul 2012 21:36
Picon
Gravatar

Re: Fullscreen RDP sessions with X2Go

On Tuesday 03 July 2012 13:42:18 John A. Sullivan III wrote:
> <snip>
> Interesting.  Maybe that's why I have not seen it as we are not using
> the latest xfreerdp yet.
> 
> Helmer, as an aside, we sidestepped the KDE4 nightmare by switching to
> the Trinity desktop.  In case you are not familiar with it -
> www.trinitydesktop.org. It is a maintained fork of KDE3 and has worked
> well for us.  Good luck - John
> 
> _______________________________________________
> X2Go-Dev mailing list
> X2Go-Dev <at> lists.berlios.de
> https://lists.berlios.de/mailman/listinfo/x2go-dev

Hi,

at some time I’ve considered the project but it's future was not  very certain 
at that time.

BTW, the website seems to be down right now.

thanks for  the tip.

regards,
--

-- 
Helmer Teles

eM <at> il   : helmer DoT teles At Google Email Servers
Web Page: http://hteles.wordpress.com

_______________________________________________
X2Go-Dev mailing list
X2Go-Dev <at> lists.berlios.de
https://lists.berlios.de/mailman/listinfo/x2go-dev

Gmane