Bernhard J. Mayr | 17 Jan 09:35 2013
Picon

Re: x2go printing

Hi Mike!

I am using a Ubuntu 12.04 running on the server and I connect to a LXDE Desktop environment. CUPS and X2Go Server are running on the same machine.

The file permissions are ok. Although the directory is called backend (without the ending 's'). Though I didn't create any directories manually, I think this should be ok.

Thanks, Bernhard

Am 17.01.2013 00:19, schrieb Mike Gabriel:
Hi Bernhard,

On Mi 16 Jan 2013 12:47:40 CET "Bernhard J. Mayr" wrote:

D [16/Jan/2013:12:38:57 +0100] [Job 3] GPL Ghostscript 9.05: **** Could
not open the file "/tmp/3-administrator-cupsjob16857.pdf" .
D [16/Jan/2013:12:38:57 +0100] [Job 3] /usr/bin/x2goprint: Can't move
/var/spool/x2goprint/administrator-50-1358335004_stDLXDE_dp17_3-administr$
D [16/Jan/2013:12:38:57 +0100] [Job 3] End of messages
D [16/Jan/2013:12:38:57 +0100] [Job 3] printer-state=3(idle)
D [16/Jan/2013:12:38:57 +0100] [Job 3]
printer-state-message="/usr/lib/cups/filter/commandtops failed"
D [16/Jan/2013:12:38:57 +0100] [Job 3] printer-state-reasons=none

Seems to be a problem with directory-permissions? Do I have to grant any
privileges?


What distro are you using???

The file permissions of /usr/lib/cups/backends/cups-x2go should be 0700:root:root. Is that the case? CUPS will execute a backend with that permissions with root privileges. If the privs are different, the backend will run as user lp:lp, which will not work as x2goprint uses the su command and expects root privileges.

Note: if you run CUPS and X2Go Server on a different machine, then cups-x2go has to be installed on the CUPS machine and x2goserver-printing is needed on X2Go Server(s). For multi-host printing, you also need a line in /etc/sudoers (that should be on the wiki somewhere).

Mike

PS: if any of this information is not in the wiki, please find a good place in the wiki to add this piece of documentation. Thanks!





_______________________________________________ X2Go-User mailing list X2Go-User-0fE9KPoRgkgATYTw5x5z8w@public.gmane.org https://lists.berlios.de/mailman/listinfo/x2go-user


-- #################################################################### Das Projekt elexis-austria hat den Constantinus Award 2012 gewonnen! www.constantinus.net/award #################################################################### ---- Dr. Bernhard J. Mayr, MBA elexis austria | Open-Source Software für die Arztpraxis Projektkoordinator Tulpenweg 10 4600 Wels, Austria +43(0)660 31 96 763 bernhard.mayr-inHgEGHbV50HHpVT4fDKIKxOck334EZe@public.gmane.org
Attachment (0x28F2D3D5.asc): application/pgp-keys, 2696 bytes
<div>
    <div class="moz-cite-prefix">Hi Mike!<br><br>
      I am using a Ubuntu 12.04 running on the server and I connect to a
      LXDE Desktop environment. CUPS and X2Go Server are running on the
      same machine.<br><br>
      The file permissions are ok. Although the directory is called
      backend (without the ending 's'). Though I didn't create any
      directories manually, I think this should be ok.<br><br>
      Thanks, Bernhard<br><br>
      Am 17.01.2013 00:19, schrieb Mike Gabriel:<br>
</div>
    <blockquote cite="mid:20130117001952.17661411t4ni9fo8@...e" type="cite">Hi Bernhard,
      <br><br>
      On Mi 16 Jan 2013 12:47:40 CET "Bernhard J. Mayr" wrote:
      <br><br><blockquote type="cite">D [16/Jan/2013:12:38:57 +0100] [Job 3] GPL
        Ghostscript 9.05: **** Could
        <br>
        not open the file "/tmp/3-administrator-cupsjob16857.pdf" .
        <br>
        D [16/Jan/2013:12:38:57 +0100] [Job 3] /usr/bin/x2goprint: Can't
        move
        <br>
/var/spool/x2goprint/administrator-50-1358335004_stDLXDE_dp17_3-administr$
        <br>
        D [16/Jan/2013:12:38:57 +0100] [Job 3] End of messages
        <br>
        D [16/Jan/2013:12:38:57 +0100] [Job 3] printer-state=3(idle)
        <br>
        D [16/Jan/2013:12:38:57 +0100] [Job 3]
        <br>
        printer-state-message="/usr/lib/cups/filter/commandtops failed"
        <br>
        D [16/Jan/2013:12:38:57 +0100] [Job 3]
        printer-state-reasons=none
        <br><br>
        Seems to be a problem with directory-permissions? Do I have to
        grant any
        <br>
        privileges?
        <br><br>
</blockquote>
      <br>
      What distro are you using???
      <br><br>
      The file permissions of /usr/lib/cups/backends/cups-x2go should be
      0700:root:root. Is that the case? CUPS will execute a backend with
      that permissions with root privileges. If the privs are different,
      the backend will run as user lp:lp, which will not work as
      x2goprint uses the su command and expects root privileges.
      <br><br>
      Note: if you run CUPS and X2Go Server on a different machine, then
      cups-x2go has to be installed on the CUPS machine and
      x2goserver-printing is needed on X2Go Server(s). For multi-host
      printing, you also need a line in /etc/sudoers (that should be on
      the wiki somewhere).
      <br><br>
      Mike
      <br><br>
      PS: if any of this information is not in the wiki, please find a
      good place in the wiki to add this piece of documentation. Thanks!
      <br><br><br><br><br><br>_______________________________________________
X2Go-User mailing list
<a class="moz-txt-link-abbreviated" href="mailto:X2Go-User@...ios.de">X2Go-User@...</a>
<a class="moz-txt-link-freetext" href="https://lists.berlios.de/mailman/listinfo/x2go-user">https://lists.berlios.de/mailman/listinfo/x2go-user</a>
    </blockquote>
    <br><br>-- 
####################################################################
Das Projekt elexis-austria hat den Constantinus Award 2012 gewonnen!
<a class="moz-txt-link-abbreviated" href="http://www.constantinus.net/award">www.constantinus.net/award</a>
####################################################################
----
Dr. Bernhard J. Mayr, MBA
elexis austria | Open-Source Software f&uuml;r die Arztpraxis
Projektkoordinator

Tulpenweg 10
4600 Wels, Austria
+43(0)660 31 96 763
<a class="moz-txt-link-abbreviated" href="mailto:bernhard.mayr <at> elexis-austria.net">bernhard.mayr@...</a>
  </div>

Gmane