个人工具
119.28.94.63
该IP地址的讨论
登录
查看“UbuntuHelp:AppleTalk”的源代码 - Ubuntu中文
UbuntuHelp
讨论
查看源代码
历史
搜索
导航
首页
最近更改
随机页面
页面分类
帮助
编辑
编辑指南
沙盒
新闻动态
字词处理
工具
链入页面
相关更改
特殊页面
页面信息
查看“UbuntuHelp:AppleTalk”的源代码
来自Ubuntu中文
←
UbuntuHelp:AppleTalk
跳转至:
导航
,
搜索
因为以下原因,你没有权限编辑本页:
您所请求的操作仅限于该用户组的用户使用:
用户
您可以查看与复制此页面的源代码。
{{From|https://help.ubuntu.com/community/AppleTalk}} {{Languages|UbuntuHelp:AppleTalk}} === Introduction === Some people using [http://en.wikipedia.org/wiki/Appletalk AppleTalk] printers or running Mac OS 9 still want to use [[UbuntuHelp:AppleTalk|AppleTalk]]. While the [[UbuntuHelp:AppleTalk|AppleTalk]] protocol suite is considered deprecated by Apple these days, the large number of legacy devices makes discarding the protocol unfeasible. === Installing [[UbuntuHelp:AppleTalk|AppleTalk]] Daemons === Installation is easy, just use apt-get to install [http://netatalk.sf.net Netatalk]. <pre><nowiki> sudo apt-get install netatalk </nowiki></pre> === [[UbuntuHelp:AppleTalk|AppleTalk]] Printing === Getting your Ubuntu installation to print to an [[UbuntuHelp:AppleTalk|AppleTalk]] printer is relatively easy. With netatalk installed, run <code><nowiki>nbplkup</nowiki></code> to find the names of the [[UbuntuHelp:AppleTalk|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. <pre><nowiki> # 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> </nowiki></pre> This example assumes a single, default [[UbuntuHelp:AppleTalk|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: <pre><nowiki> sudo chmod +x pap </nowiki></pre> <pre><nowiki> sudo mv pap /usr/lib/cups/backend </nowiki></pre> Now all you need to do is restart CUPS. You can do this with <pre><nowiki> sudo /etc/init.d/cupsys restart </nowiki></pre> This should provide you with [[UbuntuHelp:AppleTalk|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 <pre><nowiki> gs -q -sDEVICE=pswrite -sOutputFile=- -dNOPAUSE -dBATCH -dMozConvertedToLevel2=true - | lpr ${MOZ_PRINTER_NAME:+'-P'}${MOZ_PRINTER_NAME}" </nowiki></pre> There you go. [[UbuntuHelp:AppleTalk|AppleTalk]] printing from Ubuntu! Enjoy. === Finding Your Printer URI === You can find the correct URI for your printer by calling the backend without argument : <pre><nowiki> /usr/lib/cups/backend/pap </nowiki></pre> === [[UbuntuHelp:AppleTalk|AppleTalk]] Names === An Ubuntu node will show up on the [[UbuntuHelp:AppleTalk|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: <pre><nowiki> 127.0.0.1 realname localhost.localdomain localhost </nowiki></pre> 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 ---- [[category:CategoryNetworking]] [[category:UbuntuHelp]]
该页面使用的模板:
模板:From
(
查看源代码
)
模板:Languages
(
查看源代码
)(受保护)
模板:Languages/Lang
(
查看源代码
)(受保护)
返回至
UbuntuHelp:AppleTalk
。