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

CUPS



Даброго времени суток, сообществу.

Есть две Debian тачки.
Одна пытается выступать в качестве принт-сервера
Вторая как-бы клиент.

На пр.сервере установлено два принтера
1.Локальный Epson1290
2. самбовый ....
печать с сервака идет нормально на оба принтера

вот /etc/cups/printers.conf:

<Printer Epson1290>
Info EPSON Stylus Photo 1290
Location
DeviceURI usb://EPSON/Stylus%20Photo%201290
State Idle
StateTime 1157017845
Accepting Yes
Shared Yes
JobSheets none none
QuotaPeriod 0
PageLimit 0
KLimit 0
OpPolicy default
ErrorPolicy stop-printer
</Printer>
<DefaultPrinter HP1015>
Info HP LaserJet 4 series
Location
DeviceURI smb://guest@domain/host/HPLaserJ
State Idle
StateTime 1157017901
Accepting Yes
Shared Yes
JobSheets none none
QuotaPeriod 0
PageLimit 0
KLimit 0
OpPolicy default
ErrorPolicy stop-printer
</Printer>


Пытаюсь настроить печать с клиента на сервер по ipp
на клиенте создаю принтер с таким URI
ipp://192.168.x.x:631/Epson1290

 при печати пробной страницы в логах следующее:

D [31/Aug/2006:13:56:58 +0400] cupsdAcceptClient: 6 from 192.168.x.x:631 
(IPv4)
D [31/Aug/2006:13:56:58 +0400] cupsdReadClient: 6 POST /Epson1290 HTTP/1.1
D [31/Aug/2006:13:56:58 +0400] cupsdAuthorize: No authentication data 
provided.
D [31/Aug/2006:13:56:58 +0400] Get-Printer-Attributes 
ipp://192.168.0.2:631/Epson1290
I [31/Aug/2006:13:56:58 +0400] Get-Printer-Attributes client-error-not-found: 
The printer or class was not found.
D [31/Aug/2006:13:56:58 +0400] cupsdProcessIPPRequest: 6 status_code=406 
(client-error-not-found)
D [31/Aug/2006:13:56:58 +0400] cupsdCloseClient: 6


а вэбморда CUPS на клиенте пишит следующее:
Epson1290 "/usr/lib/cups/backend/ipp failed"

на сервере:
#cat /etc/cups/cupsd.conf
DefaultCharset notused
# Show troubleshooting information in error_log.
LogLevel debug
Printcap /var/run/cups/printcap
# Only listen for connections from the local machine.
Listen 127.0.0.1:631
Listen 192.168.x.x:631
<Location />
  # Restrict access to the server...
  Order allow,deny
  Allow localhost
  Allow All
</Location>
<Location /jobs>
  AuthType Basic
  AuthClass User
</Location>
<Location /admin>
  AuthType Basic
  AuthClass System
  # Restrict access to the admin pages...
  Order allow,deny
  Allow localhost
</Location>
# Show shared printers on the local network.
Browsing On
BrowseOrder allow,deny
BrowseAllow All
BrowseAddress @LOCAL
# Restrict access to the configuration files...
<Location /admin/conf>
  AuthType Basic
  Require user @SYSTEM
  Order allow,deny
  Allow localhost
</Location>
<Policy default>
  # Job-related operations must be done by the owner or an adminstrator...
  <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
  </Limit>
  # All administration operations require an adminstrator to authenticate...
  <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 CUPS-Add-Device 
CUPS-Delete-Device>
    AuthType Basic
    Require user @SYSTEM
    Order deny,allow
</Limit>
  <Limit All>
  Order deny,allow
  </Limit>
</Policy>



на клиенте:
#su -c 'cat /etc/cups/cupsd.conf'
Password:
# Show general information in error_log.
LogLevel info
SystemGroup lpadmin
# Allow remote access
Port 631
Listen /var/run/cups/cups.sock
# Enable printer sharing and shared printers.
Browsing On
BrowseOrder allow,deny
BrowseAllow All
BrowseAddress 192.168.x.x
DefaultAuthType Basic
<Location />
  # Allow shared printing...
  Order allow,deny
  Allow All
</Location>
<Location /admin>
  Encryption Required
  # Restrict access to the admin pages...
  Order allow,deny
  Allow 192.168.x.x
</Location>
<Location /admin/conf>
  AuthType Basic
  Require user @SYSTEM
  # Restrict access to the configuration files...
  Order allow,deny
  Allow 192.168.x.x
</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>
    Require user @OWNER @SYSTEM
    Order deny,allow
  </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>
    AuthType Basic
    Require user @SYSTEM
    Order deny,allow
  </Limit>
  <Limit CUPS-Authenticate-Job>
    Require user @OWNER @SYSTEM
    Order deny,allow
  </Limit>
  <Limit All>
    Order deny,allow
  </Limit>
</Policy>

P.S. 192.168.x.x - реальные адреса

Куда поглядеть?

Спасибо.
________________________________
Мажурин Игорь
mailvisor@mail.ru



Reply to: