View previous topic :: View next topic |
Author |
Message |
ctd.mh3 n00b
Joined: 14 May 2008 Posts: 35 Location: Minnesota, USA
|
Posted: Wed Aug 13, 2008 2:32 am Post subject: Cups now cannot see my local USB printer [solved] |
|
|
Hello there,
I had cups/samba installed several months back to allow my gentoo box to act as a printer server for a couple windows machines. All was fine until a couple months back. I cannot pinpoint any upgrade or change that caused my system to now not work.
In general, I had followed https://forums.gentoo.org/viewtopic.php?t=110931, http://www.gentoo.org/doc/en/printing-howto.xml#cups, and http://www.gentoo.org/doc/en/quick-samba-howto.xml to get the system up in the first place.
Now when I browse to my https://localhost:631/printers/ page, I get an "Error: Unknown" message.
I could not find anything in my CUPS log file that looked too suspect except for this section which would be inserted after navigating to the above page.
Code: | D [12/Aug/2008:19:33:50 -0500] cupsdReadClient: 11 POST / HTTP/1.1
D [12/Aug/2008:19:33:50 -0500] cupsdAuthorize: No authentication data provided.
D [12/Aug/2008:19:33:50 -0500] Get-Subscriptions ipp://localhost/
E [12/Aug/2008:19:33:50 -0500] Get-Subscriptions: Unknown
D [12/Aug/2008:19:33:50 -0500] cupsdSendError: 11 code=0 (Unknown)
|
When I run I do see my printer listed, so I believe that my kernel and HW are configured to see the USB printer.
I verified my setup many times. I have also ensured that my config is as stated in http://gentoo-wiki.com/HOWTO_Native_Windows_Printing_with_CUPS/Samba up to the NOTE after the "Configuring Samba" header. According to that author, if I cannot see my printer in CUPS at that point, it must be a CUPS issue and not related to samba (which I have also verified my config for before).
My /etc/cups/printers.conf is below:
Code: | # Printer configuration file for CUPS v1.3.7
# Written by cupsd on 2008-08-12 20:50
<Printer Samsung_ML-1430_USB_1>
Info Samsung ML-1430
Location Local Printer
DeviceURI usb:/dev/usb/lp0
State Idle
StateTime 1208823027
Accepting Yes
Shared Yes
JobSheets none none
QuotaPeriod 0
PageLimit 0
KLimit 0
OpPolicy default
ErrorPolicy stop-printer
</Printer>
|
My /etc/cups/cups.conf is:
Code: | cat /etc/cups/cupsd.conf
#
# "$Id: cupsd.conf.in 5454 2006-04-23 21:46:38Z mike $"
#
# Sample configuration file for the Common UNIX Printing System (CUPS)
# scheduler. See "man cupsd.conf" for a complete description of this
# file.
#
ServerName mythserver # your printserver name
ServerAdmin XXXX@XXXX.net # the person for printer-related hate-mail, e.g. you
AccessLog /var/log/cups/access_log # probably doesn't need changing
ErrorLog /var/log/cups/error_log # doesn't really need changing either
# Log general information in error_log - change "info" to "debug" for
# troubleshooting...
LogLevel debug
# Administrator user group...
SystemGroup lpadmin
# Only listen for connections from the local machine.
Listen *:631
Listen /var/run/cups/cups.sock
# Show shared printers on the local network.
Browsing On
BrowseOrder allow,deny
BrowseAllow @LOCAL
# Default authentication type, when authentication is required...
DefaultAuthType Basic
# Restrict access to the server...
<Location />
Order Deny,Allow
Deny From All
Allow From 192.168.1.*
</Location>
# Restrict access to the admin pages...
<Location /admin>
AuthType Basic
AuthClass System
Order Deny,Allow
Deny From All
Allow From 192.168.1.*
</Location>
# Restrict access to configuration files...
<Location /admin/conf>
AuthType Basic
Require user @SYSTEM
Order allow,deny
Allow localhost
</Location>
# Set the default printer/job policies...
<Policy default>
# Job-related operations must be done by the owner or an administrator...
<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 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
</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
Order deny,allow
</Limit>
</Policy>
#
# End of "$Id: cupsd.conf.in 5454 2006-04-23 21:46:38Z mike $".
# |
Any help would be greatly appreciated.
Thanks
Mike
Last edited by ctd.mh3 on Wed Aug 13, 2008 2:33 pm; edited 1 time in total |
|
Back to top |
|
|
kevstar31 Guru
Joined: 22 Nov 2006 Posts: 449 Location: Ohio
|
|
Back to top |
|
|
blueflame Tux's lil' helper
Joined: 26 Nov 2006 Posts: 107 Location: Singapore
|
Posted: Wed Aug 13, 2008 7:23 am Post subject: |
|
|
I suspect your config is screwed-up somehow. IMO CUPS really sucks when it comes to configuring it. This is my /etc/cups/cups.conf It works for me.
Code: |
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 @LOCAL
HostNameLookups On
DefaultAuthType Basic
<Location />
# Allow shared printing...
Order allow,deny
Allow @LOCAL
</Location>
<Location /admin>
Encryption Required
# Restrict access to the admin pages...
Order allow,deny
</Location>
<Location /admin/conf>
AuthType Default
Require user @SYSTEM
# Restrict access to the configuration files...
Order allow,deny
</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 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>
Require user @OWNER @SYSTEM
Order deny,allow
</Limit>
<Limit All>
Order deny,allow
</Limit>
</Policy>
|
|
|
Back to top |
|
|
kevstar31 Guru
Joined: 22 Nov 2006 Posts: 449 Location: Ohio
|
Posted: Wed Aug 13, 2008 12:37 pm Post subject: |
|
|
Did you run etc-update? _________________ while(true) std::cout << "Jesus I trust in you." << std::endl;
My Political Compass |
|
Back to top |
|
|
ctd.mh3 n00b
Joined: 14 May 2008 Posts: 35 Location: Minnesota, USA
|
Posted: Wed Aug 13, 2008 2:32 pm Post subject: Solved |
|
|
Thanks for the help.
- I normally run etc-update, so I did not have any configs to update when the command was run now.
- I had gotten my ppd file from http://openprinting.org/show_driver.cgi?driver=gdi&fromprinter=Samsung-ML-1430, but I downloaded a new on anyways. Restarted cups. That did not fit it.
- I then saved my old /etc/cups/cups.conf and inserted your info. That did the trick. I will have to look at the diffs to see what the issue was.
Awesome. My wife will now talk to me again, since she can now print from her laptop.
Mike |
|
Back to top |
|
|
|
|
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum
|
|