[Samba-it] Re: Stampante e PDC

Ros nostradamus at libero.it
Mon Jan 17 11:52:01 MST 2005


Sono riuscito a risolvere il problema. Posto la mia soluzione, con la 
speranza che possa essere d'aiuto a chi ha incontrato il mio stesso problema.

Io ho la seguente configurazione:
stampante HP connessa al server Linux (samba 3.0.10)
client: Win2000
server di stampa: CUPS

Ho installato la stampante con l'utility system-config-printer.
Ho modificato il file /etc/cups/cupsd.conf:
####################################
Dove dice:
# The default value is IfRequested

<Location />
Order Deny,Allow
Deny From All
Allow From 127.0.0.1

---> Allow From 192.168.0.*  <------   Da aggiungere
---> Allow From localhost      <------   Da aggiungere
</Location>

Piu' sotto:
## Restrict access to local domain

<Location />
Order Deny,Allow
Deny From All
Allow From 127.0.0.1

---> Allow From 192.168.0.*  <------   Da aggiungere e da cambiare a 
seconda della rete locale
---> Allow From localhost      <------   Da aggiungere
Encryption required
</Location>

########### riavviare cups:
# service cups restart

Ora e' possibile amministrare la stampante anche dai client.

Poi, in smb.conf aggiungere
[global]
printing = cups
printcap name = CUPS
show add printer wizard = no
printcap = cups
load printers = yes
use client driver = yes   <--------- QUESTA LINEA E' QUELLA CHE MI HA 
RISOLTO IL PROBLEMA!!!

[printers]
comment = Stampanti
path = /var/tmp
browsable = no
guest ok = yes
writable = no
public = yes
printable = yes
printer admin = root
create mode = 0770

[HP1200]   <------- Questo nome deve corrispondere a quello scelto durante 
l'installazione dei driver della stampante sulla macchina Linux
path=/var/spool/samba
printer admin = root, guest, nobody
public = yes
guest ok = yes
printable = yes

#########
Riavviare smb. Dal client Win2000, scegliere: Aggiungi stampante, Stampante 
di rete, poi non inserire alcun nome e premere Avanti, selezionare ora dal 
dominio la stampante, e selezionare aggiungi.

FINE!

A me ora funziona, spero anche a voi!

Ros




More information about the samba-it mailing list