SlackwareThis 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.
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.
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
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
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.
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.
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.
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.
@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:~#
/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.
/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?
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!
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.