#1 Le 06/03/2012, à 15:17
- Squashfs
Script d'installation automatique de l'imprimante Brother DCP-750CW
Salut à tous !
Voici mon script d'installation automatique de l'imprimante Brother DCP-750CW :
#!/bin/bash
lsusb | grep DCP-750CW
if [ "$?" = "0" ]
then
wget -c http://www.brother.com/pub/bsc/linux/dlf/dcp750cwlpr-1.0.1-1.i386.deb
wget -c http://www.brother.com/pub/bsc/linux/dlf/dcp750cwcupswrapper-1.0.1-1.i386.deb
wget -c http://www.brother.com/pub/bsc/linux/dlf/brscan2-0.2.5-1.i386.deb
wget -c http://www.brother.com/pub/bsc/linux/dlf/brscan-skey-0.2.1-3.i386.deb
mkdir -p /var/spool/lpd/dcp750cw
dpkg -i dcp750cwlpr* dcp750cwcupswrapper* brscan2* brscan-skey*
rm dcp750cwlpr* dcp750cwcupswrapper* brscan2* brscan-skey*
brprintconf_dcp750cw -pt A4
HOM=($(ls /home))
USE=$((${#HOM[@]}-1))
until [ "$USE" = "-1" ]
do
adduser ${HOM[$USE]} lp
USE=$(($USE-1))
done
fi
exit 0
Dernière modification par Squashfs (Le 01/11/2013, à 03:07)
Hors ligne
#2 Le 14/07/2012, à 22:48
- Jean-Martin
Re : Script d'installation automatique de l'imprimante Brother DCP-750CW
Bonjour,
Comment fais-tu pour exécuter ce script ?
Je l'ai recopié dans un fichier exécutable, mais je ne sais pas comment autoriser les actions mkdir et dpkg.
Je suis obligé de faire un sudo en ligne de commande pour les exécuter, comment passer la même consigne au script ?
Merci de ta réponse.
Hors ligne
#3 Le 15/07/2012, à 11:46
- alca94
Re : Script d'installation automatique de l'imprimante Brother DCP-750CW
@Jean-martin
vous avez un script tout fait et qui marche sur pas mal d'imprimante (sinon toutes)
http://forum.ubuntu-fr.org/viewtopic.php?id=652931
POUR METTRE LES RETOURS DU "TERMINAL" voir les explications sur ce post
https://forum.ubuntu-fr.org/viewtopic.p … #p17345641
Hors ligne