From owner-freebsd-current@FreeBSD.ORG Sun Dec 10 18:07:50 2006 Return-Path: X-Original-To: freebsd-current@freebsd.org Delivered-To: freebsd-current@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id DAD1416A40F for ; Sun, 10 Dec 2006 18:07:50 +0000 (UTC) (envelope-from lists@jnielsen.net) Received: from ns1.jnielsen.net (ns1.jnielsen.net [69.55.238.237]) by mx1.FreeBSD.org (Postfix) with ESMTP id 161C443CA6 for ; Sun, 10 Dec 2006 18:06:38 +0000 (GMT) (envelope-from lists@jnielsen.net) Received: from insp.local (jn@c-68-59-28-54.hsd1.sc.comcast.net [68.59.28.54]) (authenticated bits=0) by ns1.jnielsen.net (8.12.9p2/8.12.9) with ESMTP id kBAI7n2R059543; Sun, 10 Dec 2006 10:07:49 -0800 (PST) (envelope-from lists@jnielsen.net) From: John Nielsen To: freebsd-current@freebsd.org Date: Sun, 10 Dec 2006 13:07:41 -0500 User-Agent: KMail/1.9.4 References: In-Reply-To: X-Face: #X5#Y*q>F:]zT!DegL3z5Xo'^MN[$8k\[4^3rN~wm=s=Uw(sW}R?3b^*f1Wu*.<=?utf-8?q?of=5F4NrS=0A=09P*M/9CpxDo!D6?=)IY1w<9B1jB; tBQf[RU-R<,I)e"$q7N7 MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit Content-Disposition: inline Message-Id: <200612101307.42690.lists@jnielsen.net> X-Virus-Scanned: ClamAV version 0.88.4, clamav-milter version 0.88.4 on ns1.jnielsen.net X-Virus-Status: Clean Cc: fulan Peng Subject: Re: samba-cups-pdf virtual printer X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Discussions about the use of FreeBSD-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 10 Dec 2006 18:07:51 -0000 On Sunday 10 December 2006 03:06, fulan Peng wrote: > I am using 6.1. I just went /usr/ports/net/samba3 and print/cups-pdf > and did make clean installs. I made samba_enable="YES" and > cupsd_enable="YES" in /etc/rc.conf file. I managed to make swat > running and the cupsd listening at 631. I went http://192.158.0.1:631, > I clicked printer and add button, it showed Name, Location, > Description, then there is an add button. From Samba's swat, I could > not find any printer either. I added a printer named cups. Now I do > not know what I should do in cupsd at http://192.168.0.1:631/admin. > When making Samba, I just selected CUPS and no other options and I > choose share for the security options. > Please help to give some hint to make Samba-Cups-pdf writer work! I have this working. In my /usr/local/etc/smb.conf file I have (among other things): [global] printing = CUPS printcap name = cups On the cups side, you have to go through and add the virtual printer through the web interface. Just select "Add New Printer" and follow the prompts. Give it a name, and for "Device" select "Virtual Printer (PDF Printer)". The defaults should be fine for the other screens (it should show "cups-pdf:/" as the device URI). You should then have a CUPS printer which will also be exported (automatically) via Samba. Note that the resulting PDF documents will be stored locally on your print server (in /var/spool/cups-pdf by default), so you should also make that directory available over the network somehow. (Samba is an obvious candidate for your Windows clients.) HTH, JN