dit document beschrijft hoe je CUPS installeert als print server op een Raspberry pi.
Note: Indien je installeert op een VMware VM, voeg dan eerst hardware toe
apt-get install cups
usermod -a -G lpadmin pi
# Only listen for connections from the local machine Listen localhost:631
# Only listen for connections from the local machine Port 631
#Allow access to Cups server from known DNS alias ServerAlias *
# Restrict access to the server... <Location /> Order allow,deny Allow @LOCAL Allow from x.x.x.* #vul hier jouw admin vlan in </Location> ... # Restrict access to the admin pages... <Location /admin> Order allow,deny Allow @LOCAL Allow from x.x.x.* #vul hier jouw admin vlan in </Location>
systemctl restart cups
sudo tailf /var/log/messages
Dec 8 21:25:40 raspberrypi kernel: [167791.004767] usbcore: registered new interface driver usblp Dec 8 22:11:49 raspberrypi kernel: [170559.907849] usb 1-1.2: new full-speed USB device number 5 using dwc_otg Dec 8 22:11:49 raspberrypi kernel: [170560.042399] usb 1-1.2: New USB device found, idVendor=0922, idProduct=0020 Dec 8 22:11:49 raspberrypi kernel: [170560.042424] usb 1-1.2: New USB device strings: Mfr=1, Product=2, SerialNumber=3 Dec 8 22:11:49 raspberrypi kernel: [170560.042436] usb 1-1.2: Product: DYMO LabelWriter 450 Dec 8 22:11:49 raspberrypi kernel: [170560.042445] usb 1-1.2: Manufacturer: DYMO Dec 8 22:11:49 raspberrypi kernel: [170560.042454] usb 1-1.2: SerialNumber: 10050522172469 Dec 8 22:11:49 raspberrypi kernel: [170560.060960] usblp 1-1.2:1.0: usblp0: USB Bidirectional printer dev 5 if 0 alt 0 proto 2 vid 0x0922 pid 0x0020 Dec 8 22:11:49 raspberrypi mtp-probe: checking bus 1, device 5: "/sys/devices/platform/soc/20980000.usb/usb1/1-1/1-1.2" Dec 8 22:11:49 raspberrypi mtp-probe: bus: 1, device: 5 was not an MTP device
sudo lpstat -p printer DYMO_LabelWriter_450 is idle. enabled since Sun 09 Dec 2018 22:16:56 GMT
lp -d DYMO_LabelWriter_450 /etc/passwd
sudo lpinfo -v
Om de printers vervolgens in Windows beschikbaar te maken, dien je nog samba te installeren
# Restrict access to the server... <Location /> Order allow,deny Allow from 10.11.70.* </Location>