<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>The Exploits of Plouj &#187; ipp</title>
	<atom:link href="http://www.plouj.com/blog/tag/ipp/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.plouj.com/blog</link>
	<description>A blog by Michael Ploujnikov</description>
	<lastBuildDate>Wed, 01 Sep 2010 17:05:46 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0.1</generator>
		<item>
		<title>Lexmark E250DN IPP Printing in CUPS</title>
		<link>http://www.plouj.com/blog/2008/06/22/lexmark-e250dn-ipp-printing-in-cups/</link>
		<comments>http://www.plouj.com/blog/2008/06/22/lexmark-e250dn-ipp-printing-in-cups/#comments</comments>
		<pubDate>Mon, 23 Jun 2008 01:14:24 +0000</pubDate>
		<dc:creator>plouj</dc:creator>
				<category><![CDATA[GNU/Linux]]></category>
		<category><![CDATA[cups]]></category>
		<category><![CDATA[fedora]]></category>
		<category><![CDATA[ipp]]></category>
		<category><![CDATA[lexmark]]></category>
		<category><![CDATA[linux]]></category>
		<category><![CDATA[printing]]></category>

		<guid isPermaLink="false">http://www.plouj.com/blog/?p=19</guid>
		<description><![CDATA[I just finished setting up my newly purchased monochrome duplex network printer &#8211; Lexmark E250DN. It took me a while to figure out how to configure CUPS on my GNU/Linux/Fedora machines to communicate with this printer. The problem was that I just didn&#8217;t know what URI to use for the printer. Unsurprisingly, the PDF and [...]]]></description>
			<content:encoded><![CDATA[<p>I just finished setting up my newly purchased monochrome duplex network printer &#8211; Lexmark E250DN. It took me a while to figure out how to configure CUPS on my GNU/Linux/Fedora machines to communicate with this printer. The problem was that I just didn&#8217;t know what URI to use for the printer. Unsurprisingly, the PDF and HTML documents that came with the printer didn&#8217;t mention such information. After all, why would Windows users need to know that if they can simply run the printer-specific utility to configure everything for them? Sheesh&#8230; Anyways. The CUPS manual was actually quite useful in listing <a href="http://localhost:631/help/network.html?QUERY=lexmark#TABLE1">common printer URIs</a>. It turned out that the Lexmark URI <code>lpd://printer-address/ps</code> and a Generic PostScript driver worked quite well. In fact, the &#8220;/ps&#8221; part seems to be irrelevant, so simply <code>lpd://printer.lan</code> worked for me. However, the CUPS manual also suggested <a href="http://localhost:631/help/network.html?QUERY=lexmark#LPD">avoiding the LPD protocol</a> if the printer supported other protocols. Using nmap I confirmed that my printer has at least something running on the IPP port (631):</p>
<pre>$ nmap printer.lan

Starting Nmap 4.53 ( http://insecure.org ) at 2008-06-22 20:39 EDT
Interesting ports on printer.lan (10.1.1.7):
Not shown: 1705 closed ports
PORT      STATE SERVICE
21/tcp    open  ftp
79/tcp    open  finger
80/tcp    open  http
515/tcp   open  printer
631/tcp   open  ipp
5001/tcp  open  commplex-link
8000/tcp  open  http-alt
9100/tcp  open  jetdirect
10000/tcp open  snet-sensor-mgmt

Nmap done: 1 IP address (1 host up) scanned in 0.396 seconds</pre>
<p>After a bit of trial and error, I discovered that simply using the <code>http://printer.lan:631</code> or <code>ipp://printer.lan</code> URI and a Generic PostScript driver worked without problems with E250DN.</p>
<p>Apart from these initial pains I am quite happy to be able to print double-sided black-and-white documents from all of my home computers.</p>
<h1>Side Note:</h1>
<p>During the investigation process, I noticed that Fedora&#8217;s system-config-printer utility prints the following information to the terminal when I tell it the IPP printer hostname:</p>
<pre>...
printer.lan: /usr/lib/cups/backend/snmp "${HOST}" 2&gt;/dev/null
printer.lan: hp-makeuri -c "${HOST}" 2&gt; /dev/null
No ID match for device ipp://printer.lan:
&lt;manufacturer&gt;Lexmark&lt;/manufacturer&gt;
  &lt;model&gt;E250dn 6216N4G LE.PM.P121 -- Part Number -&lt;/model&gt;
  &lt;description&gt;Lexmark E250dn 6216N4G LE.PM.P121 -- Part Number -&lt;/description&gt;
  &lt;commandset&gt;&lt;/commandset&gt;
Using textonly.ppd
...</pre>
<p>I wonder how I could get that XML-ish output myself. It doesn&#8217;t seem to come from hp-makeuri.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.plouj.com/blog/2008/06/22/lexmark-e250dn-ipp-printing-in-cups/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
