[2024-feb-29] Sad news: Eric Layton aka Nocturnal Slacker aka vtel57 passed away on Feb 26th, shortly after hospitalization. He was one of our Wiki's most prominent admins. He will be missed.

Welcome to the Slackware Documentation Project

Différences

Ci-dessous, les différences entre deux révisions de la page.

Lien vers cette vue comparative

Les deux révisions précédentesRévision précédente
Prochaine révision
Révision précédente
fr:howtos:network_services:slackware_print_server [2015/09/14 14:01 (UTC)] – [Sources] traduction [fr] cedricfr:howtos:network_services:slackware_print_server [2015/09/14 15:10 (UTC)] (Version actuelle) – traduction [fr] terminée - relecture nécessaire cedric
Ligne 1: Ligne 1:
-<!-- Add your text belowWe strongly advise to start with a Headline (see button bar above). --> +<!-- Ajoutez votre texte ci-dessousIl est vivement recommandé de commencer avec un titre (voir la barre de boutons de l'éditeur). --> 
-====== Setting up a print server for home use out of any old Slackware box  ====== +====== Configurer un serveur d'impression pour une utilisation à domicile sur un vieux serveur Slackware ======
-After recently upgrading my home wifi network to use wpa2 my old edimax wifi print server stopped working due to incompatibility with wpa2. +
-I did not want to have to leave a computer on all the time neither did I want to directly connect whatever PC I need to print from to the printer itself.+
  
-The most elegant solution would be to setup some low power ARM device (naturally running Slackware ARM) to become a print serverbut any old hardware that can run Slackware linux will be fine and if you're willing to stick up with alternative distributions I suppose any hardware that can run linux will do.+Après une mise à niveau récemment de mon réseau wifi de la maison pour utiliser WPA2mon vieux serveur d'impression Edimax wifi a cessé de fonctionner en raison de l'incompatibilité avec WPA2. 
 +Je ne voulais pas avoir à laisser un ordinateur allumé tout le temps ni devoir me connecter directement à ce PC lorsque je dois imprimer à partir de l'imprimante elle-même.
  
 +La solution la plus élégante serait d'installer un dispositif ARM à faible consommation (fonctionnant naturellement sous Slackware ARM) pour devenir un serveur d'impression mais n'importe quel vieux matériel qui peut fonctionner sous Slackware Linux pourrait convenir. Et si vous souhaitez utiliser des distributions alternatives, je pense que tout matériel qui peut fonctionner sous Linux conviendra.
  
-I know it's not a difficult thing but since the last time I did something like this a lot of things have changedI thought that other people could benefit from a quickstart to get going really fast ... so here we go: (the steps blow assume that networking has already been setup correctly on all participants)+Je sais que ce est pas quelque chose de difficile mais la dernière fois que j'ai fais quelque chose comme çabeaucoup de choses ont changéJe pense que d'autres personnes pourraient bénéficier d'un guide de démarrage rapide pour le faire vite ... donc voilà: (les étapes suivantes supposent que la mise en réseau a déjà été mis en place correctement par tous les participants).
  
-===== Setting up the printer on the print server  ===== +===== Configurer l'Imprimante sur le Serveur d'Impression  =====
-First thing you might find handy to know is that it is not mandatory to have the correct print filter for the printer on the print server, the client is mandated with that burden. +
-The print server needs only have the printer configured as a raw printer.+
  
-The printer server will need cups, cyrus-sasl and openssl packages (openssl is only mandatory if you wish to remotely administer cups). +La première chose à savoir est qu'il n'est pas obligatoire d'avoir le filtre d'impression correct pour l'imprimante sur le serveur d'impression. C'est le client qui s'en occupe. 
-If your printer has a usb interface, like most currentlyit will be necessary to also have these packages to assist the usblp kernel module: +Le serveur d'impression a seulement besoin que l'imprimante soit configurée comme une imprimante brute (raw printer). 
-libusb, libusb-compat and usbutils. Once the packages are installed if you then plug in the printer udev should automatically load usblp kernel module and lsusb should listpossibly amongst other thingsyour printerThis is the sort of output you need to see from lsusb to confirm that the printer is detected:+ 
 +Le serveur d'impression aura besoin de //cups////cyrus-sas//l et les paquets //openSSL// (//openSSL// est un pré-requis si vous désirez administrer //cups// à distance). 
 +Si votre imprimante dispose d'une interface USBcomme la plupart aujourd'huiil sera nécessaire d'avoir aussi ces paquets pour le module usblp du noyau
 +//libusb////libusb-compat// et //usbutils//Une fois ces paquets installés, le périphérique udev de l'imprimante devrait charger automatique le module usblp lorsque vous brancherez l'imprimante et la commande lsusb devrait listerprobablement parmi d'autres chosesvotre imprimanteVous devriez voir quelque chose comme ce qui suit après l'utilisation de la commande lsusb pour confirmer que l'imprimante est détectée:
  
   root@printserver:~# lsusb   root@printserver:~# lsusb
Ligne 24: Ligne 25:
   Bus 001 Device 005: ID 04e8:3260 Samsung Electronics Co., Ltd CLP-510 Color Laser Printer   Bus 001 Device 005: ID 04e8:3260 Samsung Electronics Co., Ltd CLP-510 Color Laser Printer
   root@printserver:~#   root@printserver:~#
-   + 
-If you can see something similar to thiswhere your printer is detected by lsusbyou can proceed otherwise you need to debug the reasons that are preventing your printer from being detected.+Si vous voyez quelque chose comme çaavec le nom de votre imprimante détectéevous pouvez continuerSinon vous devrez chercher les causes de la non-détection de votre imprimante.  
  
  
-Once you have the packages and printer sorted out you can then just give execute permissions to /etc/rc.d/rc.cups and then start it+Une fois que vous aurez installé les paquets et l'imprimante, vous pourrez ensuite donner les autorisations d'exécution à /etc/rc.d/rc.cups puis le démarrer
-If you intend to remotely administer it you might like to execute this command to allow it:+Si vous avez l'intention d'administrer à distance, vous devriez exécuter cette commande:
  
   cupsctl --remote-admin   cupsctl --remote-admin
  
-then fire up your browser and access +Puis démarrer votre navigateur web et accédez à 
  
   http://<your print server ip>:631    http://<your print server ip>:631 
-  or  +  ou  
-  http://localhost:631 on the printserver itself+  http://localhost:631 de puis le serveur d'impression
  
-For the most part you can use links on a text terminal on the print-server itself the only things that not working right on links are some combo box selectionsthat's why I then allowed for remote administration. +Pour la plupart, vous pouvez utiliser les liens sur le serveur d'impression lui-même à l'aide d'un terminal. Les seules choses qui ne fonctionnent pas directement dans les liens sont les sélections de zone de liste déroulante (combo box)c'est pourquoi j'autorise l'administration à distance
-Go ahead and configure the local printer as a raw printerBe sure to check the box for a shared printer.You can call the printer whatever you like but for convenience in this guide we will call it "test"Your /etc/cups/printers.conf should look like this:+Allez-y et configurer l'imprimante locale comme imprimante brutCochez bien la case pour une imprimante partagée (shared printer)Vous pouvez appeler l'imprimante comme vous voulez, mais pour plus de commodité dans ce guide nous allons l'appeler "test"Votre fichier /etc/cups/printers.conf devrait ressembler à ceci:
  
   <Printer test>   <Printer test>
Ligne 46: Ligne 47:
   Info test printer   Info test printer
   Location test location   Location test location
-  DeviceURI usb://Samsung/CLP-510?serial=xxxxxxxxxxxxx. #your setup will depend on the printer brand on how it is connected to the print server+  DeviceURI usb://Samsung/CLP-510?serial=xxxxxxxxxxxxx. #cette configuration dépendra de la marque de l'imprimante et du type de connexion avec le serveur d'impression
   State Idle   State Idle
   StateTime 16147   StateTime 16147
Ligne 60: Ligne 61:
   </Printer>   </Printer>
  
-If you have the drivers for your printer you can optionally configure it with the correct print filter but it's not mandatoryIf you do have them it might be a good idea to configure it right just to check that the printserver can correctly use the printer.+Si vous avez des pilotes pour votre imprimante, vous pouvez configurer le filtre d'impression correct mais ce n'est pas obligatoireSi vous les avez, ça peut être une bonne idée de les configurer juste pour vérifier que le serveur d'impression utilise l'imprimante.
  
-Once the printer is configured you can then instruct cups to accept remote printing requests:+Dés que l'imprimante est configurée, vous pouvez indiqué à //cups// d'accepter les requêtes d'impression distantes:
  
   cupsctl --share-printers --remote-any --remote-admin   cupsctl --share-printers --remote-any --remote-admin
-   
-If you're not interested to share the printer to outside your Local Area Net just remove the "--remote-any" option and by default cups will only serve printing requests from your LAN. 
  
-Some hardware platforms leave you no way to do a clean shutdown without interacting to the os running on it (like old AT PC or seagate dockstar). You can work around this problem by making a udev rule that executes a shutdown when the printer is removed (unplugged or turned offso that when you're done printingyou turn off the printer, the print-server would shutdown along too without crashing. +Si vous n'êtes pas intéressé à partager l'imprimante à l'extérieur de votre réseau local, il suffit de retirer l'option "--remote-any" et //cups// ne répondra qu'au demande d'impression de votre LAN. 
-   + 
-===== Setting up the printer on the print clients  ===== +Certaines plates-formes matérielles ne vous laissent pas faire un arrêt propre sans interagir avec l'OS (comme un vieux PC AT ou le seagate DockStar). Vous pouvez contourner ce problème en faisant une règle udev qui exécute un arrêt lorsque l'imprimante est supprimée (débranchée ou éteintede sorte que lorsque vous avez terminé l'impressioncela éteindra l'imprimante et le serveur d'impression s'arrêtera sans erreur
-Now go on the PC's where you want to access the printer and configure an ipp remote printer with the correct driver for the printer+===== Configurer l'Imprimante sur les Ordinateurs Client  ===== 
-The /etc/cups/printers.conf should have an entry similar to this:+ 
 +Maintenant, aller sur les PC qui doivent accéder à l'imprimante et configurer une imprimante distante ipp avec le pilote adéquat
 +Le fichier /etc/cups/printers.conf devrait contenir une entrée du type:
  
   <Printer test>   <Printer test>
Ligne 79: Ligne 80:
   Info test   Info test
   Location study room   Location study room
-  MakeModel Samsung CLP-510, 2.0.0 #in this case I setup splix driver for the samsung printer but this entirely depends on my setup+  MakeModel Samsung CLP-510, 2.0.0 #dans ce cas, j'ai configuré le pilote splix pour l'imprimante samsung mais cela dépend essentiellement de ma propre configuration
   DeviceURI ipp://<print server ip address>:631/printers/test   DeviceURI ipp://<print server ip address>:631/printers/test
   State Idle   State Idle
Ligne 94: Ligne 95:
   </Printer>   </Printer>
  
-You may now try printing a test page on the client PC.+Essayez maintenant d'imprimer une page test avec le PC client.
  
 ===== Making the printserver crash proof  ===== ===== Making the printserver crash proof  =====
-Once you have your print server working right you will probably want avoid doing anything to it unless it's really necessary. Looking after it's shutting down right and resolving fsck issues on reboot should not be something to worry about but journaled filesystems are meant to deal with accidental power rages not really for you to crash the system every time you switch it off.  
  
-Having the root filesystem mounted read onlywith only the parts that are necessary for writing linked into  tmpfswould free us form having to worry about powering down the print server.+Une fois que vous avez un serveur d'impression fonctionnelvous voudrez probablement éviter de faire quoi que ce soitsauf si c'est vraiment nécessaire. Vérifier son extinction correct et résoudre les problèmes fsck au redémarrage ne devrait pas être quelque chose à vous soucier mais les systèmes de fichiers journalisés sont destinés à traiter les problèmes de coupure de courant accidentelles colères de courant et ce n'est pas à vous de crasher le système chaque fois que vous voulez l'éteindre.
  
-This is how I modified rc.S and rc.M for the job:+Avoir le système de fichiers racine monté en lecture seule, avec seulement les éléments nécessaires à l'écriture dans tmpfs permettrait de nous éviter des inquiétudes sur l'extinction du serveur d'impression.
  
 +Voilà comment j'ai modifié rc.S et rc.M :
  
   rc.S.org  2013-12-28 14:25:08.569250342 +0100   rc.S.org  2013-12-28 14:25:08.569250342 +0100
Ligne 205: Ligne 206:
    # Screen blanks after 15 minutes idle time, and powers down in one hour    # Screen blanks after 15 minutes idle time, and powers down in one hour
  
-A bit of tinkering with links in var and a few other places and you're done.+Un peu de bricolage avec les liens dans var et quelques autres endroits et vous aurez terminé.
  
   root@printserver:~# ls -l /var/   root@printserver:~# ls -l /var/
Ligne 259: Ligne 260:
   cgroup on /sys/fs/cgroup type cgroup (rw,relatime,net_cls,freezer,devices,cpuacct)   cgroup on /sys/fs/cgroup type cgroup (rw,relatime,net_cls,freezer,devices,cpuacct)
   root@printserver:~#   root@printserver:~#
-   
-With these links the Slackware distribution will operate pretty much normally and can resume to ordinary operation by just remounting root read/write "mount -o remount,rw /" to allow some maintenance (like package management) and when that's done just remount it ro with a simple "mount -o remount,ro /". 
  
-===== Here's my wifi print server  ===== +Avec ces liens la distribution Slackware fonctionnera à peu près normalement et pourra reprendre un fonctionnement ordinaire en remontant la racine en lecture/écriture "mount -o remount, rw /" pour permettre un peu d'entretien (comme la gestion de paquet) et, quand cela sera fait, juste la remonter en ro avec un simple "mount -o remount, ro /". 
-Here's one of my Dockstars in a homebrew casing running the above described printserver from internal flash(the usb stick on top is a wifi stick)+ 
 +===== Voici mon serveur d'impression Wifi  ===== 
 +Voici l'un de mes Dockstars dans un boitier maison et configuré avec les étapes précédente sur une mémoire flash interne (la clé usb en haut est la clé wifi).
 {{http://i246.photobucket.com/albums/gg113/louigi600/ARM/printesver_zps79e33939.jpg}} {{http://i246.photobucket.com/albums/gg113/louigi600/ARM/printesver_zps79e33939.jpg}}
  
 ====== Sources ====== ====== Sources ======
   * Première version réalisée par [[wiki:user:louigi600|louigi600]]   * Première version réalisée par [[wiki:user:louigi600|louigi600]]
 +  * Traduit de l'anglais par  [[wiki:user:cedric|Cedric M.]] //2015/09/14 15:08//
  
 <!-- Si vous copiez du texte d'une autre source, spécifiez cette source --> <!-- Si vous copiez du texte d'une autre source, spécifiez cette source -->
Ligne 277: Ligne 279:
 <!-- Merci de ne rien ajouter après ceci, à part des tags additionnels.--> <!-- Merci de ne rien ajouter après ceci, à part des tags additionnels.-->
 <!-- Cependant il faut enlever le tag "template" ci-dessous, ou bien la page ne s'affichera pas dans la Table des Matières. --> <!-- Cependant il faut enlever le tag "template" ci-dessous, ou bien la page ne s'affichera pas dans la Table des Matières. -->
-{{tag>fr:howtos print server translator_cedric translation_in_progress }}+{{tag>fr:howtos print server translator_cedric }}
 fr:howtos:network_services:slackware_print_server ()