Servidor impresión. Configurando Raspberry PI 9

Instalamos servidor:
sudo apt-get install cups

Damos permisos para usar cups:
sudo usermod -a -G lpadmin tu_usuario

Abrimos firewall:
sudo ufw allow 631

Añadimos nuestra LAN:
sudo vi /etc/cups/cupsd.conf

#Listen localhost:631
Listen *:631
Listen /var/run/cups/cups.sock

# Restrict access to the server...
<location></location>
  Order allow,deny
  Allow 192.168.1.*

# Restrict access to the admin pages...
<location></location>
  Order allow,deny
  Allow 192.168.1.*

# Restrict access to configuration files...
<location /admin/conf>
  AuthType Default
  Require user @SYSTEM
  Allow 192.168.1.*
  Order allow,deny
</location>


Reinciamos servidor:
sudo service cups restart

Accedemos a la URL: http://nuestra_raspberry_IP:631 y añadimos la impresora marcando "Share this printer".

No comments:

Post a Comment