LPD etiketine sahip kayıtlar gösteriliyor. Tüm kayıtları göster
LPD etiketine sahip kayıtlar gösteriliyor. Tüm kayıtları göster

28 Aralık 2011 Çarşamba

Unixden windowsa çıktı gönderme


Bu işlemi yapabilmek için

1- Windowsda printer paylaşılmş durumda olmalı.
2- Windowsda print spooler servisi çalışıyor durumda olmalı. Firewall varsa tanımlarınızı yapmalısınız. spooler servisi varsayılan olarak 515 portunu dinliyor.

Unixden aşağıdaki şekilde çıktı gönderebiliriz.

/usr/ucb/lpr -P HOST_ADI:PRINTER_ADI -l PRINT_DOSYASI

örnek:
/usr/ucb/lpr -P pcramazan:printer33 -l abc.txt



12 Ekim 2011 Çarşamba

Print from unix to windows



TODO

1- Check your printer and share printer on Windows.
2- Check print spooler service runnnig on windows. If you use Firewall check your rules. The spooler service listens 515 port by default.

You can print from unix like below command:

/usr/ucb/lpr -P HOST_NAME:PRINTER_NAME -l PRINT_FILE

HOST_NAME    : name or ip address of pc/server which connected to printer.
PRINTER_NAME : sharing name of windows printer

sample:
/usr/ucb/lpr -P pcramazan:printer33 -l abc.txt

14 Eylül 2011 Çarşamba

Windows print spooler service ports

Print spooler service use below ports for networking.
LPDSVC service accepts from unix LPR printing.

Service NameUDPTCP
Services for Macintosh (uses AppleTalk)
201, 202, 204, 206
201, 202, 204, 206
Internet Printing Protocol (uses HTTP)
80
80
NWLink (uses IPX/SPX)
213
213
LPDSVC (accepts LPR)
515
515
LPR Port (sends LPR)
721-731, >1023
721-731, >1023
Server (using SMB)
137, 138
139
Server (using RPC)
530
530
Standard Port Monitor (using SNMP)
161, 162
161, 162
Standard Port Monitor (using LPR)
> 1023
> 1023
Standard Port Monitor (using RAW)
2000, 2501-2503, 3001, 6869, >=9100
2000, 2501, 2503, 3001, 6869, >=9100
http://technet.microsoft.com/en-us/library/cc783789(WS.10).aspx#w2k3tr_prntt_how_yxcr