[cups.general] Setting IPP printer with CUPS on RHES 4.0

Denny Snyder wolverine at jhu.edu
Thu Oct 29 10:21:19 PDT 2009


Hmm...  sounds like there are more parts to this than I thought....

Can you give me the following info?

Server name/IP hosting CUPS
Printer name/IP
Make and Model of printer
The /etc/cups/printers.conf file
The /etc/cups/cupsd.conf file

We need to get the server printing to the printer before we even attempt to try setting up a client to print via your CUPS server.
Also do the following on the server just for gp:
rpm -qa | grep cups
chkconfig --list cups
service cups status
lpstat -t

If you'd like, email me directly outside of the mailing list (address is below) and we'll go from there.
Don't mail the above to the list = not a good idea :)




Denny Snyder
IT at Johns Hopkins
5801 Smith Ave Suite 3110C
Baltimore, MD 21209
(410)735-7613 : DESK
(410)735-4660 : FAX
wolverine at jhu dot edu


-----Original Message-----
From: cups-bounces at easysw.com [mailto:cups-bounces at easysw.com] On Behalf Of Anton Preheim
Sent: Thursday, October 29, 2009 12:43 PM
To: cups at easysw.com
Subject: Re: [cups.general] Setting IPP printer with CUPS on RHES 4.0

Denny,

Truthfully, I think I got about 3/4 of it (-:

Ok, here's the deal.  I got the printer and the queue setup at this point.  I was able to ping the printer by name and IP address.  The report process completed now with a "printed" message, which is good.  The output is now sitting in the queue, but will not print for some reason.  I have recycled the cups service, but still fail to print.

My question is, what is the exact syntax do I enter for the "Server" and "Path" in the printer configuration GUI.

My printer is called, LP_Test_PO.

I am still little confused about the ipp://myprinter/ipp

Thank you so much for your time.  By the way, could I call you directly??

AP




> If you look at your current /etc/hosts file on your server you should see s=
> omething like this:
> # Do not remove the following line, or various programs
> # that require network functionality will fail.
> 127.0.0.1               localhost.localdomain localhost
> ::1             		localhost6.localdomain6 localhost6
> 10.181.24.44            myserver.domain.dom myserver
> 10.181.24.98		myprinter
>
> I added the last line as an example.  Now if I create the printer in the CU=
> PS interface, I can name it anything, give it whatever kind if description =
> and location.  Then choose IPP from the dropdown box and give it the device=
>  URI address of:
> ipp://myprinter/ipp/
> Then follow it up with whatever printer make and model and driver etc....
>
> I generally make it a habit to name the printer in my /etc/hosts file the s=
> ame as the printer is named in CUPS so there isn't any confusion.
>
> If you do the above and the test print job just sits in the queue...  try c=
> hanging the device URI to ipp://myprinter and see what happens.  Can you pr=
> int to the printer in other ways? (i.e. socket://myprinter:9100, or lpd://m=
> yprinter/raw/)
>
> You can setup this same printer with different names to test different devi=
> ce URI's - just name it in CUPS (i.e. myprinter_ipp, my_printer_socket, my_=
> printer_lpd, etc) and make the device URI match what connection type your t=
> esting....  (do I have you confused yet?)
>
> Good Luck
>
>
> Denny Snyder
> IT at Johns Hopkins
> 5801 Smith Ave Suite 3110C
> Baltimore, MD 21209
> (410)735-7613 : DESK
> (410)735-4660 : FAX
> wolverine at jhu dot edu
>
> -----Original Message-----
> From: cups-bounces at easysw.com [mailto:cups-bounces at easysw.com] On Behalf Of=
>  Anton Preheim
> Sent: Thursday, October 29, 2009 9:57 AM
> To: cups at easysw.com
> Subject: Re: [cups.general] Setting IPP printer with CUPS on RHES 4.0
>
> Again, thank you!!
>
> I am more of a visual person.  Therefore, it would be helpful to see I the =
> syntax in the /etc/hosts file.  Otherwise, I think I kinda got it, but the =
> test print job does go anywhere, but stuck in the queue that I created.
>
> Regards,
>
> AP
>
>
> > The only difference in printing IPP vs lpd or socket or however you have =
> it=3D
> >  setup now is choosing IPP from the dropdown selection box in the CUPS we=
> b =3D
> > interface and then giving it a proper device address URI.  i.e. lpd://ipa=
> dd=3D
> > ress:raw or socket:://printername:9100 or http://blahblahblah
> >
> > I used printer1.domain.dom as an example...  so if I put an entry for new=
> pr=3D
> > inter in /etc/hosts on the CUPS server, my IPP device URI would be ipp://=
> ne=3D
> > wprinter/ipp/ (trust me, I have 94 printers per server on 9 servers and I=
> 'm=3D
> >  constantly going in and modifying printers)
> >
> > The device URI is entered in the 2nd or 3rd screen when you create a prin=
> te=3D
> > r...
> >
> > Name, Location, Description
> > Protocol Selection (Appletalk/JetDirect, IPP, HTTP, etc)
> > Device URI
> > Manufacturer
> > Model
> >
> > Denny Snyder
> > IT at Johns Hopkins
> > 5801 Smith Ave Suite 3110C
> > Baltimore, MD 21209
> > (410)735-7613 : DESK
> > (410)735-4660 : FAX
> > wolverine at jhu dot edu
> >
> >
> > -----Original Message-----
> > From: cups-bounces at easysw.com [mailto:cups-bounces at easysw.com] On Behalf =
> Of=3D
> >  Anton Preheim
> > Sent: Wednesday, October 28, 2009 8:36 PM
> > To: cups at easysw.com
> > Subject: Re: [cups.general] Setting IPP printer with CUPS on RHES 4.0
> >
> > Hi Denny,
> >
> > Thanks for your response.  You're correct.  I used the printer GUI interf=
> ac=3D
> > e to setup IP's printer with RAW print queue and we're using without much=
>  e=3D
> > ffort.  I have been asked to setup an IPP printer so that the users can p=
> ri=3D
> > nt directly from Oracle.
> >
> > So, what I am gathering here that I will have to setup the printer in the=
>  /=3D
> > etc/hosts file with the IP address and that's it??  I don't understand ab=
> ou=3D
> > t the url printer1.domain.com statement at all.  So, how many different a=
> re=3D
> > a do I need to touch to successfully setup up IPP printer??  Do you have =
> ex=3D
> > amples or step by step procedure??  By the way, I am new to Linux environ=
> me=3D
> > nt.
> >
> >
> > Help (-:
> >
> > Thanks,
> >
> > AP
> >
> >
> >
> > > I take it you're attempting to print to an IPP printer such as to a new=
> er=3D
> >  J=3D3D
> > > etDirect or newer intregrated JetDirect?
> > >
> > > Make sure you put the correct device URI in ...  (I usually create a /e=
> tc=3D
> > /h=3D3D
> > > osts entry for each printer so I don't have to use IPs or FQDNs)
> > >
> > > So if the printer is pingable as printer1.domain.dom and supports IPP t=
> he=3D
> > n =3D3D
> > > the device URI would (should) be:
> > > ipp://printer1.domain.dom/ipp/
> > >
> > > that's it :)
> > >
> > > at least that's what the JetDirects accept..  for others they sometimes=
>  u=3D
> > se=3D3D
> > >  a different style such as not ending /ipp/ or use /ipp/raw - you'll ha=
> ve=3D
> >  t=3D3D
> > > o check the documentation for those.
> > >
> > > All of this is painfully easy to setup through the cups web interface a=
> t =3D
> > ht=3D3D
> > > tps://serverip:631 (provided cupsd is running AND iptables has an allow=
> an=3D
> > ce=3D3D
> > >  for your source IP to port 631 AND cupsd.conf has an allow for your IP=
>  o=3D
> > r =3D3D
> > > subnet to access the admin pages within cups! - lotsa gotchas there tha=
> t =3D
> > ca=3D3D
> > > n promote immediate hair loss :) easiest?  Ssh in (with a -X just in ca=
> se=3D
> > ) =3D3D
> > > and run firefox https://localhost:631 and have it come back to your xse=
> rv=3D
> > er=3D3D
> > > ..  I use xming for my xserver and putty - this way you don't have to d=
> o =3D
> > any=3D3D
> > >  iptables or cupsd.conf stuff...  localhost is always allowed by defaul=
> t.
> > >
> > > Good Luck!
> > >
> > > Denny Snyder
> > > IT at Johns Hopkins
> > > 5801 Smith Ave Suite 3110C
> > > Baltimore, MD 21209
> > > (410)735-7613 : DESK
> > > (410)735-4660 : FAX
> > > wolverine at jhu dot edu
> > >
> > >
> > > -----Original Message-----
> > > From: cups-bounces at easysw.com [mailto:cups-bounces at easysw.com] On Behal=
> f =3D
> > Of=3D3D
> > >  Anton Preheim
> > > Sent: Wednesday, October 28, 2009 3:01 PM
> > > To: cups at easysw.com
> > > Subject: [cups.general] Setting IPP printer with CUPS on RHES 4.0
> > >
> > > Hello,
> > >
> > > I would like to know how I can setup an IPP printer by using CUPS proto=
> co=3D
> > l =3D3D
> > > with my Linux RedHat 4.0 server?  I have to no trouble so far setting u=
> p =3D
> > ne=3D3D
> > > twork printer using the IP address.  However, I am struggling on settin=
> g =3D
> > up=3D3D
> > >  the IPP printer in CUPS printing utility.
> > >
> > > Please help.
> > >
> > > Thank you in advance.
> > >
> > > AP
> > >
> > > _______________________________________________
> > > cups mailing list
> > > cups at easysw.com
> > > http://lists.easysw.com/mailman/listinfo/cups
> > >
> >
> > _______________________________________________
> > cups mailing list
> > cups at easysw.com
> > http://lists.easysw.com/mailman/listinfo/cups
> >
>
> _______________________________________________
> cups mailing list
> cups at easysw.com
> http://lists.easysw.com/mailman/listinfo/cups
>

_______________________________________________
cups mailing list
cups at easysw.com
http://lists.easysw.com/mailman/listinfo/cups





More information about the cups mailing list