Of course, I know it needed samba, but I had difficulty sharing one to Windows PC which I didn’t really get into much since the day I moved away from Windows. This was what I did to get it work.

$ /etc/samba/smb.conf

Find these lines and uncomment them; if you can’t find, type.

printcap name = cups
printing = cups

[printers] section should look similar to this

comment = All Printers
browseable = yes
path = /var/spool/samba
printable = yes
public = yes
guest ok = yes
create mask = 0700
use client driver = yes
path = /tmp

Then you have to restart samba.

$ sudo service smbd restart

For some, you might have to use samba instead of smbd. That’s varied by distros. However, after adding printer to your Windows box, you should be able to print. I find it’s easier to navigate to \\linux-box-name in file explorer. Find printer there, then right-click to connect and add there. Add printer via Devices and Printer and auto discovery thing isn’t impressed me 99% of the time.