特殊:Badtitle/NS100:AppleTalk:修订间差异
小无编辑摘要 |
小无编辑摘要 |
||
第2行: | 第2行: | ||
{{Languages|UbuntuHelp:AppleTalk}} | {{Languages|UbuntuHelp:AppleTalk}} | ||
=== Introduction === | === Introduction === | ||
Some people using [http://en.wikipedia.org/wiki/Appletalk AppleTalk] printers or running Mac OS 9 still want to use AppleTalk. While the AppleTalk protocol suite is considered deprecated by Apple these days, the large number of legacy devices makes discarding the protocol unfeasible. | Some people using [http://en.wikipedia.org/wiki/Appletalk AppleTalk] printers or running Mac OS 9 still want to use [[UbuntuHelp:AppleTalk]]. While the [[UbuntuHelp:AppleTalk]] protocol suite is considered deprecated by Apple these days, the large number of legacy devices makes discarding the protocol unfeasible. | ||
=== Installing AppleTalk Daemons === | === Installing [[UbuntuHelp:AppleTalk]] Daemons === | ||
Installation is easy, just use apt-get to install [http://netatalk.sf.net Netatalk]. | Installation is easy, just use apt-get to install [http://netatalk.sf.net Netatalk]. | ||
<pre><nowiki> | <pre><nowiki> | ||
sudo apt-get install netatalk | sudo apt-get install netatalk | ||
</nowiki></pre> | </nowiki></pre> | ||
=== AppleTalk Printing === | === [[UbuntuHelp:AppleTalk]] Printing === | ||
Getting your Ubuntu installation to print to an AppleTalk printer is relatively easy. | Getting your Ubuntu installation to print to an [[UbuntuHelp:AppleTalk]] printer is relatively easy. | ||
With netatalk installed, run <code><nowiki>nbplkup</nowiki></code> to find the names of the AppleTalk printers on your network. Make a note of these names. | With netatalk installed, run <code><nowiki>nbplkup</nowiki></code> to find the names of the [[UbuntuHelp:AppleTalk]] printers on your network. Make a note of these names. | ||
Edit /etc/cups/printers.conf (as root) to add the printer. Here's an example for a printer named "Laser Writer Select 360". The "LW360" you see is the name you'd like to see in Ubuntu. It can be almost anything. The "Laser Writer Select 360" name you see in the URL must be exactly the name that nbplkup gave you for the printer. | Edit /etc/cups/printers.conf (as root) to add the printer. Here's an example for a printer named "Laser Writer Select 360". The "LW360" you see is the name you'd like to see in Ubuntu. It can be almost anything. The "Laser Writer Select 360" name you see in the URL must be exactly the name that nbplkup gave you for the printer. | ||
<pre><nowiki> | <pre><nowiki> | ||
第27行: | 第27行: | ||
</Printer> | </Printer> | ||
</nowiki></pre> | </nowiki></pre> | ||
This example assumes a single, default AppleTalk zone. If you have more than one zone, replace the * in the printer URL with the zone name. | This example assumes a single, default [[UbuntuHelp:AppleTalk]] zone. If you have more than one zone, replace the * in the printer URL with the zone name. | ||
The last step is to provide CUPS with a working PAP (the Netatalk printing methodology) backend. You may download one from [http://www.birdhouse.org/~mnep/pap here]. Once you have that file, cd to where that file is stored and: | The last step is to provide CUPS with a working PAP (the Netatalk printing methodology) backend. You may download one from [http://www.birdhouse.org/~mnep/pap here]. Once you have that file, cd to where that file is stored and: | ||
<pre><nowiki> | <pre><nowiki> | ||
第39行: | 第39行: | ||
sudo /etc/init.d/cupsys restart | sudo /etc/init.d/cupsys restart | ||
</nowiki></pre> | </nowiki></pre> | ||
This should provide you with AppleTalk printing. Open the Printing admin tool and ensure the printer appears there. Try sending a test page. | This should provide you with [[UbuntuHelp:AppleTalk]] printing. Open the Printing admin tool and ensure the printer appears there. Try sending a test page. | ||
If all is well, the only remaining step is to ensure Mozilla variant browsers will print. Mozilla uses a newer Ghostscript engine than most Apple printers will support. If an error page stating this comes from the printer when you try to print from Firefox/Mozilla, change the default print string in Firefox/Mozilla's printing prefs to | If all is well, the only remaining step is to ensure Mozilla variant browsers will print. Mozilla uses a newer Ghostscript engine than most Apple printers will support. If an error page stating this comes from the printer when you try to print from Firefox/Mozilla, change the default print string in Firefox/Mozilla's printing prefs to | ||
<pre><nowiki> | <pre><nowiki> | ||
gs -q -sDEVICE=pswrite -sOutputFile=- -dNOPAUSE -dBATCH -dMozConvertedToLevel2=true - | lpr ${MOZ_PRINTER_NAME:+'-P'}${MOZ_PRINTER_NAME}" | gs -q -sDEVICE=pswrite -sOutputFile=- -dNOPAUSE -dBATCH -dMozConvertedToLevel2=true - | lpr ${MOZ_PRINTER_NAME:+'-P'}${MOZ_PRINTER_NAME}" | ||
</nowiki></pre> | </nowiki></pre> | ||
There you go. AppleTalk printing from Ubuntu! Enjoy. | There you go. [[UbuntuHelp:AppleTalk]] printing from Ubuntu! Enjoy. | ||
=== Finding Your Printer URI === | === Finding Your Printer URI === | ||
You can find the correct URI for your printer by calling the backend without argument : | You can find the correct URI for your printer by calling the backend without argument : | ||
第50行: | 第50行: | ||
/usr/lib/cups/backend/pap | /usr/lib/cups/backend/pap | ||
</nowiki></pre> | </nowiki></pre> | ||
=== AppleTalk Names === | === [[UbuntuHelp:AppleTalk]] Names === | ||
An Ubuntu node will show up on the AppleTalk network as 'localhost'. This is due to 'hostname -s' returning localhost instead of using the real name (in /etc/init.d/netatalk). | An Ubuntu node will show up on the [[UbuntuHelp:AppleTalk]] network as 'localhost'. This is due to 'hostname -s' returning localhost instead of using the real name (in /etc/init.d/netatalk). | ||
To remedy this, change the appropriate line in /etc/hosts and move the real hostname in front of 'localhost.localdomain', for example: | To remedy this, change the appropriate line in /etc/hosts and move the real hostname in front of 'localhost.localdomain', for example: | ||
<pre><nowiki> | <pre><nowiki> |
2007年12月4日 (二) 09:49的版本
文章出处: |
{{#if: | {{{2}}} | https://help.ubuntu.com/community/AppleTalk }} |
点击翻译: |
English {{#ifexist: {{#if: UbuntuHelp:AppleTalk | UbuntuHelp:AppleTalk | {{#if: | :}}AppleTalk}}/af | • {{#if: UbuntuHelp:AppleTalk|Afrikaans| [[::AppleTalk/af|Afrikaans]]}}|}} {{#ifexist: {{#if: UbuntuHelp:AppleTalk | UbuntuHelp:AppleTalk | {{#if: | :}}AppleTalk}}/ar | • {{#if: UbuntuHelp:AppleTalk|العربية| [[::AppleTalk/ar|العربية]]}}|}} {{#ifexist: {{#if: UbuntuHelp:AppleTalk | UbuntuHelp:AppleTalk | {{#if: | :}}AppleTalk}}/az | • {{#if: UbuntuHelp:AppleTalk|azərbaycanca| [[::AppleTalk/az|azərbaycanca]]}}|}} {{#ifexist: {{#if: UbuntuHelp:AppleTalk | UbuntuHelp:AppleTalk | {{#if: | :}}AppleTalk}}/bcc | • {{#if: UbuntuHelp:AppleTalk|جهلسری بلوچی| [[::AppleTalk/bcc|جهلسری بلوچی]]}}|}} {{#ifexist: {{#if: UbuntuHelp:AppleTalk | UbuntuHelp:AppleTalk | {{#if: | :}}AppleTalk}}/bg | • {{#if: UbuntuHelp:AppleTalk|български| [[::AppleTalk/bg|български]]}}|}} {{#ifexist: {{#if: UbuntuHelp:AppleTalk | UbuntuHelp:AppleTalk | {{#if: | :}}AppleTalk}}/br | • {{#if: UbuntuHelp:AppleTalk|brezhoneg| [[::AppleTalk/br|brezhoneg]]}}|}} {{#ifexist: {{#if: UbuntuHelp:AppleTalk | UbuntuHelp:AppleTalk | {{#if: | :}}AppleTalk}}/ca | • {{#if: UbuntuHelp:AppleTalk|català| [[::AppleTalk/ca|català]]}}|}} {{#ifexist: {{#if: UbuntuHelp:AppleTalk | UbuntuHelp:AppleTalk | {{#if: | :}}AppleTalk}}/cs | • {{#if: UbuntuHelp:AppleTalk|čeština| [[::AppleTalk/cs|čeština]]}}|}} {{#ifexist: {{#if: UbuntuHelp:AppleTalk | UbuntuHelp:AppleTalk | {{#if: | :}}AppleTalk}}/de | • {{#if: UbuntuHelp:AppleTalk|Deutsch| [[::AppleTalk/de|Deutsch]]}}|}} {{#ifexist: {{#if: UbuntuHelp:AppleTalk | UbuntuHelp:AppleTalk | {{#if: | :}}AppleTalk}}/el | • {{#if: UbuntuHelp:AppleTalk|Ελληνικά| [[::AppleTalk/el|Ελληνικά]]}}|}} {{#ifexist: {{#if: UbuntuHelp:AppleTalk | UbuntuHelp:AppleTalk | {{#if: | :}}AppleTalk}}/es | • {{#if: UbuntuHelp:AppleTalk|español| [[::AppleTalk/es|español]]}}|}} {{#ifexist: {{#if: UbuntuHelp:AppleTalk | UbuntuHelp:AppleTalk | {{#if: | :}}AppleTalk}}/fa | • {{#if: UbuntuHelp:AppleTalk|فارسی| [[::AppleTalk/fa|فارسی]]}}|}} {{#ifexist: {{#if: UbuntuHelp:AppleTalk | UbuntuHelp:AppleTalk | {{#if: | :}}AppleTalk}}/fi | • {{#if: UbuntuHelp:AppleTalk|suomi| [[::AppleTalk/fi|suomi]]}}|}} {{#ifexist: {{#if: UbuntuHelp:AppleTalk | UbuntuHelp:AppleTalk | {{#if: | :}}AppleTalk}}/fr | • {{#if: UbuntuHelp:AppleTalk|français| [[::AppleTalk/fr|français]]}}|}} {{#ifexist: {{#if: UbuntuHelp:AppleTalk | UbuntuHelp:AppleTalk | {{#if: | :}}AppleTalk}}/gu | • {{#if: UbuntuHelp:AppleTalk|ગુજરાતી| [[::AppleTalk/gu|ગુજરાતી]]}}|}} {{#ifexist: {{#if: UbuntuHelp:AppleTalk | UbuntuHelp:AppleTalk | {{#if: | :}}AppleTalk}}/he | • {{#if: UbuntuHelp:AppleTalk|עברית| [[::AppleTalk/he|עברית]]}}|}} {{#ifexist: {{#if: UbuntuHelp:AppleTalk | UbuntuHelp:AppleTalk | {{#if: | :}}AppleTalk}}/hu | • {{#if: UbuntuHelp:AppleTalk|magyar| [[::AppleTalk/hu|magyar]]}}|}} {{#ifexist: {{#if: UbuntuHelp:AppleTalk | UbuntuHelp:AppleTalk | {{#if: | :}}AppleTalk}}/id | • {{#if: UbuntuHelp:AppleTalk|Bahasa Indonesia| [[::AppleTalk/id|Bahasa Indonesia]]}}|}} {{#ifexist: {{#if: UbuntuHelp:AppleTalk | UbuntuHelp:AppleTalk | {{#if: | :}}AppleTalk}}/it | • {{#if: UbuntuHelp:AppleTalk|italiano| [[::AppleTalk/it|italiano]]}}|}} {{#ifexist: {{#if: UbuntuHelp:AppleTalk | UbuntuHelp:AppleTalk | {{#if: | :}}AppleTalk}}/ja | • {{#if: UbuntuHelp:AppleTalk|日本語| [[::AppleTalk/ja|日本語]]}}|}} {{#ifexist: {{#if: UbuntuHelp:AppleTalk | UbuntuHelp:AppleTalk | {{#if: | :}}AppleTalk}}/ko | • {{#if: UbuntuHelp:AppleTalk|한국어| [[::AppleTalk/ko|한국어]]}}|}} {{#ifexist: {{#if: UbuntuHelp:AppleTalk | UbuntuHelp:AppleTalk | {{#if: | :}}AppleTalk}}/ksh | • {{#if: UbuntuHelp:AppleTalk|Ripoarisch| [[::AppleTalk/ksh|Ripoarisch]]}}|}} {{#ifexist: {{#if: UbuntuHelp:AppleTalk | UbuntuHelp:AppleTalk | {{#if: | :}}AppleTalk}}/mr | • {{#if: UbuntuHelp:AppleTalk|मराठी| [[::AppleTalk/mr|मराठी]]}}|}} {{#ifexist: {{#if: UbuntuHelp:AppleTalk | UbuntuHelp:AppleTalk | {{#if: | :}}AppleTalk}}/ms | • {{#if: UbuntuHelp:AppleTalk|Bahasa Melayu| [[::AppleTalk/ms|Bahasa Melayu]]}}|}} {{#ifexist: {{#if: UbuntuHelp:AppleTalk | UbuntuHelp:AppleTalk | {{#if: | :}}AppleTalk}}/nl | • {{#if: UbuntuHelp:AppleTalk|Nederlands| [[::AppleTalk/nl|Nederlands]]}}|}} {{#ifexist: {{#if: UbuntuHelp:AppleTalk | UbuntuHelp:AppleTalk | {{#if: | :}}AppleTalk}}/no | • {{#if: UbuntuHelp:AppleTalk|norsk| [[::AppleTalk/no|norsk]]}}|}} {{#ifexist: {{#if: UbuntuHelp:AppleTalk | UbuntuHelp:AppleTalk | {{#if: | :}}AppleTalk}}/oc | • {{#if: UbuntuHelp:AppleTalk|occitan| [[::AppleTalk/oc|occitan]]}}|}} {{#ifexist: {{#if: UbuntuHelp:AppleTalk | UbuntuHelp:AppleTalk | {{#if: | :}}AppleTalk}}/pl | • {{#if: UbuntuHelp:AppleTalk|polski| [[::AppleTalk/pl|polski]]}}|}} {{#ifexist: {{#if: UbuntuHelp:AppleTalk | UbuntuHelp:AppleTalk | {{#if: | :}}AppleTalk}}/pt | • {{#if: UbuntuHelp:AppleTalk|português| [[::AppleTalk/pt|português]]}}|}} {{#ifexist: {{#if: UbuntuHelp:AppleTalk | UbuntuHelp:AppleTalk | {{#if: | :}}AppleTalk}}/ro | • {{#if: UbuntuHelp:AppleTalk|română| [[::AppleTalk/ro|română]]}}|}} {{#ifexist: {{#if: UbuntuHelp:AppleTalk | UbuntuHelp:AppleTalk | {{#if: | :}}AppleTalk}}/ru | • {{#if: UbuntuHelp:AppleTalk|русский| [[::AppleTalk/ru|русский]]}}|}} {{#ifexist: {{#if: UbuntuHelp:AppleTalk | UbuntuHelp:AppleTalk | {{#if: | :}}AppleTalk}}/si | • {{#if: UbuntuHelp:AppleTalk|සිංහල| [[::AppleTalk/si|සිංහල]]}}|}} {{#ifexist: {{#if: UbuntuHelp:AppleTalk | UbuntuHelp:AppleTalk | {{#if: | :}}AppleTalk}}/sq | • {{#if: UbuntuHelp:AppleTalk|shqip| [[::AppleTalk/sq|shqip]]}}|}} {{#ifexist: {{#if: UbuntuHelp:AppleTalk | UbuntuHelp:AppleTalk | {{#if: | :}}AppleTalk}}/sr | • {{#if: UbuntuHelp:AppleTalk|српски / srpski| [[::AppleTalk/sr|српски / srpski]]}}|}} {{#ifexist: {{#if: UbuntuHelp:AppleTalk | UbuntuHelp:AppleTalk | {{#if: | :}}AppleTalk}}/sv | • {{#if: UbuntuHelp:AppleTalk|svenska| [[::AppleTalk/sv|svenska]]}}|}} {{#ifexist: {{#if: UbuntuHelp:AppleTalk | UbuntuHelp:AppleTalk | {{#if: | :}}AppleTalk}}/th | • {{#if: UbuntuHelp:AppleTalk|ไทย| [[::AppleTalk/th|ไทย]]}}|}} {{#ifexist: {{#if: UbuntuHelp:AppleTalk | UbuntuHelp:AppleTalk | {{#if: | :}}AppleTalk}}/tr | • {{#if: UbuntuHelp:AppleTalk|Türkçe| [[::AppleTalk/tr|Türkçe]]}}|}} {{#ifexist: {{#if: UbuntuHelp:AppleTalk | UbuntuHelp:AppleTalk | {{#if: | :}}AppleTalk}}/vi | • {{#if: UbuntuHelp:AppleTalk|Tiếng Việt| [[::AppleTalk/vi|Tiếng Việt]]}}|}} {{#ifexist: {{#if: UbuntuHelp:AppleTalk | UbuntuHelp:AppleTalk | {{#if: | :}}AppleTalk}}/yue | • {{#if: UbuntuHelp:AppleTalk|粵語| [[::AppleTalk/yue|粵語]]}}|}} {{#ifexist: {{#if: UbuntuHelp:AppleTalk | UbuntuHelp:AppleTalk | {{#if: | :}}AppleTalk}}/zh | • {{#if: UbuntuHelp:AppleTalk|中文| [[::AppleTalk/zh|中文]]}}|}} {{#ifexist: {{#if: UbuntuHelp:AppleTalk | UbuntuHelp:AppleTalk | {{#if: | :}}AppleTalk}}/zh-hans | • {{#if: UbuntuHelp:AppleTalk|中文(简体)| [[::AppleTalk/zh-hans|中文(简体)]]}}|}} {{#ifexist: {{#if: UbuntuHelp:AppleTalk | UbuntuHelp:AppleTalk | {{#if: | :}}AppleTalk}}/zh-hant | • {{#if: UbuntuHelp:AppleTalk|中文(繁體)| [[::AppleTalk/zh-hant|中文(繁體)]]}}|}} |
{{#ifeq:UbuntuHelp:AppleTalk|:AppleTalk|请不要直接编辑翻译本页,本页将定期与来源同步。}} |
{{#ifexist: :AppleTalk/zh | | {{#ifexist: AppleTalk/zh | | {{#ifeq: {{#titleparts:AppleTalk|1|-1|}} | zh | | }} }} }} {{#ifeq: {{#titleparts:AppleTalk|1|-1|}} | zh | | }}
Introduction
Some people using AppleTalk printers or running Mac OS 9 still want to use UbuntuHelp:AppleTalk. While the UbuntuHelp:AppleTalk protocol suite is considered deprecated by Apple these days, the large number of legacy devices makes discarding the protocol unfeasible.
Installing UbuntuHelp:AppleTalk Daemons
Installation is easy, just use apt-get to install Netatalk.
sudo apt-get install netatalk
UbuntuHelp:AppleTalk Printing
Getting your Ubuntu installation to print to an UbuntuHelp:AppleTalk printer is relatively easy.
With netatalk installed, run nbplkup
to find the names of the UbuntuHelp:AppleTalk printers on your network. Make a note of these names.
Edit /etc/cups/printers.conf (as root) to add the printer. Here's an example for a printer named "Laser Writer Select 360". The "LW360" you see is the name you'd like to see in Ubuntu. It can be almost anything. The "Laser Writer Select 360" name you see in the URL must be exactly the name that nbplkup gave you for the printer.
# Printer configuration file for CUPS v1.1.23 # Written by cupsd on Mon 25 Apr 2005 02:02:39 PM PDT <Printer LW360> Info LW360 Location Local zone DeviceURI pap://*/Laser Writer Select 360/LaserWriter State Idle Accepting Yes JobSheets none none QuotaPeriod 0 PageLimit 0 KLimit 0 </Printer>
This example assumes a single, default UbuntuHelp:AppleTalk zone. If you have more than one zone, replace the * in the printer URL with the zone name. The last step is to provide CUPS with a working PAP (the Netatalk printing methodology) backend. You may download one from here. Once you have that file, cd to where that file is stored and:
sudo chmod +x pap
sudo mv pap /usr/lib/cups/backend
Now all you need to do is restart CUPS. You can do this with
sudo /etc/init.d/cupsys restart
This should provide you with UbuntuHelp:AppleTalk printing. Open the Printing admin tool and ensure the printer appears there. Try sending a test page. If all is well, the only remaining step is to ensure Mozilla variant browsers will print. Mozilla uses a newer Ghostscript engine than most Apple printers will support. If an error page stating this comes from the printer when you try to print from Firefox/Mozilla, change the default print string in Firefox/Mozilla's printing prefs to
gs -q -sDEVICE=pswrite -sOutputFile=- -dNOPAUSE -dBATCH -dMozConvertedToLevel2=true - | lpr ${MOZ_PRINTER_NAME:+'-P'}${MOZ_PRINTER_NAME}"
There you go. UbuntuHelp:AppleTalk printing from Ubuntu! Enjoy.
Finding Your Printer URI
You can find the correct URI for your printer by calling the backend without argument :
/usr/lib/cups/backend/pap
UbuntuHelp:AppleTalk Names
An Ubuntu node will show up on the UbuntuHelp:AppleTalk network as 'localhost'. This is due to 'hostname -s' returning localhost instead of using the real name (in /etc/init.d/netatalk). To remedy this, change the appropriate line in /etc/hosts and move the real hostname in front of 'localhost.localdomain', for example:
127.0.0.1 realname localhost.localdomain localhost
There's an open bug report documenting the problem with said order in /etc/hosts that is causing trouble with other programs, too. https://launchpad.net/distros/ubuntu/+source/netcfg/+bug/8980