cups-x2go-3.0.1.3/ChangeLog0000644000000000000000000001627612541101773012160 0ustar cups-x2go (3.0.1.3-0x2go1) unstable; urgency=low [ Mihai Moldovan ] * New upstream version (3.0.1.3): - cups-x2go: import tempfile() function from File::Temp module. - cups-x2go: only repeat the last X, not the whole ".pdfX" string (or the like.) - cups-x2go: actually print "real" executed command instead of the "original" one with placeholders. - cups-x2go: read output from ghostscript, don't write a filehandle to the temporary file. Fixes a hanging ghostscript call and... well... random junk, instead of a "real" PDF file. - cups-x2go: use parentheses around function arguments. - cups-x2go: fix binmode() call, :raw layer is implicit. - cups-x2go: fix print call... Does not allow to separate parameters with a comma. - cups-x2go: add correct :raw layer to binmode calls. - cups-x2go: fix tiny typo. - cups-x2go: read data from GS and STDIN in chunks of 8 kbytes, instead of everything at once. Handles large print jobs gracefully. - cups-x2go: add parentheses to close() calls. - cups-x2go: delete PDF and title temporary files automatically. - cups-x2go: unlink PS temporary file on-demand in END block. Also move closelog to END block, because we want to print diagnosis messages in the END block. - cups-x2go: don't use unlink() explicitly. Trust File::Temp and our END block to clean up correctly. - cups-x2go: there is no continue in perl for stepping forward a loop. Still not. I keep forgetting that. Use next. (Partly) Fixes: #887. - cups-x2go: use the same temp file template for PS, PDF and title files. Use appropriate suffixes if necessary when generating PDF and title temp files. (Fully) Fixes: #887. * debian/control: - Add dependencies on perl-modules for core modules and ${perl:Depends} for perl itself. - Do not depend on perl-modules directly. ${perl:Depends} is already doing that implicitly. It depends on perl, which depends on perl-modules. * cups-x2go.spec: - Add proper dependencies on perl and File::Temp module. Hopefully pulls in perl-base with the core modules or the like... -- X2Go Release Manager Fri, 19 Jun 2015 23:02:53 +0200 cups-x2go (3.0.1.2-0x2go1) unstable; urgency=high [ Mihai Moldovan ] * cups-x2go.spec: + Depend on openssh-clients on Fedora, RHEL, EPEL and CentOS instead of pulling in the complete openssh suite. + Change %{_libexecdir} to ${_prefix}/lib as the standard install location for CUPS backends on Fedora, RHEL, (Open)SUSE and EPEL. + Wrap macros in curly braces where appropriate. + Do not own alien directories. + Add docs. + Re-add %{_datadir}/ppd/cups-x2go as owned directory. + Use slashes to correctly mark directories. + Fedora: require cups-filesystem and cups for %{_prefix}/lib/cups et al. + All but Fedora: require cups or cups-filters at build-time. + Fedora: require cups-filesystem at build-time, too. + SUSE: require cups-filters at build- and run-time for %{_datadir}/ppd/. + SUSE: require cups-backends for %{_datadir}/ppd/ for older release versions. + Revert previous change. Own %{_datadir}/ppd/ for all SUSE releases for the time being. + Also own %{_prefix}/lib for SLES < 12, as previous versions ship the arch-dependent %{_libdir}/cups only. + Make package noarch again. * New upstream version (3.0.1.2): - cups-x2go{,.conf}: port to File::Temp. Use Text::ParseWords to split up the ps2pdf command line correctly. Don't use system() but IPC::Open2::open2(). Capture the ps2pdf program's stdout and write it to the temporary file handle "manually". Should fix problems reported by Jan Bi on IRC. - cups-x2go: fix commented out second ps2pdf definition to output PDF data to stdout. -- X2Go Release Manager Sun, 14 Jun 2015 18:09:54 +0200 cups-x2go (3.0.1.1-0x2go1) unstable; urgency=low [ Mike Gabriel ] * New upstream version (3.0.1.1): - Rename LICENSE.txt to COPYING. * cups-x2go.spec: + Pull-in packaging stuff from Jan Engelhardt's .spec files on https://build.opensuse.org/package/view_file/X11:RemoteDesktop:x2go. + Always set BuildRoot: parameter. + Make package arch-any, not noarch. [ Mihai Moldovan ] * Change string "X2go" to "X2Go" where appropriate. -- X2Go Release Manager Tue, 10 Feb 2015 20:03:16 +0100 cups-x2go (3.0.1.0-0x2go1) unstable; urgency=low * New upstream version (3.0.1.0): - Add license file. (Fixes: #298). - Add a short README that provides some getting started information. (Fixes: #299). * debian/source/format: + Switch to format 1.0. * cups-x2go.spec: + Ship cups-x2go.spec (RPM package definitions) in upstream project. (Thanks to the Fedora package maintainers). + Drop (Fedora package) changelog. * debian/cups-x2go.postrm: + Remove special file permissions with dpkg-statoverride on postrm. -- Mike Gabriel Fri, 09 May 2014 09:16:45 +0200 cups-x2go (3.0.0.4-0~x2go1) unstable; urgency=low [ Mike Gabriel ] * New upstream version (3.0.0.4): - Add more debug messages. - Use proper project name where appropriate and possible (,,X2Go''). * Maintainer change in package: X2Go Developers . [ Helmer Teles ] * New upstream version (3.0.0.4): - Fix ignoring number of copies to be printed for single pages. -- Mike Gabriel Tue, 25 Sep 2012 15:59:04 +0200 cups-x2go (3.0.0.3-0~x2go1) unstable; urgency=low [ Mike Gabriel ] * New upstream release (3.0.0.3): - Call x2goprint directly with root privileges if x2goserver and CUPS server share the same machine. - Major change of code, add comments, syslogging, fix ghostscript call. - Fix remote printing, use host specified in X2Go session information for destination of print jobs, not the host specified in cups-x2go.conf. - Add loglevel config option, allow different log levels (i.e. levels of syslog verbosity). * Add dpkg-statoverride for CUPS backend cups-x2go, file permission 0700 on CUPS backend makes CUPS run this backend with root-privileges which is needed for cups-x2go to work. * Add a proper dpkg-statoverride check in postinst script. [ Mario Oroz ] * New upstream release (3.0.0.3): - Add syslog support for cups-x2go. - Ownership fix for .title file. [ Oleksandr Shneyder ] * New upstream release (3.0.0.3): - fixed reading deprecated /etc/x2go/sql. - fixed saving temprary file in / instead of /tmp. -- Mike Gabriel Wed, 12 Oct 2011 10:40:12 +0200 cups-x2go (3.0.0.2-0~x2go1) unstable; urgency=low * changing version numbering scheme -- Mike Gabriel Thu, 14 Apr 2011 19:29:57 +0200 cups-x2go (3.0.0-2) unstable; urgency=low * support for "sqlite" setting -- Oleksandr Shneyder Mon, 02 Nov 2009 14:08:51 +0100 cups-x2go (3.0.0-1) unstable; urgency=low * Initial release -- Oleksandr Shneyder Fri, 06 Mar 2009 08:55:57 +0100 cups-x2go-3.0.1.3/COPYING0000644000000000000000000004325412541101773011435 0ustar GNU GENERAL PUBLIC LICENSE Version 2, June 1991 Copyright (C) 1989, 1991 Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA Everyone is permitted to copy and distribute verbatim copies of this license document, but changing it is not allowed. Preamble The licenses for most software are designed to take away your freedom to share and change it. By contrast, the GNU General Public License is intended to guarantee your freedom to share and change free software--to make sure the software is free for all its users. This General Public License applies to most of the Free Software Foundation's software and to any other program whose authors commit to using it. (Some other Free Software Foundation software is covered by the GNU Lesser General Public License instead.) You can apply it to your programs, too. When we speak of free software, we are referring to freedom, not price. Our General Public Licenses are designed to make sure that you have the freedom to distribute copies of free software (and charge for this service if you wish), that you receive source code or can get it if you want it, that you can change the software or use pieces of it in new free programs; and that you know you can do these things. To protect your rights, we need to make restrictions that forbid anyone to deny you these rights or to ask you to surrender the rights. These restrictions translate to certain responsibilities for you if you distribute copies of the software, or if you modify it. For example, if you distribute copies of such a program, whether gratis or for a fee, you must give the recipients all the rights that you have. You must make sure that they, too, receive or can get the source code. And you must show them these terms so they know their rights. We protect your rights with two steps: (1) copyright the software, and (2) offer you this license which gives you legal permission to copy, distribute and/or modify the software. Also, for each author's protection and ours, we want to make certain that everyone understands that there is no warranty for this free software. If the software is modified by someone else and passed on, we want its recipients to know that what they have is not the original, so that any problems introduced by others will not reflect on the original authors' reputations. Finally, any free program is threatened constantly by software patents. We wish to avoid the danger that redistributors of a free program will individually obtain patent licenses, in effect making the program proprietary. To prevent this, we have made it clear that any patent must be licensed for everyone's free use or not licensed at all. The precise terms and conditions for copying, distribution and modification follow. GNU GENERAL PUBLIC LICENSE TERMS AND CONDITIONS FOR COPYING, DISTRIBUTION AND MODIFICATION 0. This License applies to any program or other work which contains a notice placed by the copyright holder saying it may be distributed under the terms of this General Public License. The "Program", below, refers to any such program or work, and a "work based on the Program" means either the Program or any derivative work under copyright law: that is to say, a work containing the Program or a portion of it, either verbatim or with modifications and/or translated into another language. (Hereinafter, translation is included without limitation in the term "modification".) Each licensee is addressed as "you". Activities other than copying, distribution and modification are not covered by this License; they are outside its scope. The act of running the Program is not restricted, and the output from the Program is covered only if its contents constitute a work based on the Program (independent of having been made by running the Program). Whether that is true depends on what the Program does. 1. You may copy and distribute verbatim copies of the Program's source code as you receive it, in any medium, provided that you conspicuously and appropriately publish on each copy an appropriate copyright notice and disclaimer of warranty; keep intact all the notices that refer to this License and to the absence of any warranty; and give any other recipients of the Program a copy of this License along with the Program. You may charge a fee for the physical act of transferring a copy, and you may at your option offer warranty protection in exchange for a fee. 2. You may modify your copy or copies of the Program or any portion of it, thus forming a work based on the Program, and copy and distribute such modifications or work under the terms of Section 1 above, provided that you also meet all of these conditions: a) You must cause the modified files to carry prominent notices stating that you changed the files and the date of any change. b) You must cause any work that you distribute or publish, that in whole or in part contains or is derived from the Program or any part thereof, to be licensed as a whole at no charge to all third parties under the terms of this License. c) If the modified program normally reads commands interactively when run, you must cause it, when started running for such interactive use in the most ordinary way, to print or display an announcement including an appropriate copyright notice and a notice that there is no warranty (or else, saying that you provide a warranty) and that users may redistribute the program under these conditions, and telling the user how to view a copy of this License. (Exception: if the Program itself is interactive but does not normally print such an announcement, your work based on the Program is not required to print an announcement.) These requirements apply to the modified work as a whole. If identifiable sections of that work are not derived from the Program, and can be reasonably considered independent and separate works in themselves, then this License, and its terms, do not apply to those sections when you distribute them as separate works. But when you distribute the same sections as part of a whole which is a work based on the Program, the distribution of the whole must be on the terms of this License, whose permissions for other licensees extend to the entire whole, and thus to each and every part regardless of who wrote it. Thus, it is not the intent of this section to claim rights or contest your rights to work written entirely by you; rather, the intent is to exercise the right to control the distribution of derivative or collective works based on the Program. In addition, mere aggregation of another work not based on the Program with the Program (or with a work based on the Program) on a volume of a storage or distribution medium does not bring the other work under the scope of this License. 3. You may copy and distribute the Program (or a work based on it, under Section 2) in object code or executable form under the terms of Sections 1 and 2 above provided that you also do one of the following: a) Accompany it with the complete corresponding machine-readable source code, which must be distributed under the terms of Sections 1 and 2 above on a medium customarily used for software interchange; or, b) Accompany it with a written offer, valid for at least three years, to give any third party, for a charge no more than your cost of physically performing source distribution, a complete machine-readable copy of the corresponding source code, to be distributed under the terms of Sections 1 and 2 above on a medium customarily used for software interchange; or, c) Accompany it with the information you received as to the offer to distribute corresponding source code. (This alternative is allowed only for noncommercial distribution and only if you received the program in object code or executable form with such an offer, in accord with Subsection b above.) The source code for a work means the preferred form of the work for making modifications to it. For an executable work, complete source code means all the source code for all modules it contains, plus any associated interface definition files, plus the scripts used to control compilation and installation of the executable. However, as a special exception, the source code distributed need not include anything that is normally distributed (in either source or binary form) with the major components (compiler, kernel, and so on) of the operating system on which the executable runs, unless that component itself accompanies the executable. If distribution of executable or object code is made by offering access to copy from a designated place, then offering equivalent access to copy the source code from the same place counts as distribution of the source code, even though third parties are not compelled to copy the source along with the object code. 4. You may not copy, modify, sublicense, or distribute the Program except as expressly provided under this License. Any attempt otherwise to copy, modify, sublicense or distribute the Program is void, and will automatically terminate your rights under this License. However, parties who have received copies, or rights, from you under this License will not have their licenses terminated so long as such parties remain in full compliance. 5. You are not required to accept this License, since you have not signed it. However, nothing else grants you permission to modify or distribute the Program or its derivative works. These actions are prohibited by law if you do not accept this License. Therefore, by modifying or distributing the Program (or any work based on the Program), you indicate your acceptance of this License to do so, and all its terms and conditions for copying, distributing or modifying the Program or works based on it. 6. Each time you redistribute the Program (or any work based on the Program), the recipient automatically receives a license from the original licensor to copy, distribute or modify the Program subject to these terms and conditions. You may not impose any further restrictions on the recipients' exercise of the rights granted herein. You are not responsible for enforcing compliance by third parties to this License. 7. If, as a consequence of a court judgment or allegation of patent infringement or for any other reason (not limited to patent issues), conditions are imposed on you (whether by court order, agreement or otherwise) that contradict the conditions of this License, they do not excuse you from the conditions of this License. If you cannot distribute so as to satisfy simultaneously your obligations under this License and any other pertinent obligations, then as a consequence you may not distribute the Program at all. For example, if a patent license would not permit royalty-free redistribution of the Program by all those who receive copies directly or indirectly through you, then the only way you could satisfy both it and this License would be to refrain entirely from distribution of the Program. If any portion of this section is held invalid or unenforceable under any particular circumstance, the balance of the section is intended to apply and the section as a whole is intended to apply in other circumstances. It is not the purpose of this section to induce you to infringe any patents or other property right claims or to contest validity of any such claims; this section has the sole purpose of protecting the integrity of the free software distribution system, which is implemented by public license practices. Many people have made generous contributions to the wide range of software distributed through that system in reliance on consistent application of that system; it is up to the author/donor to decide if he or she is willing to distribute software through any other system and a licensee cannot impose that choice. This section is intended to make thoroughly clear what is believed to be a consequence of the rest of this License. 8. If the distribution and/or use of the Program is restricted in certain countries either by patents or by copyrighted interfaces, the original copyright holder who places the Program under this License may add an explicit geographical distribution limitation excluding those countries, so that distribution is permitted only in or among countries not thus excluded. In such case, this License incorporates the limitation as if written in the body of this License. 9. The Free Software Foundation may publish revised and/or new versions of the General Public License from time to time. Such new versions will be similar in spirit to the present version, but may differ in detail to address new problems or concerns. Each version is given a distinguishing version number. If the Program specifies a version number of this License which applies to it and "any later version", you have the option of following the terms and conditions either of that version or of any later version published by the Free Software Foundation. If the Program does not specify a version number of this License, you may choose any version ever published by the Free Software Foundation. 10. If you wish to incorporate parts of the Program into other free programs whose distribution conditions are different, write to the author to ask for permission. For software which is copyrighted by the Free Software Foundation, write to the Free Software Foundation; we sometimes make exceptions for this. Our decision will be guided by the two goals of preserving the free status of all derivatives of our free software and of promoting the sharing and reuse of software generally. NO WARRANTY 11. BECAUSE THE PROGRAM IS LICENSED FREE OF CHARGE, THERE IS NO WARRANTY FOR THE PROGRAM, TO THE EXTENT PERMITTED BY APPLICABLE LAW. EXCEPT WHEN OTHERWISE STATED IN WRITING THE COPYRIGHT HOLDERS AND/OR OTHER PARTIES PROVIDE THE PROGRAM "AS IS" WITHOUT WARRANTY OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. THE ENTIRE RISK AS TO THE QUALITY AND PERFORMANCE OF THE PROGRAM IS WITH YOU. SHOULD THE PROGRAM PROVE DEFECTIVE, YOU ASSUME THE COST OF ALL NECESSARY SERVICING, REPAIR OR CORRECTION. 12. IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MAY MODIFY AND/OR REDISTRIBUTE THE PROGRAM AS PERMITTED ABOVE, BE LIABLE TO YOU FOR DAMAGES, INCLUDING ANY GENERAL, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES ARISING OUT OF THE USE OR INABILITY TO USE THE PROGRAM (INCLUDING BUT NOT LIMITED TO LOSS OF DATA OR DATA BEING RENDERED INACCURATE OR LOSSES SUSTAINED BY YOU OR THIRD PARTIES OR A FAILURE OF THE PROGRAM TO OPERATE WITH ANY OTHER PROGRAMS), EVEN IF SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE POSSIBILITY OF SUCH DAMAGES. END OF TERMS AND CONDITIONS How to Apply These Terms to Your New Programs If you develop a new program, and you want it to be of the greatest possible use to the public, the best way to achieve this is to make it free software which everyone can redistribute and change under these terms. To do so, attach the following notices to the program. It is safest to attach them to the start of each source file to most effectively convey the exclusion of warranty; and each file should have at least the "copyright" line and a pointer to where the full notice is found. Copyright (C) This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 2 of the License, or (at your option) any later version. This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details. You should have received a copy of the GNU General Public License along with this program; if not, write to the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. Also add information on how to contact you by electronic and paper mail. If the program is interactive, make it output a short notice like this when it starts in an interactive mode: Gnomovision version 69, Copyright (C) year name of author Gnomovision comes with ABSOLUTELY NO WARRANTY; for details type `show w'. This is free software, and you are welcome to redistribute it under certain conditions; type `show c' for details. The hypothetical commands `show w' and `show c' should show the appropriate parts of the General Public License. Of course, the commands you use may be called something other than `show w' and `show c'; they could even be mouse-clicks or menu items--whatever suits your program. You should also get your employer (if you work as a programmer) or your school, if any, to sign a "copyright disclaimer" for the program, if necessary. Here is a sample; alter the names: Yoyodyne, Inc., hereby disclaims all copyright interest in the program `Gnomovision' (which makes passes at compilers) written by James Hacker. , 1 April 1989 Ty Coon, President of Vice This General Public License does not permit incorporating your program into proprietary programs. If your program is a subroutine library, you may consider it more useful to permit linking proprietary applications with the library. If this is what you want to do, use the GNU Lesser General Public License instead of this License. cups-x2go-3.0.1.3/cups-x2go0000755000000000000000000002426412541101773012157 0ustar #!/usr/bin/perl # X2Go CUPS backend # Copyright 2009-2015 Obviously Nice # # This program is free software; you can redistribute it and/or modify it # under the terms of the GNU General Public License as published by the # Free Software Foundation; either version 2 of the License, or (at your # option) any later version. # # This program is distributed in the hope that it will be useful, but # WITHOUT ANY WARRANTY; without even the implied warranty of # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General # Public License for more details. # # You should have received a copy of the GNU General Public License # along with this program; if not, write to the Free Software # Free Software Foundation, Inc., # 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA. use Sys::Syslog qw( :standard :macros ); use Sys::Hostname; use File::Basename; use File::Copy; use File::Temp qw( tempfile ); use IPC::Open2; use Text::ParseWords; use Errno qw( EINTR EIO :POSIX ); use strict; openlog($0,'cons,pid','user'); ## if the CUPS server is X2Go server at the same time, use ,,local'' here, otherwise ## name the hostname of your master X2Go server within in your X2Go cluster. This ## host then is used for querying session information. my $x2goserver = "local"; ## DSA key for user x2goprint (new path and filename, default in cups-x2go backend) ## this private key has to be valid for all X2Go servers that print via the CUPS ## server that cups-x2go is installed on. The corresponding public key has to ## be installed in :~x2goprint/.ssh/authorized_keys my $printdsa = "/root/.ssh/id_dsa-x2goprint"; # PS2PDF command my $ps2pdf = "/usr/bin/gs -q -dCompatibilityLevel=1.4 -dNOPAUSE -dBATCH -dSAFER -sDEVICE=pdfwrite -sOutputFile=- -dAutoRotatePages=/PageByPage -dAutoFilterColorImages=false -dColorImageFilter=/FlateEncode -dPDFSETTINGS=/prepress -dDoNumCopies -c .setpdfwrite -f \"%s\""; #my $ps2pdf = "/usr/bin/gs -q -dCompatibilityLevel=1.4 -dNOPAUSE -dBATCH -dSAFER -sDEVICE=pdfwrite -sOutputFile=- -dAutoRotatePages=/PageByPage -dAutoFilterColorImages=false -dColorImageFilter=/FlateEncode -dPDFSETTINGS=/prepress -dDoNumCopies -c .setpdfwrite -f /usr/bin/margin-offset.ps \"%s\""; ## loglevel for cups-x2go, possible values: emerg, alert, crit, err, warning, notice, info, debug my $strloglevel = "notice"; # override hardcoded settings via config file my $cfgfile="/etc/cups/cups-x2go.conf"; my $userName; my @sessions; my $this_host=hostname(); sub readconfig { if( -e $cfgfile) { open(CFG,"<$cfgfile"); while(!eof(CFG)) { my $ln=; my $nocomln=(split("#",$ln))[0]; $nocomln=~s/\n//g; my @valarr=split("=",$nocomln); my $option=@valarr[0]; shift(@valarr); my $value=join("=",@valarr); $option=~s/ //g; if($option eq "x2goserver") { $x2goserver=$value; $x2goserver=~s/ //g; $x2goserver=~s/\"//g; } if($option eq "printdsa") { $printdsa=$value; } if($option eq "ps2pdf") { $ps2pdf=$value; } if($option eq "loglevel") { $strloglevel=$value; $strloglevel=~s/ //g; } } close(CFG); } } sub setmylogmask { my $loglevel = LOG_ERR; if ( $strloglevel eq "emerg" ) { $loglevel = LOG_EMERG; } elsif ( $strloglevel eq "alert" ) { $loglevel = LOG_ALERT; } elsif ( $strloglevel eq "crit" ) { $loglevel = LOG_CRIT; } elsif ( $strloglevel eq "err" ) { $loglevel = LOG_ERR; } elsif ( $strloglevel eq "warning" ) { $loglevel = LOG_WARNING; } elsif ( $strloglevel eq "notice" ) { $loglevel = LOG_NOTICE; } elsif ( $strloglevel eq "info" ) { $loglevel = LOG_INFO; } elsif ( $strloglevel eq "debug" ) { $loglevel = LOG_DEBUG; } setlogmask( LOG_UPTO( $loglevel ) ); } sub getsessions { my $sesslist; if ( $x2goserver eq "local" ) { syslog("debug", "Querying local X2Go server for a session list..."); # run x2golistsessions locally $sesslist=`su $userName -c "x2golistsessions --all-servers"`; } else { syslog("debug", "Querying remote X2Go server $x2goserver for a session list..."); # Calling x2goprint with a single parameter will result in an # x2golistsessions --all-servers command on the remote X2Go server. $sesslist=`ssh -i $printdsa x2goprint\@$x2goserver "sudo x2goprint $userName"`; } syslog("debug", $sesslist); @sessions=split("\n",$sesslist); } sub printfile { my ($pfile,$tfile,$x2gosession_host, $sess)=@_; my $bname=basename($pfile); if($x2gosession_host eq $this_host) { my ($tm,$tm,$uid,$gid,$tm,$tm,$tm,$spooldir)=getpwnam("x2goprint"); my $spfile="$spooldir/${sess}_$bname"; copy($pfile, $spfile); copy($tfile, "$spfile.title"); chown $uid,$gid,"$spfile"; chown $uid,$gid,"$spfile.title"; # log that we are about to process a print job syslog('debug', "x2goprint $userName $sess ${sess}_$bname ${sess}_$bname.title"); # process print job system( "x2goprint $userName $sess ${sess}_$bname ${sess}_$bname.title" ); } else { # push spool job to remote X2Go server... and launch x2goprint there (with sudo!!!) # PDF file syslog('debug', "scp -i $printdsa $pfile x2goprint\@$x2gosession_host:~x2goprint/${sess}_$bname"); system ("scp -i $printdsa $pfile x2goprint\@$x2gosession_host:~x2goprint/${sess}_$bname"); # title file syslog('debug', "scp -i $printdsa $tfile x2goprint\@$x2gosession_host:~x2goprint/${sess}_$bname.title"); system ("scp -i $printdsa $tfile x2goprint\@$x2gosession_host:~x2goprint/${sess}_$bname.title"); # run x2goprint on remote X2Go server syslog('debug', "ssh -i $printdsa x2goprint\@$x2gosession_host \"sudo x2goprint $userName $sess ${sess}_$bname ${sess}_$bname.title\"" ); system( "ssh -i $printdsa x2goprint\@$x2gosession_host \"sudo x2goprint $userName $sess ${sess}_$bname ${sess}_$bname.title\"" ); } } ### main ### if (!$ARGV[0]) { print "file cups-x2go:/ \"Virtual X2Go Printer\" \"CUPS-X2Go\" \"MFG:Generic;MDL:CUPS-X2Go Printer;DES:Generic CUPS-X2Go Printer;CLS:PRINTER;CMD:POSTSCRIPT;\"\n"; exit 0; } # read config file before we go on... readconfig(); setmylogmask(); if (scalar(@ARGV) < 5 || scalar(@ARGV) > 6) { print STDERR "ERROR: Usage: cups-x2go job-id user title copies options [file]\n"; exit 1; } my $jobID; my $jobTitle; my $copies; my $printOptions; my $psFile; ($jobID, $userName, $jobTitle, $copies, $printOptions, $psFile) = @ARGV; syslog('notice', "Print job received from cups -> $jobID $userName $jobTitle $copies $printOptions $psFile"); my $jid = $jobID; my $uid = $userName; $jid =~ s/\W//g; #sanity check $uid =~ s/\W//g; #sanity check my $template = "$jid-$uid-cupsjob$$" . "X" x 16; my $need_ps_file_cleanup = 0; if (!$psFile) { $need_ps_file_cleanup = 1; my ($tfh, $tempFile) = tempfile ($template, UNLINK => 0, TMPDIR => 1); syslog('info', "Print job comes from STDIN, writing incoming job to temp file $tempFile\n"); binmode ($tfh, ":raw"); binmode (STDIN, ":raw"); # Get all input from CUPS. { # Force readline to not read "lines", but raw data, 8192 bytes at a time. local $/ = \8192; while (!eof (STDIN)) { if (defined (my $stdin_data = readline (*STDIN))) { print $tfh $stdin_data; } else { if ($!{EAGAIN} || $!{EWOULDBLOCK} || $!{EINTR}) { next; } else { syslog ('err', "Error while reading data from stdin: $!\n"); die ("Error while reading data from stdin: $!\n"); } } } } close ($tfh); $psFile = $tempFile; } # converting PS file that we retrieved from CUPS into PDF format my @ps2pdf_args = parse_line (" ", 0, $ps2pdf); my $ps2pdf_cmd = shift (@ps2pdf_args); for (my $i = 0; $i < @ps2pdf_args; ++$i) { $ps2pdf_args[$i] =~ s/%s/$psFile/g; } syslog('info', "Converting printjob with command: $ps2pdf_cmd " . join (" ", @ps2pdf_args) . "\n"); my ($pdf_fh, $pdfFile) = tempfile ($template, UNLINK => 1, TMPDIR => 1, SUFFIX => '.pdf'); # the TMPDIR env var is needed for ghostscript... $ENV{TMPDIR}="/tmp"; my ($gs_out, $gs_in, $wait_ret, $real_ret); my $gs_pid = open2 ($gs_out, $gs_in, $ps2pdf_cmd, @ps2pdf_args); binmode ($gs_out, ":raw"); binmode ($pdf_fh, ":raw"); close ($gs_in); # Get all input from GS. { # Force readline to not read "lines", but raw data, 8192 bytes at a time. local $/ = \8192; while (!eof ($gs_out)) { if (defined (my $gs_out_data = readline ($gs_out))) { print $pdf_fh $gs_out_data; } else { if ($!{EAGAIN} || $!{EWOULDBLOCK} || $!{EINTR}) { next; } else { syslog ('err', "ERROR: reading data from ps2pdf program failed: $!\n"); die ("$0: Error reading data from ps2pdf program failed: $!\n"); } } } } close ($gs_out); waitpid ($gs_pid, 0); $wait_ret = $?; $real_ret = $wait_ret >> 8; my $conv_fail = 0; if (-1 == $wait_ret) { syslog('err', "ERROR: cups-x2go failed to spawn ps2pdf conversion process: $!"); $conv_fail = 1; } elsif ($wait_ret & 127) { my $signal = $wait_ret & 127; syslog('err', "ERROR: cups-x2go failed to execute ps2pdf conversion program: interrupted by signal $signal"); $conv_fail = 1; } else { if (0 != $real_ret) { syslog('err', "ERROR: ps2pdf conversion program failed to convert $psFile: failed with exit code $real_ret"); $conv_fail = 1; } } if ($conv_fail) { syslog('err', "ERROR: cups-x2go failed to process postscript file $psFile"); die "$0: Failed to convert postscript file $psFile"; } syslog('debug', "cups-x2go processed postscript file $psFile to $pdfFile"); # After we have created the PDF from CUPS's PS file, we can drop the PS file. # If we read data from STDIN, though, let the END block handle this cleanup. if (!$need_ps_file_cleanup) { unlink ($psFile); } my ($title_fh, $titleFile) = tempfile ($template, UNLINK => 1, TMPDIR => 1, SUFFIX => '.pdf.title'); print $title_fh $jobTitle; close ($title_fh); getsessions(); syslog('debug', "Retrieved session list: @sessions\n"); for(my $i=0; $i:~x2goprint/.ssh/authorized_keys #printdsa = /root/.ssh/id_dsa-x2goprint ## command to generate PDF file ## CAUTION: this command MUST output the resulting PDF File to standard output. #ps2pdf = /usr/bin/gs -q -dCompatibilityLevel=1.4 -dNOPAUSE -dBATCH -dSAFER -sDEVICE=pdfwrite -sOutputFile=- -dAutoRotatePages=/PageByPage -dAutoFilterColorImages=false -dColorImageFilter=/FlateEncode -dPDFSETTINGS=/prepress -dDoNumCopies -c .setpdfwrite -f \"%s\" ## loglevel for cups-x2go, possible values: emerg, alert, crit, err, warning, notice, info, debug #loglevel = notice cups-x2go-3.0.1.3/CUPS-X2GO.ppd0000644000000000000000000005072212541101773012374 0ustar *PPD-Adobe: "4.3" *% *% "$Id: postscript.ppd,v 1.1.1.1 2000/08/24 19:23:13 goffioul Exp $" *% *% Sample Postscript driver PPD file for the Common UNIX Printing *% System (CUPS). *% *% Michael Goffioul *% *% Changes to the original file by Volker Behr, Martin-Eric Racine, *% Nickolay Kondrashov and other contributors: *% added IEEE-1284 device id - 2008-03-24 *% added custom page size - 2006-05-18 *% replaced page descriptions - 2006-05-18 *% InputSlot constraints removed - 2006-05-11 *% maxed out imageable regions - 2006-05-11 *% added pstitleiconv filter - 2006-05-11 *% added ledger paper size - 2006-01-29 *% match Adobe specifications - 2005-12-23 *% additional paper formats - 2005-02-03 and 2005-02-07 *% made A4 default paper size - 2005-02-03 *% Color enabled - 2003-12-02 *% *FormatVersion: "4.3" *FileVersion: "1.1" *LanguageVersion: English *LanguageEncoding: ISOLatin1 *PCFileName: "CUPS-X2GO.PPD" *Manufacturer: "Generic" *Product: "(CUPS v1.1)" *ModelName: "Generic CUPS-X2Go Printer" *ShortNickName: "Generic CUPS-X2Go Printer" *NickName: "Generic CUPS-X2Go Printer" *1284DeviceID: "MFG:Generic;MDL:CUPS-X2Go Printer;DES:Generic CUPS-X2Go Printer;CLS:PRINTER;CMD:POSTSCRIPT;" *% cupsFilter: "application/vnd.cups-postscript 0 pstitleiconv" *PSVersion: "(2017.000) 0" *LanguageLevel: "2" *ColorDevice: True *DefaultColorSpace: RGB *FileSystem: False *Throughput: "8" *LandscapeOrientation: Plus90 *TTRasterizer: Type42 *HWMargins: 0 0 0 0 *VariablePaperSize: True *MaxMediaWidth: 100000 *MaxMediaHeight: 100000 *NonUIOrderDependency: 100 AnySetup *CustomPageSize *CustomPageSize True: "pop pop pop <>setpagedevice" *End *ParamCustomPageSize Width: 1 points 36 100000 *ParamCustomPageSize Height: 2 points 36 100000 *ParamCustomPageSize Orientation: 3 int 0 3 *ParamCustomPageSize WidthOffset: 4 points 0 0 *ParamCustomPageSize HeightOffset: 5 points 0 0 *OpenGroup: General/General *OpenUI *PageSize/Page Size: PickOne *OrderDependency: 100 AnySetup *PageSize *DefaultPageSize: A4 *PageSize 11x14/11x14: "<>setpagedevice" *PageSize 11x17/11x17: "<>setpagedevice" *PageSize 13x19/13x19: "<>setpagedevice" *PageSize 16x20/16x20: "<>setpagedevice" *PageSize 16x24/16x24: "<>setpagedevice" *PageSize 2A/2A: "<>setpagedevice" *PageSize 4A/4A: "<>setpagedevice" *PageSize 8x10/8x10: "<>setpagedevice" *PageSize 8x12/8x12: "<>setpagedevice" *PageSize A0/A0: "<>setpagedevice" *PageSize A1/A1: "<>setpagedevice" *PageSize A2/A2: "<>setpagedevice" *PageSize A3/A3: "<>setpagedevice" *PageSize A4/A4: "<>setpagedevice" *PageSize A5/A5: "<>setpagedevice" *PageSize AnsiA/ANSI A: "<>setpagedevice" *PageSize AnsiB/ANSI B: "<>setpagedevice" *PageSize AnsiC/ANSI C: "<>setpagedevice" *PageSize AnsiD/ANSI D: "<>setpagedevice" *PageSize AnsiE/ANSI E: "<>setpagedevice" *PageSize ArchA/Arch A: "<>setpagedevice" *PageSize ArchB/Arch B: "<>setpagedevice" *PageSize ArchC/Arch C: "<>setpagedevice" *PageSize ArchD/Arch D: "<>setpagedevice" *PageSize ArchE/Arch E: "<>setpagedevice" *PageSize C0/C0: "<>setpagedevice" *PageSize C1/C1: "<>setpagedevice" *PageSize C2/C2: "<>setpagedevice" *PageSize C3/C3: "<>setpagedevice" *PageSize C4/C4: "<>setpagedevice" *PageSize C5/C5: "<>setpagedevice" *PageSize Env10/Envelope #10: "<>setpagedevice" *PageSize EnvC5/Envelope C5: "<>setpagedevice" *PageSize EnvDL/Envelope DL: "<>setpagedevice" *PageSize EnvMonarch/Envelope Monarch: "<>setpagedevice" *PageSize Executive/Executive: "<>setpagedevice" *PageSize ISOB0/B0 (ISO): "<>setpagedevice" *PageSize ISOB1/B1 (ISO): "<>setpagedevice" *PageSize ISOB2/B2 (ISO): "<>setpagedevice" *PageSize ISOB3/B3 (ISO): "<>setpagedevice" *PageSize ISOB4/B4 (ISO): "<>setpagedevice" *PageSize ISOB5/B5 (ISO): "<>setpagedevice" *PageSize JISB0/B0 (JIS): "<>setpagedevice" *PageSize JISB1/B1 (JIS): "<>setpagedevice" *PageSize JISB2/B2 (JIS): "<>setpagedevice" *PageSize JISB3/B3 (JIS): "<>setpagedevice" *PageSize JISB4/B4 (JIS): "<>setpagedevice" *PageSize JISB5/B5 (JIS): "<>setpagedevice" *PageSize Ledger/Ledger: "<>setpagedevice" *PageSize Legal/US Legal: "<>setpagedevice" *PageSize Letter/US Letter: "<>setpagedevice" *PageSize RA0/RA0: "<>setpagedevice" *PageSize RA1/RA1: "<>setpagedevice" *PageSize RA2/RA2: "<>setpagedevice" *PageSize RA3/RA3: "<>setpagedevice" *PageSize RA4/RA4: "<>setpagedevice" *PageSize SRA0/SRA0: "<>setpagedevice" *PageSize SRA1/SRA1: "<>setpagedevice" *PageSize SRA2/SRA2: "<>setpagedevice" *PageSize SRA3/SRA3: "<>setpagedevice" *PageSize SRA4/SRA4: "<>setpagedevice" *PageSize SuperA/Super A: "<>setpagedevice" *PageSize SuperB/Super B: "<>setpagedevice" *PageSize TabloidExtra/Tabloid Extra: "<>setpagedevice" *PageSize Tabloid/Tabloid: "<>setpagedevice" *CloseUI: *PageSize *OpenUI *PageRegion: PickOne *OrderDependency: 100 AnySetup *PageRegion *DefaultPageRegion: A4 *PageRegion 11x14/11x14: "<>setpagedevice" *PageRegion 11x17/11x17: "<>setpagedevice" *PageRegion 13x19/13x19: "<>setpagedevice" *PageRegion 16x20/16x20: "<>setpagedevice" *PageRegion 16x24/16x24: "<>setpagedevice" *PageRegion 2A/2A: "<>setpagedevice" *PageRegion 4A/4A: "<>setpagedevice" *PageRegion 8x10/8x10: "<>setpagedevice" *PageRegion 8x12/8x12: "<>setpagedevice" *PageRegion A0/A0: "<>setpagedevice" *PageRegion A1/A1: "<>setpagedevice" *PageRegion A2/A2: "<>setpagedevice" *PageRegion A3/A3: "<>setpagedevice" *PageRegion A4/A4: "<>setpagedevice" *PageRegion A5/A5: "<>setpagedevice" *PageRegion AnsiA/ANSI A: "<>setpagedevice" *PageRegion AnsiB/ANSI B: "<>setpagedevice" *PageRegion AnsiC/ANSI C: "<>setpagedevice" *PageRegion AnsiD/ANSI D: "<>setpagedevice" *PageRegion AnsiE/ANSI E: "<>setpagedevice" *PageRegion ArchA/Arch A: "<>setpagedevice" *PageRegion ArchB/Arch B: "<>setpagedevice" *PageRegion ArchC/Arch C: "<>setpagedevice" *PageRegion ArchD/Arch D: "<>setpagedevice" *PageRegion ArchE/Arch E: "<>setpagedevice" *PageRegion C0/C0: "<>setpagedevice" *PageRegion C1/C1: "<>setpagedevice" *PageRegion C2/C2: "<>setpagedevice" *PageRegion C3/C3: "<>setpagedevice" *PageRegion C4/C4: "<>setpagedevice" *PageRegion C5/C5: "<>setpagedevice" *PageRegion Env10/Envelope #10: "<>setpagedevice" *PageRegion EnvC5/Envelope C5: "<>setpagedevice" *PageRegion EnvDL/Envelope DL: "<>setpagedevice" *PageRegion EnvMonarch/Envelope Monarch: "<>setpagedevice" *PageRegion Executive/Executive: "<>setpagedevice" *PageRegion ISOB0/B0 (ISO): "<>setpagedevice" *PageRegion ISOB1/B1 (ISO): "<>setpagedevice" *PageRegion ISOB2/B2 (ISO): "<>setpagedevice" *PageRegion ISOB3/B3 (ISO): "<>setpagedevice" *PageRegion ISOB4/B4 (ISO): "<>setpagedevice" *PageRegion ISOB5/B5 (ISO): "<>setpagedevice" *PageRegion JISB0/B0 (JIS): "<>setpagedevice" *PageRegion JISB1/B1 (JIS): "<>setpagedevice" *PageRegion JISB2/B2 (JIS): "<>setpagedevice" *PageRegion JISB3/B3 (JIS): "<>setpagedevice" *PageRegion JISB4/B4 (JIS): "<>setpagedevice" *PageRegion JISB5/B5 (JIS): "<>setpagedevice" *PageRegion Ledger/Ledger: "<>setpagedevice" *PageRegion Legal/US Legal: "<>setpagedevice" *PageRegion Letter/US Letter: "<>setpagedevice" *PageRegion RA0/RA0: "<>setpagedevice" *PageRegion RA1/RA1: "<>setpagedevice" *PageRegion RA2/RA2: "<>setpagedevice" *PageRegion RA3/RA3: "<>setpagedevice" *PageRegion RA4/RA4: "<>setpagedevice" *PageRegion SRA0/SRA0: "<>setpagedevice" *PageRegion SRA1/SRA1: "<>setpagedevice" *PageRegion SRA2/SRA2: "<>setpagedevice" *PageRegion SRA3/SRA3: "<>setpagedevice" *PageRegion SRA4/SRA4: "<>setpagedevice" *PageRegion SuperA/Super A: "<>setpagedevice" *PageRegion SuperB/Super B: "<>setpagedevice" *PageRegion TabloidExtra/Tabloid Extra: "<>setpagedevice" *PageRegion Tabloid/Tabloid: "<>setpagedevice" *CloseUI: *PageRegion *DefaultImageableArea: A4 *ImageableArea 11x14/11x14: "0 0 792 1008" *ImageableArea 11x17/11x17: "0 0 792 1224" *ImageableArea 13x19/13x19: "0 0 936 1368" *ImageableArea 16x20/16x20: "0 0 1152 1440" *ImageableArea 16x24/16x24: "0 0 1152 1728" *ImageableArea 2A/2A: "0 0 3370 4768" *ImageableArea 4A/4A: "0 0 4768 6749" *ImageableArea 8x10/8x10: "0 0 576 720" *ImageableArea 8x12/8x12: "0 0 576 864" *ImageableArea A0/A0: "0 0 2384 3370" *ImageableArea A1/A1: "0 0 1684 2384" *ImageableArea A2/A2: "0 0 1191 1684" *ImageableArea A3/A3: "0 0 842 1191" *ImageableArea A4/A4: "0 0 595 842" *ImageableArea A5/A5: "0 0 421 595" *ImageableArea AnsiA/ANSI A: "0 0 612 792" *ImageableArea AnsiB/ANSI B: "0 0 792 1224" *ImageableArea AnsiC/ANSI C: "0 0 1224 1584" *ImageableArea AnsiD/ANSI D: "0 0 1584 2448" *ImageableArea AnsiE/ANSI E: "0 0 2448 3168" *ImageableArea ArchA/Arch A: "0 0 648 864" *ImageableArea ArchB/Arch B: "0 0 864 1296" *ImageableArea ArchC/Arch C: "0 0 1296 1728" *ImageableArea ArchD/Arch D: "0 0 1728 2592" *ImageableArea ArchE/Arch E: "0 0 2592 3456" *ImageableArea C0/C0: "0 0 2599 3676" *ImageableArea C1/C1: "0 0 1836 2599" *ImageableArea C2/C2: "0 0 1298 1836" *ImageableArea C3/C3: "0 0 918 1298" *ImageableArea C4/C4: "0 0 649 918" *ImageableArea C5/C5: "0 0 459 649" *ImageableArea Env10/Envelope #10: "0 0 297 684" *ImageableArea EnvC5/Envelope C5: "0 0 459 649" *ImageableArea EnvDL/Envelope DL: "0 0 312 624" *ImageableArea EnvMonarch/Envelope Monarch: "0 0 279 540" *ImageableArea Executive/Executive: "0 0 522 756" *ImageableArea ISOB0/B0 (ISO): "0 0 2834 4008" *ImageableArea ISOB1/B1 (ISO): "0 0 2004 2834" *ImageableArea ISOB2/B2 (ISO): "0 0 1417 2004" *ImageableArea ISOB3/B3 (ISO): "0 0 1000 1417" *ImageableArea ISOB4/B4 (ISO): "0 0 708 1000" *ImageableArea ISOB5/B5 (ISO): "0 0 498 708" *ImageableArea JISB0/B0 (JIS): "0 0 2919 4127" *ImageableArea JISB1/B1 (JIS): "0 0 2063 2919" *ImageableArea JISB2/B2 (JIS): "0 0 1459 2063" *ImageableArea JISB3/B3 (JIS): "0 0 1029 1459" *ImageableArea JISB4/B4 (JIS): "0 0 727 1029" *ImageableArea JISB5/B5 (JIS): "0 0 518 727" *ImageableArea Ledger/Ledger: "0 0 1224 792" *ImageableArea Legal/US Legal: "0 0 612 1008" *ImageableArea Letter/US Letter: "0 0 612 792" *ImageableArea RA0/RA0: "0 0 2437 3458" *ImageableArea RA1/RA1: "0 0 1729 2437" *ImageableArea RA2/RA2: "0 0 1218 1729" *ImageableArea RA3/RA3: "0 0 864 1218" *ImageableArea RA4/RA4: "0 0 609 864" *ImageableArea SRA0/SRA0: "0 0 2551 3628" *ImageableArea SRA1/SRA1: "0 0 1814 2551" *ImageableArea SRA2/SRA2: "0 0 1275 1814" *ImageableArea SRA3/SRA3: "0 0 907 1275" *ImageableArea SRA4/SRA4: "0 0 637 907" *ImageableArea SuperA/Super A: "0 0 644 1008" *ImageableArea SuperB/Super B: "0 0 936 1368" *ImageableArea TabloidExtra/Tabloid Extra: "0 0 864 1296" *ImageableArea Tabloid/Tabloid: "0 0 792 1224" *DefaultPaperDimension: A4 *PaperDimension 11x14/11x14: "792 1008" *PaperDimension 11x17/11x17: "792 1224" *PaperDimension 13x19/13x19: "936 1368" *PaperDimension 16x20/16x20: "1152 1440" *PaperDimension 16x24/16x24: "1152 1728" *PaperDimension 2A/2A: "3370 4768" *PaperDimension 4A/4A: "4768 6749" *PaperDimension 8x10/8x10: "576 720" *PaperDimension 8x12/8x12: "576 864" *PaperDimension A0/A0: "2384 3370" *PaperDimension A1/A1: "1684 2384" *PaperDimension A2/A2: "1191 1684" *PaperDimension A3/A3: "842 1191" *PaperDimension A4/A4: "595 842" *PaperDimension A5/A5: "421 595" *PaperDimension AnsiA/ANSI A: "612 792" *PaperDimension AnsiB/ANSI B: "792 1224" *PaperDimension AnsiC/ANSI C: "1224 1584" *PaperDimension AnsiD/ANSI D: "1584 2448" *PaperDimension AnsiE/ANSI E: "2448 3168" *PaperDimension ArchA/Arch A: "648 864" *PaperDimension ArchB/Arch B: "864 1296" *PaperDimension ArchC/Arch C: "1296 1728" *PaperDimension ArchD/Arch D: "1728 2592" *PaperDimension ArchE/Arch E: "2592 3456" *PaperDimension C0/C0: "2599 3676" *PaperDimension C1/C1: "1836 2599" *PaperDimension C2/C2: "1298 1836" *PaperDimension C3/C3: "918 1298" *PaperDimension C4/C4: "649 918" *PaperDimension C5/C5: "459 649" *PaperDimension Env10/Envelope #10: "297 684" *PaperDimension EnvC5/Envelope C5: "459 649" *PaperDimension EnvDL/Envelope DL: "312 624" *PaperDimension EnvMonarch/Envelope Monarch: "279 540" *PaperDimension Executive/Executive: "522 756" *PaperDimension ISOB0/B0 (ISO): "2834 4008" *PaperDimension ISOB1/B1 (ISO): "2004 2834" *PaperDimension ISOB2/B2 (ISO): "1417 2004" *PaperDimension ISOB3/B3 (ISO): "1000 1417" *PaperDimension ISOB4/B4 (ISO): "708 1000" *PaperDimension ISOB5/B5 (ISO): "498 708" *PaperDimension JISB0/B0 (JIS): "2919 4127" *PaperDimension JISB1/B1 (JIS): "2063 2919" *PaperDimension JISB2/B2 (JIS): "1459 2063" *PaperDimension JISB3/B3 (JIS): "1029 1459" *PaperDimension JISB4/B4 (JIS): "727 1029" *PaperDimension JISB5/B5 (JIS): "518 727" *PaperDimension Ledger/Ledger: "1224 792" *PaperDimension Legal/US Legal: "612 1008" *PaperDimension Letter/US Letter: "612 792" *PaperDimension RA0/RA0: "2437 3458" *PaperDimension RA1/RA1: "1729 2437" *PaperDimension RA2/RA2: "1218 1729" *PaperDimension RA3/RA3: "864 1218" *PaperDimension RA4/RA4: "609 864" *PaperDimension SRA0/SRA0: "2551 3628" *PaperDimension SRA1/SRA1: "1814 2551" *PaperDimension SRA2/SRA2: "1275 1814" *PaperDimension SRA3/SRA3: "907 1275" *PaperDimension SRA4/SRA4: "637 907" *PaperDimension SuperA/Super A: "644 1008" *PaperDimension SuperB/Super B: "936 1368" *PaperDimension TabloidExtra/Tabloid Extra: "864 1296" *PaperDimension Tabloid/Tabloid: "792 1224" *OpenUI *Resolution/Output Resolution: PickOne *OrderDependency: 100 AnySetup *Resolution *DefaultResolution: 300dpi *Resolution 150dpi/150 DPI: "<>setpagedevice" *Resolution 300dpi/300 DPI: "<>setpagedevice" *Resolution 600dpi/600 DPI: "<>setpagedevice" *Resolution 1200dpi/1200 DPI: "<>setpagedevice" *Resolution 2400dpi/2400 DPI: "<>setpagedevice" *CloseUI: *Resolution *CloseGroup: General *DefaultFont: Courier *Font AvantGarde-Book: Standard "(001.006S)" Standard ROM *Font AvantGarde-BookOblique: Standard "(001.006S)" Standard ROM *Font AvantGarde-Demi: Standard "(001.007S)" Standard ROM *Font AvantGarde-DemiOblique: Standard "(001.007S)" Standard ROM *Font Bookman-Demi: Standard "(001.004S)" Standard ROM *Font Bookman-DemiItalic: Standard "(001.004S)" Standard ROM *Font Bookman-Light: Standard "(001.004S)" Standard ROM *Font Bookman-LightItalic: Standard "(001.004S)" Standard ROM *Font Courier: Standard "(002.004S)" Standard ROM *Font Courier-Bold: Standard "(002.004S)" Standard ROM *Font Courier-BoldOblique: Standard "(002.004S)" Standard ROM *Font Courier-Oblique: Standard "(002.004S)" Standard ROM *Font Helvetica: Standard "(001.006S)" Standard ROM *Font Helvetica-Bold: Standard "(001.007S)" Standard ROM *Font Helvetica-BoldOblique: Standard "(001.007S)" Standard ROM *Font Helvetica-Narrow: Standard "(001.006S)" Standard ROM *Font Helvetica-Narrow-Bold: Standard "(001.007S)" Standard ROM *Font Helvetica-Narrow-BoldOblique: Standard "(001.007S)" Standard ROM *Font Helvetica-Narrow-Oblique: Standard "(001.006S)" Standard ROM *Font Helvetica-Oblique: Standard "(001.006S)" Standard ROM *Font NewCenturySchlbk-Bold: Standard "(001.009S)" Standard ROM *Font NewCenturySchlbk-BoldItalic: Standard "(001.007S)" Standard ROM *Font NewCenturySchlbk-Italic: Standard "(001.006S)" Standard ROM *Font NewCenturySchlbk-Roman: Standard "(001.007S)" Standard ROM *Font Palatino-Bold: Standard "(001.005S)" Standard ROM *Font Palatino-BoldItalic: Standard "(001.005S)" Standard ROM *Font Palatino-Italic: Standard "(001.005S)" Standard ROM *Font Palatino-Roman: Standard "(001.005S)" Standard ROM *Font Symbol: Special "(001.007S)" Special ROM *Font Times-Bold: Standard "(001.007S)" Standard ROM *Font Times-BoldItalic: Standard "(001.009S)" Standard ROM *Font Times-Italic: Standard "(001.007S)" Standard ROM *Font Times-Roman: Standard "(001.007S)" Standard ROM *Font ZapfChancery-MediumItalic: Standard "(001.007S)" Standard ROM *Font ZapfDingbats: Special "(001.004S)" Standard ROM *% *% End of "$Id: postscript.ppd,v 1.1.1.1 2000/08/24 19:23:13 goffioul Exp $". *% cups-x2go-3.0.1.3/README.txt0000644000000000000000000000112312541101773012065 0ustar README for cups-x2go -------------------- The minimal X2Go Server + CUPS setup is: install x2goserver, x2goserver-printing, cups, cups-x2go on the same machine. $ sudo aptitude install x2goserver x2goserver-printing cups cups-x2go Printing works nearly out of the box, you only have to add a virtual CUPS queue based on the Virtual X2Go Printer (cups-x2go) backend. For further details, please visit these X2Go Wiki pages: http://wiki.x2go.org/doku.php/doc:installation:printing http://wiki.x2go.org/doku.php/wiki:advanced:multi-node:x2goserver-printing light+love Mike Gabriel, 20130917cups-x2go-3.0.1.3/VERSION.cups-x2go0000644000000000000000000000001012541101773013257 0ustar 3.0.1.3