个人工具

UbuntuHelp:NetworkPrintingFromMacOSX

来自Ubuntu中文

Oneleaf讨论 | 贡献2007年5月13日 (日) 11:40的版本 (New page: {{From|https://help.ubuntu.com/community/NetworkPrintingFromMacOSX}} {{Languages|php5}} How to use the printer attached to an Ubuntu Linux computer over the network from Mac OS X? That sh...)

(差异) ←上一版本 | 最后版本 (差异) | 下一版本→ (差异)
跳转至: 导航, 搜索

How to use the printer attached to an Ubuntu Linux computer over the network from Mac OS X?

That should be easy, because Apple is using the same printing system (CUPS).

Wrong! Apple is doing it a little bit its own way, thus some tweaking is necessary. (Maybe someone has a better solution?)

I have no problem printing from MacOS X 10.3.6. I didn't need to change any settings in /etc. All I needed to do is to allow access from other computers?. After CUPS accepted connections from my network, MacOS X found my printer and showed it in the printer configuration on MacOS X under "Gemeinsam genutzte Drucker" (probably "Shared Printers" in English). -- Johannes2

1. No UbuntuHelp:samba necessary! Follow the Wiki FAQ for configuring CUPS, and restart cupsys (/etc/init.d/cupsys restart).

2. At your Mac, add a new printer (TCP/IP printer over IPP), and invent a nice name in the printer address field (you will justly get the answer that this is not a valid address, but you will not find a working valid address anyway!). Don't forget to select a printer model as usual!

3. So far it was easy, but now it is getting ugly: on your Mac open the file /etc/cups/cupsd.conf in the editor of your choice (don't forget to "sudo"!) and add #'s in front of the following lines (I have not invented this!):

<Limit GET>
AuthType Basic
AuthClass System
</Limit></code>

4. restart cups on the Mac with:sudo killall -HUP cupsd

5. Open the page http://localhost:631/ in Safari, follow the link "printers", find the new printer and press "modify". Due to your manipulations you have not been asked for a username or password...

6. You will see that your printer has an URI address like: "ipp://<name>:631/ipp". During "modification" change this to the valid name: "ipp://<IP address of linux machine>:631/printers/<Printer-Name>", leave the rest as is.

7. Test, if everything works

8. Don't forget to undo your modifications you did in step 3, otherwise your Mac printing system is not protected!

Hope that helps!

From BaxterWeatherby Tue Mar 8 00:30:59 +0000 2005
From: Baxter Weatherby
Date: Tue, 08 Mar 2005 00:30:59 +0000
Subject: Easier Way
Message-ID: <[email protected]>

An easier way(in my opinion) is to just edit the /etc/cups/printers.conf file.

Mine read:
<pre>
# Printer configuration file for CUPS v1.1.20rc1
# Written by cupsd on Mon Mar  7 18:20:27 2005
<DefaultPrinter _192.168.0.111>
Info 192.168.0.111
DeviceURI ipp://192.168.0.111/ipp/ML-1710
State Idle
Accepting Yes
JobSheets none none
QuotaPeriod 0
PageLimit 0
KLimit 0
</Printer>
</code>

and I just edited it to read:
<pre>
# Printer configuration file for CUPS v1.1.20rc1
# Written by cupsd on Mon Mar  7 18:20:27 2005
<DefaultPrinter _192.168.0.111>
Info 192.168.0.111
DeviceURI ipp://192.168.0.111:631/printers/ML-1710
State Idle
Accepting Yes
JobSheets none none
QuotaPeriod 0
PageLimit 0
KLimit 0
</Printer>
</code>
Then issue a "killall -HUP cupsd" and that's it. You should now be able to print to your Ubuntu printer.

CategoryDocumentation CategoryCleanup

[[category:UbuntuHelp]]