From owner-freebsd-questions@FreeBSD.ORG Sat Dec 4 17:46:15 2010 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 64CAE106564A for ; Sat, 4 Dec 2010 17:46:15 +0000 (UTC) (envelope-from frank@esperance-linux.co.uk) Received: from asmtp4.iomartmail.com (asmtp4.iomartmail.com [62.128.201.175]) by mx1.freebsd.org (Postfix) with ESMTP id EDDA78FC38 for ; Sat, 4 Dec 2010 17:46:14 +0000 (UTC) Received: from asmtp4.iomartmail.com (localhost.localdomain [127.0.0.1]) by asmtp4.iomartmail.com (8.13.8/8.13.8) with ESMTP id oB4HkBb9031175; Sat, 4 Dec 2010 17:46:11 GMT Received: from orange.esperance-linux.co.uk (80-45-152-196.static.dsl.as9105.com [80.45.152.196]) (authenticated bits=0) by asmtp4.iomartmail.com (8.13.8/8.13.8) with ESMTP id oB4HkAex031171; Sat, 4 Dec 2010 17:46:10 GMT Received: by orange.esperance-linux.co.uk (Postfix, from userid 1001) id 259BB33C1F; Sat, 4 Dec 2010 17:46:10 +0000 (GMT) Date: Sat, 4 Dec 2010 17:46:10 +0000 From: Frank Shute To: Dan Strick Message-ID: <20101204174610.GB17837@orange.esperance-linux.co.uk> References: <201012040322.oB43MYTU077721@mist.nodomain> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <201012040322.oB43MYTU077721@mist.nodomain> User-Agent: Mutt/1.4.2.3i X-Face: *}~{PHnDTzvXPe'wl_-f%!@+r5; VLhb':*DsX%wEOPg\fDrXWQJf|2\,92"DdS%63t*BHDyQ|OWo@Gfjcd72eaN!4%NE{0]p)ihQ1MyFNtWL X-Operating-System: FreeBSD 8.2-PRERELEASE amd64 X-Organisation: 'shute.org.uk' Cc: freebsd-questions@freebsd.org Subject: Re: printing from inside Linux firefox X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: Frank Shute List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 04 Dec 2010 17:46:15 -0000 On Fri, Dec 03, 2010 at 07:22:34PM -0800, Dan Strick wrote: > > I am running FreeBSD release 8.1. I normally run a Linux Firefox > (currently version 3.5.15) because I need the flash plugin > (/usr/ports/www/linux-f10-flashplugin10). I also need to print web pages > on occasion but the Linux Firefox does not recognize the printers attached > to my system. It writes warning/error messages like this in the window > from which I ran the Firefox program: > (firefox-bin:77065): Gtk-WARNING **: libcups.so.2: cannot open shared object file: No such file or directory > > If I copy the missing library (from Fedora 10 Linux) into /compat/linux, > Firefox complains about another missing library. If I give it more > libraries until it shuts up, it still does not find my printers. I > speculated that cups requires additional configuration, so I created the > file /compat/linux/etc/cups/pinters.conf with a > entry, but Firefox still won't recognize my printer and it produces > no warning/error messages that might give me a hint. > > Obviously, I don't know what I am doing. Can this be made to work? > > I tried /usr/ports/www/firefox which installs as firefox3, a native > FreeBSD Firefox program. It will print via lpr, but It won't > do flash. I tried the flashplugin-mozilla port, but it just causes a > segmentation violation when I visit a page with flash items. > (Oddly enough, if I install linux-f10-flashplugin10 in a recent 3.6.xxx > version of Linux Firefox, it seems to fail in the same way.) > > I tried printing to a file, but both the Linux and FreeBSD Firefox > programs create slightly strange postscript and pdf files which seem > to display correctly via the ghostscript and acroread programs but > won't print correctly on my postscript printer (a Brother HL-1270N). Firefox produces OK postscript. Your printer setup is borked. Try using lpr and doing away with CUPS is my advice. Then you can send ps directly to the printer. Below are the important files for my postscript printer. I just convert everything to postscript before I lpr it. $ cat /etc/printcap lexmark|local:\ :lp=/dev/lpt0:\ :if=/home/frank/bin/myfilter:\ :sd=/var/spool/lpd/lexmark:\ :lf=/var/spool/lpd/lexmark/log:\ :af=/var/spool/lpd/lexmark/acct:\ :mx:\ :sh: $ cat /home/frank/bin/myfilter #!/bin/sh # cat - echo "\f" > I tried Linux Opera. It fails just like the Linux Firefox. > This is actually a serious problem. There are sometimes when I just > *have* to be able to save a postscript image (e.g. a map) and print > it later. > > My sister tells me that I should be using MS Windows because that always > works correctly. I don't know how to prove her wrong. > You can prove her wrong by reading the handbook and installing flash with the native Firefox; it works fine for me. > Help! > > Dan Strick Regards, -- Frank Contact info: http://www.shute.org.uk/misc/contact.html