[cups] Custom backend does not show in lpinfo -v
Helge Blischke
HelgeBlischke at web.de
Thu Dec 11 00:20:13 PST 2014
That looks quite Ok.
As your backends are shell scipts,
make sure that
the interpreter directive
#!/bin/bash
is the *very first* line and does not
contain leading white space (including
tabs).
Helge
Von meinem iPhone gesendet
> Am 10.12.2014 um 23:18 schrieb Mihaela Gaspar <mgaspar at graphicproducts.com>:
>
> The output of sudo ls -l /usr/lib/cups/backend
>
> total 584
> -rwxr-xr-x 1 root root 6071 Dec 10 10:37 2dir
> -rwxr-xr-x 1 root root 3300 Dec 9 07:32 2file
> -rwxr-xr-x 1 root root 7250 Jul 6 2012 beh
> -rwx------ 1 root root 22064 Apr 2 2012 cups-pdf
> -rwxr--r-- 3 root root 18056 Sep 5 13:17 dnssd
> -rwxr-xr-x 1 root root 17976 Jan 20 2014 hp
> -rwxr-xr-x 1 root root 9042 Jan 20 2014 hpfax
> -rwxr--r-- 5 root root 63484 Sep 5 13:17 http
> -rwxr--r-- 5 root root 63484 Sep 5 13:17 https
> -rwxr--r-- 5 root root 63484 Sep 5 13:17 ipp
> -rwxr--r-- 2 root root 46968 Sep 5 13:17 ipp14
> -rwxr--r-- 5 root root 63484 Sep 5 13:17 ipps
> -rwxr--r-- 2 root root 38704 Sep 5 13:17 lpd
> -rwxr--r-- 3 root root 18056 Sep 5 13:17 mdns
> -rwxr-xr-x 1 root root 17960 Mar 11 2014 parallel
> -rwxr-xr-x 1 root root 13832 Mar 11 2014 serial
> lrwxrwxrwx 1 root root 21 Jun 23 13:26 smb -> ../../../bin/smbspool
> -r-xr-xr-x 2 root root 22216 Sep 5 13:17 snmp
> -r-xr-xr-x 2 root root 30448 Sep 5 13:17 socket
> -r-xr--r-- 2 root root 30416 Sep 5 13:17 usb
>
>
>
> -----Original Message-----
> From: cups-bounces at cups.org [mailto:cups-bounces at cups.org] On Behalf Of Helge Blischke
> Sent: Wednesday, December 10, 2014 2:03 PM
> To: The CUPS user discussion list.
> Subject: Re: [cups] Custom backend does not show in lpinfo -v
>
> Mihaela,
> your error_log shows that custom backends are processed as expected if correctly installed (see the be backend).
> The error_log tells us that your 2file backend exited with status 8. This error code means – according to /usr/include/asm-generic/errno-base.h (on Ubuntu based Linux systems) – that the file is not recognized as an executable file (the error name is ENOEXEC). Are you sure these backends are installed with execute permission?
> You could post the output of
> sudo ls -l /usr/lib/cups/backend
> for clarification.
>
> Helge
>> Am 10.12.2014 um 19:30 schrieb Mihaela Gaspar <mgaspar at graphicproducts.com>:
>>
>> Unusual lines in the error log (errors)
>>
>> E [10/Dec/2014:08:28:46 -0800] Avahi client failed, closing client to
>> allow a clean restart E [10/Dec/2014:08:53:06 -0800] [cups-deviced] PID 7899 (2file) stopped with status 8!
>> E [10/Dec/2014:08:53:06 -0800] [cups-deviced] PID 7901 (2file~) stopped with status 8!
>> E [10/Dec/2014:09:41:26 -0800] Unknown directive SystemGroup on line 16 of /etc/cups/cupsd.conf.
>>
>>
>> The offending line 16 in /etc/cups/cupsd.conf
>>
>> SystemGroup lpadmin
>>
>>
>> -----Original Message-----
>> From: cups-bounces at cups.org [mailto:cups-bounces at cups.org] On Behalf
>> Of Mihaela Gaspar
>> Sent: Wednesday, December 10, 2014 9:55 AM
>> To: The CUPS user discussion list.
>> Subject: Re: [cups] Custom backend does not show in lpinfo -v
>>
>> Thank you for reply, Helge
>>
>> I have attached the error log to this message, not sure where I can
>> upload it - I am at work and not allowed to use file sharing sites
>>
>> Mihaela
>>
>> -----Original Message-----
>> From: cups-bounces at cups.org [mailto:cups-bounces at cups.org] On Behalf
>> Of Helge Blischke
>> Sent: Wednesday, December 10, 2014 9:33 AM
>> To: The CUPS user discussion list.
>> Subject: Re: [cups] Custom backend does not show in lpinfo -v
>>
>> Mihaela,
>>
>> I have home-grown backends in CUPS versions 1.3.11, 1.5.3, 1.7.2, and 2.0.0. All are listed by lpinfo -v.
>> Perhaps you could switch your cups to debug-logging, run lpinfo -v and post (an URL to) the error_log then?
>>
>> Helge
>>
>>> Am 10.12.2014 um 16:21 schrieb Mihaela Gaspar <mgaspar at graphicproducts.com>:
>>>
>>> I am trying to create a custom backend, using the "educational backend":
>>> https://community.kde.org/Printing/Developer_Tools#.272dir.27_CUPS_ba
>>> c
>>> kend_script_.28Bash_code.29
>>> (either "2file" or "2dir")
>>>
>>> I copied the contents of the file "2dir" and "2file" to
>>> /usr/lib/cups/backend/ I set correct permissions (experimented with
>>> everything from 700 to 555 to 755, right now 755). Unfortunately
>>> lpinfo -v
>>> does not list either backend.
>>>
>>> What could be the problem ?
>>>
>>> I checked for line endings:
>>> file 2dir
>>> 2dir: UTF-8 Unicode English text
>>> (because I converted it using "dos2unix")
>>>
>>> The scripts are exactly as shown on the given site - they have the "backend discovery mode".
>>> I tried restarting cups (though the site tells me I shouldn't need
>>> to) I am using Ubuntu 12.04 and will also have to use this on Mac OS X 10-6-10.9... I imagine once it works on one it will work on both.
>>>
>>> What can I try, how do I make this work ?
>>>
>>> Thank you
>>>
>>>
>>> Note to moderators: I have sent this before I joined the cups mailing list (I had joined the cups-devel list and did not realize the target for my question is user). I have not received anything including a copy of my post or some sort of confirmation, that is why I am sending it again, I imagine previous e-mail was discarded.
>>> I truly hope that someone can help me with this, it is such a simple procedure that I can't see what I could be doing wrong.
>>> Thank you very much
>>>
>>>
>>> _______________________________________________
>>> cups mailing list
>>> cups at cups.org
>>> https://www.cups.org/mailman/listinfo/cups
>>
>> _______________________________________________
>> cups mailing list
>> cups at cups.org
>> https://www.cups.org/mailman/listinfo/cups
>>
>>
>>
>>
>>
>> _______________________________________________
>> cups mailing list
>> cups at cups.org
>> https://www.cups.org/mailman/listinfo/cups
>
> _______________________________________________
> cups mailing list
> cups at cups.org
> https://www.cups.org/mailman/listinfo/cups
> _______________________________________________
> cups mailing list
> cups at cups.org
> https://www.cups.org/mailman/listinfo/cups
More information about the cups
mailing list