nomadbsd / handbook

NomadBSD handbooklet
BSD 2-Clause "Simplified" License
8 stars 3 forks source link

Samsung Xpress C430W printer. #10

Open globetrotterdk opened 2 years ago

globetrotterdk commented 2 years ago

I am trying to get a Samsung Xpress C430W printer working with NomadBSD. I currently have the color laser printer connected by an ethernet cable to my router. I need to find the IP address, the DNS host name of the printer(or both) and somehow set it up so that I can print from NomadBSD. CUPS doesn't detect the printer when connected via the ethernet. CUPS did detect the printer when connected to USB, but appeared not to be able to use the correct PPD file provided with the Universal Linux Driver (ULD) that is currently provided by HP, as CUPS was never able to print.

I have as stated above, now connected the printer via ethernet, in the hope of (if nothing else) I will be able to print using netcat, but to do that, I need to figure out the printer IP or DNS host name... Any ideas?

mrclksr commented 2 years ago

See https://www.cups.org/doc/network.html

If the command doesn't show your printer, try:

$ avahi-browse -a -r -t
globetrotterdk commented 2 years ago

Thanks for the quick reply. No, nothing. However, this makes me think that the problem is partially the fault of IPFW. Unfortunately, It seems like it isn't possible to use the ipfwGUI to open up the necessary ports: 631 tcp, 631 udp, 9100 tcp and 9100 udp Even I am successful at this, I still will not be able to get CUPS to work as long as CUPS doesn't work with my printer (never a problem in Linux). Of course this could be the result of the incorrect location or permissions of the PPD files, as I have been trying to get it to work from my ~/Downloads/uld/noarch/share/ppd/ folder...

mrclksr commented 2 years ago

Thanks for the quick reply. No, nothing. However, this makes me think that the problem is partially the fault of IPFW. Unfortunately, It seems like it isn't possible to use the ipfwGUI to open up the necessary ports: 631 tcp, 631 udp, 9100 tcp and 9100 udp

I don't think ipfw is the problem here, however, to be really sure, you can disable ipfw, and check if it makes a difference. Try to query your printer via /usr/local/libexec/cups/backend/snmp @LOCAL If the printer does not answer, look up its IP in the router menu.

Of course this could be the result of the incorrect location or permissions of the PPD files, as I have been trying to get it to work from my ~/Downloads/uld/noarch/share/ppd/ folder...

Copy the *.ppd file to /usr/local/share/ppd/Samsung:

$ sudo mkdir /usr/local/share/ppd/Samsung
$ sudo cp ~/Downloads/uld/noarch/share/ppd/*.ppd /usr/local/share/ppd/Samsung/
$ sudo service cupsd restart
globetrotterdk commented 2 years ago

I had to evacuate, so it will be a while before my computer and printer meet again, but thank you for the information.

On 8 Feb 2022, at 16.36, mrclksr @.***> wrote:

 Thanks for the quick reply. No, nothing. However, this makes me think that the problem is partially the fault of IPFW. Unfortunately, It seems like it isn't possible to use the ipfwGUI to open up the necessary ports: 631 tcp, 631 udp, 9100 tcp and 9100 udp

I don't think ipfw is the problem here, however, to be really sure, you can disable ipfw, and check if it makes a difference. Try to query your printer via /usr/local/libexec/cups/backend/snmp @LOCAL If the printer does not answer, look up its IP in the router menu.

Of course this could be the result of the incorrect location or permissions of the PPD files, as I have been trying to get it to work from my ~/Downloads/uld/noarch/share/ppd/ folder...

Copy the *.ppd file to /usr/local/share/ppd/Samsung:

$ sudo mkdir /usr/local/share/ppd/Samsung $ sudo cp ~/Downloads/uld/noarch/share/ppd/*.ppd /usr/local/share/ppd/Samsung/ $ sudo service cupsd restart — Reply to this email directly, view it on GitHub, or unsubscribe. Triage notifications on the go with GitHub Mobile for iOS or Android. You are receiving this because you authored the thread.

mrclksr commented 2 years ago

I had to evacuate, so it will be a while before my computer and printer meet again, but thank you for the information.

What happend?