From 64b1eec8d184e1fc3a4ce1f7936914c33d652e7e Mon Sep 17 00:00:00 2001
From: Recolic Keghart <root@recolic.net>
Date: Tue, 27 Oct 2020 12:00:13 +0000
Subject: [PATCH] Update README.md

---
 README.md | 19 +++++++++++++++++++
 1 file changed, 19 insertions(+)

diff --git a/README.md b/README.md
index 0651b3b..aefc89a 100644
--- a/README.md
+++ b/README.md
@@ -391,3 +391,22 @@ Then everything is done. Admin password is `recolic, genpasswd(recolic.net, v4)`
 
 all files inside /srv/html. Migrate together with www.recolic.net. 
 
+## LAN printer (CUPS)
+
+- build from stretch (from archwiki)
+
+```
+pacman -S cups avahi nss-mdns
+```
+
+edit /etc/nsswitch.conf: find the `hosts` line, add `mdns_minimal [NOTFOUND=return]` BEFORE `resolve ... dns`. 
+
+To allow LAN to access the web interface, do
+
+```sh
+vim /etc/cups/cupsd.conf # EDIT: listen 0.0.0.0:631
+cupsctl --remote-admin --remote-any --share-printers
+```
+
+Enable and start `avahi-daemon.service` and `org.cups.cupsd.service`. 
+
-- 
GitLab