Seth the hostname:
[bash]hostnamectl set-hostname printserver1[/bash]
Install a basic print server:
[bash]apt-get install lprng[/bash]
Create a printer configuration file:
[bash]nano /etc/printcap[/bash]
[code language=”text”]dymoprinter|localprinter:\
:lp=/dev/usb/lp0:\
:sd=/var/spool/lpd/dymoprinter:\
:mx#0:\
:sh:[/code]
Enable communication on port 515:
[bash]nano /etc/lprng/lpd.conf[/bash]
Then add:
[code language=”text”]lpd_listen_port = 515[/code]
Edit this file:
[bash]nano /etc/lprng/lpd.perms[/bash]
Ensure you comment out this line:
[code language=”text”]REJECT NOT SERVER[/code]
You can check logs by:
[bash]lpq -v[/bash]
If you wish to use WiFi use CLI based WiFi connection:
[bash]nmtui[/bash]
I typically install vnstat as well as dark stat (configured to port :80); just to allow HTTP communication. In Windows, assign the LPR name and enable LPR Byte Counting. SNMP Settings do not need to be set.
