From X2Go-ML-1@baur-itcs.de Sat Jan 10 11:00:34 2015 Received: (at submit) by bugs.x2go.org; 10 Jan 2015 10:00:36 +0000 X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on ymir.das-netzwerkteam.de X-Spam-Level: X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,URIBL_BLOCKED autolearn=ham version=3.3.2 Received: from mout.kundenserver.de (mout.kundenserver.de [212.227.17.10]) by ymir.das-netzwerkteam.de (Postfix) with ESMTPS id 5FE0D3BC4F for ; Sat, 10 Jan 2015 11:00:34 +0100 (CET) Received: from [192.168.0.3] ([78.43.170.197]) by mrelayeu.kundenserver.de (mreue104) with ESMTPSA (Nemesis) id 0MYvSd-1YEzVh05gp-00VjRM for ; Sat, 10 Jan 2015 11:00:34 +0100 Message-ID: <54B0F88D.9090700@baur-itcs.de> Date: Sat, 10 Jan 2015 11:01:49 +0100 From: Stefan Baur User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:31.0) Gecko/20100101 Thunderbird/31.3.0 MIME-Version: 1.0 To: submit@bugs.x2go.org Subject: X2GoClient should make use of an open-source PDF viewer and integrate that, for easier printing support Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Provags-ID: V03:K0:AX6Un23vKTQ1ZfR8NM6ag+P9Y33UjasFz3S0DITol3Tb8XJmvLf WCT0/4bFnutvaordkc5ImqODzrCWRG9K2wJjp4vREiVMrXzeES4PfWIycO6xhO5jwhlaTf5 7ghVmKe3OYyfVd+3OKJczP8eYvefF6UCUoEKBAOVxBkQt0N9W81Jr90Brc9bWCOlWmXvEvB 1yMVduHTQPIbM1al7dMTQ== X-UI-Out-Filterresults: notjunk:1; -----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 package: x2goclient severity: wishlist The current way of client-side printing is rather error-prone (see various complaints on the mailing lists lately), also, it requires the user to be in the fuse group on the server. Which opens the can of worms that the user can now also use the built-in file sharing, which may not be desirable in all circumstances. Therefore, I would like to suggest the following as new method of printing: * x2goclient opens an SSH tunnel: -R:127.0.0.1: * should start at a number above 1024, obviously, and a mechanism must be in place that determines a free port number, then uses that. * should also be a number above 1024, starting at a fixed base number and incrementing with each user/session (similar to X2Go session numbers). * on the server, CUPS-X2GO creates a PDF (optionally, compressed using gzip, bzip2 or xz - information about the compression method used could be conveyed in a PJL header comment field) and streams it to socket://127.0.0.1: I'm assuming the following two steps are a non-issue for Mac OS X and Linux, as CUPS is used natively there, and all we have to do there is connect the two CUPSes via a simple portforwarding. * On Windows, x2goclient pipes the incoming data either directly as a stream, or via a temporary file, to a PDF viewer, which (in the simplest case) is set to automatically print to the default printer * optionally, we could pop up the print dialog, though this will add more complexity * for ease of use, we should either ship SumatraPDF (a free PDF viewer that can be automated via command line options) with x2goclient, just as we currently do with pulseaudio and vcxsrv, or integrate the relevant parts of SumatraPDF directly into x2goclient, if based on the same programming language, and being licensed unter terms compatible with ours. 1) This eliminates the need for having users in the FUSE group to merely print a document, 2) also, if we can get SumatraPDF to accept the bitstream, it would even eliminate the need for a temporary file on the client, 3) lastly, by shipping a PDF viewer/printer, we make it easier for the user by providing a sane default (like we do with vcxsrv - users still can use a different X server if they choose to, but they don't have to download one manually first and worry to get the configuration right). Portable version of SumatraPDF is here: https://kjkpub.s3.amazonaws.com/sumatrapdf/rel/SumatraPDF-3.0.zip Sources are here: https://github.com/sumatrapdfreader/sumatrapdf - -Stefan - -- BAUR-ITCS UG (haftungsbeschränkt) Geschäftsführer: Stefan Baur Eichenäckerweg 10, 89081 Ulm | Registergericht Ulm, HRB 724364 Fon/Fax 0731 40 34 66-36/-35 | USt-IdNr.: DE268653243 -----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0.22 (MingW32) iQEcBAEBAgAGBQJUsPiNAAoJEG7d9BjNvlEZ4zgH+wRUNRHBCyzTWhk8F68/2Ahp XMNKbmnvdsTIaUz5xHwgLPvxze3FaagY5SxJt5y3Td7EujdfZ0jbaVezZHMYUHdd bKjKgfoJDu7BWk/39440eyOnv6f2yIbhnXYfrV+un2n8PC5IykNZVCm/MopBEvVb IcIh8xcMbVHmSpDcDNRGcE0hBafPE7+0G74Mtsc9O8ZNoi7PcIO1g9EWHUXATLxc f954dr2n1RTDddQ5L5c/UTlZ8r9x2Rw8mXkRhVcu3XVNoyFmFb9l3R4kRoF1pp5M 45fztzY3HZH4KmhiyEk8fhlDQbH9kYx0FJ0NdJbb4Kk5Soc+usmItcwBZ3tPLU8= =noNS -----END PGP SIGNATURE----- From X2Go-ML-1@baur-itcs.de Mon Jan 12 12:00:39 2015 Received: (at 738) by bugs.x2go.org; 12 Jan 2015 11:00:41 +0000 X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on ymir.das-netzwerkteam.de X-Spam-Level: X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,URIBL_BLOCKED autolearn=ham version=3.3.2 X-Greylist: delayed 301 seconds by postgrey-1.34 at ymir.das-netzwerkteam.de; Mon, 12 Jan 2015 12:00:39 CET Received: from mout.kundenserver.de (mout.kundenserver.de [212.227.17.10]) by ymir.das-netzwerkteam.de (Postfix) with ESMTPS id BB01A5DEAA for <738@bugs.x2go.org>; Mon, 12 Jan 2015 12:00:39 +0100 (CET) Received: from [192.168.0.3] ([78.43.170.197]) by mrelayeu.kundenserver.de (mreue103) with ESMTPSA (Nemesis) id 0MfSEV-1YPHGL22Yd-00P8TJ for <738@bugs.x2go.org>; Mon, 12 Jan 2015 11:55:38 +0100 Message-ID: <54B3A883.2050804@baur-itcs.de> Date: Mon, 12 Jan 2015 11:57:07 +0100 From: Stefan Baur User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:31.0) Gecko/20100101 Thunderbird/31.3.0 MIME-Version: 1.0 To: 738@bugs.x2go.org Subject: A sub-bug has been created for the inclusion of the PDF viewer component. Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Provags-ID: V03:K0:Y2xWfq6/BKmOmXMfSl/B+aEfbc8I6K6oH9msPfrXIfpiTngFK83 NyRcfPBAPOjvtsEjP2ApeC4Dd4zyrU8XltFkSNn5yPEHHO6idu5Ek2dRF33X4NJy90p4xlV V0sG1LqytCuWL7Dtvk2YPYto4755cJgktgCDHDCm8NuawWvJiN19TDtd1Gy9e8chJ+4Ykmw gZ2CQg8SzY1ppV5TjrA0Q== X-UI-Out-Filterresults: notjunk:1; -----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 Hi, for the "include a PDF viewer" part of this bug, I just created http://bugs.x2go.org/cgi-bin/bugreport.cgi?bug=740 as a sub-bug, so this part can get fixed, resolved and closed faster. - -Stefan - -- BAUR-ITCS UG (haftungsbeschränkt) Geschäftsführer: Stefan Baur Eichenäckerweg 10, 89081 Ulm | Registergericht Ulm, HRB 724364 Fon/Fax 0731 40 34 66-36/-35 | USt-IdNr.: DE268653243 -----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0.22 (MingW32) iQEcBAEBAgAGBQJUs6iCAAoJEG7d9BjNvlEZkNcH/jmRwqNA+oMmCjjsxrj3jZ/J BwANGmbI/2zGNHo1AwmviQlPkQRsDMhYaOg+DVInJY8IBil3wQA2QWAN2S7Vr9Bg BBE1Y14L/uodGp1hGT4t95ywb1O06YK6lQ470Bgc7Fgli1hRVhD9hc+B4XwT61wc GovoIjCe4Y6NWlOFbh86evxjbLqLw+VIFFbKHkU5J9rggZPb+aNzMHake4JU4OV3 W92S+OHcRl6Warvvxr5Q1jH3dDZJ4u73/YYZox56nhhXFRO2VRSXHsNlApgcsTfE TC3TCrJdxB/VCWZhcRFc32jMIQojnHOvqUgSuOOT4AOyxcpqfNWGmklIVs5m8OE= =P2nf -----END PGP SIGNATURE-----