<html><head></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; "><div><div>On Jan 13, 2010, at 1:19 AM, GP Power wrote:</div><blockquote type="cite">
<div bgcolor="#ffffff" text="#000000">Problem 1a:<br>
I cannot delete the default printer in the web interface because the
printer configuration is set to the same IP address as the machine I'm
using for remote system administration.  Since <b><big><tt>'localhost
= 192.168.1.102'</tt></big></b>, clicking on 'Delete printer' in the
web interface fails as it tries to execute:<br></div></blockquote><div><br></div>OK, so first I sincerely hope you haven't set localhost to 192.168.1.102 in your /etc/hosts file - that is guaranteed to hose up a lot of things (not use CUPS). The "localhost" name is reserved for the loopback interface (127.0.0.1 and ::1)</div><div><br></div><div>Second, I'm guessing this is a known URI-rewrite bug in CUPS 1.2.x that was fixed in 1.3.x.</div><div><br></div><div><blockquote type="cite"><div bgcolor="#ffffff" text="#000000">Problem 1b:<br>
I cannot delete the printer info from the command line because I can't
find where it's being stored. <br>
<b><big><tt>/etc/cups/printers.conf</tt></big></b> and <big><tt><b>/etc/cups/classes.conf</b></tt></big>
do not exist, so where is the above info recorded?<br></div></blockquote><div><br></div>If the printer is local it definitely should be in /etc/cups/printers.conf; if it is remote then you'll find it in the /var/cache/cups/remote.cache file.</div><div><br></div><div>The "lpadmin" command can be used to delete printers, however a remote printer that is auto-added will just come back the next time the local cupsd sees the printer on the network (by default 30 seconds):<br></div><div><br></div><div>    lpadmin -x printername</div><div><br></div><div>
<span class="Apple-style-span" style="border-collapse: separate; color: rgb(0, 0, 0); font-family: Monaco; font-size: medium; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-align: auto; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-border-horizontal-spacing: 0px; -webkit-border-vertical-spacing: 0px; -webkit-text-decorations-in-effect: none; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px; "><div>___________________________________________________</div><div>Michael Sweet, Senior Printing System Engineer</div><div><br></div></span><br class="Apple-interchange-newline">
</div>
<br></body></html>