From owner-freebsd-questions Sun Jan 11 00:08:48 1998 Return-Path: Received: (from root@localhost) by hub.freebsd.org (8.8.7/8.8.7) id AAA01667 for questions-outgoing; Sun, 11 Jan 1998 00:08:48 -0800 (PST) (envelope-from owner-freebsd-questions) Received: from allegro.lemis.com (allegro.lemis.com [192.109.197.134]) by hub.freebsd.org (8.8.7/8.8.7) with ESMTP id AAA01662 for ; Sun, 11 Jan 1998 00:08:38 -0800 (PST) (envelope-from grog@lemis.com) Received: from freebie.lemis.com (freebie.lemis.com [192.109.197.137]) by allegro.lemis.com (8.8.7/8.8.5) with ESMTP id SAA22056; Sun, 11 Jan 1998 18:38:30 +1030 (CST) Received: (from grog@localhost) by freebie.lemis.com (8.8.8/8.8.7) id SAA22450; Sun, 11 Jan 1998 18:38:29 +1030 (CST) (envelope-from grog) Message-ID: <19980111183829.25615@lemis.com> Date: Sun, 11 Jan 1998 18:38:29 +1030 From: Greg Lehey To: Wes Peters Cc: questions@FreeBSD.ORG Subject: Re: Printing to Windows machine via Samba smbclient References: <34B87604.2E665BAD@xmission.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Mailer: Mutt 0.84e In-Reply-To: <34B87604.2E665BAD@xmission.com>; from Wes Peters on Sun, Jan 11, 1998 at 12:34:29AM -0700 Organisation: LEMIS, PO Box 460, Echunga SA 5153, Australia Phone: +61-8-8388-8286 Fax: +61-8-8388-8725 Mobile: +61-41-739-7062 WWW-Home-Page: http://www.lemis.com/~grog Sender: owner-freebsd-questions@FreeBSD.ORG X-Loop: FreeBSD.org Precedence: bulk On Sun, Jan 11, 1998 at 12:34:29AM -0700, Wes Peters wrote: > We got a new PostScript laser printer for Christmas. It actually > belongs to my wife, for FrameMaker on her Win95/NT machine. I, of > course, want to use it from FreeBSD also. > > I searched the archives and couldn't find any simple solutions to this, > so I plunged in and got it working myself. It only took me 10 minutes, > but I thought I should share it with anyone else, just in case. > > First, the printcap entry: > > ps|lp4|PostScript printer via network:\ > :lp=/dev/null:\ > :sd=/var/spool/ps:\ > :lf=/var/spool/ps/log:\ > :af=/var/spool/ps/acct:\ > :if=/usr/local/bin/psprint:\ > :mx#0:\ > :sf:\ > :sh: > > All pretty straightforward. The input filter, /usr/local/bin/psprint, > is a simple shell script: > > #! /bin/sh > # > # Print files to the PostScript laser print on our Win95 machine. > # Prints our standard input to the shared printer via SMB. > > smbclient \\\\anchor\\okidata "" -P -U wes -c 'print -' > > where \\anchor\okidata is the SMB server name and share name for the > print service, and wes is a user on anchor that doesn't require a > password (otherwise put the password where the null string "" is). > > Make the /var/spool/ps directory, touch the /var/spool/ps/log file, > and make both owned by bin.daemon. lpc start ps and you're off and > printing! Why not mount it on the FreeBSD box and print to it from the Microsoft box? > BTW, this is an Okidate OL 610e/PS I got from WebAuction for $182. You can't complain about the price, especially for a PostScript printer. Is it 300 dpi? > The output seems very nice, and the PostScript interpreter seems to > handle anything I throw at it, since I crammed a 16Mb FPM SIMM in > it. Anyone out there have any Cheers or Jeers for this printer? My first laser printer was an Oki LaserLine 6, years ago. It was pretty bare-bones, even for the time, but it was reliable. If your new one's like it, you don't have much to worry about. Greg