[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

FeedBack CUPS sin SAMBA.



-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA512

Hola:

Para quién tenga servidor de impresión con CUPS bajo Debian, y como máquinas
Windows como clientes, yo he conseguido hacerlo funcionar de la siguiente
manera:

En el fichero /etc/cups/cupsd.conf:

Classification none
DefaultCharset UTF-8
DefaultLanguage es
Printcap /var/run/cups/printcap
PrintcapFormat BSD
RemoteRoot remroot
SystemGroup lpadmin
ServerCertificate /etc/cups/ssl/server.crt
ServerKey /etc/cups/ssl/server.key
<Location />
Encryption IfRequested
Satisfy All
Order allow,deny
Allow localhost
Allow 192.168.0.* # Podemos añadir más poniendo más Allow's, IP's internas.
</Location>
<Location /admin>
Encryption IfRequested
Satisfy All
Order allow,deny
Allow localhost
</Location>
<Location /admin/conf>
Encryption IfRequested
Satisfy All
Order allow,deny
Allow localhost
Allow 192.168.0/24 # Lo mismo de antes, pero para IP's internas.
</Location>
HostnameLookups Off
KeepAlive On # Aunque, no será recomendable, se puede tenerlo activado.
KeepAliveTimeout 60
MaxClients 100
MaxRequestSize 0m
Timeout 300
Listen localhost:631
Listen 192.168.0.99 # Se pueden poner más cuando tenemos más TRJ. de red.
Listen /var/run/cups/cups.sock
AccessLog /var/log/cups/access_log
ErrorLog /var/log/cups/error_log
PageLog /var/log/cups/page_log
MaxLogSize 1m
LogLevel info # En este parámetro, es mejor dejarlo tal cual...
PreserveJobHistory On
PreserveJobFiles On
AutoPurgeJobs Yes
MaxJobs 5
MaxJobsPerPrinter 5
MaxJobsPerUser 5
User lp
Group lpadmin
RIPCache 8m
FilterLimit 0
DataDir /usr/share/cups
DocumentRoot /usr/share/cups/doc-root
RequestRoot /var/spool/cups
ServerBin /usr/lib/cups
ServerRoot /etc/cups
TempDir /var/spool/cups/tmp
Browsing On
BrowseProtocols CUPS
BrowsePort 631
BrowseInterval 30
BrowseTimeout 300
BrowseAllow @LOCAL
BrowseOrder allow,deny
ImplicitClasses On
ImplicitAnyClasses Off
HideImplicitMembers Yes
BrowseShortNames Yes
defaultauthtype Basic
<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>
#require user @OWNER @SYSTEM
order deny,allow
allow localhost
allow 192.168.0.* # Se pueden poner más Allow's.
</limit>
<limit Pause-Printer Resume-Printer Set-Printer-Attributes 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-Add-Printer CUPS-Delete-Printer CUPS-Add-Class CUPS-Delete-Class
CUPS-Accept-Jobs CUPS-Reject-Jobs CUPS-Set-Default>
order deny,allow
allow loclhost
allow 192.168.0.* # Se pueden poner más Allow's.
</limit>
<limit Cancel-Job CUPS-Authenticate-Job>
order deny,allow
allow localhost
allow 192.168.0.* # Se pueden poner más Allow's.
</limit>
<limit All>
order deny,allow
allow localhost
allow 192.168.0.* # Se pueden poner más Allow's.
</limit>
</policy>
##########

Luego, ya hecho todo esto, se puede hacer cuando tenéis más tarjetas de red.
En todo caso, para que las máquinas bajo Windows puedan imprimir
remotamente, pueden hacerlo con el GhostScript:

http://www.ghostscript.com/

Un truco: Para gente con Windows Vista, si no les funcionan, han de poner
más alto el chmod al /dev/lp0, o al que tengáis la impresora conectada bajo
Cups para poder permitir la entrada de la cola de impresión. En todo caso:

chmod 777 /dev/lp0

O los que tengáis en esos momentos, bajo USB, bajo red, etc, etc, etc. Esto
no importa que funcione bajo Windows XP, pero en Vista habrá que hacerlo de
este modo.

También es importante, cuando tenemos el Acrobat Reader, pues teniendo
instalado el cups-pdf. Y también importante, tener los mismos ficheros de
/usr/lib/cups/backend-available a /usr/lib/cups/backend. Por lo tanto:

cp -a /usr/lib/cups/backend-available/* /usr/lib/cups/backend

/etc/init.d/cupsys restart

Y a correr...

El portátil de mi padre, que tiene Windows Vista Home Edition ya puede
imprimir remótamente y con WiFi... ;8-)) Y ésto sí, no es necesario el Samba...

Para quién quiera, a mí 100% funcionando.

- --
Slds de Santiago José López Borrazás
Conocimientos avanzados en seguridad informática.
Conocimientos avanzados en redes.
-----BEGIN PGP SIGNATURE-----

iQIVAwUBR0mIK7uF9/q6J55WAQpkjA//cahofyeYcESdrZCbOClr9ru6zO2Fg8tm
jI3x+lgMjH24/IWc5cJPeDqChT6xVsqocHt+DgAu9bSh5putH14XYqDiPhcEaS3m
fsKonN1cbLBEkeDcdUs3NA5W9fg4Q9FZFj1qrDBDnJBuNkPVDCrBIQGS8m+2sFIW
Jw0b7CaC3S2OffENxd8qtQfuA2x7XQzWFVbE0ZtG8Gsct93NZ5LM0QlDpFiTogSJ
CACbm9OReW3Hm0S3dGJZvLXTEKfW/iJUzD4FiV5i4/xLyb5Wq++YaSLsf6vbFsXY
u2ertEcNiz05F5KuJdlEneZ4b/4EQsHPQbAGQNGCPc41KMSVo439ABshmXoLZzOr
H4VXxUJagGkSrOjwqGyNUubZlOJ2H7WADgOSNTQ1eKQLQtkXquFk/LfZxAj5j4HI
3WBFa732lJLOaMfKJKqQc45fvzdrpBv+FaShb7DoCJNQ04vCTClCXrxm257c54wx
kPUwZDHhftRJbDTl85+buoirJ70OnfodmecKN7whgr4uxfcEx4yRfmXUQqcPIVvV
YZP5aOBhUvDXnYafUvDylnSNUToZ6L7/Iy/C/asSK1okV0ryJbg+GK7R+vg4BFiU
q1IL0vJY6lgoxExPvk2OR9w3cmbecO3DTCXl+0fwv4ck2pyvssokfx+kkbAXmJhX
hBJRwkemA40=
=x18m
-----END PGP SIGNATURE-----



Reply to: