Re: printing from inside Linux firefox
On Fri, 4 Dec 2010, Warren Block responded to my previous email: On Fri, 3 Dec 2010, Dan Strick wrote: 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. Actually, it will. I tried the flashplugin-mozilla port, but it just causes a segmentation violation when I visit a page with flash items. Yes, that's not the right plugin. Deinstall it and follow the Handbook Flash instructions: The flashplugin-mozilla port does indeed seem to be the wrong port and the nspluginwrapper port mentioned in the FreeBSD Handbook does indeed work, but there were a couple of glitches: 1) The plugin was installed in $HOME/.mozilla/plugins where Linux firefox executables also find it and then choke on the FreeBSD ELF file. I fixed the problem by moving the plugin to /usr/local/lib/firefox3/plugins. Using a single .directory for multiple browsers is probably a very bad idea if it contains stuff which is not the same for all versions of all browsers. I am not sure what a better alternative should look like. One possibility would be to have directories in $HOME/.mozilla with names like plugins-version-name. 2) The nspluginwrapper produces these warning messages: *** NSPlugin Viewer *** WARNING: unhandled variable 18 (unknown variable) in NPN_GetValue() *** NSPlugin Wrapper *** WARNING: unhandled variable 18 in NPP_GetValue() I can't solve this problem because the nspluginwrapper does not seem to come with any documentation. Documentation would be noce since the nspluginwrapper claims to support other types of plugin but gives no hint about how to install them. Thanks, Dan Strick ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org
Re: printing from inside Linux firefox
On Sat 4 Dec 2010, Frank Shute responded to my previous question: On Fri, Dec 03, 2010 at 07:22:34PM -0800, Dan Strick wrote: ... 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. I don't use CUPS. My only interest in CUPS is that modern Linux binaries often use it and I would like to know how to configure /compat/linux so that printing works. My FreeBSD system uses lpr. My printcap entry looks like this: (the printer has an ethernet interface) ps0|ps|Brother HL-1270N:\ :sh:rw:mx#3:\ :lp=9...@br-hl-1270n:sd=/var/spool/lp/ps0:lf=/var/log/lpd-errs: I also convert everything to postscript before I lpr it. My printer setup is not borked. All postscript files other than those produced by firefox (e.g. those produced by enscript or groff -Tps) work just fine. My printer may be a little strange. I am not sure its postscript interpreter is precisely correct. Thanks, Dan Strick ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org
Re: printing from inside Linux firefox
On Mon, 6 Dec 2010, Dan Strick wrote: My printer setup is not borked. All postscript files other than those produced by firefox (e.g. those produced by enscript or groff -Tps) work just fine. My printer may be a little strange. I am not sure its postscript interpreter is precisely correct. PostScript emulations vary in quality. ps2ps or ps2ps2 (it's like typing 'banana') may produce output more acceptable to Brother's PS emulator. ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org
Re: printing from inside Linux firefox
On Fri, 3 Dec 2010, Dan Strick wrote: 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. Actually, it will. I tried the flashplugin-mozilla port, but it just causes a segmentation violation when I visit a page with flash items. Yes, that's not the right plugin. Deinstall it and follow the Handbook Flash instructions: http://www.freebsd.org/doc/en_US.ISO8859-1/books/handbook/desktop-browsers.html#MOZ-FLASH-PLUGIN ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org
Re: printing from inside Linux firefox
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 DefaultPrinter ps0 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 ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org
printing from inside Linux firefox
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 DefaultPrinter ps0 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). 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. Help! Dan Strick ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org