From owner-freebsd-questions Wed Jan 30 14:48:23 2002 Delivered-To: freebsd-questions@freebsd.org Received: from smtprelay8.dc2.adelphia.net (smtprelay8.dc2.adelphia.net [64.8.50.40]) by hub.freebsd.org (Postfix) with ESMTP id 4CC4737B404 for ; Wed, 30 Jan 2002 14:48:15 -0800 (PST) Received: from there ([63.88.159.67]) by smtprelay8.dc2.adelphia.net (Netscape Messaging Server 4.15) with SMTP id GQRWOB00.DLB; Wed, 30 Jan 2002 17:48:11 -0500 Content-Type: text/plain; charset="iso-8859-1" From: "Gerald A. Speak" Reply-To: gaspeak@va.prestige.net To: Marco Radzinschi , FreeBDS-Questions Subject: Re: How to share HP LaserJet III with Samba? Date: Wed, 30 Jan 2002 17:48:10 -0500 X-Mailer: KMail [version 1.3.2] References: <20020129222747.P35773-100000@mail.radzinschi.com> In-Reply-To: <20020129222747.P35773-100000@mail.radzinschi.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Message-Id: <20020130224815.4CC4737B404@hub.freebsd.org> Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG Hello, Sorry if this may be off topic, but blieve it or not, Windows does in fact support printing to Unix LPR. I'm not positive on how to install/add this under windows 95/98 or NT4 but I do know that it is supported. The windows help files have instructions for how to add them, search for LPR. In Windows 2000's Add/Remove Programs select Add Remove Windows Components, make sure that there is a check in Other Netowrk File and Print Services and select Next. You will be prompted for your Windows disk's at the appropriate time. Once you have completed the above steps go 'Control Pannel|Printers|Add New Printer. Check Local Printer, and hit next. Windows will be unable to locate the new printer. Select next when prompted. Next you will have a Select Port Dialog displayed. Choose Create a new port, type: Local Port. Windows will ask you to enter a port name. It does not matter what you choose for a port name here. Next you will be asked for the Manufacturer and model of your printer, choose the appropriate printer and hit next. Pick a printer name and whether or not you want this printer to be default and hit next. Choose whether or not you want this printer shared (Next) Do you want to print a test page? (No) (Next) Finish. This should leave you with your printer control panel open with the new printer visible, Right click on it and select properties. Choose the Ports page/ and (Add Port) Your avaliable choices should include LPR Port, select it and hit (new port). You will be asked for a name or address of the server, enter either the computer name or the IP Address of the FreeBSD machine. You will also need to enter the name of the print queue, and hit (OK) and then Close the Printer Ports Window. At this time you should see a check in front of the IP address:queue that you previously entered. Select (Apply) switch to the General Tab and select Print Test Page. You should get a test page printed. On Tuesday 29 January 2002 10:39 pm, Marco Radzinschi wrote: > Hello: > > I have an HP LaserJet III attached to my FreeBSD 4.4 server's > parallel port. I set up lpd so that I can print files out from the > server using lpr. > > I have also set up samba with directories shared out to my windows > machines. However, I cannot figure out how to set up samba to allow the > windows machines to print to the LaserJet III. I got it to the point > where it is listed in network neighborhood, but I cannot print. > > I am assuming that I set up the samba spool directory or permissions > wrong. Could someone tell me how to set up smb.conf and the directory > permissions to get printing to work using the samba guest account? > > Assume I am an idiot. :-) > > Below is my /etc/printcap file. I don't want to paste smb.conf because it > is way too long, and it does not work. > > lp|HP LaserJet III:\ > > :sh:\ > :sd=/var/spool/lpd/lp:\ > :lp=/dev/lpt0:\ > :if=/usr/local/libexec/if-simple: > > Here is the /usr/local/libexec/if-simple script: > > #!/bin/sh > printf "\033&k2G" && cat && printf "\033&l0H" && exit 0 > exit 2 > > Thank you, > > Marco Radzinschi > > E-Mail: marco@radzinschi.com > AOL IM: CrackedBoy > > Running FreeBSD 4.4-RELEASE i386 > 10:27PM up 9 days, 23:50, 1 user, load averages: 0.00, 0.00, 0.00 > > > To Unsubscribe: send mail to majordomo@FreeBSD.org > with "unsubscribe freebsd-questions" in the body of the message To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message