Impostazione manuale di un driver Windows per una coda CUPS

From RVM Wiki
Revision as of 08:59, 17 October 2006 by Gabriele.vivinetto (talk | contribs)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search
  • Scaricare il driver per Windows 2003 Server"
  • Installarlo da una macchina nel dominio in "Proprietà Server"
  • Da linux, ottenere l'elenco dei driver:
sudo rpcclient -U'administrator%gal80xl700' -c 'enumdrivers' MPSERVER

[Windows NT x86]
Printer Driver Info 1:
        Driver Name: [Lexmark E240]

Printer Driver Info 1:
        Driver Name: [Lexmark E321]

Printer Driver Info 1:
        Driver Name: [Lexmark E232]
  • Elencare le code di stampa configurate:
sudo rpcclient -U'administrator%gal80xl700' -c 'enumprinters' MPSERVER
        flags:[0x800000]
        name:[\\mpserver\MPPRT11]
        description:[\\mpserver\MPPRT11,,]
        comment:[]

        flags:[0x800000]
        name:[\\mpserver\MPPRT12]
        description:[\\mpserver\MPPRT12,,]
        comment:[]
  • Impostare il driver per la coda desiderata:
sudo rpcclient -U'administrator%gal80xl700' -c 'setdriver MPPRT11 "Lexmark E232"' MPSERVER
Succesfully set MPPRT11 to driver Lexmark E232.
  • Controllare:
sudo rpcclient -U'administrator%gal80xl700' -c 'enumprinters' MPSERVER
        flags:[0x800000]
        name:[\\mpserver\MPPRT11]
        description:[\\mpserver\MPPRT11,Lexmark E232,]
        comment:[]

        flags:[0x800000]
        name:[\\mpserver\MPPRT12]
        description:[\\mpserver\MPPRT12,,]
        comment:[]
  • Questo script provvede a farlo in massa
#!/bin/bash
for CODA in 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 151
do
        echo Coda $CODA
        sudo rpcclient -U'administrator%gal80xl700' -c "setdriver MPPRT$CODA 'Lexmark E232'" MPSERVER
done