From owner-freebsd-questions@FreeBSD.ORG Thu Nov 2 00:55:32 2006 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 BA1D116A49E for ; Thu, 2 Nov 2006 00:55:32 +0000 (UTC) (envelope-from freebsd@meijome.net) Received: from sigma.octantis.com.au (ns2.octantis.com.au [207.44.189.124]) by mx1.FreeBSD.org (Postfix) with ESMTP id E573F43D5E for ; Thu, 2 Nov 2006 00:55:31 +0000 (GMT) (envelope-from freebsd@meijome.net) Received: (qmail 4834 invoked from network); 2 Nov 2006 11:55:30 +1100 Received: from 203-217-60-156.dyn.chime.net.au (HELO localhost) (203.217.60.156) by sigma.octantis.com.au with (DHE-RSA-AES256-SHA encrypted) SMTP; 2 Nov 2006 11:55:30 +1100 Date: Thu, 2 Nov 2006 11:55:27 +1100 From: Norberto Meijome To: "RYAN M. vAN GINNEKEN" Message-ID: <20061102115527.5ef45fa1@localhost> In-Reply-To: <27449558.941162426392683.JavaMail.root@shoemasters.com> References: <27449558.941162426392683.JavaMail.root@shoemasters.com> X-Mailer: Sylpheed-Claws 2.5.2 (GTK+ 2.10.6; i386-portbld-freebsd6.2) Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Cc: freebsd-questions@freebsd.org Subject: Re: printing pdf 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, 02 Nov 2006 00:55:32 -0000 On Wed, 1 Nov 2006 17:13:12 -0700 (MST) "RYAN M. vAN GINNEKEN" wrote: > thanks norbert i have installed cups now but am getting the error > > lpadmin: Unable to connect to server: Connection refused > > have messed around with the cupsd.conf to try and allow access but am getting > nowhere any ideas? also read through the cups trouble shooting section but > they are incomplete. Hey Ryan, 1) make sure cupsd is running : /usr/local/etc/rc.d/cupsd start ( as root , or sudo) 2) configure your printers via http://localhost:631 . You may be asked to authenticate at a certain point (when you actually add the printer) - you need to enter root and your root's password 3) you should check that your lpr apps are the cups-aware ones (cups should replace the system ones with its own versions). I'm sure there's a way to tell lpr to show you the printers available, but I can't remember it now ( lpstat should help, but that's part of cups port, so it doesnt really apply) anyway, thjis is what I have installed: $ pkg_info | grep -i cups cups-1.2.2 The Common UNIX Printing System: Metaport to install comple cups-base-1.2.2 The Common UNIX Printing System cups-pdf-2.4.2 A virtual printer for CUPS to produce PDF files cups-pstoraster-8.15 Postscript interpreter for CUPS printing to non-PS printers cups-samba-5.0.r3 The Common UNIX Printing System: MS Windows client drivers gtklp-1.2.2 A gtk interface to cups libgnomecups-0.2.2_1,1 Support library for gnome cups admistration 4) in your program, select the right printer to print to and off you go. If you need to use lpr, simply use lpr -PYOURPRINTERNAME. For testing, I have created a PDF virtual printer in cupsd : date | lpr -PPDF_PRINTER should do. the resulting PDF will end up in /var/spool/cups-pdf/[YOUR_USERNAME] good luck, _________________________ {Beto|Norberto|Numard} Meijome "Everything should be made as simple as possible, but not simpler." Albert Einstein I speak for myself, not my employer. Contents may be hot. Slippery when wet. Reading disclaimers makes you go blind. Writing them is worse. You have been Warned.