RPi Zero Print Server - a-maze-1ng/MISC GitHub Wiki
Integrating offline printers into the network using a raspberry pi zero
-
Install
Raspberry Pi OS (Legacy, 32-bit)
with Raspberry Pi Imager -
sudo apt-get update
-
sudo apt-get upgrade -y && clear
-
create
Pi
user (Raspberry Pi Imager does not like to createPi
as default) -
sudo adduser pi
-
sudo visudo
-
Add
pi
user to root privilegepi ALL=(ALL:ALL) ALL
-
sudo apt-get install samba cups -y
8.2sudo apt install printer-driver-splix
install printer driver -
Backup cupsd.conf
sudo cp /etc/cups/cupsd.conf /etc/cups/cupsd.conf_backup
-
sudo nano /etc/cups/cupsd.conf
-
Change
Listen 0.0.0.0:631
in cupsd.conf -
Add
ServerAlias *
Allow all
-
sudo gpasswd -a pi lpadmin
-
sudo systemctl enable cups
-
sudo systemctl start cups
-
set up printer
https:\\<IP-Adress>:631
16.1
-
sudo nano /etc/samba/smb.conf
-
sudo systemctl enable smbd
-
sudo systemctl start smbd
21. use the right printer driver in Windows!
- install python
- check if python is installed -> open cmd prompt as admin
python --version
- check if pip is installed
pip --verion
- install esptool see https://tasmota.github.io/docs/Getting-Started/
python -m pip install esptool
- attach USB to serial adapter to ESP32 module and the PC, check in windows device manager which COM port the serial adapter is
- backup firmware
python -m esptool --port COM4 read_flash 0x00000 0x100000 fwbackup2.bin
- delete flash storage of the ESP32 module
python -m esptool --port COM4 erase_flash
- download tasmota.bin from tasmota website, add to the system32 directory. tasmota32.factory.bin for the first time flash should be used!
python -m esptool write_flash 0x0 tasmota32.factory.bin
- after flash is finished, disconnect ESP32 module. The normal tasmota GUI should appear.