I am still almost full-time trying to solve this.

No progress printing, but some progress, anyway.

When I first found that printing failed, tried the printer's scanner,
and it worked. After messing with CUPS, XSane stopped to find the
printer. Yesterday, I got XSane back running. Interesting, that I
explicitly put the vendor and model and got XSane identifing the printer
as Epson Stylus CX7400, not CX7300. And it works too in the virtual machine.

This machine is named "NovoGamer" with a complement to identify one out
of three OS. ["Gamer" is the top model in a brand. The only game I play
a little is Solitaire.] So, I have LFS7.1, Kubuntu and Ubuntu (running
LXDE) in this host.

This morning, I booted Kubuntu, after a couple of months, discovered
that there was no printer setup in the system, and did it using the web
interface, as it displayed the Local Printers, contrary to LFS7.1, which
does not, either in the host (CUPS-1.6.1) or the virtual machine
(CUPS-1.5.4).

However, I know now the URI to use with CUPS:

$ /usr/lib/cups/backend/usb
DEBUG: list_devices
DEBUG: libusb_get_device_list=13
DEBUG2: Printer found with device ID: 
MFG:EPSON;CMD:ESCPL2,BDC,D4,D4PX,ESCPR1;MDL:Stylus CX7300;CLS:PRINTER;DES:EPSON 
Stylus CX7300; Device URI: 
usb://EPSON/Stylus%20CX7300?serial=4C3531303646B486B2&interface=1
direct usb://EPSON/Stylus%20CX7300?serial=4C3531303646B486B2&interface=1 "EPSON 
Stylus CX7300" "EPSON Stylus CX7300" 
"MFG:EPSON;CMD:ESCPL2,BDC,D4,D4PX,ESCPR1;MDL:Stylus 
CX7300;CLS:PRINTER;DES:EPSON Stylus CX7300;" ""

I believe these data are correct, because turning off the printer:

$ /usr/lib/cups/backend/usb
DEBUG: list_devices
DEBUG: libusb_get_device_list=12

The URI is the same found in *buntu, and I use either in the command line

lpadmin -p Epson-Stylus-CX7300 -E -v "usb://EPSON/Stylus 
CX7300?serial=4C3531303646B486B2&interface=1"

or web interface (here, I chose Other Network Printers -> ipp, which gives me a 
box where a delete ipp and insert 
usb://EPSON/Stylus%20CX7300?serial=4C3531303646B486B2&interface=1.

I am using libusb, and usblp module is blacklisted, as I was tired of 
recompiling the kernel to test with libusb no usblp or the inverse.

I have tried with and without PAM support.

Do not really know what to do next.

Pol, Ken, could you please post the output of /usr/lib/cups/backend/usb?
And post your /etc/{cupsd.conf,printers.conf}?

Again, why no Local Printer appears in the web interface? I am starting
to think that the is something to do with the owner and group of CUPS
files, some to do with permissions.

Thank you again for your previous and probable next replies.

Help would be much appreciated.

I have done many other things, but at the moment, only remember these.
And DuckDuckGo nor Google helped me, I found mentions of this problem
only related to rc.conf and other file, in BSD, if I recall correctly, and 
could not understand.

To Armin:

1. In order to build with DESTDIR equivalent BUILDROOT, as normal user,
after

make BUILDROOT=$DESTINODIR install

I had to create the directory:

mkdir -vp $DESTINODIR/usr/share/doc &&
ln -sv ../${PACKAGE_NAME}/doc $DESTINODIR/usr/share/doc/${PACKAGE} &&

and change permission from 0444 to 0644:

chmod -v 0644 $DESTINODIR/etc/pam.d/${PACKAGE_NAME} &&
cat >> $DESTINODIR/etc/pam.d/${PACKAGE_NAME} << "EOF"
...
EOF

where
PACKAGE_NAME=cups
PACKAGE=${PACKAGE_NAME}-1.6.1

Interesting that all files in /etc/pam.d have 0644 permission, cups
would be different.

2. The cups file in /etc/pam generated with the book's instruction is:

$ cat etc-pam.d-cups-2012.08.16
auth    required        pam_unix.so shadow nodelay
account required        pam_unix.so
# Begin /etc/pam.d/cups

auth    include system-auth
account include system-account
session include system-session

# End /etc/pam.d/cups

Is this correct? I have tested this and without the first two lines, no
success, and left without the two first lines:

$ cat /etc/pam.d/cups
# Begin /etc/pam.d/cups

auth    include system-auth
account include system-account
session include system-session

# End /etc/pam.d/cups

3. Some CUPS files have lp group. Why didn't you use this instead of
introducing lpadmin in configure?

--
Fernando
-- 
http://linuxfromscratch.org/mailman/listinfo/blfs-support
FAQ: http://www.linuxfromscratch.org/blfs/faq.html
Unsubscribe: See the above information page

Reply via email to