Emaculation.com

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
Next revisionBoth sides next revision
appletalk_printserver_macos_and_osx [2017/06/29 12:27] – [[OPTIONAL] Install printing system (CUPS)] mabamappletalk_printserver_macos_and_osx [2018/02/18 14:58] – [CUPS configuration and PAP backend] mabam
Line 340: Line 340:
 <code>sudo apt-get install cups</code> <code>sudo apt-get install cups</code>
  
-In order to prevent the spool folder at /var/spool/cups from growing endlessly, change its maximum size:((See http://www.linuxquestions.org/questions/linux-software-2/how-to-prevent-var-spool-cups-from-becoming-full-901965/#post4466619)) 
-<code>sudo sed -i "/MaxLogSize/c\MaxLogSize 52428800" /etc/cups/cupsd.conf</code> 
-That way, if the size of the spool folder exceeds a certain limit, any print jobs you have sent will automatically be deleted from the Banana Pi after they have been processed. I have chosen a limit of 50 MB, converted into bytes. (Setting the MaxLogSize to 0 will not make CUPS delete a print job after finishing it, but make it actually keep all of them.) 
 ==== Install A2SERVER ==== ==== Install A2SERVER ====
 === === === ===
Line 493: Line 490:
 ==== CUPS configuration and PAP backend ==== ==== CUPS configuration and PAP backend ====
 === === === ===
-In order to print to an AppleTalk printer from a modern network, we install a [[https://en.wikipedia.org/wiki/AppleTalk#Printer_Access_Protocol|PAP]] backend and have [[https://en.wikipedia.org/wiki/CUPS|CUPS]] share the printer.((If you want to do it the other way around -- share a non-AppleTalk printer to a classic Macintosh computer or emulator, see https://www.reddit.com/r/VintageApple/comments/63xrvc/how_i_got_my_se30_to_print_to_a_cheapo_laser/ (thanks to [[http://emaculation.com/forum/viewtopic.php?p=56371#p56371|adespoton]]).)) This guide describes how to do that for a PostScript printer.+In order to print to an AppleTalk printer from a modern network, we install a [[https://en.wikipedia.org/wiki/AppleTalk#Printer_Access_Protocol|PAP]] backend and have [[https://en.wikipedia.org/wiki/CUPS|CUPS]] share the printer.((If you want to do it the other way around -- share a non-AppleTalk printer to a classic Macintosh computer or emulator, see https://www.reddit.com/r/VintageApple/comments/63xrvc/how_i_got_my_se30_to_print_to_a_cheapo_laser/ (thanks to [[http://emaculation.com/forum/viewtopic.php?p=56371#p56371|adespoton]]). Or see [[https://emaculation.com/forum/viewtopic.php?p=58696#p58643| this forum topic]] on how KnuddlMac did that.)) This guide describes how to do that for a PostScript printer.
  
 Change to your home folder and download the archive containing the PAP backend((There are at least three other PAP backends available on the net (Duncan Gibb [based on Rupi]: [[ftp://saf.bio.caltech.edu/pub/software/linux_or_unix_tools/pap|download]] · [[http://saf.bio.caltech.edu/pub/software/linux_or_unix_tools/pap_backend_with_cups.txt|instructions]] · [[http://www.openprinting.org/printer/Apple/Apple-LaserWriter_Pro_630|info]] · [[http://web.archive.org/web/20030814084608/http://vt.oeh.uni-linz.ac.at:80/~rupi/pap/|Rupi's original]] [info] · [[ftp://fr2.rpmfind.net/linux/Mandriva/official/9.1/SRPMS/cups-1.1.19-0.5mdk.src.rpm|archive with Rupi's backend and docu]] [next to other stuff] | Derrik Pates: [[https://sourceforge.net/p/netatalk/mailman/attachment/1057229915.3f040c5b6eb9a%40www.dsdk12.net/1/|download]] · [[https://sourceforge.net/p/netatalk/mailman/message/12429430/|description]] · [[http://www.philippwesche.org/200811/doc/apple_talk_print.html|setup 1]] · [[http://www.topoftheworld.org/linux/laserwriterIIg_cups.htm|setup 2]] | SRZ Berlin: [[http://web.archive.org/web/20050514184744/http://www.srz.de/Members/bla/cups/backend/pap/|download and description]]), but the one from Thomas Kaiser is the most advanced and automated one. The original can be found [[https://translate.google.com/translate?hl=en&sl=de&tl=en&u=http%3A%2F%2Fkaiser-edv.rexdev.de%2Fde%2Ftipps-und-tricks%2Fcups%2Fappletalk-backend.html&sandbox=1|here]]. To meet the development status of today's Linux systems, emaculation.com is hosting an updated version that is downloaded and installed with the following entries.)) there: Change to your home folder and download the archive containing the PAP backend((There are at least three other PAP backends available on the net (Duncan Gibb [based on Rupi]: [[ftp://saf.bio.caltech.edu/pub/software/linux_or_unix_tools/pap|download]] · [[http://saf.bio.caltech.edu/pub/software/linux_or_unix_tools/pap_backend_with_cups.txt|instructions]] · [[http://www.openprinting.org/printer/Apple/Apple-LaserWriter_Pro_630|info]] · [[http://web.archive.org/web/20030814084608/http://vt.oeh.uni-linz.ac.at:80/~rupi/pap/|Rupi's original]] [info] · [[ftp://fr2.rpmfind.net/linux/Mandriva/official/9.1/SRPMS/cups-1.1.19-0.5mdk.src.rpm|archive with Rupi's backend and docu]] [next to other stuff] | Derrik Pates: [[https://sourceforge.net/p/netatalk/mailman/attachment/1057229915.3f040c5b6eb9a%40www.dsdk12.net/1/|download]] · [[https://sourceforge.net/p/netatalk/mailman/message/12429430/|description]] · [[http://www.philippwesche.org/200811/doc/apple_talk_print.html|setup 1]] · [[http://www.topoftheworld.org/linux/laserwriterIIg_cups.htm|setup 2]] | SRZ Berlin: [[http://web.archive.org/web/20050514184744/http://www.srz.de/Members/bla/cups/backend/pap/|download and description]]), but the one from Thomas Kaiser is the most advanced and automated one. The original can be found [[https://translate.google.com/translate?hl=en&sl=de&tl=en&u=http%3A%2F%2Fkaiser-edv.rexdev.de%2Fde%2Ftipps-und-tricks%2Fcups%2Fappletalk-backend.html&sandbox=1|here]]. To meet the development status of today's Linux systems, emaculation.com is hosting an updated version that is downloaded and installed with the following entries.)) there:
Line 517: Line 514:
 BrowseAddress @LOCAL\ BrowseAddress @LOCAL\
 BrowseLocalProtocols CUPS dnssd pap' /etc/cups/cupsd.conf</code> BrowseLocalProtocols CUPS dnssd pap' /etc/cups/cupsd.conf</code>
 +
 +To prevent the spool folder at /var/spool/cups from growing endlessly, change its maximum size:((See http://www.linuxquestions.org/questions/linux-software-2/how-to-prevent-var-spool-cups-from-becoming-full-901965/#post4466619))
 +<code>sudo sed -i "/MaxLogSize/c\MaxLogSize 52428800" /etc/cups/cupsd.conf</code>
 +That way, if the size of the spool folder exceeds a certain limit, any print jobs you have sent will automatically be deleted from the Banana Pi after they have been processed. I have chosen a limit of 50 MB, converted into bytes. (Setting the MaxLogSize to 0 will not make CUPS delete a print job after finishing it, but make it actually keep all of them.)
 +
 Finally restart CUPS: Finally restart CUPS:
 <code>sudo /etc/init.d/cups restart</code> <code>sudo /etc/init.d/cups restart</code>