[gentoo-user] Problem with printing

2012-03-24 Thread Алексей Мишустин
Hi List,

I have got a problem with printing.

Cups logs are showing Create-Job successful-ok and Send-Document
successful-ok if I print as root and Create-Job
client-error-not-authorized if I print as a regular user.

Cups jobs are showing root's commands:
EPSON_Stylus_Photo_2100-6   news_1  root2k  1   
completed at
Sun Mar 25 00:39:25 2012

BUT in both cases nothing is being printed.

Root and the user are added to the lp group.

Please tell me what could I have missed?

My /etc/cup/cupsd.conf is the default one:

LogLevel warn
SystemGroup lpadmin
Listen localhost:631
Listen /var/run/cups/cups.sock
Browsing On
BrowseOrder allow,deny
BrowseAllow all
BrowseLocalProtocols CUPS
DefaultAuthType None
Location /
  Order allow,deny
/Location
Location /admin
  Order allow,deny
/Location
Location /admin/conf
  AuthType Default
  Require user @SYSTEM
  Order allow,deny
/Location
Policy default
  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
  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 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
  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

--
Regards,
Alex



[gentoo-user] Re: Problem with printing

2012-03-24 Thread Алексей Мишустин
2012/3/25 Алексей Мишустин shum...@shumkar.ru:
 Hi List,

 I have got a problem with printing.

 Cups logs are showing Create-Job successful-ok and Send-Document
 successful-ok if I print as root and Create-Job
 client-error-not-authorized if I print as a regular user.

 Cups jobs are showing root's commands:
 EPSON_Stylus_Photo_2100-6       news_1          root    2k      1       
 completed at
 Sun Mar 25 00:39:25 2012

 BUT in both cases nothing is being printed.

 Root and the user are added to the lp group.

 Please tell me what could I have missed?

 My /etc/cup/cupsd.conf is the default one:

...

# lpstat -a
EPSON_Stylus_Photo_2100 accepting requests since Sun 25 Mar 2012 00:39:25

The printer is connected via USB. USB printers support is enabled in kernel.

From dmesg:
[ 1200.008016] usb 8-2: new high-speed USB device number 4 using ehci_hcd
[ 1200.149954] usb 8-2: New USB device found, idVendor=04b8, idProduct=0007
[ 1200.149957] usb 8-2: New USB device strings: Mfr=1, Product=2, SerialNumber=3
[ 1200.149960] usb 8-2: Product: USB2.0 Printer (Hi-speed)
[ 1200.149963] usb 8-2: Manufacturer: EPSON
[ 1200.149965] usb 8-2: SerialNumber: L53030308071122370
[ 1200.159486] usblp0: USB Bidirectional printer dev 4 if 0 alt 0
proto 2 vid 0x04B8 pid 0x0007

--
Regards,
Alex



Re: [gentoo-user] Re: Problem with printing

2012-03-24 Thread Alex Schuster
Алексей Мишустин writes:

 The printer is connected via USB. USB printers support is enabled in
 kernel.

The HP PSC 1410 USB thread suggests to disable USB printer support in
the kernel, and enable the usb USE flag for cups. But I think if this
were the problem, you wouldn't even see the printer in CUPS.

Wonko



[gentoo-user] Re: Problem with printing

2012-03-24 Thread Алексей Мишустин
# cat /etc/cups/printers.conf
# Printer configuration file for CUPS v1.4.8
# Written by cupsd on 2012-03-25 00:08
# DO NOT EDIT THIS FILE WHEN CUPSD IS RUNNING
Printer EPSON_Stylus_Photo_2100
Info EPSON Stylus Photo 2100
Location Local
MakeModel Epson Stylus Photo Series
DeviceURI usb://EPSON/Stylus%20Photo%202100
State Idle
StateTime 1332619676
Type 36876
Filter application/vnd.cups-raw 0 -
Filter application/vnd.cups-raster 50 rastertoepson
Accepting Yes
Shared No
JobSheets none none
QuotaPeriod 0
PageLimit 0
KLimit 0
AllowUser root
OpPolicy default
ErrorPolicy stop-printer
/Printer

--
Regards,
Alex



[gentoo-user] Re: Problem with printing

2012-03-24 Thread Алексей Мишустин
Hurrah

I have installed gutenprint and now my printer prints.

Apologies for the noise! ;)

--
Regards,
Alex