Compartilhamento Impressora do Linux para Windows

1. Compartilhamento Impressora do Linux para Windows

Dielson Fernandes
dielson

(usa Fedora)

Enviado em 10/01/2014 - 11:26h


Bom dia !!!

Preciso de ajuda para compartilhar uma impressora que esta instalada no Fedora 13, preciso localizar ela no windows 7, porém estou conseguindo achar o endereço na rede, mas pede usuario e senha, ja tentei todos os possiveis, mas não consigo me conectar, falta alguma configuração no samba ou no cups ? alguém pode me dar uma dica ?


  


2. Re: Compartilhamento Impressora do Linux para Windows

Buckminster
Buckminster

(usa Debian)

Enviado em 10/01/2014 - 13:56h

No arquivo /etc/cups/cupsd.conf, comente a linha abaixo e acrescente assim:

#Listen localhost:631
Listen *:631
Listen /var/run/cups/cups.sock

Salve e saia do arquivo e reinicie o Cups.

No Windows vá em Iniciar > Painel de controle > Exibir impressoras e dispositivos. Em cima clique em “Adicionar uma impressora”. Depois clique em "Adicionar uma impressora de rede, sem fio...".
Ele irá procurar a impressora automaticamente.
Caso não encontre, clique em "A impressora que desejo não está na lista" e marque a opção Adicionar uma impressora usando um endereço TCP/IP..." e clique em Avançar.
Digite o IP da máquina com o Cups e coloque a porta 631 e clique em Avançar.
Por exemplo:
http://192.168.1.2:631



3. Re: Compartilhamento Impressora do Linux para Windows

Dielson Fernandes
dielson

(usa Fedora)

Enviado em 10/01/2014 - 14:13h

cara fiz tudo isso que você colocou na sua resposta, porém quando vou me conectar a impressora ele pede um usuario e senha, que eu não sei qual é, pois já usei root, admin, administrador, usuario do computador, todos os possiveis e não consigo acessar


4. Re: Compartilhamento Impressora do Linux para Windows

Dielson Fernandes
dielson

(usa Fedora)

Enviado em 10/01/2014 - 14:17h

Meus cups no momento esta assim:

MaxLogSize 0
#
# "$Id: cupsd.conf.in 9310 2010-09-21 22:34:57Z mike $"
#
# Sample configuration file for the CUPS scheduler. See "man cupsd.conf" for a
# complete description of this file.
#

# Log general information in error_log - change "warn" to "debug"
# for troubleshooting...
LogLevel warn

# Administrator user group...
SystemGroup sys root


# Only listen for connections from the local machine.
Listen localhost:631
Listen /var/run/cups/cups.sock

# Show shared printers on the local network.
Browsing On
BrowseOrder allow,deny
BrowseAllow all
BrowseLocalProtocols CUPS dnssd

# Default authentication type, when authentication is required...
DefaultAuthType Basic

# Restrict access to the server...
<Location />
Order allow,deny
</Location>

# Restrict access to the admin pages...
<Location /admin>
Order allow,deny
</Location>

# Restrict access to configuration files...
<Location /admin/conf>
AuthType Default
Require user @SYSTEM
Order allow,deny
</Location>

# Set the default printer/job policies...
<Policy default>
# Job-related operations must be done by the owner or an administrator...
<Limit Create-Job Print-Job Print-URI Validate-Job>
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>
Require user @OWNER @SYSTEM
Order deny,allow
</Limit>

# All administration operations require an administrator to authenticate...
<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>

# All printer operations require a printer operator to authenticate...
<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 </Limit>

# Only the owner or an administrator can cancel or authenticate a job...
<Limit Cancel-Job CUPS-Authenticate-Job>
Require user @OWNER @SYSTEM
Order deny,allow
</Limit>

<Limit All>
Order deny,allow
</Limit>
</Policy>

# Set the authenticated printer/job policies...
<Policy authenticated>
# Job-related operations must be done by the owner or an administrator...
<Limit Create-Job Print-Job Print-URI Validate-Job>
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>

# All administration operations require an administrator to authenticate...
<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 Order deny,allow
</Limit>

# Only the owner or an administrator can cancel or authenticate a job...
<Limit Cancel-Job CUPS-Authenticate-Job>
AuthType Default
Require user @OWNER @SYSTEM
Order deny,allow
</Limit>

<Limit All>
Order deny,allow
</Limit>
</Policy>

#
# End of "$Id: cupsd.conf.in 9310 2010-09-21 22:34:57Z mike $".
#
#Listen localhost:631
Listen *:631
Listen /var/run/cups/cups.sock






5. Re: Compartilhamento Impressora do Linux para Windows

Buckminster
Buckminster

(usa Debian)

Enviado em 10/01/2014 - 14:48h

Aqui

# Only listen for connections from the local machine.
Listen localhost:631
Listen /var/run/cups/cups.sock

troque por

# Only listen for connections from the local machine.
Listen *:631
Listen /var/run/cups/cups.sock

E apague essas três linhas que você tem no final do arquivo, pois estão repetidas.
#Listen localhost:631
Listen *:631
Listen /var/run/cups/cups.sock

E talvez você você tenha que adicionar o usuário sys e o root que estão em SystemGroup:

# addgroup user sys
# addgroup user root

Reinicie o Cups e teste.


6. Também estou querendo compatilhar...

Bruno Raphael
brcmesquita

(usa elementary OS)

Enviado em 21/06/2015 - 15:03h

Eu instalei recentemente o Fedora 22 no meu desktop com impressora. E gostaria de imprimir utilizando o meu notebook com Windows 8 (obs.: não é Windows 8.1).
Porém, não faço ideia de como fazer. Fiz as alterações acima, mas não fiz o mesmo que o meu colega. Fiz as alterações corretamente. Mas... não sei reiniciar o Cups para testar.

Alguém pode me ajudar?



7. Compartilhamento Impressora do Linux para Windows

Perfil removido
removido

(usa Nenhuma)

Enviado em 21/06/2015 - 17:18h


Tenta no terminal:
sudo system-config-printer

Depois tente conectar a impressora e veja o que acontece...




  



Patrocínio

Site hospedado pelo provedor RedeHost.
Linux banner

Destaques

Artigos

Dicas

Tópicos

Top 10 do mês

Scripts