My wife has a PC, which she mostly uses under Windows. However it is
also multiboot RH 6.2 (and Lycoris, but that's irrelevant). My
system is running RH 7.2 and has the printer attached. It's
accessed via Samba for her Windows system, and that works fine.
I just straightened out some long-standing problems with my
configuration of the RH 6.2 network settings (an old IP address that
pre-dated the DHCP assigned addresses handed out by the firewall box).
Anyway, when I tried to print files from the 6.2 machine, I always got
the error:
lpr: connect: connection refused
jobs queued, but cannot start daemon
An strace revealed that it was getting a "Connection refused" error
when it was trying to connect to /dev/printer (which didn't exist).
I couldn't find any info on /dev/printer; /dev/MAKEDEV wouldn't make it.
The LPRng howto didn't help (I tried making some changes to
/etc/lpd.conf and to /etc/lpd.perms, but they had no effect), and the
KDE help system pointed out that I'd need a /etc/hosts.lpd file, but
that didn't help (I think that pre-dates LPRng, and actually only
applies to lpr).
A Google search turned up someone else who noted that they had two lpd
daemons running. Something I had, too. So, I did an
/etc/rc.d/init.d/lpd stop
and suddenly a bunch of jobs popped out across the network.
"Strange," I think to myself.
I believe there were two lpd processes running because there are two
notional printers. They're actually both the same, but one was the old
way we used to do things (by unplugging the printer from one computer
and plugging it into the other), and one was the printer accessed
remotely.
So, my solution was to clear out the job queues, stop the daemons,
delete the local printer (and the network one, to avoid having to
change various things to use /dev/lp0 instead of /dev/lp), and then add
it again. (I did the adding and removing via linuxconf, FWIW.)
All seems happy now, and I note that there's even a /dev/printer, with a
file type of ... hang on, it's gone ... Oh. It was a socket. It must
be created as needed for a job, and removed afterwards.
luke
--
SLUG - Sydney Linux User Group Mailing List - http://slug.org.au/
More Info: http://lists.slug.org.au/listinfo/slug