Re: Major CUPS problems. Please help Jeff wrote:
> I've been trying to get CUPS working for weeks without success. I am
> running latest emerges of gentoo-sources, cups, etc. I have all the cups,
> samba and related use flags turned on to the best of my knowledge. I've
> scoured the gentoo forums, where I've seen numerous other people having
> the same problems and no real answers to them. I've read the CUPS manuals,
> and FAQ and been to linuxprinting.org repeatedly. I've googled around and
> read Mandrake forums. I am out of ideas.
>
> Here's what I have:
>
> One gentoo machine with a printer hooked up to /dev/lp0 running a cupsd
> daemon that works by itself. This means I can print from this machine, use
> the web interface, etc. That printer is an Epson Stylus Color 400. The ppd
> file came from foomatic. I followed the gentoo docs to set it up. I will
> call this machine "zeus".
>
> I have another gentoo machine I'll call "apollo" on the same LAN. It also
> has cups installed, but has no printer connected to it directly.
>
> I have a third machine on the LAN I'll call "aphrodite". This is a Win2k
> machine with a Samsung printer connected to it.
>
> I cannot get either of the gentoo machines to print to the Win2k machine,
> although samba seems to be set up correctly, and both machines can see the
> printer via smbclient -L aphrodite. Both machines have accounts and
> smbpasswd's setup to match accounts on the Win2k machine, just to make
> things easier. I can move files between the Win2k machine and the gentoo
> machines.
>
> But when I try to install the cups driver for the Samsung on apollo by
> running lpadmin any of the following ways:
>
> #lpadmin -p Samsung-ML-1210 -c \
> smb://<name>:<passwd>@aphrodite/print$ -n Samsung -d gdi #lpadmin -p
> Samsung-ML-1210 -c \
> smb://<name>:<passwd>@olympus/aphrodite/print$ -n Samsung -d gdi #lpadmin
> -p Samsung-ML-1210 -c \
> smb://<name>:<passwd>@olympus/aphrodite/ML-1210 -n Samsung -d gdi #lpadmin
> -p Samsung-ML-1210 -c \
> smb://<name>:<passwd>@aphrodite/ML-1210 -n Samsung -d gdi
>
> I get the following error:
>
> lpadmin: Unable to connect to server: Connection refused.
>
> I got the $printer id from grepping the source, and the driver name "gdi"
> from grepping the drivers following the gentoo printer doc instructions.
> I'm pretty sure those are correct. But anyway, I don't think it is ever
> getting that far, because lpstat, lpinfo both give the same exact error.
>
> The usual answer in the forums is that cupsd isn't running. But it is
> running. I can start and stop it and look at it's pid with ps -A.
>
> I have tried using the web-interface to configure this printer, too. The
> web interface works (which proves that cupsd is running). I have tried
> every conceivable form of smb:// way of labeling the Win2k shared printer
> (and, yes, it is shared publicly - in fact, I can print to it from a SuSE
> machine running lprng just fine). I installed the printer as a samba
> printer using a raw queue - because Samsung isn't on its list of drivers
> in that interface. When I try to print a test page it says "connection
> refused"
>
> I haven't been able to print to the other gentoo box from apollo either.
> Its supposed to be able to automatically see zeus's cupsd daemon running,
> as I understand the documentation. But lpstat -a just gives the
> "Connection refused" error mentioned above. Without being able to see it,
> I have no idea how to configure it.
>
> And on zeus, (the gentoo box with the printer), I ran the lpadmin command
> above successfully, at least. But it doesn't do anything. Anytime I try to
> print something to it - either using the web-interface test page, or the
> lpr command, I get the following error message in the webinterface status:
>
> SMB tree connect failed: NT_STATUS_ACCESS_DENIED
>
> /etc/samba/smb.conf has printing = cups and printcap name = cups on both
> gentoo machines.
>
> As far as I can tell, /etc/cups/cupsd.conf is wide open (I left it in its
> default setup, which listens to port 631).
>
> The logs are surprisingly uninformative, even though I've kicked the
> smb.conf level up to debug (is there a way to do the same in cupsd.conf?)
>
> Does anyone have any idea how I can trouble shoot this? I usually don't
> have this much trouble, but I'm completely out of ideas at this point.
> I'll try anything.
>
> Thanks.
Hello Jeff,
I live in a windown free environment so I can't help you with your w2k/samba issues but I use the following setup
successfully:
2 printers called inkjet and laser connected to /dev/lp0 and /dev/lp1 on an old P100 called manuel
manuel runs lprng with one queue for each printer and simply spools in raw mode to the printers.
cupsd runs on my server called polly
On polly I have edited /etc/cups/cupsd.conf to allow connections from other clients and admins
New drivers, i.e. .PPD files need to be copied to /usr/share/cups/model/
You need to restart cupsd after you have copied new drivers.
My main workstation called basil also has cups installed.
On basil I only edited /etc/cups/client.conf and put the following line
ServerName polly
nothing else needed to be done on basil.
When configuring a new printer with the web interface I gave lpd://manuel/laser and lpd://manuel/inkjet
You would simply give /dev/lp0
That's it.
BTW, I also have a Dymo Turbo330 label printer connected via usb on polly, worked right from the first label.
HTH,
Xavier. |