[X2Go-Dev] fuse and X2Go printing

Moritz Struebe Moritz.Struebe at informatik.uni-erlangen.de
Wed Feb 20 14:32:24 CET 2013


On 2013-02-20 11:55, Stefan Baur wrote:
>> So as result we will have a PDF
>> File on server and it not a problem it all to download it to client
>> system.
>
> Yes, it is a problem.  Sorry, but it is a horrible design decision to
> convert data back and forth, causing disk IO and CPU cycles when
> there's no good reason to do so. 

Well, actually there is: Relieabilty and Maintainability. My solution
has 3 little steps.
1) Create pdf on the server (easy to check and not to difficult too debug)
2) Copy file to client (easy to check, and can even be verified)
3) Print pdf. This is also something quite easy to get running. Just
exec "someprog --print $FILE"

While with your solution there is a multitude of things that can go
wrong. It's really hard to find out whether it's a server side, client
side, x2go-client (ssh forwarding), driver compability or whatever
issue. The data gets piped through a lot of systems and you need quite a
bit of knowledge to debug that. Also you need to handle connection
losses - something that is not too easy either as you don't have direct
control over the system having to cope with that.
Further on reliability and maintainability is much more important than a
little bit of performance.
The spooler-dir also allows you to easily do things like adding
"print at clinet"-button to OpenOffice (or any other scriptable app) by
exporting the current document as pdf to the spool-dir.

Cheers
Morty


-- 
Dipl.-Ing. Moritz 'Morty' Struebe (Wissenschaftlicher Mitarbeiter)
Lehrstuhl für Informatik 4 (Verteilte Systeme und Betriebssysteme)
Friedrich-Alexander-Universität Erlangen-Nürnberg
Martensstr. 1
91058 Erlangen

Tel   : +49 9131 85-25419
Fax   : +49 9131 85-28732
eMail : struebe at informatik.uni-erlangen.de
WWW   : http://www4.informatik.uni-erlangen.de/~morty



-------------- next part --------------
A non-text attachment was scrubbed...
Name: smime.p7s
Type: application/pkcs7-signature
Size: 5005 bytes
Desc: S/MIME Kryptografische Unterschrift
URL: <http://lists.x2go.org/pipermail/x2go-dev/attachments/20130220/0739b8ae/attachment.bin>


More information about the x2go-dev mailing list