HI Rui,
thanks for reporting the below issue.
On Do 21 Sep 2023 20:28:44 CEST, Rui Ferreira wrote:
Hi all.
Error from journalctl -u cups:
set 21 18:34:55 kubuntu /usr/lib/cups/backend/cups-x2go[412569]:
Print job received from cups -> 1060 rui Re: [X2Go-User] Client
Printing not working! 1 Collate media=iso_a4_210x297mm_borderless
Duplex=None job-uuid=urn:uuid:1bce9974-59ca-3cad-7012-b36b56aaf124
job-originating-host-name=localhost date-time-at-creation=
date-time-at-processing= time-at-creation=1695317694
time-at-processing=1695317694 PageSize=A4
set 21 18:34:56 kubuntu /usr/lib/cups/backend/cups-x2go[412569]:
ERROR: ps2pdf conversion program failed to convert
/tmp/1060-rui-cupsjob412569RZtB07cJEZ6R_uD_: failed with exit code 1
set 21 18:34:56 kubuntu /usr/lib/cups/backend/cups-x2go[412569]:
ERROR: cups-x2go failed to process postscript file
/tmp/1060-rui-cupsjob412569RZtB07cJEZ6R_uD_
Output from cat /etc/systemd/system/printer.target.wants/cups.service:
[Unit]
Description=CUPS Scheduler
Documentation=man:cupsd(8)
After=network.target nss-user-lookup.target nslcd.service
Requires=cups.socket
[Service]
ExecStart=/usr/sbin/cupsd -l
Type=notify
Restart=on-failure
PrivateTmp=false <
[Install]
Also=cups.socket cups.path
WantedBy=printer.target multi-user.target
(even though this is not the right way to make local changes to systemd)
I've issued the commands
systemctl daemon-reload
and
systemctl restart cups.service
OS:
kubuntu 22.04
x2goserver 4.1.0.3
cups 2.4.1
As X2Go developers, we don't have much impact on the CUPS systemd
service start file. That is owned by the CUPS software package.
However, we can tweak cups-x2go [1]. It would be nice if you could
experiment with that a little and move the "$ENV{TMPDIR}="/tmp";"
statement that is part of the script to the very top of the script
(after all the "use ...;" statements.
When done, remove your hack again (which brings back more security
into your CUPS daemon) and re-test cups-x2go. Let me know if that
works for you. If so, please send your patch.
Thanks,
Mike
--
DAS-NETZWERKTEAM
c\o Technik- und Ökologiezentrum Eckernförde
Mike Gabriel, Marienthaler Str. 17, 24340 Eckernförde
mobile: +49 (1520) 1976 148
landline: +49 (4351) 850 8940
GnuPG Fingerprint: 9BFB AEE8 6C0A A5FF BF22 0782 9AF4 6B30 2577 1B31
mail: mike.gabr...@das-netzwerkteam.de, http://das-netzwerkteam.de
pgp6utXcux3zx.pgp
Description: Digitale PGP-Signatur
___
x2go-user mailing list
x2go-user@lists.x2go.org
https://lists.x2go.org/listinfo/x2go-user