CUPS + SAMBA

1. CUPS + SAMBA

claudevan
claudevansc

(usa Outra)

Enviado em 26/03/2013 - 23:16h

Gente é o seguinte tenho o cups instalado e rodando normalmente no linux. Tenho uma maquina windows e nela eu compartilhei uma impressora depois eu fui na maquina linux no cups em /Add Printer/ Windows Printer via SAMBA e em "Connection":smb://10.0.0.11:631/EPISON Stylus CX4900 Series fiz todo o procedimento, no cups apos eu adicionar a impressora compartilhada do windows eu pesso pra emitir uma página de teste e da o seguinte erro: processing since
Ter 26 Mar 2013 22:50:58 BRT
"Connection failed: NT_STATUS_CONNECTION_REFUSED"

Fiz alguns testes e vejo que esta tudo certo.

root@cups:~# smbclient -L localhost
Enter root's password:
Domain=[WORKGROUP] OS=[Unix] Server=[Samba 3.4.7]

Sharename Type Comment
--------- ---- -------
print$ Disk Printer Drivers
arquivos Disk Arquivos da Rede
IPC$ IPC IPC Service (cups server)
Domain=[WORKGROUP] OS=[Unix] Server=[Samba 3.4.7]

Server Comment
--------- -------
CLAUDEVAN
CLAUDIO
CUPS cups server

Workgroup Master
--------- -------
WORKGROUP CUPS
################################################## ###############

root@cups:~# smbtree -U administrator
Enter administrator's password:
WORKGROUP
\\CUPS cups server
\\CUPS\IPC$ IPC Service (cups server)
\\CUPS\arquivos Arquivos da Rede
\\CUPS\print$ Printer Drivers
\\CLAUDIO
\\CLAUDEVAN
################################################## ###############

root@cups:~# smbclient -L cups -U Owner
Enter Owner's password:
Domain=[WORKGROUP] OS=[Unix] Server=[Samba 3.4.7]

Sharename Type Comment
--------- ---- -------
print$ Disk Printer Drivers
arquivos Disk Arquivos da Rede
IPC$ IPC IPC Service (cups server)
Domain=[WORKGROUP] OS=[Unix] Server=[Samba 3.4.7]

Server Comment
--------- -------
CLAUDEVAN
CLAUDIO
CUPS cups server

Workgroup Master
--------- -------
WORKGROUP CUPS
################################################## #############

root@cups:~# netstat -lntp
Conexões Internet Ativas (somente servidores)
Proto Recv-Q Send-Q Endereço Local Endereço Remoto Estado PID/Program name
tcp 0 0 0.0.0.0:22 0.0.0.0:* OUÇA 517/sshd
tcp 0 0 0.0.0.0:631 0.0.0.0:* OUÇA 779/cupsd
tcp 0 0 0.0.0.0:445 0.0.0.0:* OUÇA 1384/smbd
tcp 0 0 0.0.0.0:901 0.0.0.0:* OUÇA 745/inetd
tcp 0 0 0.0.0.0:139 0.0.0.0:* OUÇA 1384/smbd
tcp6 0 0 :::22 :::* OUÇA 517/sshd
tcp6 0 0 :::631 :::* OUÇA 779/cupsd
################################################## ###########

root@cups:~# testparm
Load smb config files from /etc/samba/smb.conf
rlimit_max: rlimit_max (1024) below minimum Windows limit (16384)
Processing section "[homes]"
Processing section "[printers]"
Processing section "[print$]"
Processing section "[arquivos]"
Loaded services file OK.
Server role: ROLE_STANDALONE
Press enter to see a dump of your service definitions

[global]
server string = %h server
map to guest = Bad User
obey pam restrictions = Yes
pam password change = Yes
passwd program = /usr/bin/passwd %u
passwd chat = *Enter\snew\s*\spassword:* %n\n *Retype\snew\s*\spassword:* %n\n *password\supdated\ssuccessfully* .
unix password sync = Yes
syslog = 0
log file = /var/log/samba/log.%m
max log size = 1000
dns proxy = No
usershare allow guests = Yes
panic action = /usr/share/samba/panic-action %d

[homes]
comment = Home Directories
valid users = %S
read only = No
create mask = 0700
directory mask = 0700
browseable = No
browsable = No

[printers]
comment = All Printers
path = /var/spool/samba
create mask = 0700
guest ok = Yes
printable = Yes
browseable = No
browsable = No

[print$]
comment = Printer Drivers
path = /var/lib/samba/printers
guest ok = Yes

[arquivos]
comment = Arquivos da Rede
path = /media/arquivos
read only = No
guest ok = Yes

Por favor gente o que pode ta errado, eu apenas quero compartilhar uma impressora do windows, adicionar a mesma no "cups" pra ele genrenciar.

Desde já eu agradeço!


  






Patrocínio

Site hospedado pelo provedor RedeHost.
Linux banner

Destaques

Artigos

Dicas

Tópicos

Top 10 do mês

Scripts