From owner-freebsd-questions@FreeBSD.ORG Thu Aug 4 21:43:10 2005 Return-Path: X-Original-To: freebsd-questions@freebsd.org Delivered-To: freebsd-questions@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 862B416A41F for ; Thu, 4 Aug 2005 21:43:10 +0000 (GMT) (envelope-from northg@shaw.ca) Received: from pd2mo3so.prod.shaw.ca (shawidc-mo1.cg.shawcable.net [24.71.223.10]) by mx1.FreeBSD.org (Postfix) with ESMTP id E8BC743D45 for ; Thu, 4 Aug 2005 21:43:09 +0000 (GMT) (envelope-from northg@shaw.ca) Received: from pd4mr2so.prod.shaw.ca (pd4mr2so-qfe3.prod.shaw.ca [10.0.141.213]) by l-daemon (Sun ONE Messaging Server 6.0 HotFix 1.01 (built Mar 15 2004)) with ESMTP id <0IKP006MDW9HG6C0@l-daemon> for freebsd-questions@freebsd.org; Thu, 04 Aug 2005 15:41:41 -0600 (MDT) Received: from pn2ml7so.prod.shaw.ca ([10.0.121.151]) by pd4mr2so.prod.shaw.ca (Sun ONE Messaging Server 6.0 HotFix 1.01 (built Mar 15 2004)) with ESMTP id <0IKP00AA8W9HWJ90@pd4mr2so.prod.shaw.ca> for freebsd-questions@freebsd.org; Thu, 04 Aug 2005 15:41:41 -0600 (MDT) Received: from [192.168.0.100] (S0106000f3d63c5a5.vc.shawcable.net [24.85.154.162]) by l-daemon (iPlanet Messaging Server 5.2 HotFix 1.18 (built Jul 28 2003)) with ESMTP id <0IKP00516W9HMM@l-daemon> for freebsd-questions@freebsd.org; Thu, 04 Aug 2005 15:41:41 -0600 (MDT) Received: from 127.0.0.1 (AVG SMTP 7.0.338 [267.10.0]); Thu, 04 Aug 2005 14:41:47 -0700 Date: Thu, 04 Aug 2005 14:41:47 -0700 From: Graham North In-reply-to: <42F16BAE.7040600@shaw.ca> Cc: questions freebsd Message-id: <42F28B9B.2050209@shaw.ca> MIME-version: 1.0 Content-type: multipart/mixed; boundary="=======AVGMAIL-42F28B9B68AE=======" X-Accept-Language: en-us, en References: <42F16BAE.7040600@shaw.ca> User-Agent: Mozilla Thunderbird 1.0.2 (Windows/20050317) X-Content-Filtered-By: Mailman/MimeDel 2.1.5 Subject: Re: printing problems with CUPS on localhost server 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: Thu, 04 Aug 2005 21:43:10 -0000 --=======AVGMAIL-42F28B9B68AE======= Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Update - problem partially solved. I believe that a typo in smb.conf caused the grief, HOWEVER the formatting of text files from lp kind of sucks. Printing is hard against the Left Hand Side of page and loses about 2 characters. I looked and did not seem to have a2ps installed therefore installed and rebooted. Print is still the same - bad ALSO - I have been periodically getting kernel IRQ 7 error messages...!!! This does not sound like a good thing. Suggestions? Should I perhaps de-install CUPS and do again? Note this was originally set up as a simple web server, but I thought since it is running 24/7 and has Samba installed to access files from my WinBox I might as well tie the printer to it so as to enable printing of config files etc .... (yes I can open Samba wider to access those files from Windows but I do not like the security implications!) Some ideas from a good CUPser might really help. Thanks, Graham/ Graham North wrote: > I just set up my FreeBSD box to act as a printserver. I used CUPs > and Samba following great directions found here: > http://www.ajl-tech.com/index2.php?option=content&do_pdf=1&id=16 > > The printserver works very nicely printing jobs from my WinXP client > to an hp4l printer attached to Freebsd, however it will not print > files from itself using lpr. > > A bit of hunting found some "gotchas" at: > http://home.nyc.rr.com/computertaijutsu/cups.html ... and so I tried > adding symbolic links for the lp and lpr commands as per the author's > recommendations - see bottom of email. > > The problem still exists however, now instead of getting error > messages, if I issue a "lpr filename" command, my printer gives a > quick blink, no errror messages are generated, but neither is printer > output - nada! > > Repeat - Samba and Cups work together fine on this elderly hp4l - > print all sorts from Windows. Just cannot access from the server itself. > I am sure that this is a simple configuration issue somewhere - > > my printcap definition, ie: hp4l|lp|hp4l:rm=192.168.0.102:rp=hp4l: > ps. This was auto-generated from CUPs and oirignally was > "hp4l|hp4l:rm=192.168.0.102:rp=hp4l:" > (I later inserted the lp myself as CUPS does not, either way it > doesn't work.) > > Can anyone please point me straight on this? > Thanks, Graham/ > > > >From "gotchas" > ************ > "With FreeBSD, cups will place its configuration files in > /usr/local/etc rather than /etc. The lp or lpr command that you will > use is also going to be in /usr/local/bin rather than /usr/bin. As > /usr/bin is listed first in the path for both root and normal user, if > one tries to print using the command lp filename you'll get an error > message. > > There are various workarounds--one can edit the $PATH variable, type > the entire path, eg /usr/local/bin/lp or do it the lazy man's way, > which, as those who know me would expect, is what I did. I backed up > the /usr/bin lp and lpr and then sym linked /usr/local/bin's commands > to them. > mv /usr/bin/lp /usr/bin/lp.bak > mv /usr/bin/lpr /usr/bin/lpr.bak > ln -s /usr/local/bin/lp /usr/bin/lp > ln -s /usr/local/bin/lpr /usr/bin/lpr" > > ************** > > >-- >Kindness can be infectious - try it. > >Graham North >Vancouver, BC >www.soleado.ca > > > -- Kindness can be infectious - try it. Graham North Vancouver, BC www.soleado.ca --=======AVGMAIL-42F28B9B68AE======= Content-Type: text/plain; x-avg=cert; charset=us-ascii Content-Transfer-Encoding: quoted-printable Content-Disposition: inline Content-Description: "AVG certification" No virus found in this outgoing message. Checked by AVG Anti-Virus. Version: 7.0.338 / Virus Database: 267.10.0/63 - Release Date: 8/3/2005 --=======AVGMAIL-42F28B9B68AE=======--