Discussion:
[Freerdp-devel] rdpdr plugin usage
Anna Martynova
2010-11-26 10:31:41 UTC
Permalink
Hello.
I have met some issue, but not sure is it bug or feature. :)
I need to redirect sound, disk, COM and LPT ports to server.
If I use command:
xfreerdp --plugin rdpsnd --plugin rdpdr --data disk:flash:/media
serial:COM1:/dev/ttyS0 serial:COM2:/dev/ttyS1 serial:COM3:/dev/ttyS2
serial:COM4:/dev/ttyS3 parallel:LPT1:/dev/lp0 -- <server>
all goes ok, all devices are redirected.

but if I use command:
xfreerdp --plugin rdpsnd --plugin rdpdr --data disk:flash:/media --
--plugin rdpdr --data serial:COM1:/dev/ttyS0 serial:COM2:/dev/ttyS1
serial:COM3:/dev/ttyS2 serial:COM4:/dev/ttyS3 parallel:LPT1:/dev/lp0
-- <server>
disk is not redirected, but com/lpt ports are.

Is the second command not valid? Or is it a parsing bug?

Thank you.
Vic Lee
2010-11-29 16:06:39 UTC
Permalink
Simply say: first format is right and second one is wrong. :)

No plugin should be loaded for more than once.
Post by Anna Martynova
Hello.
I have met some issue, but not sure is it bug or feature. :)
I need to redirect sound, disk, COM and LPT ports to server.
xfreerdp --plugin rdpsnd --plugin rdpdr --data disk:flash:/media
serial:COM1:/dev/ttyS0 serial:COM2:/dev/ttyS1 serial:COM3:/dev/ttyS2
serial:COM4:/dev/ttyS3 parallel:LPT1:/dev/lp0 --<server>
all goes ok, all devices are redirected.
xfreerdp --plugin rdpsnd --plugin rdpdr --data disk:flash:/media --
--plugin rdpdr --data serial:COM1:/dev/ttyS0 serial:COM2:/dev/ttyS1
serial:COM3:/dev/ttyS2 serial:COM4:/dev/ttyS3 parallel:LPT1:/dev/lp0
--<server>
disk is not redirected, but com/lpt ports are.
Is the second command not valid? Or is it a parsing bug?
Thank you.
Anna Martynova
2010-11-29 21:22:17 UTC
Permalink
Ok, I understood the concept.
But format of redirection options is rather complex and not good for
automatic command line generation. Old rdesktop format was much more
easier, you can append separate option for each redirected device, not
depending for others.
Post by Vic Lee
Simply say: first format is right and second one is wrong. :)
No plugin should be loaded for more than once.
Post by Anna Martynova
Hello.
I have met some issue, but not sure is it bug or feature. :)
I need to redirect sound, disk, COM and LPT ports to server.
xfreerdp --plugin rdpsnd --plugin rdpdr --data disk:flash:/media
serial:COM1:/dev/ttyS0 serial:COM2:/dev/ttyS1 serial:COM3:/dev/ttyS2
serial:COM4:/dev/ttyS3 parallel:LPT1:/dev/lp0 --<server>
all goes ok, all devices are redirected.
xfreerdp --plugin rdpsnd --plugin rdpdr --data disk:flash:/media --
--plugin rdpdr --data serial:COM1:/dev/ttyS0 serial:COM2:/dev/ttyS1
serial:COM3:/dev/ttyS2 serial:COM4:/dev/ttyS3 parallel:LPT1:/dev/lp0
--<server>
disk is not redirected, but com/lpt ports are.
Is the second command not valid? Or is it a parsing bug?
Thank you.
------------------------------------------------------------------------------
Increase Visibility of Your 3D Game App & Earn a Chance To Win $500!
Tap into the largest installed PC base & get more eyes on your game by
optimizing for Intel(R) Graphics Technology. Get started today with the
Intel(R) Software Partner Program. Five $500 cash prizes are up for grabs.
http://p.sf.net/sfu/intelisp-dev2dev
_______________________________________________
Freerdp-devel mailing list
https://lists.sourceforge.net/lists/listinfo/freerdp-devel
Otavio Salvador
2010-11-30 13:30:34 UTC
Permalink
Post by Anna Martynova
Ok, I understood the concept.
But format of redirection options is rather complex and not good for
automatic command line generation. Old rdesktop format was much more
easier, you can append separate option for each redirected device, not
depending for others.
rdesktop is limited to one connection while freerdp is not.
--
Otavio Salvador                  O.S. Systems
E-mail: ***@ossystems.com.br  http://www.ossystems.com.br
Mobile: +55 53 9981-7854         http://projetos.ossystems.com.br
Anna Martynova
2010-12-01 08:41:11 UTC
Permalink
Sorry, what do you mean?
I was speaking only about syntax, not about any kind of functionality.
Post by Otavio Salvador
Post by Anna Martynova
Ok, I understood the concept.
But format of redirection options is rather complex and not good for
automatic command line generation. Old rdesktop format was much more
easier, you can append separate option for each redirected device, not
depending for others.
rdesktop is limited to one connection while freerdp is not.
--
Otavio Salvador                  O.S. Systems
Mobile: +55 53 9981-7854         http://projetos.ossystems.com.br
Anna Martynova
2010-12-01 14:28:49 UTC
Permalink
New question about rdpdr plugin, now about printer subplugin.
For example, I have 5 printers configured in CUPS, and I need to
redirect 2 of them.
I am trying to use command:

xfreerdp --plugin rdpdr --data printer:printername1
printer:printername2 -- <server>

In the output of xfreerdp I see:
"1 device(s) registered
registered device: PRN1 (type=4 id=1)"

Of course, I see only one redirected printer in my session.

So, the question is:
How to redirect two or more local printers to RDP session?
Nils Andresen
2010-12-01 21:53:52 UTC
Permalink
Post by Anna Martynova
How to redirect two or more local printers to RDP session?
Hi.
Your commandline looks correct. However I can confirm your problem using
the git sources: Only one printer-definition is currently allowed, the
rest is silently ignored

I am unsure as to WHY this was made so (it does not look as if this was
made with intent: There is a "break" in
channels/rdpdr/printer/printer_main.c#DeviceServiceEntry) but maybe
Marc-Andre or Vic know.

I have modified the sources here:
http://gitorious.org/~nilsa/freerdp/nilsas-freerdp-mainline/commits/MultiplePrinters
and it seems to work fine, letting me specify more than one printer
explicitly.

Yours,
Nils
Anna Martynova
2010-12-02 08:30:40 UTC
Permalink
Thank you very much!
I applied the changing to release 0.8.2 and it works. The patch is
very complicated. :)
Post by Nils Andresen
Post by Anna Martynova
How to redirect two or more local printers to RDP session?
Hi.
Your commandline looks correct. However I can confirm your problem using
the git sources: Only one printer-definition is currently allowed, the
rest is silently ignored
I am unsure as to WHY this was made so (it does not look as if this was
made with intent: There is a "break" in
channels/rdpdr/printer/printer_main.c#DeviceServiceEntry) but maybe
Marc-Andre or Vic know.
http://gitorious.org/~nilsa/freerdp/nilsas-freerdp-mainline/commits/MultiplePrinters
and it seems to work fine, letting me specify more than one printer
explicitly.
Yours,
Nils
------------------------------------------------------------------------------
Increase Visibility of Your 3D Game App & Earn a Chance To Win $500!
Tap into the largest installed PC base & get more eyes on your game by
optimizing for Intel(R) Graphics Technology. Get started today with the
Intel(R) Software Partner Program. Five $500 cash prizes are up for grabs.
http://p.sf.net/sfu/intelisp-dev2dev
_______________________________________________
Freerdp-devel mailing list
https://lists.sourceforge.net/lists/listinfo/freerdp-devel
Nils Andresen
2010-12-03 08:58:56 UTC
Permalink
Post by Nils Andresen
I am unsure as to WHY this was made so (it does not look as if this was
made with intent: There is a "break" in
channels/rdpdr/printer/printer_main.c#DeviceServiceEntry) but maybe
Marc-Andre or Vic know.
http://gitorious.org/~nilsa/freerdp/nilsas-freerdp-mainline/commits/MultiplePrinters
and it seems to work fine, letting me specify more than one printer
explicitly.
Marc-Andre/Vic:
What do you think of the "patch" ?

Nils
Otavio Salvador
2010-12-03 11:56:04 UTC
Permalink
Post by Nils Andresen
Post by Nils Andresen
I am unsure as to WHY this was made so (it does not look as if this was
made with intent: There is a "break" in
channels/rdpdr/printer/printer_main.c#DeviceServiceEntry) but maybe
Marc-Andre or Vic know.
http://gitorious.org/~nilsa/freerdp/nilsas-freerdp-mainline/commits/MultiplePrinters
and it seems to work fine, letting me specify more than one printer
explicitly.
What do you think of the "patch" ?
It looks fine for me.
--
Otavio Salvador                  O.S. Systems
E-mail: ***@ossystems.com.br  http://www.ossystems.com.br
Mobile: +55 53 9981-7854         http://projetos.ossystems.com.br
Marc-André Moreau
2010-12-03 13:43:08 UTC
Permalink
Post by Nils Andresen
Post by Nils Andresen
I am unsure as to WHY this was made so (it does not look as if this was
made with intent: There is a "break" in
channels/rdpdr/printer/printer_main.c#DeviceServiceEntry) but maybe
Marc-Andre or Vic know.
http://gitorious.org/~nilsa/freerdp/nilsas-freerdp-mainline/commits/MultiplePrinters
Post by Nils Andresen
and it seems to work fine, letting me specify more than one printer
explicitly.
What do you think of the "patch" ?
I like it :P
Post by Nils Andresen
Nils
------------------------------------------------------------------------------
Increase Visibility of Your 3D Game App & Earn a Chance To Win $500!
Tap into the largest installed PC base & get more eyes on your game by
optimizing for Intel(R) Graphics Technology. Get started today with the
Intel(R) Software Partner Program. Five $500 cash prizes are up for grabs.
http://p.sf.net/sfu/intelisp-dev2dev
_______________________________________________
Freerdp-devel mailing list
https://lists.sourceforge.net/lists/listinfo/freerdp-devel
Vic Lee
2010-12-04 06:11:33 UTC
Permalink
This is definitely my mistake. :)

I pushed a slightly different patch, in which the "break" statement only
breaks when using auto printer detection (which was my original
intention). Thanks for pointing this out.

Vic
Post by Nils Andresen
Post by Nils Andresen
I am unsure as to WHY this was made so (it does not look as if this was
made with intent: There is a "break" in
channels/rdpdr/printer/printer_main.c#DeviceServiceEntry) but maybe
Marc-Andre or Vic know.
http://gitorious.org/~nilsa/freerdp/nilsas-freerdp-mainline/commits/MultiplePrinters
and it seems to work fine, letting me specify more than one printer
explicitly.
What do you think of the "patch" ?
Nils
------------------------------------------------------------------------------
Increase Visibility of Your 3D Game App& Earn a Chance To Win $500!
Tap into the largest installed PC base& get more eyes on your game by
optimizing for Intel(R) Graphics Technology. Get started today with the
Intel(R) Software Partner Program. Five $500 cash prizes are up for grabs.
http://p.sf.net/sfu/intelisp-dev2dev
_______________________________________________
Freerdp-devel mailing list
https://lists.sourceforge.net/lists/listinfo/freerdp-devel
Loading...