From owner-freebsd-questions Sat Nov 14 21:40:49 1998 Return-Path: Received: (from majordom@localhost) by hub.freebsd.org (8.8.8/8.8.8) id VAA23346 for freebsd-questions-outgoing; Sat, 14 Nov 1998 21:40:49 -0800 (PST) (envelope-from owner-freebsd-questions@FreeBSD.ORG) Received: from ds9.dreamhaven.org (dt091n3e.san.rr.com [204.210.47.62]) by hub.freebsd.org (8.8.8/8.8.8) with SMTP id VAA23341 for ; Sat, 14 Nov 1998 21:40:47 -0800 (PST) (envelope-from data@dreamhaven.net) Received: (qmail 29333 invoked by uid 1010); 15 Nov 1998 05:40:25 -0000 Date: Sat, 14 Nov 1998 21:40:25 -0800 (PST) From: Bryce Newall X-Sender: data@ds9.dreamhaven.org To: Aaron Parmelee cc: questions@FreeBSD.ORG Subject: Re: set up printing In-Reply-To: <3.0.5.32.19981114213553.008f3d60@net66.com> Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG On Sat, 14 Nov 1998, Aaron Parmelee wrote: > my etc/printcap file looks like this: > lp|local line printer:\ > :sh\ > :lp = /dev/lpt1: sd=/var/spool/output/lpd: If/var/log/lpd -errs: Well, I see a few things wrong there: 1) You're missing a colon after the "sh" line (before the backslash). 2) On the next line, I don't think you can have spaces (but I'm not sure). 3) If your printer is connected to what DOS or Windows would see as LPT1, then the lp entry should be /dev/lpt0, not /dev/lpt1. FreeBSD starts numbering ports from 0, so lpt0 = LPT1, lpt1 = LPT2, etc. 4) The most important one: the "if" field should contain the command for a filter, if any, not the line printer daemon (lpd) itself. Incidentally, you also are missing an "equals" sign between "if" and "/var/log". But even that notwithstanding, you don't want to call lpd from printcap. lpd must already be running. In turn, this "master" lpd launches a new lpd for each print job, which then terminates when the job is finished. However, a master copy must be running. For now, you should just delete the "if" field in your printcap. Then, to get your master copy going now, just type "lpd" at the prompt (as root, of course). Then, to get it to be running when you boot your machine up, find this line in your /etc/rc.conf file: lpd_enable="" Or it may read: lpd_enable="NO" In either case, change it to read: lpd_enable="YES" > when i type lpq: > > warning no printer daemon present (bad news, i think) Yes, bad news -- as I said above, it's because your lpd isn't running. > 1st root0 (standard input) 13308 bytes Yup, that's the print job sitting in your queue. You should probably delete it before running lpd -- to do so, just type "lprm -" to clear out the queue. Once you have lpd running, then try printing something using the command "lpr filename", using a simple file like your .login -- "lpr .login". > say, how do you rename your computer? i'm tired of seeing "myname" everywhere. You mean change the hostname? That's in /etc/rc.conf as well, on a line that starts with "hostname=". Fill in the appropriate value there. Good luck! ********************************************************************** * Bryce Newall * Email: data@dreamhaven.net * * WWW: http://home.dreamhaven.net/~data * * "Insanity takes its toll. Please have exact change." * ********************************************************************** To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message