0

I am trying to create a custom backend, using the "educational backend": Printing/Developer Tools

I think everything would work if the backend was recognized....

I copied the contents of the file 2dirto /usr/lib/cups/backend/, set correct permissions (experimented with everything from 700 to 555 to 755). Unfortunately

lpinfo -v

does not list the 2dir backend.

What could be the problem ?

Note: I checked for line endings

file 2dir
2dir: UTF-8 Unicode English text

(because i converted it using dos2unix)

Thalia
  • 13,637
  • 22
  • 96
  • 190

2 Answers2

0

The script I copied from the site had a leading space in front of the "#!/bin/bash" line - and that made the files NOT EXECUTABLE !!!

Thalia
  • 13,637
  • 22
  • 96
  • 190
0

Okay, your problem ist solved, but I stumbled upon another problem: Duplicated one backend to generate a new one but didn't change following two lines to match with the new backend name:

echo "direct backendname \"Unknown\" \"PDF Creator\""

PDFDIR=${DEVICE_URI#backendname:}

(Second line is optional if you want to commit a output path to your backend script).

Maybe this helps someone else.

emale
  • 197
  • 1
  • 5