特殊:Badtitle/NS100:NetworkPrintingFromWinXP:修订间差异
小无编辑摘要 |
小无编辑摘要 |
||
第1行: | 第1行: | ||
{{From|https://help.ubuntu.com/community/NetworkPrintingFromWinXP}} | {{From|https://help.ubuntu.com/community/NetworkPrintingFromWinXP}} | ||
{{Languages| | {{Languages|UbuntuHelp:NetworkPrintingFromWinXP}} | ||
By following these steps, you will be able to share a printer from your Ubuntu computer so that Windows XP and Windows 2000 computers can print to it. This document has been tested with Ubuntu versions 5.10, 6.06 and 6.10. | By following these steps, you will be able to share a printer from your Ubuntu computer so that Windows XP and Windows 2000 computers can print to it. This document has been tested with Ubuntu versions 5.10, 6.06 and 6.10. | ||
第20行: | 第20行: | ||
Deny From All | Deny From All | ||
Allow From 127.0.0.1 | Allow From 127.0.0.1 | ||
Allow From 192.168.0.* | Allow From 192.168.0.* | ||
</Location> | </Location> | ||
第53行: | 第52行: | ||
You should use the appropriate Windows printer driver for your printer. | You should use the appropriate Windows printer driver for your printer. | ||
CategoryDocumentation | [[category:CategoryDocumentation]] | ||
[[category:UbuntuHelp]] | [[category:UbuntuHelp]] |
2007年5月14日 (一) 11:26的版本
文章出处: |
{{#if: | {{{2}}} | https://help.ubuntu.com/community/NetworkPrintingFromWinXP }} |
点击翻译: |
English {{#ifexist: {{#if: UbuntuHelp:NetworkPrintingFromWinXP | UbuntuHelp:NetworkPrintingFromWinXP | {{#if: | :}}NetworkPrintingFromWinXP}}/af | • {{#if: UbuntuHelp:NetworkPrintingFromWinXP|Afrikaans| [[::NetworkPrintingFromWinXP/af|Afrikaans]]}}|}} {{#ifexist: {{#if: UbuntuHelp:NetworkPrintingFromWinXP | UbuntuHelp:NetworkPrintingFromWinXP | {{#if: | :}}NetworkPrintingFromWinXP}}/ar | • {{#if: UbuntuHelp:NetworkPrintingFromWinXP|العربية| [[::NetworkPrintingFromWinXP/ar|العربية]]}}|}} {{#ifexist: {{#if: UbuntuHelp:NetworkPrintingFromWinXP | UbuntuHelp:NetworkPrintingFromWinXP | {{#if: | :}}NetworkPrintingFromWinXP}}/az | • {{#if: UbuntuHelp:NetworkPrintingFromWinXP|azərbaycanca| [[::NetworkPrintingFromWinXP/az|azərbaycanca]]}}|}} {{#ifexist: {{#if: UbuntuHelp:NetworkPrintingFromWinXP | UbuntuHelp:NetworkPrintingFromWinXP | {{#if: | :}}NetworkPrintingFromWinXP}}/bcc | • {{#if: UbuntuHelp:NetworkPrintingFromWinXP|جهلسری بلوچی| [[::NetworkPrintingFromWinXP/bcc|جهلسری بلوچی]]}}|}} {{#ifexist: {{#if: UbuntuHelp:NetworkPrintingFromWinXP | UbuntuHelp:NetworkPrintingFromWinXP | {{#if: | :}}NetworkPrintingFromWinXP}}/bg | • {{#if: UbuntuHelp:NetworkPrintingFromWinXP|български| [[::NetworkPrintingFromWinXP/bg|български]]}}|}} {{#ifexist: {{#if: UbuntuHelp:NetworkPrintingFromWinXP | UbuntuHelp:NetworkPrintingFromWinXP | {{#if: | :}}NetworkPrintingFromWinXP}}/br | • {{#if: UbuntuHelp:NetworkPrintingFromWinXP|brezhoneg| [[::NetworkPrintingFromWinXP/br|brezhoneg]]}}|}} {{#ifexist: {{#if: UbuntuHelp:NetworkPrintingFromWinXP | UbuntuHelp:NetworkPrintingFromWinXP | {{#if: | :}}NetworkPrintingFromWinXP}}/ca | • {{#if: UbuntuHelp:NetworkPrintingFromWinXP|català| [[::NetworkPrintingFromWinXP/ca|català]]}}|}} {{#ifexist: {{#if: UbuntuHelp:NetworkPrintingFromWinXP | UbuntuHelp:NetworkPrintingFromWinXP | {{#if: | :}}NetworkPrintingFromWinXP}}/cs | • {{#if: UbuntuHelp:NetworkPrintingFromWinXP|čeština| [[::NetworkPrintingFromWinXP/cs|čeština]]}}|}} {{#ifexist: {{#if: UbuntuHelp:NetworkPrintingFromWinXP | UbuntuHelp:NetworkPrintingFromWinXP | {{#if: | :}}NetworkPrintingFromWinXP}}/de | • {{#if: UbuntuHelp:NetworkPrintingFromWinXP|Deutsch| [[::NetworkPrintingFromWinXP/de|Deutsch]]}}|}} {{#ifexist: {{#if: UbuntuHelp:NetworkPrintingFromWinXP | UbuntuHelp:NetworkPrintingFromWinXP | {{#if: | :}}NetworkPrintingFromWinXP}}/el | • {{#if: UbuntuHelp:NetworkPrintingFromWinXP|Ελληνικά| [[::NetworkPrintingFromWinXP/el|Ελληνικά]]}}|}} {{#ifexist: {{#if: UbuntuHelp:NetworkPrintingFromWinXP | UbuntuHelp:NetworkPrintingFromWinXP | {{#if: | :}}NetworkPrintingFromWinXP}}/es | • {{#if: UbuntuHelp:NetworkPrintingFromWinXP|español| [[::NetworkPrintingFromWinXP/es|español]]}}|}} {{#ifexist: {{#if: UbuntuHelp:NetworkPrintingFromWinXP | UbuntuHelp:NetworkPrintingFromWinXP | {{#if: | :}}NetworkPrintingFromWinXP}}/fa | • {{#if: UbuntuHelp:NetworkPrintingFromWinXP|فارسی| [[::NetworkPrintingFromWinXP/fa|فارسی]]}}|}} {{#ifexist: {{#if: UbuntuHelp:NetworkPrintingFromWinXP | UbuntuHelp:NetworkPrintingFromWinXP | {{#if: | :}}NetworkPrintingFromWinXP}}/fi | • {{#if: UbuntuHelp:NetworkPrintingFromWinXP|suomi| [[::NetworkPrintingFromWinXP/fi|suomi]]}}|}} {{#ifexist: {{#if: UbuntuHelp:NetworkPrintingFromWinXP | UbuntuHelp:NetworkPrintingFromWinXP | {{#if: | :}}NetworkPrintingFromWinXP}}/fr | • {{#if: UbuntuHelp:NetworkPrintingFromWinXP|français| [[::NetworkPrintingFromWinXP/fr|français]]}}|}} {{#ifexist: {{#if: UbuntuHelp:NetworkPrintingFromWinXP | UbuntuHelp:NetworkPrintingFromWinXP | {{#if: | :}}NetworkPrintingFromWinXP}}/gu | • {{#if: UbuntuHelp:NetworkPrintingFromWinXP|ગુજરાતી| [[::NetworkPrintingFromWinXP/gu|ગુજરાતી]]}}|}} {{#ifexist: {{#if: UbuntuHelp:NetworkPrintingFromWinXP | UbuntuHelp:NetworkPrintingFromWinXP | {{#if: | :}}NetworkPrintingFromWinXP}}/he | • {{#if: UbuntuHelp:NetworkPrintingFromWinXP|עברית| [[::NetworkPrintingFromWinXP/he|עברית]]}}|}} {{#ifexist: {{#if: UbuntuHelp:NetworkPrintingFromWinXP | UbuntuHelp:NetworkPrintingFromWinXP | {{#if: | :}}NetworkPrintingFromWinXP}}/hu | • {{#if: UbuntuHelp:NetworkPrintingFromWinXP|magyar| [[::NetworkPrintingFromWinXP/hu|magyar]]}}|}} {{#ifexist: {{#if: UbuntuHelp:NetworkPrintingFromWinXP | UbuntuHelp:NetworkPrintingFromWinXP | {{#if: | :}}NetworkPrintingFromWinXP}}/id | • {{#if: UbuntuHelp:NetworkPrintingFromWinXP|Bahasa Indonesia| [[::NetworkPrintingFromWinXP/id|Bahasa Indonesia]]}}|}} {{#ifexist: {{#if: UbuntuHelp:NetworkPrintingFromWinXP | UbuntuHelp:NetworkPrintingFromWinXP | {{#if: | :}}NetworkPrintingFromWinXP}}/it | • {{#if: UbuntuHelp:NetworkPrintingFromWinXP|italiano| [[::NetworkPrintingFromWinXP/it|italiano]]}}|}} {{#ifexist: {{#if: UbuntuHelp:NetworkPrintingFromWinXP | UbuntuHelp:NetworkPrintingFromWinXP | {{#if: | :}}NetworkPrintingFromWinXP}}/ja | • {{#if: UbuntuHelp:NetworkPrintingFromWinXP|日本語| [[::NetworkPrintingFromWinXP/ja|日本語]]}}|}} {{#ifexist: {{#if: UbuntuHelp:NetworkPrintingFromWinXP | UbuntuHelp:NetworkPrintingFromWinXP | {{#if: | :}}NetworkPrintingFromWinXP}}/ko | • {{#if: UbuntuHelp:NetworkPrintingFromWinXP|한국어| [[::NetworkPrintingFromWinXP/ko|한국어]]}}|}} {{#ifexist: {{#if: UbuntuHelp:NetworkPrintingFromWinXP | UbuntuHelp:NetworkPrintingFromWinXP | {{#if: | :}}NetworkPrintingFromWinXP}}/ksh | • {{#if: UbuntuHelp:NetworkPrintingFromWinXP|Ripoarisch| [[::NetworkPrintingFromWinXP/ksh|Ripoarisch]]}}|}} {{#ifexist: {{#if: UbuntuHelp:NetworkPrintingFromWinXP | UbuntuHelp:NetworkPrintingFromWinXP | {{#if: | :}}NetworkPrintingFromWinXP}}/mr | • {{#if: UbuntuHelp:NetworkPrintingFromWinXP|मराठी| [[::NetworkPrintingFromWinXP/mr|मराठी]]}}|}} {{#ifexist: {{#if: UbuntuHelp:NetworkPrintingFromWinXP | UbuntuHelp:NetworkPrintingFromWinXP | {{#if: | :}}NetworkPrintingFromWinXP}}/ms | • {{#if: UbuntuHelp:NetworkPrintingFromWinXP|Bahasa Melayu| [[::NetworkPrintingFromWinXP/ms|Bahasa Melayu]]}}|}} {{#ifexist: {{#if: UbuntuHelp:NetworkPrintingFromWinXP | UbuntuHelp:NetworkPrintingFromWinXP | {{#if: | :}}NetworkPrintingFromWinXP}}/nl | • {{#if: UbuntuHelp:NetworkPrintingFromWinXP|Nederlands| [[::NetworkPrintingFromWinXP/nl|Nederlands]]}}|}} {{#ifexist: {{#if: UbuntuHelp:NetworkPrintingFromWinXP | UbuntuHelp:NetworkPrintingFromWinXP | {{#if: | :}}NetworkPrintingFromWinXP}}/no | • {{#if: UbuntuHelp:NetworkPrintingFromWinXP|norsk| [[::NetworkPrintingFromWinXP/no|norsk]]}}|}} {{#ifexist: {{#if: UbuntuHelp:NetworkPrintingFromWinXP | UbuntuHelp:NetworkPrintingFromWinXP | {{#if: | :}}NetworkPrintingFromWinXP}}/oc | • {{#if: UbuntuHelp:NetworkPrintingFromWinXP|occitan| [[::NetworkPrintingFromWinXP/oc|occitan]]}}|}} {{#ifexist: {{#if: UbuntuHelp:NetworkPrintingFromWinXP | UbuntuHelp:NetworkPrintingFromWinXP | {{#if: | :}}NetworkPrintingFromWinXP}}/pl | • {{#if: UbuntuHelp:NetworkPrintingFromWinXP|polski| [[::NetworkPrintingFromWinXP/pl|polski]]}}|}} {{#ifexist: {{#if: UbuntuHelp:NetworkPrintingFromWinXP | UbuntuHelp:NetworkPrintingFromWinXP | {{#if: | :}}NetworkPrintingFromWinXP}}/pt | • {{#if: UbuntuHelp:NetworkPrintingFromWinXP|português| [[::NetworkPrintingFromWinXP/pt|português]]}}|}} {{#ifexist: {{#if: UbuntuHelp:NetworkPrintingFromWinXP | UbuntuHelp:NetworkPrintingFromWinXP | {{#if: | :}}NetworkPrintingFromWinXP}}/ro | • {{#if: UbuntuHelp:NetworkPrintingFromWinXP|română| [[::NetworkPrintingFromWinXP/ro|română]]}}|}} {{#ifexist: {{#if: UbuntuHelp:NetworkPrintingFromWinXP | UbuntuHelp:NetworkPrintingFromWinXP | {{#if: | :}}NetworkPrintingFromWinXP}}/ru | • {{#if: UbuntuHelp:NetworkPrintingFromWinXP|русский| [[::NetworkPrintingFromWinXP/ru|русский]]}}|}} {{#ifexist: {{#if: UbuntuHelp:NetworkPrintingFromWinXP | UbuntuHelp:NetworkPrintingFromWinXP | {{#if: | :}}NetworkPrintingFromWinXP}}/si | • {{#if: UbuntuHelp:NetworkPrintingFromWinXP|සිංහල| [[::NetworkPrintingFromWinXP/si|සිංහල]]}}|}} {{#ifexist: {{#if: UbuntuHelp:NetworkPrintingFromWinXP | UbuntuHelp:NetworkPrintingFromWinXP | {{#if: | :}}NetworkPrintingFromWinXP}}/sq | • {{#if: UbuntuHelp:NetworkPrintingFromWinXP|shqip| [[::NetworkPrintingFromWinXP/sq|shqip]]}}|}} {{#ifexist: {{#if: UbuntuHelp:NetworkPrintingFromWinXP | UbuntuHelp:NetworkPrintingFromWinXP | {{#if: | :}}NetworkPrintingFromWinXP}}/sr | • {{#if: UbuntuHelp:NetworkPrintingFromWinXP|српски / srpski| [[::NetworkPrintingFromWinXP/sr|српски / srpski]]}}|}} {{#ifexist: {{#if: UbuntuHelp:NetworkPrintingFromWinXP | UbuntuHelp:NetworkPrintingFromWinXP | {{#if: | :}}NetworkPrintingFromWinXP}}/sv | • {{#if: UbuntuHelp:NetworkPrintingFromWinXP|svenska| [[::NetworkPrintingFromWinXP/sv|svenska]]}}|}} {{#ifexist: {{#if: UbuntuHelp:NetworkPrintingFromWinXP | UbuntuHelp:NetworkPrintingFromWinXP | {{#if: | :}}NetworkPrintingFromWinXP}}/th | • {{#if: UbuntuHelp:NetworkPrintingFromWinXP|ไทย| [[::NetworkPrintingFromWinXP/th|ไทย]]}}|}} {{#ifexist: {{#if: UbuntuHelp:NetworkPrintingFromWinXP | UbuntuHelp:NetworkPrintingFromWinXP | {{#if: | :}}NetworkPrintingFromWinXP}}/tr | • {{#if: UbuntuHelp:NetworkPrintingFromWinXP|Türkçe| [[::NetworkPrintingFromWinXP/tr|Türkçe]]}}|}} {{#ifexist: {{#if: UbuntuHelp:NetworkPrintingFromWinXP | UbuntuHelp:NetworkPrintingFromWinXP | {{#if: | :}}NetworkPrintingFromWinXP}}/vi | • {{#if: UbuntuHelp:NetworkPrintingFromWinXP|Tiếng Việt| [[::NetworkPrintingFromWinXP/vi|Tiếng Việt]]}}|}} {{#ifexist: {{#if: UbuntuHelp:NetworkPrintingFromWinXP | UbuntuHelp:NetworkPrintingFromWinXP | {{#if: | :}}NetworkPrintingFromWinXP}}/yue | • {{#if: UbuntuHelp:NetworkPrintingFromWinXP|粵語| [[::NetworkPrintingFromWinXP/yue|粵語]]}}|}} {{#ifexist: {{#if: UbuntuHelp:NetworkPrintingFromWinXP | UbuntuHelp:NetworkPrintingFromWinXP | {{#if: | :}}NetworkPrintingFromWinXP}}/zh | • {{#if: UbuntuHelp:NetworkPrintingFromWinXP|中文| [[::NetworkPrintingFromWinXP/zh|中文]]}}|}} {{#ifexist: {{#if: UbuntuHelp:NetworkPrintingFromWinXP | UbuntuHelp:NetworkPrintingFromWinXP | {{#if: | :}}NetworkPrintingFromWinXP}}/zh-hans | • {{#if: UbuntuHelp:NetworkPrintingFromWinXP|中文(简体)| [[::NetworkPrintingFromWinXP/zh-hans|中文(简体)]]}}|}} {{#ifexist: {{#if: UbuntuHelp:NetworkPrintingFromWinXP | UbuntuHelp:NetworkPrintingFromWinXP | {{#if: | :}}NetworkPrintingFromWinXP}}/zh-hant | • {{#if: UbuntuHelp:NetworkPrintingFromWinXP|中文(繁體)| [[::NetworkPrintingFromWinXP/zh-hant|中文(繁體)]]}}|}} |
{{#ifeq:UbuntuHelp:NetworkPrintingFromWinXP|:NetworkPrintingFromWinXP|请不要直接编辑翻译本页,本页将定期与来源同步。}} |
{{#ifexist: :NetworkPrintingFromWinXP/zh | | {{#ifexist: NetworkPrintingFromWinXP/zh | | {{#ifeq: {{#titleparts:NetworkPrintingFromWinXP|1|-1|}} | zh | | }} }} }} {{#ifeq: {{#titleparts:NetworkPrintingFromWinXP|1|-1|}} | zh | | }}
By following these steps, you will be able to share a printer from your Ubuntu computer so that Windows XP and Windows 2000 computers can print to it. This document has been tested with Ubuntu versions 5.10, 6.06 and 6.10.
1) Install the printer on the Ubuntu computer by using the printer wizard.
2) Open a terminal.
3) Modify /etc/cups/cupsd.conf with your favourite editor, for example
gksudo gedit /etc/cups/cupsd.conf
or
sudo nano -w /etc/cups/cupsd.conf
4) In this file, edit the first <Location> tag to allow connections from your network. Assuming that your network use adresses starting with "192.168.0." you add the following: (you only need to modify the top level (first) Location tag because other Location tags seem to inherit permissions)
<Location /> Order Deny,Allow Deny From All Allow From 127.0.0.1 Allow From 192.168.0.* </Location>
Also set which TCP port that the printer system will accept connections on. In Ubuntu 5.10 (Breezy) and Ubuntu 6.10 (Edgy) add this line under the Network Options part of the file (somewhere around line 420), or in Ubuntu 6.06 (Dapper) add the following line to /etc/cups/cups.d/ports.conf
:
Port 631
and comment out:
Listen 127.0.0.1:631
5) Save the file and exit the editor. Now restart the printing system with this command:
sudo /etc/init.d/cupsys restart
6) Now add the printer to the Windows computer by using the Windows "Add Printer" Wizard. Type in the following in the printer URL:
http://192.168.0.100:631/printers/Deskjet-940C
Replace "192.168.0.100" with the IP adress of the Ubuntu box. Replace "Deskjet-940C" with your printer's name.
If you add this entry to C:\WINDOWS\system32\drivers\etc\hosts
192.168.0.100 printer-server
, replacing "192.168.0.100" with the IP adress of the Ubuntu box, then you can use a URL like
http://printer-server:631/printers/Deskjet-940C
You should use the appropriate Windows printer driver for your printer.