From owner-freebsd-questions@FreeBSD.ORG Fri Feb 29 21:07:23 2008 Return-Path: Delivered-To: questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 76C2F1065671 for ; Fri, 29 Feb 2008 21:07:23 +0000 (UTC) (envelope-from rfalang.bob@gmail.com) Received: from hu-out-0506.google.com (hu-out-0506.google.com [72.14.214.239]) by mx1.freebsd.org (Postfix) with ESMTP id BD0548FC17 for ; Fri, 29 Feb 2008 21:07:22 +0000 (UTC) (envelope-from rfalang.bob@gmail.com) Received: by hu-out-0506.google.com with SMTP id 28so4590550hub.8 for ; Fri, 29 Feb 2008 13:07:21 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:message-id:date:from:to:subject:cc:in-reply-to:mime-version:content-type:references; bh=vZWONyw+A/Lr31zaQkgFCyyb5cu/MG7ChIVMSUs5O2I=; b=dOXvaUVbNIPFLmbSRegVzWzfqz1YBLSkyiWO1INQdHG4hOAfklzwjYIOR77/nSkOgJLTbSPf4wtT7gcquvFqkW+X/y69KSs5haonBD2hU7dyWRLNRejGNBzCdoAZbC7OnoKuCoh/1YZsek9tlGxI8mGC5yVEEdEg0ZzBNKqW6H4= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=message-id:date:from:to:subject:cc:in-reply-to:mime-version:content-type:references; b=mWJ8nn8O1wvq59Igd9U5A1S5JA0ZKc3sFiRx6GMHva06y11n0cDyMH2SfAmtylpL19tZnJa2leCYk2SwRicuFetj5Xy6OOIyk8u5sP+3Dli20I0Cup5drFSOwQoC7A1aa/0ZJhBhMbyY1+6WYYE8cY0taEMhwqPSakEfdcXGr2Q= Received: by 10.86.3.4 with SMTP id 4mr11223925fgc.55.1204318430382; Fri, 29 Feb 2008 12:53:50 -0800 (PST) Received: by 10.86.3.1 with HTTP; Fri, 29 Feb 2008 12:53:50 -0800 (PST) Message-ID: <58d1e8d30802291253x735ff3b6mdee734cc0b26b139@mail.gmail.com> Date: Fri, 29 Feb 2008 15:53:50 -0500 From: "Bob Falanga" To: "Paul Schmehl" In-Reply-To: <8E3F243265EFB32E07CFFEFF@utd65257.utdallas.edu> MIME-Version: 1.0 References: <200802281006.19701.rfalang@twcny.rr.com> <47C6FC44.8060508@math.arizona.edu> <8E3F243265EFB32E07CFFEFF@utd65257.utdallas.edu> Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Content-Disposition: inline X-Content-Filtered-By: Mailman/MimeDel 2.1.5 Cc: questions@freebsd.org Subject: Re: Configuring a HP Laserjet 1018 USB printer on KDE X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 29 Feb 2008 21:07:23 -0000 Unfortunately for me neither http://localhost:631 or http://locaalhost:631/? worked for me. I get error message "Firefox can't establish a connection to the server at localhost:631." for both. On Thu, Feb 28, 2008 at 3:32 PM, Paul Schmehl wrote: > --On Thursday, February 28, 2008 11:24:04 -0700 Predrag Punosevac > wrote: > > > User &Robert Falanga wrote: > >> First am new using freebsd and would like help getting the printer > >> configured. After installing and staarting CUPS. When I go to SETTINGS > > > >> Peripherals > printers I get: > >> > > That is not the way to configure printer on vanilla FreeBSD. If you > want to > > use something like that > > install PC-BSD or DesktopBSD. > > > > Well, I beg to differ with you. That's one way to do it. Yours is > another. > > > To install the printer do the following > > 1. Alter permission on the device nodes chmod 0660 /dev/ulpt0 > > > > 2. chgrp cupsd /dev/ulpt0 > > > > 3. Add yourself to cupsd group by editing file /etc/groups > > > > I didn't have to do any of this. > > > 4. Move the commands of the native lpd printing system so that you can > use > > CUPS commands > > mv /usr/bin/lp /usr/bin/lp.bak > > mv /usr/bin/lpr /usr/bin/lpr.bak > > mv /usr/bin/lpq /usr/bin/lpq.bak > > mv /usr/bin/lprm /usr/bin/lprm.bak > > > > This is good advice, *if* the cups install has not already overwritten the > base > for you. > .if defined(CUPS_OVERWRITE_BASE) > if test -e /usr/bin/lp; then ${CHMOD} -h 0 /usr/bin/lp; fi > if test -e /usr/bin/lpq; then ${CHMOD} -h 0 /usr/bin/lpq; fi > if test -e /usr/bin/lpr; then ${CHMOD} -h 0 /usr/bin/lpr; fi > if test -e /usr/bin/lprm; then ${CHMOD} -h 0 /usr/bin/lprm; fi > if test -e /usr/sbin/lpc; then ${CHMOD} -h 0 /usr/sbin/lpc; fi > .endif > > # ls -lsa /usr/bin/lp* > 4 -r--r--r-- 1 root wheel 2590 Feb 21 12:59 /usr/bin/lp > 26 -r-Sr-Sr-- 1 root daemon 25876 Feb 21 12:59 /usr/bin/lpq > 30 -r-Sr-Sr-- 1 root daemon 29368 Feb 21 12:59 /usr/bin/lpr > 26 -r-Sr-Sr-- 1 root daemon 24600 Feb 21 12:59 /usr/bin/lprm > > > > > 4. Restart cupsd for instance by adding cupsd_enable="YES" into your > > /etc/rc.conf at the same time > > disable lpd daemon by adding lpd_enable="NO" > > > > Also good advice. > > > 5. Reboot > > > > 6. Point the web-browser to http://localhost:631 to add the printer > > > > Unfortunately, this didn't work for me. I got the source code for the > page > displayed in my browser. If I added a ? to the end ( > http://localhost:631/?), > then the page was displayed. > > > NOTE: > > > > 1. Your printer is using foo2zjs reversed engineered driver which you > must > > compile from ports. People > > have reported mixed results with the driver! You have to compile the > driver > > before you start adding the printer. > > > > Seems to me, for HP printers, the hpijs driver is the right choice. > print/hpijs > > > 2. You might need to disable your firewall or at least port 631 which is > used > > by Internet Printing Protocol (IPP) > > which is in turned used by CUPS. > > > > Only if you want to be a print server. If you're just printing from a > workstation, you don't need to worry about incoming traffic on 631. > > >> Unable to retrieve the printer list. Error message received from > manager: > >> Connection to CUPS server failed. Check that the CUPS server is > correctly > >> installed and running. Error: localhost: read failed (14). > > This sounds like he didn't put cupsd_enable="YES" in /etc/rc.conf. > > >> If I use LPR/LPRng things seem to be going well until I get to the > screen > >> asking for URI: I have no clue as to what it is asking for. > >> > > You might have to uninstall and reinstall cups. I did. The first time > didn't > work for some reason. > > I used KDE's control center to set up the printer as well as the printer > manager. Everything worked fine after the initial failure and the > subsequent > reinstall. > > -- > Paul Schmehl (pauls@utdallas.edu) > Senior Information Security Analyst > The University of Texas at Dallas > http://www.utdallas.edu/ir/security/ > > _______________________________________________ > freebsd-questions@freebsd.org mailing list > http://lists.freebsd.org/mailman/listinfo/freebsd-questions > To unsubscribe, send any mail to " > freebsd-questions-unsubscribe@freebsd.org" >