rafaelferroni
(usa Ubuntu)
Enviado em 30/01/2013 - 17:48h
Boa tarde pessoal, estou implantando um servidor de impressão em minha empresa e tenho conhecimento básico em servidores, consegui configurar para imprimir e compartilhar um impressora Samsung SCX-3405W com o samba + cups de acordo com este artigo da IBM:
http://www.ibm.com/developerworks/br/library/l-lpic3-312-3/index.html#resources faltaram os drivers cupsps6.dll e cupsui6.dll, mas funcionou. Quando fui instalar o Jasmine pra imprimir relatórios com este artigo:
http://www.vivaolinux.com.br/artigo/Relatorios-de-impressao-em-PHP-com-CUPS-+-JASmine o servidor simplesmente parou de imprimir e começou a travar as maquinas clientes quando mandava imprimir algo pela impressora. Então removi o cups e o reinstalei agora parou de travar porém qualquer documento que envio para impressão sai uma página com informações que me parecem ser do driver da impressora. Algo parecido com isso:
-12345X@PJL COMMENT “Username: Rafael”
@PJL COMMENT USERNAME=”Rafael”
@PJL COMMENT DOCNAME=”PÁGINA DE TESTE”
@PJL SET COPIES=1
@PJL COLORMODE=MONO
@PJL SET RESOLUTION=600
@PJL SET IMAGEQUALITY=0
@PJL DEFAULT SERVICEDATE=20130130
@PJL SET DUPLEX=OFF
@PJL SET PAPERTYPE=OFF
@PJL SET BANNERSHEET=OFF
@PJL SET TIMESTAMP=OFF
@PJL SET USERNAME=”Rafael”
Porém isto é apenas uma parte do que é impresso.
Observação: os drivers no linux, não encontrei o arquivo PPd para instalar a impressora no Cups, mas quando instalei o driver genérico da sansung pra linux disponibilizado no site, o driver da SCX 3400 apareceu pra mim no cups. Os drivers do windows baixei da Samsung também.
meus confs:
Cupsd.conf:
LogLevel warn
MaxLogSize 0
# Allow remote access
Port 631
Listen /var/run/cups/cups.sock
# Enable printer sharing and shared printers.
Browsing On
BrowseOrder allow,deny
BrowseAllow all
BrowseRemoteProtocols CUPS
BrowseAddress @LOCAL
BrowseLocalProtocols CUPS dnssd
DefaultAuthType Basic
<Location />
# Allow shared printing and remote administration...
Order allow,deny
Allow all
</Location>
<Location /admin>
# Allow remote administration...
Order allow,deny
Allow all
</Location>
<Location /admin/conf>
AuthType Default
Require user @SYSTEM
# Allow remote access to the configuration files...
Order allow,deny
Allow all
</Location>
<Policy default>
<Limit Send-Document Send-URI Hold-Job Release-Job Restart-Job Purge-Jobs Set-Job-Attributes Create-Job-Subscription Renew-Subscription Cancel-Subscription Get-Notifications Reprocess-Job Cancel-Current-Job Suspend-Current-Job Resume-Job CUPS-Move-Job CUPS-Get-Document>
Require user @OWNER @SYSTEM
Order deny,allow
</Limit>
<Limit CUPS-Add-Modify-Printer CUPS-Delete-Printer CUPS-Add-Modify-Class CUPS-Delete-Class CUPS-Set-Default CUPS-Get-Devices>
AuthType Default
Require user @SYSTEM
Order deny,allow
</Limit>
<Limit Pause-Printer Resume-Printer Enable-Printer Disable-Printer Pause-Printer-After-Current-Job Hold-New-Jobs Release-Held-New-Jobs Deactivate-Printer Activate-Printer Restart-Printer Shutdown-Printer Startup-Printer Promote-Job Schedule-Job-After CUPS-Accept-Jobs CUPS-Reject-Jobs>
AuthType Default
Require user @SYSTEM
Order deny,allow
</Limit>
<Limit Cancel-Job CUPS-Authenticate-Job>
Require user @OWNER @SYSTEM
Order deny,allow
</Limit>
<Limit All>
Order deny,allow
</Limit>
</Policy>
<Policy authenticated>
<Limit Create-Job Print-Job Print-URI>
AuthType Default
Order deny,allow
</Limit>
<Limit Send-Document Send-URI Hold-Job Release-Job Restart-Job Purge-Jobs Set-Job-Attributes Create-Job-Subscription Renew-Subscription Cancel-Subscription Get-Notifications Reprocess-Job Cancel-Current-Job Suspend-Current-Job Resume-Job CUPS-Move-Job CUPS-Get-Document>
AuthType Default
Require user @OWNER @SYSTEM
Order deny,allow
</Limit>
<Limit CUPS-Add-Modify-Printer CUPS-Delete-Printer CUPS-Add-Modify-Class CUPS-Delete-Class CUPS-Set-Default>
AuthType Default
Require user @SYSTEM
Order deny,allow
</Limit>
<Limit Pause-Printer Resume-Printer Enable-Printer Disable-Printer Pause-Printer-After-Current-Job Hold-New-Jobs Release-Held-New-Jobs Deactivate-Printer Activate-Printer Restart-Printer Shutdown-Printer Startup-Printer Promote-Job Schedule-Job-After CUPS-Accept-Jobs CUPS-Reject-Jobs>
AuthType Default
Require user @SYSTEM
Order deny,allow
</Limit>
<Limit Cancel-Job CUPS-Authenticate-Job>
AuthType Default
Require user @OWNER @SYSTEM
Order deny,allow
</Limit>
<Limit All>
Order deny,allow
</Limit>
</Policy>
SMB.conf:
[global]
workgroup = IMPRESSAO
netbios name = IMPRESSAO
server string = Samba Server
printcap = cups
log file = /var/log/samba/log.%m
max log size = 50
socket options = TCP_NODELAY SO_RCVBUF=8192 SO_SNDBUF=8192
dns proxy = No
printing = cups
load printers = yes
socket options = TCP_NODELAY
[printers]
comment = All Printers
path = /var/spool/samba
printable = Yes
browseable = yes
writable = no
[print$]
comment = Printer Drivers
path = /etc/samba/drivers
browseable = yes
guest ok = yes
read only = yes
# write list = root
Desde já agradeço a ajuda.