APSFILTERRC(5)
π APSFILTERRC β the config file for the magic print filter, bestie π
okay so real talk, this is the apsfilterrc manual page from the File Formats Manual section, and yes it's section 5, and yes it's literally giving "I hold the secrets to your printer" energy. sit down, grab a lil snack π, we're doing this.
β¨ NAME β¨
apsfilterrc β the configuration file for the magic print filter πͺ
π SYNOPSIS π
apsfillterrc
(yes bestie, that's the spelling, we do not fix it, we do not question it, we simply respect it π )
π¦ DESCRIPTION π¦
apsfilterrc is a configuration file for printers that are controlled by the apsfilter(1) magic filter. it's the little notebook where your printer keeps its whole personality.
every single apsfilter printer that lives in printcap(5) gets its own apsfilterrc file. one file, one printer, no sharing, no drama. π
and then there's one global apsfilterrc file that controls print characteristics for all printers. but here's the tea: the printer-specific apsfilterrc files have preference over the global one. so the specific ones win, always. π
so why would you even bother with an apsfilterrc file, you ask? two reasons, and they're both iconic:
- if it turns out you keep having to type the same commandline options over and over and over, like, too often, bestie, it's giving carpal tunnel
- if an application is unable to parameterize the print command, so you have to hardcode the print characteristic for such dumb applications π
and it gets better. an enhancement to this whole concept is user-specific config files, which have preference over both the global AND the printer-specific config file. this lets you configure print characteristics on a per-user basis. main character energy, truly. π
okay so important: you should make use of user-specific config files instead of using the deprecated USE_USER_CODE variable, because that one compromises system security and is only an option on a single-user machine. see below. not me warning you twice. π
πΈ Capabilities πΈ
QUALITYβ picks the print quality, bestie. your choices aredraft,lo|low,med|medium,hi|high,photo.SWEEPβ prints uni- or bidirectional. options:uni,bi.MEDIAβ selects the paper type. options:plain,coated,glossy,premium,trans.COLORβ selects color mode. options:color|colour,gray|grey,mono.METHODβ this one chooses apsfilter's method of data processing. options:auto,ascii,raw. so like, automatic file type recognition plus automatic conversion to Postscript is apsfilter's default processing method. if you want to print mostly filesas is, you can set the default to'raw', and this disables any kind of file type recognition and conversion. and if you want to print mostly everything as ASCII text, then you can set this option to'ascii'.PAPERSIZEβ sets the default paper size. options:a3,a4,legal,ledger,tabloid.ASCII_FILTERβ the text file filter to use when printing ASCII documents. options:a2ps,mpage,enscript,recode.PAPERTRAYβ paper feed tray number, and it goestray0...tray9.PRETTY_PRINTINGβ the a2ps highlight level for pretty-printing when you're usinga2psorenscriptas the ascii filter. values are0,1,2. see alsoASCII_FILTER. β¨ASCII_HEADERβ whether you want headers in your text prints when usinga2ps,mpageorenscriptas ascii filter. options:header,noheader.ASCII_BORDERβ whether you want borders in your text prints when usinga2ps,mpageorenscriptas ascii filter. options:border,noborder.PS_NUP|ASCII_PPSβ pages per sheet. options:1pps,2pps,4pps,8pps.LANDSCAPE|ASCII_LANDSCAPEβ paper orientation. options:landscape,portrait.PS_BOOKβ outputs pages in"book"format, and it implies the commandline options"2pps,duplex,shortbind". related options, so you know the whole friend group:PS_NUP,ASCII_PPS,DUPLEX,BINDING.DUPLEXβ whether to use duplex mode or not. options:duplex,simplex.BINDINGβ paper binding edge. options:shortbind,longbind.COPIESβ number of copies, written ascopies=N.USE_USER_CODEβ okay bestie, sit DOWN. π¨ enabling this option is a big potential security hole !!! if you don't understand this, DO NOT USE IT. it makes user manageableapsfilterrcfiles possible, which will be sourced (included/executed) during runtime of a printjob under the permissions of the calling process (lpd). this option is only valid for typical "single-user" systems, where a user wants direct access to anapsfilterrcwithout having to become root to make changes. a more conveniant way on a multi-user system, where security is an issue, is that a system administrator creates user-specificapsfilterrcfiles. additional informations can be found in the apsfilter handbook and in theapsfilterrcfile together with some examples.
fr fr, that USE_USER_CODE one is not a vibe. deprecated, dangerous, do not touch unless you are 100% sure you know what you're doing. π
π FILES π
/etc/apsfilter/apsfilterrcβ the apsfilter global config file. settings here are overwriteable by more specific printer config files, see below./etc/apsfilter/QUEUE/apsfilterrcβ the apsfilter config file on a per printer queue basis. this file has preference over the global config file. π/etc/apsfilter/QUEUE/apsfilterrc.USERβ the apsfilter config file on a per user basis (per print queue). this file has preference over the global and the printer queue specific config file.$HOME/.apsfilter/apsfilterrc.QUEUEβ a user defineable config file on a per printer queue basis. this file has preference over the global, the printer queue specific and the central per user config file, which is administered by a system administrator. enabling this has a deep impact on your system's security, should NOT be used, especially on multi-user systems, and is therefore disabled by default. see comments to theUSE_USER_CODEvariable.
literally the whole $HOME/.apsfilter/apsfilterrc.QUEUE thing is off by default for a reason, bestie. leave it alone. π
π₯ SEE ALSO π₯
π BUGS π
see the apsfilter software center β http://www.apsfilter.org/ β for new versions, bugfixes and known bugs.
please use the new tool apsfilter-bug(1) to release bug- or problem reports. it automatically presents you a form in an editor window which asks you some standard questions. if you save and quit the editor session, then this report is sent automatically via e-mail to the proper apsfilter mailinglist. slay, automated. β¨
if apsfilter fails to print something or prints it in a way you wouldn't expect, and you want to report an apsfilter error, then please save the debugging output of one print session using the new aps2file(1) utility by typing:
aps2file -D -Z options file > /dev/null 2> file.debug
and including the debugging output in the file file.debug into the edit session of the apsfilter-bug utility, so that it is included into the mail to the apsfilter mailinglist.
please note that you need to run/bin/sh(Bourne Shell),bashor a compatible shell, so that the above mentioned output redirection works. under C-shell (/bin/csh) ortcshit wouldn't work. if you don't know, then simply make sure you use the Bournce shell by typing/bin/shorbash, then you should have no problems with redirection of stdout and stderr (> /dev/null 2> file.debug). π the redirection is not vibing with csh, periodt.
π DOCUMENTATION π
see the official apsfilter homepage:
http://www.apsfilter.org/handbook.htmlβ Apsfilter Handbook including the Frequently Asked Questions (FAQ)
π¬ USER FORUM π¬
please send questions to the official apsfilter help channel apsfilter-help@apsfilter.org.
the above section BUGS and the file HOWTO-BUGREPORTS tell you how to report bugs.
if you want to know how to troubleshoot your apsfilter installation, please read the manpage aps2file(1) and apsfilter-bug(1) as well as the Apsfilter Handbook carefully. π«Ά
β HISTORY β
apsfilter developement started in 1994. (yes, 1994, it's a legend, an icon, a moment in history π)
the apsfilterrc file on a "per printer queue" basis appeared in apsfilter 5.4.0.
and that's the whole page, bestie!! this one came from the Debian crew, dated April 08, 2000 β vintage but still serving π go forth and configure your printer, you absolute icon πβ¨π¦
π¦ where this page comes from
- debian bookworm: apsfilter 7.2.6-3
- debian trixie: apsfilter 7.2.6-5
- ubuntu jammy: apsfilter 7.2.6-2
- ubuntu noble: apsfilter 7.2.6-3
- ubuntu questing: apsfilter 7.2.6-5
- ubuntu resolute: apsfilter 7.2.6-6
- ubuntu stonking: apsfilter 7.2.6-7
- Copyright (c) 2000-2002 Andreas Klemm <andreas@apsfilter.org>. All rights reserved
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms