HOWTO Turboprint

From Gentoo Linux Wiki

Jump to: navigation, search
This article is part of the HOWTO series.
Installation Kernel & Hardware Networks Portage Software System X Server Gaming Non-x86 Emulators Misc

Contents

[edit] Emerging

Fetch the turboprint ebuild from the xwing overlay.

# emerge layman

Do what the info says after the install, and run the sync with `layman -S`. Then checkout xwing.

# layman -a xwing
# emerge turboprint

That should do it.

[edit] Configuring

You can use either cups or lprng as your spooler. Cups is fine, although you need to conf turboprint to use it, it defaults to lpr.

# tpsetup

Select your printer, save and go to http://localhost:631. You should see your printer there.

If it doesn't work, check your config file. Here is an example.

File: /etc/turboprint/system.cfg
TP_INSTALLATIONSTATE=1
TP_CUPS=1
TPBIN_BROWSER=konqueror
TPFILE_PRINTCAP=/etc/printcap
TPPATH_CONFIG=/etc/turboprint
TPPATH_SHARE=/usr/share/turboprint
TPPATH_SPOOL=/var/spool/lpd
TPPATH_BIN=/usr/bin
TPPATH_FILTERS=/usr/share/turboprint/lib
TPPATH_DOC=/usr/share/turboprint/doc
TPPATH_LOG=/var/log
TPPATH_TEMP=/tmp
TPPATH_MAN=/usr/share/man
TPPATH_CUPSDRIVER=/usr/share/cups/model
TPPATH_CUPSSETTINGS=/etc/cups/ppd
TPPATH_CUPSFILTER=/usr/lib/cups/filter
TPPATH_CUPSFILTER64=/usr/lib64/cups/filter
TPOWN_SPOOLDIR=lp
TPMOD_SPOOLDIR=0755
TPOWN_SPOOLFILE=lp
TPMOD_SPOOLFILE=0640

Print a test page via xtpconfig or the cups printer page.


[edit] Troubleshooting

First of all,

$ cat /var/log/cups/error_log
$ cat /var/log/turboprint_cups.log 

Look for these lines:

I [11/May/2006:09:46:49 +0300] Started filter /usr/libexec/cups/filter/pstops (PID 7098) for job 52.
I [11/May/2006:09:46:49 +0300] Started filter /usr/share/turboprint/lib/pstoturboprint (PID 7101) for job 52.
I [11/May/2006:09:46:49 +0300] Started backend /usr/libexec/cups/backend/usb (PID 7102) for job 52.


Cups says: filter not found

You may need to specify two symbolic links:

cd /usr/lib/cups/filter/
ln -s /usr/share/turboprint/lib/rastertoturboprint rastertoturboprint
ln -s /usr/share/turboprint/lib/pstoturboprint pstoturboprint

(To specify the full path to these two files in /etc/cups/ppd/tp0.ppd is not a good idea, because everytime you run xtpconfig this configuration file gets overwritten.)

[edit] Integrating with KDE

# emerge kdeprint -n # if you haven't done so already

From the GUI select Add => Printer/class and select your printer and the turboprint drivers.

[edit] Registering

You might also want to consider registering. It's 30 EUR. 300 dpi is pretty scarce. I paid mine license with credit card and got the license key after a couple of hours. Works fine, so I'd consider giving them the message that they're doing good work.

To install your license key:

# tpsetup --install {key_location}

[edit] External Links

Personal tools