This is an old revision of the document!
Before you begin!
This page is target at people who use Debian/Ubuntu packages provided by the X2Go project. Please make sure that you have added the X2Go repository to your package management system. The required steps are described here: Debian, Ubuntu (depending on the distro that you have chosen for your X2Go server).
X2Go Printing falls into two components:
The X2Go server-side printing component (i.e. the x2goprint
command) is an X2Go Server add-on included in the X2GoServer source project. Debian/Ubuntu users have to install the extra packages x2goserver-printing
:
$ sudo aptitude install x2goserver-printing
For being able to use X2Go printing, you'll need a running CUPS server. You can use your network's existing CUPS server or you can install a CUPS server on the same machine as the X2go server tools are running on.
The minimal X2go server + CUPS setup is: install x2goserver
, x2goserver-printing
, cups
, cups-x2go
on the same machine. Printing should work out of the box:
sudo aptitude install x2goserver x2goserver-printing cups cups-x2go
For local X2Go printing (local means here: all processes take place on the same machine) only one further step for setting up X2Go printing is necessary: after installing the X2Go CUPS engine (package: cups-x2go
) you have to a »Virtual X2go Printer« backend to your CUPS server.
cups-x2go
You may configure further options by editing the file “/etc/cups/cups-x2go.conf” (the below code block shows the default set of options), but this should normally not be necessary:
## ## cups-x2go.conf -- CUPS Backend Configuration ## ## Server with x2go system #x2goserver = local ## dsa key for user x2goprint #printdsa = /root/.x2go/ssh/.x2goprint/id_dsa ## command to generate pdf files #ps2pdf = /usr/bin/gs -q -dCompatibilityLevel=1.4 -dNOPAUSE -dBATCH -dSAFER -sDEVICE=pdfwrite -sOutputFile="%s.pdf" -dAutoRotatePages=/PageByPage -dAutoFilterColorImages=false -dColorImageFilter=/FlateEncode -dPDFSETTINGS=/prepress -c .setpdfwrite -f "%s" ## loglevel for cups-x2go, possible values: emerg, alert, crit, err, warn, notice, info, debug #loglevel = notice
For an X2Go setup where X2Go server and CUPS server are hosted on different machines, please refer to the Multi-Node X2Go Printing setup.