Introduction
This article describes how I set up a print server using a Raspberry Pi (4).
My HP printer does have Wi-Fi, but it always acts up. Besides, I wanted my own server.
This article describes how I set up a print server using a Raspberry Pi (4).
My HP printer does have Wi-Fi, but it always acts up. Besides, I wanted my own server.
The RPI Imager Tool was very helpful in getting this done:
usernamepassword/etc/os-release command to confirm I had installed bullseyeSet up the RPI LAN like so:
sudo raspi-configOK and exit the config menuifgonfig to check that the wireless interface is now connectedwlan0 has an IP addressThis would be a good time to complete some other configurations:
sudo raspi-configTake the opportunity to update the RPI before continuing.
apt-get updateapt-get upgradeUsing static IPs is not good practise.
A better solution is to define the hostname of the RPI on the network router and use the same name in PuTTY to connect to the RPI remotely.
Use the following steps:
sudo apt install cupssudo usermod -a -G lpadmin username (or whoever the user is)sudo cupsctl --remote-anysudo systemctl restart cupsUse the following steps
sudo apt install sambasudo nano /etc/samba/smb.conf
# CUPS printing.
[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 = /var/lib/samba/printers
browseable = yes
read only = no
guest ok = no
sudo systemctl restart smbdsudo apt-get install hplip, hostname -IOn your Windows Computer: