Slackware This Forum is for the discussion of Slackware Linux.
|
Notices |
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
|
 |
05-17-2014, 03:02 PM
|
#1
|
Member
Registered: Apr 2011
Distribution: slackware64-current
Posts: 571
Rep:
|
CUPS doesn't detect USB printer anymore
I reinstalled CUPS because it was having problems, but really I just configured it incorrectly, and now it doesn't detect the USB printer connected to my computer that it used to detect! I've tried everything: removing the usblp module (which was never loaded in the first place anyways), changing permissions, etc., but it still doesn't detect it, even though lsusb shows the Samsung CLX-3185 printer is connected.
Is there some permissions issue preventing CUPS from automatically detected my Samsung CLX-3185 connected via USB?
I'm using CUPS 1.5.4.
(BTW, when will there be a Slack package for a more recent CUPS?)
thanks
Last edited by Geremia; 05-17-2014 at 09:12 PM.
|
|
|
05-19-2014, 07:05 AM
|
#2
|
LQ Guru
Registered: Jan 2006
Location: Ireland
Distribution: Slackware, Slarm64 & Android
Posts: 17,766
|
Cups is the one linux program I have found to respond positively to the established m$ technique for borky software: delete and reinstall.
I would open http://localhost:631 and delete the printer(s). Then check /etc/cups/printers.conf for a lack of printers, and /etc/cups/cups.conf for a lack of nonsense.
Then reinstall the printer.
|
|
|
05-20-2014, 12:30 AM
|
#3
|
Member
Registered: Apr 2011
Distribution: slackware64-current
Posts: 571
Original Poster
Rep:
|
Quote:
Originally Posted by business_kid
Cups is the one linux program I have found to respond positively to the established m$ technique for borky software: delete and reinstall.
I would open http://localhost:631 and delete the printer(s). Then check /etc/cups/printers.conf for a lack of printers, and /etc/cups/cups.conf for a lack of nonsense.
Then reinstall the printer.
|
I've done that. I've deleted everything in /etc/cups/ and reinstalled, but CUPS still doesn't detect my USB printer, even though lsusb shows it connected.
|
|
|
05-20-2014, 09:30 AM
|
#4
|
LQ Addict
Registered: Nov 2008
Location: Paris, France
Distribution: Slint64-15.0
Posts: 11,414
Rep: 
|
Do you have the same issue as root?
|
|
|
05-20-2014, 02:58 PM
|
#5
|
LQ Newbie
Registered: Mar 2014
Distribution: Slackware 14.1, LinuxMint 16
Posts: 16
Rep: 
|
1. Is cups running? /etc/rc.d/rc.cups status
2. Can you access the cups admin at 127.0.0.1:631?
I don't know if this will help but here is my printers.conf
# Printer configuration file for CUPS v1.5.4
# Written by cupsd on 2014-05-20 19:52
# DO NOT EDIT THIS FILE WHEN CUPSD IS RUNNING
<DefaultPrinter HP_Printer>
UUID urn:uuid:50526511-10fb-3c13-747c-3d25f932b742
Info HP Photosmart C4200 series
Location Office
MakeModel HP Photosmart c4200 Series hpijs, 3.13.10
DeviceURI hp:/usb/Photosmart_C4200_series?serial=CN81UR91VC04VP
State Idle
StateTime 1400633559
Reason marker-supply-low-warning
Type 8425500
Accepting Yes
Shared Yes
JobSheets none none
QuotaPeriod 0
PageLimit 0
KLimit 0
OpPolicy default
ErrorPolicy stop-printer
</Printer>
and this is my cupsd.conf
LogLevel warn
SystemGroup sys root
# Allow remote access
Port 631
Listen /var/run/cups/cups.sock
# Enable printer sharing and shared printers.
Browsing On
BrowseOrder allow,deny
BrowseAllow all
BrowseRemoteProtocols CUPS
BrowseAddress @LOCAL
BrowseLocalProtocols CUPS
DefaultAuthType Basic
WebInterface Yes
<Location />
# Allow shared printing and remote administration...
Order allow,deny
Allow @LOCAL
</Location>
<Location /admin>
# Allow remote administration...
Order allow,deny
Allow @LOCAL
</Location>
<Location /admin/conf>
AuthType Default
# Allow remote access to the configuration files...
Order allow,deny
Allow @LOCAL
</Location>
<Policy default>
JobPrivateAccess default
JobPrivateValues default
SubscriptionPrivateAccess default
SubscriptionPrivateValues 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 Cancel-My-Jobs Close-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 A
ctivate-Printer Restart-Printer Shutdown-Printer Startup-Printer Promote-Job Schedule-Job-After Cancel-Jobs 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>
JobPrivateAccess default
JobPrivateValues default
SubscriptionPrivateAccess default
SubscriptionPrivateValues default
<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 Cancel-My-Jobs Close-Job CUPS-Move-Job CUPS-Get-Document>
AuthType Default
Require user @OWNER @SYSTEM
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 Cancel-My-Jobs Close-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 A
ctivate-Printer Restart-Printer Shutdown-Printer Startup-Printer Promote-Job Schedule-Job-After Cancel-Jobs 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>
|
|
|
05-21-2014, 08:48 AM
|
#6
|
LQ Guru
Registered: Jan 2006
Location: Ireland
Distribution: Slackware, Slarm64 & Android
Posts: 17,766
|
I have that sort of issue, and it's due to firmware not being installed.
I just have a half-assed way around it because I'm dead busy/lazy/disinterested.
How about something like this in /etc/modprobe.d/
postinstall <module> <command to install firmware>
e.g.
postinstall usblp0 /usr/bin/cat /path/to/whatever_file > /dev/µsb/lp0
The "correct" way is usually to make udevd do it, but you're on your own there.
|
|
1 members found this post helpful.
|
05-21-2014, 01:07 PM
|
#7
|
Member
Registered: Apr 2011
Distribution: slackware64-current
Posts: 571
Original Poster
Rep:
|
Quote:
Originally Posted by pettijohne
1. Is cups running? /etc/rc.d/rc.cups status
|
Yes
Quote:
Originally Posted by pettijohne
2. Can you access the cups admin at 127.0.0.1:631?
|
Yes
Quote:
Originally Posted by pettijohne
I don't know if this will help but here is my printers.conf
|
Well, I don't have that yet because I haven't installed any printers because it can't detect it!
Quote:
Originally Posted by pettijohne
and this is my cupsd.conf
|
Quote:
Originally Posted by pettijohne
SystemGroup sys root
|
Mine's pretty much the same, except I added "lp":
"SystemGroup sys root"
|
|
|
05-21-2014, 01:09 PM
|
#8
|
Member
Registered: Apr 2011
Distribution: slackware64-current
Posts: 571
Original Poster
Rep:
|
Quote:
Originally Posted by business_kid
I have that sort of issue, and it's due to firmware not being installed.
I just have a half-assed way around it because I'm dead busy/lazy/disinterested.
How about something like this in /etc/modprobe.d/
postinstall <module> <command to install firmware>
e.g.
postinstall usblp0 /usr/bin/cat /path/to/whatever_file > /dev/µsb/lp0
The "correct" way is usually to make udevd do it, but you're on your own there.
|
Yes, I think this is the issue. When I installed the March 11, 2014, Linux Samsung driver, I think the installer did have some issue with udevd. thanks
|
|
|
05-22-2014, 04:07 AM
|
#9
|
LQ Guru
Registered: Jan 2006
Location: Ireland
Distribution: Slackware, Slarm64 & Android
Posts: 17,766
|
my printer driver came with express instructions to remove the system-config-printer package which surprisingly is installed in slackware. It overwrites apparently useful udevd stuff, so an 'upgradepkg --reinstall' of udevd might help.
|
|
1 members found this post helpful.
|
05-24-2014, 12:11 PM
|
#10
|
Member
Registered: Apr 2011
Distribution: slackware64-current
Posts: 571
Original Poster
Rep:
|
Quote:
Originally Posted by business_kid
my printer driver came with express instructions to remove the system-config-printer package which surprisingly is installed in slackware. It overwrites apparently useful udevd stuff, so an 'upgradepkg --reinstall' of udevd might help.
|
Nope. I tried reinstalled and restarted it, but it still doesn't work. I really thought that might work, too. thanks, though
|
|
|
05-24-2014, 01:26 PM
|
#11
|
LQ Guru
Registered: Jan 2006
Location: Ireland
Distribution: Slackware, Slarm64 & Android
Posts: 17,766
|
Well there's a script installed here for firmware which does a bit of checking, and then runs
cat /path/to/firmware >/dev/usb/lp0
Have you verified that it is firmware. Is the fiirmware installed?
|
|
|
All times are GMT -5. The time now is 06:00 AM.
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|