You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@guacamole.apache.org by odonya <jo...@gmail.com> on 2017/04/13 13:52:42 UTC

I am unable to get printing to work in guacamole using the current client for 0.9.9

I am unable to get guacamole working using the gaucamole client version
0.9.9. I have tried setting up configurations as explained in guacamole
documentation regarding printing here
https://guacamole.incubator.apache.org/doc/gug/configuring-guacamole.html 
without luck.

What are the configuration parameters required to get this working.

I have attached the sample html file that I am using to connect to the
guacamole server. index.html
<http://apache-guacamole-incubating-users.2363388.n4.nabble.com/file/n773/index.html>  




--
View this message in context: http://apache-guacamole-incubating-users.2363388.n4.nabble.com/I-am-unable-to-get-printing-to-work-in-guacamole-using-the-current-client-for-0-9-9-tp773.html
Sent from the Apache Guacamole (incubating) - Users mailing list archive at Nabble.com.

Re: I am unable to get printing to work in guacamole using the current client for 0.9.9

Posted by Mike Jumper <mi...@guac-dev.org>.
On Fri, Apr 21, 2017 at 3:23 AM, odonya <jo...@gmail.com> wrote:
> Thanks Mike this worked very well.
>
> Just a related question, is it possible to rename the printer name under
> select printer that seems to default to Guacamole (redirect 2) ?
>

Yes, but there is no configuration option for this. You would need to
edit the guacamole-server source and rebuild:

https://github.com/apache/incubator-guacamole-server/blob/701e44a0cb8035dbc7f84e0c529d3eb06880e96c/src/protocols/rdp/guac_rdpdr/rdpdr_messages.h#L79-L83

Beware that RDP requires the name to be encoded with UTF-16, hence all
the "\0" in the string.

- Mike

Re: I am unable to get printing to work in guacamole using the current client for 0.9.9

Posted by odonya <jo...@gmail.com>.
Thanks Mike this worked very well.

Just a related question, is it possible to rename the printer name under
select printer that seems to default to Guacamole (redirect 2) ?



--
View this message in context: http://apache-guacamole-incubating-users.2363388.n4.nabble.com/I-am-unable-to-get-printing-to-work-in-guacamole-using-the-current-client-for-0-9-9-tp773p821.html
Sent from the Apache Guacamole (incubating) - Users mailing list archive at Nabble.com.

Re: I am unable to get printing to work in guacamole using the current client for 0.9.9

Posted by Mike Jumper <mi...@guac-dev.org>.
On Tue, Apr 18, 2017 at 7:54 AM, odonya <jo...@gmail.com> wrote:
> Thanks Mike, I am just connecting to a windows 2016 server. When I set up
> complete guacamole that comes combined server and web client, printing does
> work. But when I run guacamole service and have a html client connect then
> it does not print. We are using this example here
> https://guacamole.incubator.apache.org/doc/gug/writing-you-own-guacamole-app.html

Printing uses the same mechanisms as file transfer. To receive the
printout, you will need to provide an "onfile" handler for your
Guacamole.Client instance:

http://guacamole.incubator.apache.org/doc/guacamole-common-js/Guacamole.Client.html#event:onfile

That function will be given a Guacamole.InputStream (as well as the
mimetype and name of the file), which you can deal with as you see
fit:

http://guacamole.incubator.apache.org/doc/guacamole-common-js/Guacamole.InputStream.html

The easiest way would probably be to wrap that Guacamole.InputStream
in a Guacamole.BlobReader and handle the resulting Blob once the
transfer is complete:

http://guacamole.incubator.apache.org/doc/guacamole-common-js/Guacamole.BlobReader.html

https://developer.mozilla.org/en-US/docs/Web/API/Blob

...but it's really completely up to you. There is intentionally no
default behavior for handling received files, and it's up to the
downstream users of the API to determine how/if file transfer should
be handled, how that gets presented to the user in the UI, what is
ultimately done with the data received, etc.

- Mike

Re: I am unable to get printing to work in guacamole using the current client for 0.9.9

Posted by odonya <jo...@gmail.com>.
Thanks Mike,I am just connecting to a windows 2016 server.When I set up
complete guacamole that comes combined server and web client, printing does
work. But when I run guacamole service and have a html client connect then
it does not print.We are using this example
herehttps://guacamole.incubator.apache.org/doc/gug/writing-you-own-guacamole-app.html



--
View this message in context: http://apache-guacamole-incubating-users.2363388.n4.nabble.com/I-am-unable-to-get-printing-to-work-in-guacamole-using-the-current-client-for-0-9-9-tp773p796.html
Sent from the Apache Guacamole (incubating) - Users mailing list archive at Nabble.com.

Re: I am unable to get printing to work in guacamole using the current client for 0.9.9

Posted by Mike Jumper <mi...@guac-dev.org>.
On Thu, Apr 13, 2017 at 6:52 AM, odonya <jo...@gmail.com> wrote:
> I am unable to get guacamole working using the gaucamole client version
> 0.9.9. I have tried setting up configurations as explained in guacamole
> documentation regarding printing here
> https://guacamole.incubator.apache.org/doc/gug/configuring-guacamole.html
> without luck.
>
> What are the configuration parameters required to get this working.
>
> I have attached the sample html file that I am using to connect to the
> guacamole server. index.html
> <http://apache-guacamole-incubating-users.2363388.n4.nabble.com/file/n773/index.html>
>

What kind of RDP server are you connecting to in this case?

Can you confirm whether printing works using an unmodified version of
the latest release of Guacamole?

- Mike