David Burgess | 31 May 2012 21:46
Picon

xfreerdp and Ubuntu 12.04

Hey,

I started testing Ubuntu 12.04 for an LTSP server today. All my thin
clients use SCREEN_07=rdesktop, which I am aware now points to
xfreerdp. The problem I'm having is that the clients boot but never
connect to the RDP server, which is running Windows 2008 R2.

The client display is black with a mouse pointer. When logged into the
client via ssh, netstat shows no connection to the server, where I
would expect to see a connection to TCP/3389. I had some RDP
command-line option, so I cleared all those except for "-d GPRC", but
no change.

# ps aux | grep rdp
root      1616  0.0  0.0   3560   652 tty7     S+   20:38   0:00 xinit
/usr/share/ltsp/xinitrc xfreerdp  -dGPRC 172.21.34.1 -- :7 vt7 -depth
16
root      1649  5.1  0.0   2216   664 tty7     S    20:38   0:15
/bin/sh /usr/share/ltsp/xinitrc xfreerdp  -dGPRC 172.21.34.1
root      3877  0.0  0.0   4364   832 pts/0    S+   20:43   0:00 grep
--color=auto rdp

So it looks like xfreerdp is running (twice?) with my option, but
still no evidence of a connection. Any suggestions?

db

------------------------------------------------------------------------------
Live Security Virtual Conference
Exclusive live event will cover all the ways today's security and 
(Continue reading)

David Burgess | 4 Jun 2012 19:30
Picon

Re: xfreerdp and Ubuntu 12.04

On Thu, May 31, 2012 at 1:46 PM, David Burgess <apt.get@...> wrote:

> So it looks like xfreerdp is running (twice?) with my option, but
> still no evidence of a connection. Any suggestions?

Bump. Is anybody using xfreerdp on Ubuntu 12.04? Is anybody using
xfreerdp? I have tried xfreerdp with no options other than the server
name, and it still doesn't connect. I can't really think of a simpler
scenario for testing this, so I'm not sure why I seem to be the only
one having this problem.

db

------------------------------------------------------------------------------
Live Security Virtual Conference
Exclusive live event will cover all the ways today's security and 
threat landscape has changed and how IT managers can respond. Discussions 
will include endpoint security, mobile security and the latest in malware 
threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
_____________________________________________________________________
Ltsp-discuss mailing list.   To un-subscribe, or change prefs, goto:
      https://lists.sourceforge.net/lists/listinfo/ltsp-discuss
For additional LTSP help,   try #ltsp channel on irc.freenode.net

David Burgess | 8 Jun 2012 18:35
Picon

Re: xfreerdp and Ubuntu 12.04

On Mon, Jun 4, 2012 at 11:30 AM, David Burgess <apt.get@...> wrote:
> On Thu, May 31, 2012 at 1:46 PM, David Burgess <apt.get@...> wrote:
>
>> So it looks like xfreerdp is running (twice?) with my option, but
>> still no evidence of a connection. Any suggestions?

Thanks to Alkis' suggestion in another recent thread, I have some new
information on this issue, and using xterm on the client to start
xfreerdp, I learned some things:

1) I need to use the following xfreerdp switches in xterm to get an
immediate connection without prompts in the terminal:
--ignore-certificate, otherwise I get a certificate error and no
connection until I hit "y"
--no-nla, otherwise I get a password prompt before connecting to the
terminal server

So by typing at the xterm on the client something like:

xfreerdp --ignore-certificate --no-nla -d gprc -u dburgess 172.21.34.1

I get a Windows logon screen as expected.

2) The options that work in xterm do not work for me when plugged
straight into lts.conf along with SCREEN_07=xfreerdp. So using the
above options as an example, none of the following configuration
produce anything other than a black screen on the client, sometimes
with a mouse pointer present:

[sample:config:1]
(Continue reading)

Alkis Georgopoulos | 8 Jun 2012 19:48
Picon

Re: xfreerdp and Ubuntu 12.04

Could you try with

SCREEN_07="xfreerdp -f --ignore-certificate --no-nla -d gprc -u dburgess 
172.21.34.1"

and post the output of
hexdump -C /proc/≤pid of xfreerdp>/cmdline
hexdump -C /proc/≤pid of xinit>/cmdline
hexdump -C /proc/≤pid of xinitrc>/cmdline

both for the normal lts.conf method,
and for the xterm/manually ran xfreerdp method?

------------------------------------------------------------------------------
Live Security Virtual Conference
Exclusive live event will cover all the ways today's security and 
threat landscape has changed and how IT managers can respond. Discussions 
will include endpoint security, mobile security and the latest in malware 
threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
_____________________________________________________________________
Ltsp-discuss mailing list.   To un-subscribe, or change prefs, goto:
      https://lists.sourceforge.net/lists/listinfo/ltsp-discuss
For additional LTSP help,   try #ltsp channel on irc.freenode.net

David Burgess | 8 Jun 2012 22:25
Picon

Re: xfreerdp and Ubuntu 12.04

SCREEN_07=xterm

root <at> virtual-tc:~# hexdump -C /proc/1731/cmdline
00000000  78 66 72 65 65 72 64 70  00 2d 66 00 2d 2d 69 67  |xfreerdp.-f.--ig|
00000010  6e 6f 72 65 2d 63 65 72  74 69 66 69 63 61 74 65  |nore-certificate|
00000020  00 2d 2d 6e 6f 2d 6e 6c  61 00 2d 64 00 67 70 72  |.--no-nla.-d.gpr|
00000030  63 00 2d 75 00 64 62 75  72 67 65 73 73 00 31 37  |c.-u.dburgess.17|
00000040  32 2e 32 31 2e 33 34 2e  31 00                    |2.21.34.1.|
0000004a

root <at> virtual-tc:~# hexdump -C /proc/1653/cmdline
00000000  78 69 6e 69 74 00 2f 75  73 72 2f 73 68 61 72 65  |xinit./usr/share|
00000010  2f 6c 74 73 70 2f 78 69  6e 69 74 72 63 00 78 74  |/ltsp/xinitrc.xt|
00000020  65 72 6d 20 00 2d 2d 00  3a 37 00 76 74 37 00 2d  |erm .--.:7.vt7.-|
00000030  64 65 70 74 68 00 31 36  00                       |depth.16.|
00000039

SCREEN_07="xfreerdp -f --ignore-certificate --no-nla -d gprc -u
dburgess 172.21.34.1"

root <at> virtual-tc:~# hexdump -C /proc/1640/cmdline
00000000  78 69 6e 69 74 00 2f 75  73 72 2f 73 68 61 72 65  |xinit./usr/share|
00000010  2f 6c 74 73 70 2f 78 69  6e 69 74 72 63 00 78 66  |/ltsp/xinitrc.xf|
00000020  72 65 65 72 64 70 20 2d  66 20 2d 2d 69 67 6e 6f  |reerdp -f --igno|
00000030  72 65 2d 63 65 72 74 69  66 69 63 61 74 65 20 2d  |re-certificate -|
00000040  2d 6e 6f 2d 6e 6c 61 20  2d 64 20 67 70 72 63 20  |-no-nla -d gprc |
00000050  2d 75 20 64 62 75 72 67  65 73 73 20 31 37 32 2e  |-u dburgess 172.|
00000060  32 31 2e 33 34 2e 31 20  20 00 2d 64 65 70 74 68  |21.34.1  .-depth|
00000070  00 31 36 00                                       |.16.|
00000074
(Continue reading)

Alkis Georgopoulos | 9 Jun 2012 01:39
Picon

Re: xfreerdp and Ubuntu 12.04

It appears that xfreerdp started segfaulting if $HOME is unset.
It used to work some months ago when I last tested it.

Try this:
   sudo editor /opt/ltsp/i386-original/usr/share/ltsp/xinitrc
and after this line:
   . /usr/share/ltsp/ltsp-client-functions
put this:
   export HOME=${HOME:-/root}
save, exit, and run:
   sudo ltsp-update-image

If it works, file a bug in the xfreerdp package,
and I'll commit the workaround in LTSP.

------------------------------------------------------------------------------
Live Security Virtual Conference
Exclusive live event will cover all the ways today's security and 
threat landscape has changed and how IT managers can respond. Discussions 
will include endpoint security, mobile security and the latest in malware 
threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
_____________________________________________________________________
Ltsp-discuss mailing list.   To un-subscribe, or change prefs, goto:
      https://lists.sourceforge.net/lists/listinfo/ltsp-discuss
For additional LTSP help,   try #ltsp channel on irc.freenode.net

Alkis Georgopoulos | 9 Jun 2012 08:34
Picon

Re: xfreerdp and Ubuntu 12.04

Στις 09/06/2012 02:39 πμ, ο/η Alkis Georgopoulos έγραψε:
> It appears that xfreerdp started segfaulting if $HOME is unset.
> It used to work some months ago when I last tested it.
>
> Try this:
> sudo editor /opt/ltsp/i386-original/usr/share/ltsp/xinitrc

...I meant "i386", not "i386-original" there.

To reproduce the problem in any system, not necessarily an LTSP client, run:

unset HOME
xfreerdp localhost

==>
Segmentation Fault (core dumped)
...
xfreerdp crashed with SIGSEGV in freerdp_get_config_path

------------------------------------------------------------------------------
Live Security Virtual Conference
Exclusive live event will cover all the ways today's security and 
threat landscape has changed and how IT managers can respond. Discussions 
will include endpoint security, mobile security and the latest in malware 
threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
_____________________________________________________________________
Ltsp-discuss mailing list.   To un-subscribe, or change prefs, goto:
      https://lists.sourceforge.net/lists/listinfo/ltsp-discuss
For additional LTSP help,   try #ltsp channel on irc.freenode.net
(Continue reading)

David Burgess | 11 Jun 2012 20:05
Picon

Re: xfreerdp and Ubuntu 12.04

On Fri, Jun 8, 2012 at 5:39 PM, Alkis Georgopoulos <alkisg <at> gmail.com> wrote:
> It appears that xfreerdp started segfaulting if $HOME is unset.
> It used to work some months ago when I last tested it.
>
> Try this:
>   sudo editor /opt/ltsp/i386-original/usr/share/ltsp/xinitrc
> and after this line:
>   . /usr/share/ltsp/ltsp-client-functions
> put this:
>   export HOME=${HOME:-/root}

That worked. Thank you. I will file a bug report.

db

------------------------------------------------------------------------------
Live Security Virtual Conference
Exclusive live event will cover all the ways today's security and 
threat landscape has changed and how IT managers can respond. Discussions 
will include endpoint security, mobile security and the latest in malware 
threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
_____________________________________________________________________
Ltsp-discuss mailing list.   To un-subscribe, or change prefs, goto:
      https://lists.sourceforge.net/lists/listinfo/ltsp-discuss
For additional LTSP help,   try #ltsp channel on irc.freenode.net
Alkis Georgopoulos | 12 Jun 2012 21:28
Picon

Re: xfreerdp and Ubuntu 12.04

Στις 11/06/2012 09:05 μμ, ο/η David Burgess έγραψε:
> On Fri, Jun 8, 2012 at 5:39 PM, Alkis Georgopoulos<alkisg <at> gmail.com>  wrote:
>> It appears that xfreerdp started segfaulting if $HOME is unset.
>> It used to work some months ago when I last tested it.
>>
>> Try this:
>>    sudo editor /opt/ltsp/i386-original/usr/share/ltsp/xinitrc
>> and after this line:
>>    . /usr/share/ltsp/ltsp-client-functions
>> put this:
>>    export HOME=${HOME:-/root}
>
> That worked. Thank you. I will file a bug report.
>
> db

Cool, pushed in
http://bazaar.launchpad.net/~ltsp-upstream/ltsp/ltsp-trunk/revision/2334

------------------------------------------------------------------------------
Live Security Virtual Conference
Exclusive live event will cover all the ways today's security and 
threat landscape has changed and how IT managers can respond. Discussions 
will include endpoint security, mobile security and the latest in malware 
threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
_____________________________________________________________________
Ltsp-discuss mailing list.   To un-subscribe, or change prefs, goto:
      https://lists.sourceforge.net/lists/listinfo/ltsp-discuss
For additional LTSP help,   try #ltsp channel on irc.freenode.net
(Continue reading)

David Burgess | 12 Jun 2012 21:35
Picon

Re: xfreerdp and Ubuntu 12.04

On Tue, Jun 12, 2012 at 1:28 PM, Alkis Georgopoulos <alkisg@...> wrote:

> Cool, pushed in
> http://bazaar.launchpad.net/~ltsp-upstream/ltsp/ltsp-trunk/revision/2334

And here's the bug report:

https://bugs.launchpad.net/ubuntu/+source/freerdp/+bug/1011790

db

------------------------------------------------------------------------------
Live Security Virtual Conference
Exclusive live event will cover all the ways today's security and 
threat landscape has changed and how IT managers can respond. Discussions 
will include endpoint security, mobile security and the latest in malware 
threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
_____________________________________________________________________
Ltsp-discuss mailing list.   To un-subscribe, or change prefs, goto:
      https://lists.sourceforge.net/lists/listinfo/ltsp-discuss
For additional LTSP help,   try #ltsp channel on irc.freenode.net

David Burgess | 11 Sep 2012 23:25
Picon

Re: xfreerdp and Ubuntu 12.04

On Tue, Jun 12, 2012 at 1:28 PM, Alkis Georgopoulos <alkisg <at> gmail.com> wrote:
> Στις 11/06/2012 09:05 μμ, ο/η David Burgess έγραψε:
>> On Fri, Jun 8, 2012 at 5:39 PM, Alkis Georgopoulos<alkisg <at> gmail.com>  wrote:
>>> It appears that xfreerdp started segfaulting if $HOME is unset.
>>> It used to work some months ago when I last tested it.
>>>
>>> Try this:
>>>    sudo editor /opt/ltsp/i386-original/usr/share/ltsp/xinitrc
>>> and after this line:
>>>    . /usr/share/ltsp/ltsp-client-functions
>>> put this:
>>>    export HOME=${HOME:-/root}
>>
>> That worked. Thank you. I will file a bug report.
>>
>> db
>
> Cool, pushed in
> http://bazaar.launchpad.net/~ltsp-upstream/ltsp/ltsp-trunk/revision/2334

I just did a fresh install of Ubuntu 12.04.1 on a new server and after
doing all updates I still had to implement this workaround. Is that
expected, or am I doing it wrong?

db

------------------------------------------------------------------------------
Live Security Virtual Conference
Exclusive live event will cover all the ways today's security and 
threat landscape has changed and how IT managers can respond. Discussions 
(Continue reading)


Gmane