CUPS un server di stampa per Linux e samba —
CUPS (Common Unix Printig System) sviluppato da Apple è de facto il server di stampa di Linux e Samba.
Da root installare con apt cups e quindi in /etc/cups modificare il cupsd.conf in questo modo (le subnet sono indicative)
#Listen localhost:631
Port 631
Listen /run/cups/cups.sock
# Show shared printers on the local network.
#Browsing On
Browsing off
BrowseLocalProtocols dnssd
# Default authentication type, when authentication is required…
DefaultAuthType Basic
# Web interface setting…
WebInterface Yes
# Restrict access to the server…
<Location />
Allow localhost
Allow From 127.0.0.1
Allow From 172.27.200.0/24
Allow From 192.168.2.0/23
Order allow,deny
</Location>
# Restrict access to the admin pages…
<Location /admin>
Allow localhost
Allow From 127.0.0.1
Allow From 172.27.200.0/24
Allow From 192.168.2.0/23
Order allow,deny
</Location>
# Restrict access to configuration files…
<Location /admin/conf>
AuthType Default
Require user @SYSTEM
Allow localhost
Allow From 127.0.0.1
Allow From 172.27.200.0/24
Allow From 192.168.2.0/23
Order allow,deny
</Location>
Lasciando il resto inalterato, restartare il servizio e quindi con un browser puntare a http://indirizzo_server_cups:631
li aggiungere le stampanti dopo aver fornito le credenziali di root.
La generazione può esser di diversi tipi io ho scelto questa:
lpd://nome_stampante/nome_coda_di_stampa ad esempio lpd://galvanica/galvanica facendo coincidere nome host e nome coda quindi dare nome, descrizione e location della stampante nel modulo seguente continuare e scegliere il driver raw il driver vero e proprio lo si mette sui client, a questo punto la generazione della stampante è finita.
Categorised as: Linux | Samba | Work
Comments are disabled on this post