(SOLVED) Easy Windows Printer Setup?

Questions about hardware, drivers and peripherals
Forum rules
Before you post read how to get help. Topics in this forum are automatically closed 6 months after creation.
Locked
chiefjim
Level 6
Level 6
Posts: 1157
Joined: Sun Jun 07, 2009 7:26 am
Location: South Texas, USA

(SOLVED) Easy Windows Printer Setup?

Post by chiefjim »

I've been using a NAS attached printer so long I've forgotten how to setup networked printers. A friend which I've introduced to Mint 9 can't configure his Windows XP hosted printers. Trying to find a solution I've nearly duplicated his setup and am having the same difficulty.

XP box 192.168.1.104
HP_PSC is connected via USB printer sharing is on

CUPS can't find it. Have tried IPP/HTTP/SMB Everything looks good until I click verify (in the Gnome printer utility) What step(s) might I be missing?
Last edited by LockBot on Wed Dec 28, 2022 7:16 am, edited 2 times in total.
Reason: Topic automatically closed 6 months after creation. New replies are no longer allowed.
Mint-21.0 Mate 64 bit / LMDE-5 64 bit
Gigabyte H370M D3H
Intel G3258
Crucial Ballistic Sport 32GB DDR4 2400
8TB HDD Seagate Baracuda 5400rpm
altair4
Level 20
Level 20
Posts: 11461
Joined: Tue Feb 03, 2009 10:27 am

Re: Easy Windows Printer Setup?

Post by altair4 »

Can the Mint machine see the WinXP attached printer?
This should show all the shares on the lan including the WinXP shared printer:

Code: Select all

smbtree
You should also be able to see it from the Add button in the Gnome Printer utility under: Network Printer > Windows Printer via Samba
Please add a [SOLVED] at the end of your original subject header if your question has been answered and solved.
chiefjim
Level 6
Level 6
Posts: 1157
Joined: Sun Jun 07, 2009 7:26 am
Location: South Texas, USA

Re: Easy Windows Printer Setup?

Post by chiefjim »

altair4 wrote:Can the Mint machine see the WinXP attached printer?
This should show all the shares on the lan including the WinXP shared printer:

Code: Select all

smbtree
You should also be able to see it from the Add button in the Gnome Printer utility under: Network Printer > Windows Printer via Samba
No.

MSHOME
\\JIM-XP
cli_start_connection: failed to connect to JIM-XP<20> (0.0.0.0). Error NT_STATUS_UNSUCCESSFUL


Sharing status on the XP box was rechecked and rebooted as well.
Mint-21.0 Mate 64 bit / LMDE-5 64 bit
Gigabyte H370M D3H
Intel G3258
Crucial Ballistic Sport 32GB DDR4 2400
8TB HDD Seagate Baracuda 5400rpm
altair4
Level 20
Level 20
Posts: 11461
Joined: Tue Feb 03, 2009 10:27 am

Re: Easy Windows Printer Setup?

Post by altair4 »

Make sure the samba / SMB ports are open on both machines:
Install nmap:

Code: Select all

sudo apt-get install nmap
Run this twice:

Code: Select all

sudo nmap -sS -sU -T4 192.168.0.100
Once substituting 192.168.0.100 with the ip address of the WinXP machine.
And again with the ip address of the Mint machine.

What you're looking for are the following ports to be open:
139/tcp open netbios-ssn
445/tcp open microsoft-ds
137/udp open|filtered netbios-ns
138/udp open|filtered netbios-dgm
EDIT: You said you used the smb format to try to connect to the printer. Did you do it by ip address:

Code: Select all

smb://192.168.1.104/WinXP-Printer_name
Please add a [SOLVED] at the end of your original subject header if your question has been answered and solved.
chiefjim
Level 6
Level 6
Posts: 1157
Joined: Sun Jun 07, 2009 7:26 am
Location: South Texas, USA

Re: Easy Windows Printer Setup?

Post by chiefjim »

Install nmap said I had the most current version already installed.

Interesting ports on 192.168.1.101: MINT
Not shown: 1992 closed ports
PORT STATE SERVICE
139/tcp open netbios-ssn
445/tcp open microsoft-ds
5900/tcp open vnc
68/udp open|filtered dhcpc
137/udp open|filtered netbios-ns
138/udp open|filtered netbios-dgm
631/udp open|filtered ipp
5353/udp open|filtered zeroconf


Interesting ports on 192.168.1.104: XP
Not shown: 1000 open|filtered ports, 997 filtered ports
PORT STATE SERVICE
139/tcp open netbios-ssn
445/tcp open microsoft-ds
2869/tcp open unknown

Tried setting up via IP address but couldn't connect
Mint-21.0 Mate 64 bit / LMDE-5 64 bit
Gigabyte H370M D3H
Intel G3258
Crucial Ballistic Sport 32GB DDR4 2400
8TB HDD Seagate Baracuda 5400rpm
altair4
Level 20
Level 20
Posts: 11461
Joined: Tue Feb 03, 2009 10:27 am

Re: Easy Windows Printer Setup?

Post by altair4 »

You've got a couple of problems here. One is netbios name resolution which may be due to the udp ports not being open on WinXP but that really doesn't matter if you're trying to access the printer by ip address.

If you go into /etc/cups/printers.conf and look for that printer you should see a line that looks like this:
DeviceURI smb://192.168.1.104/Whatever-yourPrinterIsNamed
Is that what you see?

EDIT: I've got to shut down for the day so let me leave you with some things to check:

[] Play with the capitalization of the WinXP printer name.

[] WinXP sometimes gets confused over what an anonymous remote guest is so you might want to alter the DeviceURI to explicitly state "guest":
DeviceURI smb://guest@192.168.1.104/Whatever-yourPrinterIsNamed
Please add a [SOLVED] at the end of your original subject header if your question has been answered and solved.
chiefjim
Level 6
Level 6
Posts: 1157
Joined: Sun Jun 07, 2009 7:26 am
Location: South Texas, USA

Re: Easy Windows Printer Setup?

Post by chiefjim »

altair4 wrote:You've got a couple of problems here. One is netbios name resolution which may be due to the udp ports not being open on WinXP but that really doesn't matter if you're trying to access the printer by ip address.
The "fix" was returning to the XP box, deleting the printer, then reinstalling from scratch with the manufacturer supplied install disc. After that the browse function was able to find the WinXP printer.
Mint-21.0 Mate 64 bit / LMDE-5 64 bit
Gigabyte H370M D3H
Intel G3258
Crucial Ballistic Sport 32GB DDR4 2400
8TB HDD Seagate Baracuda 5400rpm
User avatar
capricornus
Level 2
Level 2
Posts: 59
Joined: Fri Dec 29, 2006 10:11 am

Re: (SOLVED) Easy Windows Printer Setup?

Post by capricornus »

I use a HP2055d on a Synology 109 NAS.
With Ubuntu of Mint GNOME, I easily get connected thru SAMBA:
smb://NETWORKNAME/DISKSTATION/usbprinter
Locked

Return to “Hardware Support”