remote printing with samba was broken because of syntax error in shell.
only occurred when a SMB_PASSWD has been set.
Thanks to Olivier !
Submitted by: Olivier PAGE <olivier@esm2.imt-mrs.fr>
syntax error in SETUP
which is detected by bash2 but not by our shell
So all Linux user trapped over this
result is, that you can't select a printer and loop in printer selection
forever...
+ doesn't work:
+ PRINTER=`awk -F "|" \
^----- missing "
+ "{ if (FNR == $answer ) print \\$2 }" \
+ < $PRINTER_LIST"`
^^----- wrong order
+ works:
+ PRINTER="`awk -F "|" \
^----- o.k.
+ "{ if (FNR == $answer ) print \\$2 }" \
+ < $PRINTER_LIST`"
^^----- o.k.
Is it a bug in our shell ???
Fixes BUG in apsfilter 5.3.0
SETUP: you entered a "printer selection loop" when selecting uniprint
printer
Includes the previous patch for CLASS support and such ...
New features in 5.3.0
=====================
- Major enhancements in SETUP, therefore version bump
- checks your version of ghostscript
- is aware of gs version 5.50 and 6.01 printer drivers
- new driver selection mechanism
- fetches list of available printer driver from file
- you can browse/search this list using more
- you select printer driver by number
- sanity check, if the printer driver is present in your gs binary
- at the end of your selection you get a list of printers
as confirmation, that are supported by your driver selection
- you can repeat this step as often as you like until you
choose a valid printer driver
- After printer driver selection you can as usual print test pages
if you like or repeat the step of selection another driver in this
more user friendly manner.
- upp profile contribution for
Epson LQ-570/870/1070/1170 ESC/P2 24-pin Dot Matrix printer
- 3rd party additional driver for
HP 812C, 815C, 832C, 880C, 882C, 895C, 932C, 970C
http://www.proaxis.com/~mgelhaus/linux/software/hp880c/hp880c.html
- Generic Postscript printer Support
- added more resolutions in SETUP script and apsfilter script
- bugfix: some resolutions were missing in apsfilter script
- Adding driver support information is now more easy, since you only
have to add it to a file setup/printer-<gs-version>
- internal: download page: enhanced make-release script
produces now diffs from every version to latest version
- latest apsfilter patches can be found on download page
- info: new URL -> http://people.freebsd.org/~andreas
- new URL -> http://people.freebsd.org/~andreas
- make-release: generate more diffs (every release to latest) and
patch from latest to head branch
- Added files with an up to date printer list for gs 5.50 and 6.01
SETUP will be modified later...
- devices-5.50 - list of driver options
- devices-6.01 - list of driver options
- printer-5.50 - list of supported printers
- printer-6.01 - list of supported printers
New apsfilter features:
* Security: config files are read using awk, not sourced during runtime
* Complete Windows Remote Printer Support (as Guest user or using real login)
* Complete Unix remote printer support
* Support for different print resolutions (by starting SETUP repeatedly)
and choosing different print resolutions
* A2PS options revamped
* lots of more things... See my homepage, ANNOUNCE file ...
* print margin problem of a2ps fixed
FAQ section gives you a real life example, of how to configure
page margins in /usr/local/etc/a2ps.cfg for an EPSON STYLUS PRO.
With this example you can fine tune the margins for your printer in
about 10-15 minutes from scratch...
- SETUP: added support for configuring remote printer
Beware: you still have to make sure, that your line printer scheduler supports
input filter processing with remote printers as it is the case for FreeBSD 3.x
and later with a "fixed" lpd, as well as for Unix systems with LPRng installed
as lineprinter scheduler, which is the case for some (not all !!!) Linux
Systems.
- Add support for printing with SAMBA (SAMBA_PRINTER)
- Bugfix. Some printer dependend settings will be overwritten, when installing
a 2nd printer, which might cause printing with the 1st printer to fail,
especially if the first printer is color and 2nd B&W or vice versa.
Revamped SETUP and bin/apsfilter to get around this.
- Added SETUP menue entries for the uniprint driver
contributed by Francois D. Menard <fmenard@g6-114b.residence.usherb.ca>
printer: Epson Stylus Color 740
mode1: stc740ih.upp : Epson Stylus Color 740, 1440x720DpI, Inkjet Paper
mode2: stc740p.upp : Epson Stylus Color 740, 720x720DpI, Plain Paper
mode3: stc740pl.upp : Epson Stylus Color 740, 360x360DpI, Plain Paper
- New FAQ entries concerning print margins when printing ASCII text with a2ps
- updated howto and troubleshooting document
HOWTO-BUGREPORTS moved to toplevel, so that its easier to find.
- Update apsfilter to new version 5.1.4
- Use a2ps-letterdj as default in dialog setup script
This should fix problems for most HP Deskjet and
Espon print Problems because of wrong print margins
This is even recommended for A4 printing !!!
apsfilter 5.1.3 - 5.1.4 changes:
- added uniprint directory for contributed ghostscript uniprint driver files
- uniprint driver contribution for Epson Stylus Color 740
- support for using different uniprint driver profiles for one printer,
updated apsfilterrc with example
- fixed shell scripts, so that SETUP runs with Solaris 7 /bin/sh
(remember, you still need to replace your SVR4 compatible printing
subsystem with LPRng, if you want to use apsfilter on Solaris 7 and
related SVR4 compatible Unix derivates)
- added docu on how to configure apsfilter for remote printing
doc/REMOTE-PRINTING
- Update FAQ concerning
- how to adjust page margins (if some pixels are missing
in your printout)
- Change default for printing ASCII documents to
single page on a sheet, portrait format, without any header or border
- Updated apsfilterrc to be more verbose about the difference of
the legacy a2ps config option "FEATURE"
vs. the new recommended way "A2PS_OPTS"
- cosmetic in SETUP, see ChangeLog file
- [internal]: improve make-release script
Fix the BATCH=yes case. The .keep_me file was not being touched in
BATCH=yes since MAkefile.inc was only created in interactive mode,
and Makefile.inc is where .keep_me is also touched... This port
should now work for BATCH and !BATCH.
scripts can create the complete list of apsfilter port
dependencies.
So I removed the "BATCH case" from configure to the
more suitable area/form in Makefile of the port.
gzip and bzip2 create a compressed file and in
the header unfortunately this changes md5 checksum.
Now updating md5, have to look for a better solution
in the near future, stay tuned...
Changed License, want a postcard.
New features in 5.1.3
=====================
- Security fix. tmp files are now not readable by other people
this gives you more privacy for your print jobs
- New nice options for a2ps when printing ASCII files
- SETUP's main menue now leads you more user friendly to new uniprint drivers
- SETUP: many display enhancements to make the setup script more
informative to the user.
- some cosmetic concerning apsfilter-promo@klemm.gtn.com
FWIW, checkout of these things took 5+hrs, staying on the local
.freebsd.org net w/o hitting the 'net at all.
As promised,
$ time cvs ci
real 67m51.701s
user 0m1.250s
sys 0m5.345s
- it's possible to use psutils to print 2 pages on one physical
page and other things.
- New Environment Variable PSUTILS can be set via apsfilterrc files.
i.e.: PSUTILS="psnup -2 |"
Port now additionally has a run dependency to psutils-letter....
bugfix release
apsfilter now again allows you to use the gs driver default
resolution. Bug was, that everything defaulted to 300dpi, if
not set explicitely via DPI (set by name of symlink to apsfilter)
or GS_RESOL (set manually or via SETUP script in apsfilterrc).
Moved everything only print_dvi dependend to print_dvi...
Cosmetic changes
More user friendly bugform
the user will get a make syntax error ("Malformed conditional") when
PAPERSIZE and BATCH are both unset.
Andreas, go ahead and change this further if you want, I'm not sure
what you intended to do here, so I went with the "safest" fix.
printers that have "a4" paper, while "a4" produces clipped results for
printers that have letter papper?" ---Warner
YES ;-)
Reminded by: Warner Losh <imp@harmony.village.org>
Port related changes:
- apsfilter port isn't interactive anymore, we can now put it onto FreeBSD CD 1
- use bzip2 for apsfilter sources to save space on FreeBSD Disk 1
- new run dependency to recode and a2ps
- when BATCH is defined set PAPERSIZE to a4, to avoid problems with a2ps port
- updated DESCR (listed some of the new apsfilter features)
- updated PLIST
- new post-install target to inform people to run SETUP to complete installation
Apsfilter related changes:
- new supported file types (BMP, FAX G3, troff)
- possible to print in different print resolutions (see example in INSTALL),
i.e.: lpr -P{low,med,high} some_files...
- ghostscript can make use of additional type1 fonts by setting the gs
environment variable GS_FONTPATH. gs automatically recognizes
/usr/X11R6/lib/X11/fonts/Type1 and
/var/X11R6/lib/X11/fonts/Type1
if present. Other Paths can be configured global or printer type
dependend by admin or user as usual. See precedence of apsfilterrc
and .apsfilterrc files above.
- printer driver type dependend config files in that order:
- /etc/apsfilterrc
- /etc/apsfilterrc.${PRINTER}
and if defined INSECURE:
- $HOME/.apsfilterrc
- $HOME/.apsfilterrc.${PRINTER}
- CRLF translation and perforation skip for more HP models
- new environment variable USE_RECODE_NOT_A2PS, so you can use
reecode as an alternative over a2ps
- new environment variable RECODE_OPTS
defaults to "-q latin1:ibmpc"
- new environment variable PAGES_REVERSE_ORDER for forcing dvips
to print in reverse order
- detection of printer resolution revamped and more clear
- Precedence of definition of print resolution:
a) by name of filter script (symlink to apsfilter)
b) by setting GS_RESOL in apsfilterrc config files
c) autodetected by apsfilter (PS_xxx, printer driver name)
d) otherwise defaults to 300dpi (for dvips commandline)
- some dvips settings cleanup, use -Z only when resol >= 400dpi
- when printing html use some sane defaults for HTML2PS_OPTS
if not set in apsfilterrc files
Contributions:
- SUPPORT FOR NEW GNU a2ps 4.12, Hurray !!!!
thanks to Debian Port maintainer, Matej Vela <mvela@public.srce.hr>
- cool PS testpage (test.ps)
Andreas Reuter <ar205@bonzo.geowiss.nat.tu-bs.de>
- many thanks to the SuSE developement team especially
Werner Fink <werner@suse.de> for many inspirations
- and of course cosmetic and bugfixes ;-)
- bugfix: let file command work on the tmp file, avoid reading from stdin
- added a russian print filter to the contrib section
Needs perhaps some documentation...
I committed it nearly "as is", polished a bit Makefile and such...
Do 18 Feb 1999 21:15:27 CET Joachim Achtzehnter <joachim@kraut.bc.ca>
* LPRng support !!!
* writing the first 8k into a tmp file makes rewindstdin unnecessary
Sat, 24 Oct 1998 22:29:12 -0500 (CDT) Glenn Johnson <gljohns@bellsouth.net>
* uniprint driver support (for ghostscript >= 5.10)
- support for printing PDF files
- fix SETUP and mksymlinks, if having a color printer, printcap
entries were missing as well as symlinks to apsfilter
- make the "auto-color" printer the default printer, if you have a
color printer...
mainly bugfix for Linux installation
SPOOLDIR now is /var/spool/lpd, looks better:
drwxr-xr-x 2 bin daemon 512 29 Mai 00:18 stcolor-a4-ascii-color
drwxr-xr-x 2 bin daemon 512 29 Mai 00:18 stcolor-a4-ascii-mono
drwxr-xr-x 2 bin daemon 512 29 Mai 00:18 stcolor-a4-auto-color
drwxr-xr-x 2 bin daemon 512 29 Mai 00:18 stcolor-a4-auto-mono
drwxr-xr-x 2 bin daemon 512 29 Mai 00:18 stcolor-raw
Revamped installation method ... install only interesting files
docu is installed now under ${PREFIX}/share/doc
make port PREFIX clean
SETUP script is improved, theoretically you can now try
different printer setting before installation as long as you like.
Only drwaback, then you know, which printer and options to choose,
you have to configure it later in /etc/apsfilterrc by hand ...
Sorry folks, but better than before ... and if I have some
sparetime ...