Home / RaspberryPi /
sudo apt update && sudo apt upgrade -ylsusb to confirm the printer is connectedsudo apt install cupssudo usermod –a –G lpadmin your_usernameBefore you can setup the printer, you need to edit the conf file:
nano -B /etc/cups/cupsd.confIt should look similar to this after editing:
Don't include the comments as I don't know if these are actually comments for the config file
Listen localhost:631
Listen /var/run/cups/cups.sock
Listen 192.168.1.2:631 ## whatever your Pi IP is
Browsing On
BrowseLocalProtocols dnssd
DefaultAuthType Basic
WebInterface Yes
<Location />
Order allow,deny
Allow localhost
Allow 192.168.1.* ## whatever your IP scheme is
</Location>
<Location /admin>
Order allow,deny
Allow localhost
Allow 192.168.1.* ## whatever your IP scheme is
</Location>
sudo service cups restartnano -B /etc/samba/smb.confIn the print section, match these settings:
# CUPS printing. See also the cupsaddsmb(8) manpage in the
# cupsys-client package.
printing = cups
printcap name = cups
[printers]
comment = All Printers
browseable = no
path = /var/spool/samba
printable = yes
guest ok = yes
read only = yes
create mask = 0700
# Windows clients look for this share name as a source of downloadable
# printer drivers
[print$]
comment = Printer Drivers
path = /usr/share/cups/drivers
browseable = yes
read only = yes
guest ok = no
sudo /etc/init.d/samba restartthis document last modified: October 29 2017 23:55
Home / RaspberryPi /