 apt install cups cups-filters  avahi-daemon
 # autorisons les connexions par le réseau
 sed -i 's/^Listen .*/Listen 0.0.0.0:631/' /etc/cups/cupsd.conf
 # donnons les droits de navigation sur https://ip:631
 sed -i '/<Location \/>/,/<\/Location>/ s/Order allow,deny/&\n  Allow @LOCAL/' /etc/cups/cupsd.conf
 # donnons les droits à https://ip:631/admin   pour ajouter une imprimante
 sed -i '/<Location \/admin>/,/<\/Location>/ s/Order allow,deny/&\n  Allow @LOCAL/' /etc/cups/cupsd.conf
 systemctl restart cups
 
 usermod -aG lpadmin  azerty
  
 lpstat -v
 
 echo "se connecter à l IP sur le port :631  (user linux du groupe lpadmin)