x2goprint(8)
π x2goprint β the X2Go Server Tool situation π
okay bestie, sit down, because we're talking about x2goprint, and it's genuinely giving backstage pass to your print jobs. It's part of the X2Go Server Tool family, and yeah, it lives in section 8 of the manual, so it's a sysadmin-flavoured little icon. π
β¨ SYNOPSIS β¨
x2goprint <username> <session_id> <pdf_file> <title_file>
four arguments. no more, no less. she's picky like that. π
πΈ DESCRIPTION πΈ
So here's the tea. X2Go print jobs get rendered by the cups-x2go backend on your network's (central) CUPS server, and then they get copied over to the X2Go server that the X2Go print job was issued from. Cute, right? π
On that X2Go server, cups-x2go drops two print job files β a PDF file and a title file β into the home directory of the POSIX system user ,,x2goprint'', where they justβ¦ sit there. Waiting. Rotting. No, jk, they await further processing by x2goprint. π«Ά
Then the x2goprint command on the session's X2Go server β and yes, it's executed by the cups-x2go backend β prepares those job files for delivery to the X2Go client-side. It's literally the handoff. The relay. The main character passing the baton. πβοΈ
lowkey important:x2goprintmust run with root privileges and is executed bycups-x2go. not a suggestion, bestie. it's the rule. π₯
π¦ ARGUMENTS π¦
<username>β the owner of the incoming print jobs. That's who this whole thing is for. π<session_id>β the unique identifier of the X2Go session that the processed print job is coming from. Every session's got her own little name tag. β<pdf_file>β the filename of the PDF file, exactly as dropped into~x2goprintbycups-x2go. π<title_file>β the filename of the title file, also exactly as dropped into~x2goprintbycups-x2go. πΈ
π PERMISSIONS π
X2Go uses the fuse-based SSH filesystem (SSHFS) for transferring print jobs from X2Go server to X2Go client. So if you want in on X2Go printing, you must be a member of the X2Go server's ,,fuse'' POSIX group. No group, no printing. It's giving velvet rope. π
π X2GO CLUSTER MODE π
Okay so, scenario one: X2Go server and CUPS server are the same machine? Slay. No further setup for X2Go printing is necessary. Just vibes. β¨
Scenario two: X2Go server and CUPS server are hosted on separate machines? Then bestie, you need a special setup of sudo and SSH on the X2Go server(s) and the central CUPS server. Not optional. It's the whole plot. π
Refer to https://wiki.x2go.org/installing_x2go_printing_debian_ubuntu for further information β that's the wiki, go read it, it ate. π
π RETURN VALUES π
By x2goprint, nothing is reported on stdout or stderr. Silent. Mysterious. Iconic. π€«
- If
x2goprinthas run successfully, an exitcode of0is returned. π - If the script has either been called by a non-root user or with the wrong number of command line arguments, a non-zero exitcode is returned. π¨
fr fr, check your exit codes. she will not tell you what went wrong. she will simply leave. π
π AUTHOR π
This manual has been written by Mike Gabriel <mike.gabriel@das-netzwerkteam.de> for the X2Go project (https://www.x2go.org). tysm Mike, the lore is immaculate. π«Ά
and that's the whole page bestie!! π this was Version 4.1.0.6, dated Aug 2023, from the x2goprint(8) manual β periodt, no cap, go forth and print. π¨οΈβ¨π
π¦ where this page comes from
- alpine 3.24: x2goserver-doc 4.1.0.6-r0 Β· GPL-2.0-or-later
- debian trixie: x2goserver-printing 4.1.0.6-1.1 Β· GPL-2.0-or-later
- fedora 43: x2goserver-printing 4.1.0.6-13.fc43 Β· GPL-2.0-or-later
- fedora 44: x2goserver-printing 4.1.0.6-14.fc44 Β· GPL-2.0-or-later
- ubuntu noble: x2goserver-printing 4.1.0.6-1.1build1 Β· GPL-2.0-or-later
- ubuntu questing: x2goserver-printing 4.1.0.6-1.1build2
- ubuntu resolute: x2goserver-printing 4.1.0.6-1.1build3 Β· GPL-2.0-or-later
- ubuntu stonking: x2goserver-printing 4.1.0.6-1.1build3 Β· GPL-2.0-or-later
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms