[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: CUPS & network printing



On Thu, 2011-09-22 at 13:25 -0700, PETER EASTHOPE wrote: 
> Folk,
> 
> A printer is connected to a Squeeze system here with a parallel cable.  
> CUPS is installed and there is no problem printing directly from the 
> host.
> 
> I'm interested to have this printer work for other machines on the LAN.  
> http://www.cups.org/documentation.php/doc-1.5/network.html contains,
> "Verifying the Printer Connection
>   ...
> ping myprinter
> PING myprinter (192.0.2.2): 56 data bytes
> 64 bytes from 192.0.2.2: icmp_seq=0 ttl=15 time=5 ms".
> 
> Whereas here, this is the result.
> root@dalton:/# ping HPLaserJet1100
> ping: unknown host HPLaserJet1100
> 
> Seems that for network access, the printer must be assigned an 
> IP address.  Can anyone find documentation?  Can the address be
> assigned in /etc/network/interfaces ?  Otherwise, where?

No, the printer does not need an IP address, as the request will be
forwarded/handled by your Linux machine and CUPS.

If you have a browser on that machine got to http://localhost:631
otherwise use a browser on a different machine to connect, however in
that case the /etc/cups/cupsd.conf file need to be edited (or simply use
an ssh tunnel).
On the cups webinterface click administration, and make sure to check
the box "Share printers connected to this system", save these settings.
Then go to printers, select your printer and use the dropdownbox to
select "edit printer", click continue, then in the next screen check
"Share this printer" and click continue.
Now your printer is accessible using the IPP protocol with the url
ipp://hostname:631/printers/printername
replace hostname with the hostname or IP of your linux server and
replace 'printername' with the actual printername.
Of course you can do this without the web interface, I just find it
easier this way.


That should do the trick.
You can also use Samba to share your printers, a printer configured this
way in CUPS will automatically show up in the "windows network" the
option "load printers" is set to "yes" in your /etc/samba/smb.conf file.
Also set the options "printing" and "printcap name" to "cups" (without
the quotes)

Both methods can be used when printing from either MS Windows or Linux.

Good luck

> 
> Thanks,                      ... Peter E.
> 
> -- 
> http://members.shaw.ca/peasthope/
> http://carnot.yi.org/ = http://carnot.pathology.ubc.ca/
> 
> 
> 
> 

Kind regards,
Steven

Attachment: signature.asc
Description: This is a digitally signed message part


Reply to: