Hi I want to use a Canon MP250 printer that is installed and shared by a Windows 10 machine.
Could you tell me step by step how to use this printer on my OpenSUSE machine that is connected to the same wifi network?
Thanks in advance.
Please confirm that, the printer is connected to the Windows machines by means of a USB cable and, Windows allows the printer to be shared by other machines on the LAN.
- Have you enabled the “Print Services for UNIX®
” on the Windows system?
Yes, I am using USB cable and Windows allows the printer to be shared by other machines on the LAN.
I think this manual has the details needed:
https://www.printmanager.com/cms.php?aid=82&fullpage=1&support=8
Best chose the Printing via LPD (Line Printer Daemon) option.
It is a bit old as there are no Win10 instructions, but you should do similar things.
I used LPD, whit the Windows IP address and turn off the firewall and got the following message
Scanning in the network did not find any host.
(Network issue or firewall active?)
See if the requisite port is open…
nmap -v -p 515 <Windows hostname or IP>
For example…
nmap -v -p 515 192.168.30.150
Starting Nmap 7.70 ( https://nmap.org ) at 2021-05-24 12:33 NZST
Initiating Ping Scan at 12:33
Scanning 192.168.30.150 [2 ports]
Completed Ping Scan at 12:33, 0.00s elapsed (1 total hosts)
Initiating Parallel DNS resolution of 1 host. at 12:33
Completed Parallel DNS resolution of 1 host. at 12:33, 0.03s elapsed
Initiating Connect Scan at 12:33
Scanning 192.168.30.150 [1 port]
Discovered open port 515/tcp on 192.168.30.150
Completed Connect Scan at 12:33, 0.00s elapsed (1 total ports)
Nmap scan report for 192.168.30.150
Host is up (0.0015s latency).
PORT STATE SERVICE
515/tcp open printer
Read data files from: /usr/bin/../share/nmap
Nmap done: 1 IP address (1 host up) scanned in 0.08 seconds
BTW, if using IPP then port 631 (TCP) is relevant…
nmap -v -p 631 <Windows hostname or IP>
sergio@positivo:~> sudo nmap -v -p 515
[sudo] senha para root:
Starting Nmap 7.70 ( https://nmap.org ) at 2021-05-24 15:35 -03
Read data files from: /usr/bin/../share/nmap
WARNING: No targets were specified, so 0 hosts scanned.
Nmap done: 0 IP addresses (0 hosts up) scanned in 0.13 seconds
Raw packets sent: 0 (0B) | Rcvd: 0 (0B)
sergio@positivo:~> sudo nmap -v -p 631 192.168.0.107
Starting Nmap 7.70 ( https://nmap.org ) at 2021-05-24 15:38 -03
Initiating ARP Ping Scan at 15:38
Scanning 192.168.0.107 [1 port]
Completed ARP Ping Scan at 15:38, 0.23s elapsed (1 total hosts)
Initiating SYN Stealth Scan at 15:38
Scanning tania (192.168.0.107) [1 port]
Completed SYN Stealth Scan at 15:38, 1.20s elapsed (1 total ports)
Nmap scan report for tania (192.168.0.107)
Host is up (0.12s latency).
PORT STATE SERVICE
631/tcp filtered ipp
MAC Address: 44:1E:A1:D2:2A:07 (Hewlett Packard)
Read data files from: /usr/bin/../share/nmap
Nmap done: 1 IP address (1 host up) scanned in 1.65 seconds
Raw packets sent: 3 (116B) | Rcvd: 1 (28B)
You didn’t specify an IP address or subnet (hence no meaningful result)!
This is better. IPP print services appear to be active on the Windows host.
I do not know where I put the IP address So I put in sequence and this is the result:
sergio@positivo:~> sudo nmap -v -p 515 192.168.0.107
Starting Nmap 7.70 ( https://nmap.org ) at 2021-05-25 15:41 -03
Initiating ARP Ping Scan at 15:41
Scanning 192.168.0.107 [1 port]
Completed ARP Ping Scan at 15:41, 0.22s elapsed (1 total hosts)
Initiating SYN Stealth Scan at 15:41
Scanning tania (192.168.0.107) [1 port]
Completed SYN Stealth Scan at 15:41, 0.95s elapsed (1 total ports)
Nmap scan report for tania (192.168.0.107)
Host is up (0.091s latency).
PORT STATE SERVICE
515/tcp filtered printer
MAC Address: 44:1E:A1:D2:2A:07 (Hewlett Packard)
Read data files from: /usr/bin/../share/nmap
Nmap done: 1 IP address (1 host up) scanned in 1.43 seconds
Raw packets sent: 3 (116B) | Rcvd: 1 (28B)
Okay, this is very beautiful, but what do I do with it?
I showed you how to do that and even provided an example a few posts back. (You can always refer to the man pages as well.)
So I put in sequence and this is the result:
sergio@positivo:~> sudo nmap -v -p 515 192.168.0.107
Starting Nmap 7.70 ( https://nmap.org ) at 2021-05-25 15:41 -03
Initiating ARP Ping Scan at 15:41
Scanning 192.168.0.107 [1 port]
Completed ARP Ping Scan at 15:41, 0.22s elapsed (1 total hosts)
Initiating SYN Stealth Scan at 15:41
Scanning tania (192.168.0.107) [1 port]
Completed SYN Stealth Scan at 15:41, 0.95s elapsed (1 total ports)
Nmap scan report for tania (192.168.0.107)
Host is up (0.091s latency).
PORT STATE SERVICE
515/tcp filtered printer
MAC Address: 44:1E:A1:D2:2A:07 (Hewlett Packard)
Read data files from: /usr/bin/…/share/nmap
Nmap done: 1 IP address (1 host up) scanned in 1.43 seconds
Raw packets sent: 3 (116B) | Rcvd: 1 (28B)
A filtered port could indicate that a firewall (eg Windows host firewall) is blocking the port.
Have you tried using CUPS to discover the shared printer? You may need to temporarily stop the openSUSE firewall (if active).
Debian and Windows Shared Printing mini-HOWTO: https://tldp.org/HOWTO/Debian-and-Windows-Shared-Printing/printing_to_windows.html
That is a different approach (using samba connectivity), but a valid alternative all the same.
I give up … Cups, Samba, YaST and etc. Nothing makes the printer work
Yes, but, within the Windows system, is the “Print Services for UNIX®” enabled?
Hard to help with this from a distance. Only you know the steps that you’ve taken and your posts tend to be a little vague. I can only attempt to provide limited remote guidance with this, (but much easier for me if I was at the machine of course).
What is the Windows name of your printer?
From a Windows console do
wmic printer list brief
then with a little luck you can configure CUPS with the appropriate URI manually. For example if using LPD, the URI would look something like…
lpd://hostname/queue or lpd://192.168.0.107/<your_shared_printer_name>
For samba printing instead it would look like this…
smb://192.168.0.7/<your_shared_printer_name>
Sometimes, you’ll need to provide credentials…
smb://username:password@<IP address or hostname>/<printersharename>
Try configuring via the CUPS web interface using a browser. Point it at “localhost:631/admin”
and select ‘Add Printer’. Follow the prompts given.
You will need to select the appropriate driver (by selecting make and model). I note there are gutenprint drivers for the MP250 printer, but I also know from experience that they don’t always work for Canon users. Canon does provide Linux drivers packages for some models and the MP250 is one of them. You may need to try the vendor-supplied driver See here…
Some additional guides that may be helpful to you:
https://www.linuxtopia.org/online_books/network_administration_guides/samba_reference_guide/29_CUPS-printing_131.html
https://www.papercut.com/kb/Main/LPDLPRwithNGMF#papercut-lpd-service
Part D of this Mint “How To” post…
https://forums.linuxmint.com/viewtopic.php?t=28397