IT/Software/Networking/PrinterSharing: Difference between revisions
Walttheboss (talk | contribs) (Created page with " === Share a printer so that Windows clients can see and print. === You need to have samba installed. CUPS will handle this almost automatically. You need to make two sm...") |
Walttheboss (talk | contribs) |
||
(2 intermediate revisions by the same user not shown) | |||
Line 1: | Line 1: | ||
===Notes:=== | |||
This seems to never be completely clear. Just keep trying. | |||
Sometimes it all works out of the box. | |||
Other times you might as well start fasting and praying. | |||
=== Share a printer so that Windows clients can see and print. === | ===Sharing tweaks on the Ubuntu network=== | ||
Usually if you add a printer to a machine via usb and then select "share this printer" or "share printers connected to this system" it will just work. | |||
If not there are a few tweaks you can make. | |||
Here are some helps. [https://www.techrepublic.com/article/how-to-configure-a-print-server-with-ubuntu-server-cups-and-bonjour/ TechRepublic] | |||
in /etc/cups/cupsd.conf you need to allow browsing | |||
First look for the line: | |||
<code> Browsing Off</code> | |||
Change that line to: | |||
<code> Browsing On</code> | |||
==== NOT Seeing network Printers ==== | |||
Sometimes you do NOT want to see all the printers on the network. | |||
In /etc/cups/cups-browsed-conf | |||
change BrowseRemoteProtocols to "none" | |||
Restart cups. | |||
===Share a printer so that Windows clients can see and print.=== | |||
Latest revision as of 10:47, 30 August 2022
Notes:
This seems to never be completely clear. Just keep trying.
Sometimes it all works out of the box.
Other times you might as well start fasting and praying.
Sharing tweaks on the Ubuntu network
Usually if you add a printer to a machine via usb and then select "share this printer" or "share printers connected to this system" it will just work.
If not there are a few tweaks you can make.
Here are some helps. TechRepublic
in /etc/cups/cupsd.conf you need to allow browsing
First look for the line:
Browsing Off
Change that line to:
Browsing On
NOT Seeing network Printers
Sometimes you do NOT want to see all the printers on the network.
In /etc/cups/cups-browsed-conf
change BrowseRemoteProtocols to "none"
Restart cups.
You need to have samba installed.
CUPS will handle this almost automatically.
You need to make two small chnage to the /etc/samba/smb.conf file.
In the [printers] section:
browseable = yes guest ok = yes
When done, restart Samba:
sudo service smbd restart sudo service nmbd restart
Also, one would want to allow the following ports through a firewall (ufw for example) via:
sudo ufw allow 139/tcp sudo ufw allow 445/tcp sudo ufw allow 137/udp sudo ufw allow 138/udp