User Tools

Site Tools


wiki:components:printing

This is an old revision of the document!


X2Go Server Printing Component

:!: Before you begin!

This page is targeted 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).

Single-Node Printing

X2go Printing is intended for
  • use on low bandwith networks – like internet connections or GSM connections
  • use of printers that are directly connected to X2Go (thin-)clients

X2Go Printing falls into two components:

  • cups-x2go – a CUPS backend that spools X2go print jobs
  • x2goprint – the X2go server-side printing component that accepts cups-x2go print jobs and processes them towards connected X2go clients

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.

  1. install package cups-x2go
  2. add a new printer in CUPS, possibly named: »x2goprinter« (name is arbitrary)
  3. as printing device (i.e. backend) you should select the “Virtual X2go Printer”
  4. as printing driver choose:
    • vendor: »generic«
    • model: »Generic CUPS-X2GO Printer«

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
Before Sep 2011 configuring sudo was needed for local X2go printing, since then setting up sudo is only needed if CUPS with cups-x2go and the X2go server package are installed on different machines.

Multi-Node Printing

For an X2Go setup where X2Go server and CUPS server are hosted on different machines, please refer to the Multi-Node X2Go Printing setup.

wiki/components/printing.1321107682.txt.gz · Last modified: 2013/03/08 13:31 (external edit)