LinuxQuestions.org
Help answer threads with 0 replies.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Password
Slackware This Forum is for the discussion of Slackware Linux.

Notices


Reply
  Search this Thread
Old 08-27-2019, 04:04 AM   #1
gopakumarpb
LQ Newbie
 
Registered: Dec 2016
Location: KERALA
Distribution: Slackware
Posts: 8

Rep: Reputation: Disabled
CUPS Not DETECTING PRINTERS in LAN


My laptop Lenevo G50-70 is connected in a LAN. The cups installed in my slackware do not detect printers installed in other computers those which are part of this LAN. I was able to do this while other linux OS was installed in my LAP.
Available details.
bash-4.3$ cups-config --version
2.1.4

bash-4.3$ sudo netstat -plnt | grep 631
Password:
tcp 0 0 0.0.0.0:631 0.0.0.0:* LISTEN 1217/cupsd
tcp6 0 0 :::631 :::* LISTEN 1217/cupsd
bash-4.3$ nmap localhost

Starting Nmap 7.12 ( https://nmap.org ) at 2019-08-27 08:56 IST
Nmap scan report for localhost (127.0.0.1)
Host is up (0.000052s latency).
Not shown: 995 closed ports
PORT STATE SERVICE
22/tcp open ssh
37/tcp open time
53/tcp open domain
113/tcp open ident
631/tcp open ipp

Nmap done: 1 IP address (1 host up) scanned in 0.14 seconds
--------------
I am not an expert. The output of the commands which I got on net search is copy pasted.

Last edited by gopakumarpb; 08-27-2019 at 04:52 AM. Reason: Spelling mistake
 
Old 08-27-2019, 04:26 AM   #2
aragorn2101
Member
 
Registered: Dec 2012
Location: Mauritius
Distribution: Slackware
Posts: 567

Rep: Reputation: 301Reputation: 301Reputation: 301Reputation: 301
Hi,

I have CUPS running normally on my Slackware and all my outputs to the same commands you ran look very similar. I also have the "631/tcp open ipp" and all the "LISTEN" at the top.

I suggest you try adding the printer using http://localhost:631 in a browser. In case it asks for administrative permission, the username is "root" and the password is your password for root.

Add it as a socket printer with the proper address of the printer on your network, such as the example below:
Code:
socket://172.23.5.60
Just make sure you enter which printer it is correctly, else the driver will not work.

All the best.
 
Old 08-27-2019, 04:55 AM   #3
gopakumarpb
LQ Newbie
 
Registered: Dec 2016
Location: KERALA
Distribution: Slackware
Posts: 8

Original Poster
Rep: Reputation: Disabled
The same printers were seen by my cups without installing them, while I was using ubuntu in my lap. My doubt is why my cups do not detect printers connected to computers where my lap top is part of the same LAN.
 
Old 08-27-2019, 05:12 AM   #4
ponce
LQ Guru
 
Registered: Aug 2004
Location: Pisa, Italy
Distribution: Slackware
Posts: 7,098

Rep: Reputation: 4175Reputation: 4175Reputation: 4175Reputation: 4175Reputation: 4175Reputation: 4175Reputation: 4175Reputation: 4175Reputation: 4175Reputation: 4175Reputation: 4175
I think this happens because you haven't started the cups-browsed daemon (by default it doesn't start at boot): just
Code:
chmod +x /etc/rc.d/rc.cups-browsed
/etc/rc.d/rc.cups-browsed start
 
Old 08-27-2019, 06:38 AM   #5
gopakumarpb
LQ Newbie
 
Registered: Dec 2016
Location: KERALA
Distribution: Slackware
Posts: 8

Original Poster
Rep: Reputation: Disabled
Quote:
I think this happens because you haven't started the cups-browsed daemon (by default it doesn't start at boot): just
Code:
chmod +x /etc/rc.d/rc.cups-browsed
/etc/rc.d/rc.cups-browsed start
bash-4.3$ sudo /etc/rc.d/rc.cups-browsed start
Password:
/etc/rc.d/rc.cups-browsed: line 119: /usr/sbin/cups-browsed: No such file or directory
cups-browsed: started.

The problem still exists.
 
Old 08-27-2019, 06:40 AM   #6
ponce
LQ Guru
 
Registered: Aug 2004
Location: Pisa, Italy
Distribution: Slackware
Posts: 7,098

Rep: Reputation: 4175Reputation: 4175Reputation: 4175Reputation: 4175Reputation: 4175Reputation: 4175Reputation: 4175Reputation: 4175Reputation: 4175Reputation: 4175Reputation: 4175
Quote:
Originally Posted by ponce View Post
I think this happens because you haven't started the cups-browsed daemon (by default it doesn't start at boot): just
Code:
chmod +x /etc/rc.d/rc.cups-browsed
/etc/rc.d/rc.cups-browsed start
don't use sudo to interact with the system, do it as root: re-execute the above commands from a root shell (you become root with "su -", note the space and the dash).

in your case sudo doesn't add /usr/sbin to your environment $PATH variable, so the command fails.

Last edited by ponce; 08-27-2019 at 06:49 AM.
 
Old 08-27-2019, 06:54 AM   #7
gopakumarpb
LQ Newbie
 
Registered: Dec 2016
Location: KERALA
Distribution: Slackware
Posts: 8

Original Poster
Rep: Reputation: Disabled
Quote:
@ponce :
you can't change permissions on system's startup scripts as user, you have to do it as root: re-execute the above commands from a root shell (you become root with "su -", note the space and the dash).

in your case sudo doesn't add /usr/sbin to your environment $PATH variable, so the command fails.
root@gopan:~# chmod +x /etc/rc.d/rc.cups-browsed
root@gopan:~# /etc/rc.d/rc.cups-browsed start
/etc/rc.d/rc.cups-browsed: line 119: /usr/sbin/cups-browsed: No such file or directory
cups-browsed: started.
root@gopan:~#
 
Old 08-27-2019, 06:58 AM   #8
ponce
LQ Guru
 
Registered: Aug 2004
Location: Pisa, Italy
Distribution: Slackware
Posts: 7,098

Rep: Reputation: 4175Reputation: 4175Reputation: 4175Reputation: 4175Reputation: 4175Reputation: 4175Reputation: 4175Reputation: 4175Reputation: 4175Reputation: 4175Reputation: 4175
/usr/sbin/cups-browsed is part of the package cups-filters: as you have the /etc/rc.d/rc.cups-browsed file in your system and this is part of the same package, I suppose you installed this package and then uninstalled it (for which reason I have no idea) or your filesystem got corrupted or whatever else...
try reinstalling it.

Last edited by ponce; 08-27-2019 at 07:02 AM.
 
Old 08-27-2019, 07:06 AM   #9
gopakumarpb
LQ Newbie
 
Registered: Dec 2016
Location: KERALA
Distribution: Slackware
Posts: 8

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by ponce View Post
/usr/sbin/cups-browsed is part of the package cups-filters: as you have the /etc/rc.d/rc.cups-browsed file in your system and this is part of the same package, I suppose you installed this package and then uninstalled it (for which reason I have no idea) or your filesystem got corrupted or whatever else...
try reinstalling it.
Thank you very much! I tried to reinstall cups. This might Have been the reason. Now, How can I rectify this?
 
Old 08-27-2019, 07:10 AM   #10
ponce
LQ Guru
 
Registered: Aug 2004
Location: Pisa, Italy
Distribution: Slackware
Posts: 7,098

Rep: Reputation: 4175Reputation: 4175Reputation: 4175Reputation: 4175Reputation: 4175Reputation: 4175Reputation: 4175Reputation: 4175Reputation: 4175Reputation: 4175Reputation: 4175
as I wrote above try reinstalling cups and the cups-filter package: if you are using slackpkg you can do it with (from a root shell)
Code:
slackpkg install cups
slackpkg reinstall cups

Last edited by ponce; 08-27-2019 at 07:41 AM.
 
Old 08-27-2019, 08:05 AM   #11
gopakumarpb
LQ Newbie
 
Registered: Dec 2016
Location: KERALA
Distribution: Slackware
Posts: 8

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by ponce View Post
as I wrote above try reinstalling cups and the cups-filter package: if you are using slackpkg you can do it with (from a root shell)
Code:
slackpkg install cups
slackpkg reinstall cups
There you are!!!
root@gopan:~# chmod +x /etc/rc.d/rc.cups-browsed
root@gopan:~# /etc/rc.d/rc.cups-browsed start
cups-browsed: started. [ OK ]
root@gopan:~#
Print not ready, but hope is there!
 
Old 08-29-2019, 12:06 AM   #12
gopakumarpb
LQ Newbie
 
Registered: Dec 2016
Location: KERALA
Distribution: Slackware
Posts: 8

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by ponce View Post
as I wrote above try reinstalling cups and the cups-filter package: if you are using slackpkg you can do it with (from a root shell)
Code:
slackpkg install cups
slackpkg reinstall cups
Thank you!
Now, my printer detects one of the printers in the network !

Last edited by gopakumarpb; 08-29-2019 at 12:07 AM.
 
Old 08-29-2019, 12:09 AM   #13
gopakumarpb
LQ Newbie
 
Registered: Dec 2016
Location: KERALA
Distribution: Slackware
Posts: 8

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by gopakumarpb View Post
Thank you!
Now, my printer detects one of the printers in the network !
Thank you !
Now, I am marking this as solved!
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
[SOLVED] Detecting parallel port printers in Slackware64-current gordydawg Slackware 2 03-05-2016 01:58 PM
[cups] "no printers found" - printer isn't recognized by CUPS over network Majin_Buu Linux - Server 3 06-18-2009 10:25 AM
RedHat 9 is not detecting the LAN card, but Win'98 is detecting the LAN card SKYNAT Linux - Newbie 4 12-28-2007 10:25 PM
recommendation on photo printers and general purpose printers raminolta Linux - Hardware 3 01-21-2004 12:27 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware

All times are GMT -5. The time now is 11:06 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration