特殊:Badtitle/NS100:NetworkPrintingFromWinXP:修订间差异
小 New page: {{From|https://help.ubuntu.com/community/NetworkPrintingFromWinXP}} {{Languages|php5}} By following these steps, you will be able to share a printer from your Ubuntu computer so that Windo... |
(没有差异)
|
2007年5月13日 (日) 11:40的版本
文章出处: |
{{#if: | {{{2}}} | https://help.ubuntu.com/community/NetworkPrintingFromWinXP }} |
点击翻译: |
English {{#ifexist: {{#if: php5 | php5 | {{#if: | :}}NetworkPrintingFromWinXP}}/af | • {{#if: php5|Afrikaans| [[::NetworkPrintingFromWinXP/af|Afrikaans]]}}|}} {{#ifexist: {{#if: php5 | php5 | {{#if: | :}}NetworkPrintingFromWinXP}}/ar | • {{#if: php5|العربية| [[::NetworkPrintingFromWinXP/ar|العربية]]}}|}} {{#ifexist: {{#if: php5 | php5 | {{#if: | :}}NetworkPrintingFromWinXP}}/az | • {{#if: php5|azərbaycanca| [[::NetworkPrintingFromWinXP/az|azərbaycanca]]}}|}} {{#ifexist: {{#if: php5 | php5 | {{#if: | :}}NetworkPrintingFromWinXP}}/bcc | • {{#if: php5|جهلسری بلوچی| [[::NetworkPrintingFromWinXP/bcc|جهلسری بلوچی]]}}|}} {{#ifexist: {{#if: php5 | php5 | {{#if: | :}}NetworkPrintingFromWinXP}}/bg | • {{#if: php5|български| [[::NetworkPrintingFromWinXP/bg|български]]}}|}} {{#ifexist: {{#if: php5 | php5 | {{#if: | :}}NetworkPrintingFromWinXP}}/br | • {{#if: php5|brezhoneg| [[::NetworkPrintingFromWinXP/br|brezhoneg]]}}|}} {{#ifexist: {{#if: php5 | php5 | {{#if: | :}}NetworkPrintingFromWinXP}}/ca | • {{#if: php5|català| [[::NetworkPrintingFromWinXP/ca|català]]}}|}} {{#ifexist: {{#if: php5 | php5 | {{#if: | :}}NetworkPrintingFromWinXP}}/cs | • {{#if: php5|čeština| [[::NetworkPrintingFromWinXP/cs|čeština]]}}|}} {{#ifexist: {{#if: php5 | php5 | {{#if: | :}}NetworkPrintingFromWinXP}}/de | • {{#if: php5|Deutsch| [[::NetworkPrintingFromWinXP/de|Deutsch]]}}|}} {{#ifexist: {{#if: php5 | php5 | {{#if: | :}}NetworkPrintingFromWinXP}}/el | • {{#if: php5|Ελληνικά| [[::NetworkPrintingFromWinXP/el|Ελληνικά]]}}|}} {{#ifexist: {{#if: php5 | php5 | {{#if: | :}}NetworkPrintingFromWinXP}}/es | • {{#if: php5|español| [[::NetworkPrintingFromWinXP/es|español]]}}|}} {{#ifexist: {{#if: php5 | php5 | {{#if: | :}}NetworkPrintingFromWinXP}}/fa | • {{#if: php5|فارسی| [[::NetworkPrintingFromWinXP/fa|فارسی]]}}|}} {{#ifexist: {{#if: php5 | php5 | {{#if: | :}}NetworkPrintingFromWinXP}}/fi | • {{#if: php5|suomi| [[::NetworkPrintingFromWinXP/fi|suomi]]}}|}} {{#ifexist: {{#if: php5 | php5 | {{#if: | :}}NetworkPrintingFromWinXP}}/fr | • {{#if: php5|français| [[::NetworkPrintingFromWinXP/fr|français]]}}|}} {{#ifexist: {{#if: php5 | php5 | {{#if: | :}}NetworkPrintingFromWinXP}}/gu | • {{#if: php5|ગુજરાતી| [[::NetworkPrintingFromWinXP/gu|ગુજરાતી]]}}|}} {{#ifexist: {{#if: php5 | php5 | {{#if: | :}}NetworkPrintingFromWinXP}}/he | • {{#if: php5|עברית| [[::NetworkPrintingFromWinXP/he|עברית]]}}|}} {{#ifexist: {{#if: php5 | php5 | {{#if: | :}}NetworkPrintingFromWinXP}}/hu | • {{#if: php5|magyar| [[::NetworkPrintingFromWinXP/hu|magyar]]}}|}} {{#ifexist: {{#if: php5 | php5 | {{#if: | :}}NetworkPrintingFromWinXP}}/id | • {{#if: php5|Bahasa Indonesia| [[::NetworkPrintingFromWinXP/id|Bahasa Indonesia]]}}|}} {{#ifexist: {{#if: php5 | php5 | {{#if: | :}}NetworkPrintingFromWinXP}}/it | • {{#if: php5|italiano| [[::NetworkPrintingFromWinXP/it|italiano]]}}|}} {{#ifexist: {{#if: php5 | php5 | {{#if: | :}}NetworkPrintingFromWinXP}}/ja | • {{#if: php5|日本語| [[::NetworkPrintingFromWinXP/ja|日本語]]}}|}} {{#ifexist: {{#if: php5 | php5 | {{#if: | :}}NetworkPrintingFromWinXP}}/ko | • {{#if: php5|한국어| [[::NetworkPrintingFromWinXP/ko|한국어]]}}|}} {{#ifexist: {{#if: php5 | php5 | {{#if: | :}}NetworkPrintingFromWinXP}}/ksh | • {{#if: php5|Ripoarisch| [[::NetworkPrintingFromWinXP/ksh|Ripoarisch]]}}|}} {{#ifexist: {{#if: php5 | php5 | {{#if: | :}}NetworkPrintingFromWinXP}}/mr | • {{#if: php5|मराठी| [[::NetworkPrintingFromWinXP/mr|मराठी]]}}|}} {{#ifexist: {{#if: php5 | php5 | {{#if: | :}}NetworkPrintingFromWinXP}}/ms | • {{#if: php5|Bahasa Melayu| [[::NetworkPrintingFromWinXP/ms|Bahasa Melayu]]}}|}} {{#ifexist: {{#if: php5 | php5 | {{#if: | :}}NetworkPrintingFromWinXP}}/nl | • {{#if: php5|Nederlands| [[::NetworkPrintingFromWinXP/nl|Nederlands]]}}|}} {{#ifexist: {{#if: php5 | php5 | {{#if: | :}}NetworkPrintingFromWinXP}}/no | • {{#if: php5|norsk| [[::NetworkPrintingFromWinXP/no|norsk]]}}|}} {{#ifexist: {{#if: php5 | php5 | {{#if: | :}}NetworkPrintingFromWinXP}}/oc | • {{#if: php5|occitan| [[::NetworkPrintingFromWinXP/oc|occitan]]}}|}} {{#ifexist: {{#if: php5 | php5 | {{#if: | :}}NetworkPrintingFromWinXP}}/pl | • {{#if: php5|polski| [[::NetworkPrintingFromWinXP/pl|polski]]}}|}} {{#ifexist: {{#if: php5 | php5 | {{#if: | :}}NetworkPrintingFromWinXP}}/pt | • {{#if: php5|português| [[::NetworkPrintingFromWinXP/pt|português]]}}|}} {{#ifexist: {{#if: php5 | php5 | {{#if: | :}}NetworkPrintingFromWinXP}}/ro | • {{#if: php5|română| [[::NetworkPrintingFromWinXP/ro|română]]}}|}} {{#ifexist: {{#if: php5 | php5 | {{#if: | :}}NetworkPrintingFromWinXP}}/ru | • {{#if: php5|русский| [[::NetworkPrintingFromWinXP/ru|русский]]}}|}} {{#ifexist: {{#if: php5 | php5 | {{#if: | :}}NetworkPrintingFromWinXP}}/si | • {{#if: php5|සිංහල| [[::NetworkPrintingFromWinXP/si|සිංහල]]}}|}} {{#ifexist: {{#if: php5 | php5 | {{#if: | :}}NetworkPrintingFromWinXP}}/sq | • {{#if: php5|shqip| [[::NetworkPrintingFromWinXP/sq|shqip]]}}|}} {{#ifexist: {{#if: php5 | php5 | {{#if: | :}}NetworkPrintingFromWinXP}}/sr | • {{#if: php5|српски / srpski| [[::NetworkPrintingFromWinXP/sr|српски / srpski]]}}|}} {{#ifexist: {{#if: php5 | php5 | {{#if: | :}}NetworkPrintingFromWinXP}}/sv | • {{#if: php5|svenska| [[::NetworkPrintingFromWinXP/sv|svenska]]}}|}} {{#ifexist: {{#if: php5 | php5 | {{#if: | :}}NetworkPrintingFromWinXP}}/th | • {{#if: php5|ไทย| [[::NetworkPrintingFromWinXP/th|ไทย]]}}|}} {{#ifexist: {{#if: php5 | php5 | {{#if: | :}}NetworkPrintingFromWinXP}}/tr | • {{#if: php5|Türkçe| [[::NetworkPrintingFromWinXP/tr|Türkçe]]}}|}} {{#ifexist: {{#if: php5 | php5 | {{#if: | :}}NetworkPrintingFromWinXP}}/vi | • {{#if: php5|Tiếng Việt| [[::NetworkPrintingFromWinXP/vi|Tiếng Việt]]}}|}} {{#ifexist: {{#if: php5 | php5 | {{#if: | :}}NetworkPrintingFromWinXP}}/yue | • {{#if: php5|粵語| [[::NetworkPrintingFromWinXP/yue|粵語]]}}|}} {{#ifexist: {{#if: php5 | php5 | {{#if: | :}}NetworkPrintingFromWinXP}}/zh | • {{#if: php5|中文| [[::NetworkPrintingFromWinXP/zh|中文]]}}|}} {{#ifexist: {{#if: php5 | php5 | {{#if: | :}}NetworkPrintingFromWinXP}}/zh-hans | • {{#if: php5|中文(简体)| [[::NetworkPrintingFromWinXP/zh-hans|中文(简体)]]}}|}} {{#ifexist: {{#if: php5 | php5 | {{#if: | :}}NetworkPrintingFromWinXP}}/zh-hant | • {{#if: php5|中文(繁體)| [[::NetworkPrintingFromWinXP/zh-hant|中文(繁體)]]}}|}} |
{{#ifeq:php5|: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 orsudo 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 #Modify 192.168.0.* to match your configuration. 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\hosts192.168.0.100 printer-server , replacing "192.168.0.100" with the IP adress of the Ubuntu box, then you can use a URL likehttp://printer-server:631/printers/Deskjet-940C You should use the appropriate Windows printer driver for your printer. CategoryDocumentation