ho questo problema: in casa ho un piccolo server gentoo che uso solo da console perché non ho installato X.
Ho installato una stampante HP-Laserjet USB emergendo cups e foomatic. Credo che funzioni tutto perché quando accedo con lynx localhost:631 vedo la mia stampante e riesco anche a stampare una pagina di prova. Questo è quello che vedo se vado su "Manage Printers":
Code: Select all
Default Destination: HP-LaserJet
HP-LaserJet HP LaserJet 1015 Foomatic/ljet4
Description: HP LaserJet 1015
Location:
Printer State: idle, accepting jobs.
Device URI: usb://HP/LaserJet%201015
Print Test Page Stop Printer Reject Jobs Modify Printer Configure Printer
Delete Printer Set As Default
hp_LaserJet_1015 hp LaserJet 1015 on Steeve.local
Description: hp LaserJet 1015
Location: Steeve
Printer State: idle, accepting jobs.
Device URI: usb://HP/LaserJet%201015
Print Test Page Stop Printer Reject Jobs Modify Printer Configure Printer Delete Printer Set As DefaultIl problema è riuscire a condividere in rete la stampante in modo che ci possa stampare dai pc con windows, ho seguito i consigli che ho trovato qui: http://www.cups.org/doc-1.1/sam.html al capitolo "Printing from Windows Clients", ma da windows non vedo la stampante.
Per essere più preciso vi faccio vedere il mio smb.conf:
Code: Select all
[Global]
server string = Gentoo Server
hosts allow = 192.168.1.
encrypt passwords = yes
load printers = yes
printing = cups
printcap name = cups
[printers]
comment = All Printers
path = /var/spool/samba
browseable = no
public = yes
guest ok = yes
writable = no
printable = yes
printer admin = root
[Geppetto]
public = yes
read only = no
path = /mnt/hdb/public
create mode = 0644
directory mode = 0755
guest ok = noCode: Select all
ServerName geppettoSamba funziona benissimo, riesco ad accedere alla risorsa condivisa "Geppetto" senza errori e riesco anche a scrivere.
Forse vi devo anche dire che siccome per accedere da windows devo immettere login e password, li ho salvati in modo da non doverli più scrivere, quindi quando da windows accedo tramite samba sono sempre l'utente "valenti". Non so se questo può influenzare o meno il fatto che non vedo la stampante.
Ho shorewall attivato, ma ho la porta 631 aperta in tcp. Deve rimanere aperta anche se stampo con samba?
Qualcuno ha idea di dove potrebbe essere il problema?
Grazie a tutti.


