[INIT.D] Installer CUPS

Vérifions. ^^

root@raspberrypi:/home/pi# ls -la /bin/true ls: impossible d'accéder à /bin/true: Aucun fichier ou dossier de ce type root@raspberrypi:/home/pi# rm -i /etc/init.d/cups && rm -i /etc/init.d/cups.dpkg-new rm: impossible de supprimer « /etc/init.d/cups »: Aucun fichier ou dossier de ce type root@raspberrypi:/home/pi# ls -laR /etc/init.d/ /etc/init.d/: total 316 drwxr-xr-x 2 root root 4096 mars 20 16:42 . drwxr-xr-x 108 root root 4096 mars 23 00:31 .. -rwxr-xr-x 1 root root 5195 sept. 6 2011 alsa-utils -rwxr-xr-x 1 root root 7820 déc. 22 21:59 apache2 -rwxr-xr-x 1 root root 2253 mars 6 2013 avahi-daemon -rwxr-xr-x 1 root root 1276 oct. 15 2012 bootlogs -rwxr-xr-x 1 root root 1281 juil. 14 2013 bootmisc.sh -rwxr-xr-x 1 root root 950 déc. 18 2013 cgroup-bin -rwxr-xr-x 1 root root 3816 juil. 14 2013 checkfs.sh -rwxr-xr-x 1 root root 1099 juil. 14 2013 checkroot-bootclean.sh -rwxr-xr-x 1 root root 9673 juil. 14 2013 checkroot.sh -rwxr-xr-x 1 root root 1379 déc. 9 2011 console-setup -rwxr-xr-x 1 root root 3033 juil. 9 2012 cron lrwxrwxrwx 1 root root 9 mars 16 09:36 cupsys -> /bin/true -rwxr-xr-x 1 root root 2813 févr. 5 17:00 dbus -rw-r--r-- 1 root root 1728 mars 19 14:08 .depend.boot -rw-r--r-- 1 root root 856 mars 19 14:08 .depend.start -rw-r--r-- 1 root root 735 mars 19 14:08 .depend.stop -rwxr-xr-x 1 root root 2148 juin 9 2012 dphys-swapfile -rwxr-xr-x 1 root root 824 sept. 5 2014 fake-hwclock -rwxr-xr-x 1 root root 1329 oct. 15 2012 halt -rwxr-xr-x 1 root root 1423 oct. 15 2012 hostname.sh -rwxr-xr-x 1 root root 3880 déc. 22 2012 hwclock.sh -rwxr-xr-x 1 root root 4698 mai 1 2012 ifplugd -rwxr-xr-x 1 root root 7592 avril 28 2012 kbd -rwxr-xr-x 1 root root 1591 oct. 1 2012 keyboard-setup -rwxr-xr-x 1 root root 1293 oct. 15 2012 killprocs -rwxr-xr-x 1 root root 1990 mai 20 2012 kmod -rwxr-xr-x 1 root root 2610 juil. 25 2011 lightdm lrwxrwxrwx 1 root root 9 mars 16 09:36 lpd -> /bin/true lrwxrwxrwx 1 root root 9 mars 16 09:36 lprng -> /bin/true -rwxr-xr-x 1 root root 995 oct. 15 2012 motd -rwxr-xr-x 1 root root 670 févr. 24 2013 mountall-bootclean.sh -rwxr-xr-x 1 root root 2128 févr. 24 2013 mountall.sh -rwxr-xr-x 1 root root 1508 juil. 14 2013 mountdevsubfs.sh -rwxr-xr-x 1 root root 1413 juil. 14 2013 mountkernfs.sh -rwxr-xr-x 1 root root 678 févr. 24 2013 mountnfs-bootclean.sh -rwxr-xr-x 1 root root 2440 oct. 15 2012 mountnfs.sh -rwxr-xr-x 1 root root 1731 juil. 14 2013 mtab.sh -rwxr-xr-x 1 root root 4322 mars 14 2013 networking -rwxr-xr-x 1 root root 6491 juin 15 2013 nfs-common -rwxr-xr-x 1 root root 1814 févr. 4 21:03 ntp -rwxr-xr-x 1 root root 1313 juin 30 2012 plymouth -rwxr-xr-x 1 root root 725 juin 30 2012 plymouth-log -rwxr-xr-x 1 root root 1346 mai 20 2012 procps -rwxr-xr-x 1 root root 1139 janv. 30 00:56 raspi-config -rwxr-xr-x 1 root root 6120 oct. 15 2012 rc -rwxr-xr-x 1 root root 782 oct. 15 2012 rc.local -rwxr-xr-x 1 root root 117 oct. 15 2012 rcS -rw-r--r-- 1 root root 2427 oct. 15 2012 README -rwxr-xr-x 1 root root 639 oct. 15 2012 reboot -rwxr-xr-x 1 root root 1074 juil. 14 2013 rmnologin -rwxr-xr-x 1 root root 2344 juin 15 2012 rpcbind -rwxr-xr-x 1 root root 4395 déc. 13 2012 rsync -rwxr-xr-x 1 root root 3054 oct. 7 23:31 rsyslog -rwxr-xr-x 1 root root 2348 avril 22 2010 saned -rwxr-xr-x 1 root root 3200 oct. 15 2012 sendsigs -rwxr-xr-x 1 root root 590 oct. 15 2012 single -rw-r--r-- 1 root root 4290 oct. 15 2012 skeleton -rwxr-xr-x 1 root root 3881 juin 28 2014 ssh -rwxr-xr-x 1 root root 714 juin 28 2012 sudo -rwxr-xr-x 1 root root 3169 mai 10 2011 triggerhappy -rwxr-xr-x 1 root root 8827 nov. 9 2012 udev -rwxr-xr-x 1 root root 1179 août 19 2012 udev-mtab -rwxr-xr-x 1 root root 2721 avril 10 2013 umountfs -rwxr-xr-x 1 root root 2195 avril 10 2013 umountnfs.sh -rwxr-xr-x 1 root root 1122 oct. 15 2012 umountroot -rwxr-xr-x 1 root root 3111 oct. 15 2012 urandom -rwxr-xr-x 1 root root 2666 mars 2 2012 x11-common

Ceux sont ces trois là qui poses problèmes.

lrwxrwxrwx 1 root root 9 mars 16 09:36 cupsys -> /bin/true lrwxrwxrwx 1 root root 9 mars 16 09:36 lpd -> /bin/true lrwxrwxrwx 1 root root 9 mars 16 09:36 lprng -> /bin/true

Notes, dans tes retours tu pourras tronquer les répertoires [mono]/usr/share/[/mono] et [mono]/var/[/mono].

Bon, si j’ai bien pigé, tu veux me faire enlever les cups cupsy et l’autre.
Mais on peut neutraliser en faisant chmod 400 sur des liens symboliques.

Mais ces liens symboliques ne pointent pas sur un dossier/fichier existant. Il est peut être là le pb…

EDIT : on a posté en même temps.

Voici le retour :

root@raspberrypi:/home/pi# find cups find: "cups": Aucun fichier ou dossier de ce type root@raspberrypi:/home/pi# find / -iname "*cupsys*" /etc/init.d/cupsys root@raspberrypi:/home/pi# find / -iname "*lpd*" /opt/brother/Printers/hl3150cdw/lpd /usr/sbin/lpdomatic /usr/share/man/fr/man8/cups-lpd.8.gz /usr/share/man/de/man8/cups-lpd.8.gz /usr/share/man/man8/cups-lpd.8.gz /usr/share/man/man8/lpdomatic.8.gz /usr/share/doc/printer-driver-pnm2ppa/examples/lpd /usr/share/doc/printer-driver-pnm2ppa/examples/lpd/README.lpd /usr/share/doc/printer-driver-pnm2ppa/examples/lpd/lpdsetup /etc/init.d/lpd root@raspberrypi:/home/pi# find / -iname "*lprng*" /etc/init.d/lprng

EDIT 2 : Qu’entends tu par tronquer ?

Oui.

Oui, mais …

[quote=“BelZéButh”]Ceux sont ces trois là qui poses problèmes.

lrwxrwxrwx 1 root root 9 mars 16 09:36 cupsys -> /bin/true lrwxrwxrwx 1 root root 9 mars 16 09:36 lpd -> /bin/true lrwxrwxrwx 1 root root 9 mars 16 09:36 lprng -> /bin/true

Notes, dans tes retours tu pourras tronquer les répertoires [mono]/usr/share/[/mono] et [mono]/var/[/mono].[/quote]

[mono]find[/mono], nous le fera savoir.

J’aurais du faire un nouveau message plutôt qu’éditer; puisqu’on communique en même temps ^^

[quote][quote=“Maxdecondé”]Bon, si j’ai bien pigé, tu veux me faire enlever les cups cupsy et l’autre.
Mais on peut neutraliser en faisant chmod 400 sur des liens symboliques.

Mais ces liens symboliques ne pointent pas sur un dossier/fichier existant. Il est peut être là le pb…

EDIT : on a posté en même temps.

Voici le retour :

root@raspberrypi:/home/pi# find cups find: "cups": Aucun fichier ou dossier de ce type root@raspberrypi:/home/pi# find / -iname "*cupsys*" /etc/init.d/cupsys root@raspberrypi:/home/pi# find / -iname "*lpd*" /opt/brother/Printers/hl3150cdw/lpd /usr/sbin/lpdomatic /usr/share/man/fr/man8/cups-lpd.8.gz /usr/share/man/de/man8/cups-lpd.8.gz /usr/share/man/man8/cups-lpd.8.gz /usr/share/man/man8/lpdomatic.8.gz /usr/share/doc/printer-driver-pnm2ppa/examples/lpd /usr/share/doc/printer-driver-pnm2ppa/examples/lpd/README.lpd /usr/share/doc/printer-driver-pnm2ppa/examples/lpd/lpdsetup /etc/init.d/lpd root@raspberrypi:/home/pi# find / -iname "*lprng*" /etc/init.d/lprng

EDIT 2 : Qu’entends tu par tronquer ?[/quote]
[/quote]

[quote=“Maxdecondé”]
EDIT : on a posté en même temps.

Voici le retour :

[code]
root@raspberrypi:/home/pi# find / -iname “cupsys
/etc/init.d/cupsys
root@raspberrypi:/home/pi# find / -iname “lpd
/opt/brother/Printers/hl3150cdw/lpd

/usr/sbin/lpdomatic

/etc/init.d/lpd
root@raspberrypi:/home/pi# find / -iname “lprng
/etc/init.d/lprng
[/code][/quote]

[mono]/opt/brother/Printers/…[/mono] de la compile à plein nez.

[quote=“Maxdecondé”]root@raspberrypi:/home/pi# chmod 400 /etc/init.d/lpd && chmod 400 /etc/init.d/lprng && chmod 400 /etc/init.d/cupsys
chmod: impossible d’opérer sur un lien symbolique ballant « /etc/init.d/lpd »[/quote]

chmod: impossible d’opérer sur un lien symbolique ballant, héhé … un [mono]chmod[/mono] ne peut ce faire que sur le fichier d’origine.

OK.
Supprimes les liens.

Retrancher quelque chose.

À présent, fais moi un joli copier/coller de l’installation de [mono]cups[/mono].

Merci, tout réparé, il me semble :

root@raspberrypi:/home/pi# sudo aptitude install cups printer-driver-gutenprint Les NOUVEAUX paquets suivants vont être installés : cups printer-driver-gutenprint 0 paquets mis à jour, 2 nouvellement installés, 0 à enlever et 0 non mis à jour. Il est nécessaire de télécharger 0 o/1 821 ko d'archives. Après dépaquetage, 4 839 ko seront utilisés. Préconfiguration des paquets... Sélection du paquet cups précédemment désélectionné. (Lecture de la base de données... 81032 fichiers et répertoires déjà installés.) Dépaquetage de cups (à partir de .../cups_1.5.3-5+deb7u5_armhf.deb) ... Sélection du paquet printer-driver-gutenprint précédemment désélectionné. Dépaquetage de printer-driver-gutenprint (à partir de .../printer-driver-gutenprint_5.2.9-1_armhf.deb) ... Traitement des actions différées (« triggers ») pour « man-db »... Paramétrage de cups (1.5.3-5+deb7u5) ... [ ok ] Starting Common Unix Printing System: cupsd. Updating PPD files for cups ... Updating PPD files for cups-filters ... Updating PPD files for foomatic-db-compressed-ppds ... Updating PPD files for foomatic-db-engine ... Updating PPD files for ghostscript-cups ... Updating PPD files for c2esp ... Updating PPD files for escpr ... Updating PPD files for foo2zjs ... Updating PPD files for hpijs ... Updating PPD files for m2300w ... Updating PPD files for ptouch ... Updating PPD files for pxljr ... Updating PPD files for sag-gdi ... Paramétrage de printer-driver-gutenprint (5.2.9-1) ... No Gutenprint PPD files to update. [ ok ] Reloading Common Unix Printing System: cupsd.

Vu, le retour d’aptitude, oui, c’est bon! :023

Donc, je confirme tout roule.
Ce que je n’explique pas par contre… c’est pourquoi tout ce bazar? Comment cela a-t-il pu se produire ? Comme je l’ai dit, j’en suis pas à ma première installation de cups, mais celle-là a été plutôt laborieuse…

Merci beaucoup en tout cas.

De part la présence de ces scripts, qui ont interférés avec l’installation à proprement dit de [mono]cups[/mono], issu des dépôts Debian.

[quote=“BelZéButh”][quote=“Maxdecondé”]
[mono]root@raspberrypi:/home/pi# find / -iname “cupsys
/etc/init.d/cupsys
root@raspberrypi:/home/pi# find / -iname “lpd
/opt/brother/Printers/hl3150cdw/lpd

/usr/sbin/lpdomatic

/etc/init.d/lpd
root@raspberrypi:/home/pi# find / -iname “lprng
/etc/init.d/lprng[/mono]
[/quote]

[mono]/opt/brother/Printers/…[/mono] de la compile à plein nez.
[/quote]
[mono]/opt/brother/Printers/hl3150cdw/lpd[/mono], que tu es allé chercher sur la toile un jour ou l’autre, mais dont la désinstallation ne sait pas fait dans les règles de l’art.

Ceci explique, le bronx.