[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

Diferencias

Muestra las diferencias entre dos versiones de la página.

Enlace a la vista de comparación

Ambos lados, revisión anteriorRevisión previa
Próxima revisión
Revisión previa
es:howtos:network_services:slackware_print_server [2019/02/17 13:34 (UTC)] – [Configuración de un servidor de impresión para uso doméstico fuera de cualquier hardware antiguo con Slackware] slackwarespanoles:howtos:network_services:slackware_print_server [2019/02/17 14:02 (UTC)] (actual) slackwarespanol
Línea 1: Línea 1:
-<note warning>En proceso. Victor</note> 
 <!-- Add your text below. We strongly advise to start with a Headline (see button bar above). --> <!-- Add your text below. We strongly advise to start with a Headline (see button bar above). -->
 ====== Configuración de un servidor de impresión para uso doméstico fuera de cualquier hardware antiguo con Slackware ====== ====== Configuración de un servidor de impresión para uso doméstico fuera de cualquier hardware antiguo con Slackware ======
Línea 9: Línea 8:
 Sé que no es una cosa difícil, pero desde la última vez que hice algo como esto muchas cosas han cambiado, pensé que otras personas podrían beneficiarse de un inicio rápido para ponerse en marcha muy rápido ... así que aquí vamos: (los pasos Supongo que la red ya se ha configurado correctamente con todos los equipos) Sé que no es una cosa difícil, pero desde la última vez que hice algo como esto muchas cosas han cambiado, pensé que otras personas podrían beneficiarse de un inicio rápido para ponerse en marcha muy rápido ... así que aquí vamos: (los pasos Supongo que la red ya se ha configurado correctamente con todos los equipos)
  
-===== Setting up the printer on the print server  ===== +===== Configuración de la impresora en el servidor de impresión ===== 
-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 serverthe client is mandated with that burden+Lo primero que puede que le resulte útil saber es que no es obligatorio tener el filtro de impresión correcto para la impresora en el servidor de impresiónel cliente tiene la obligación
-The print server needs only have the printer configured as a raw printer.+El servidor de impresión solo necesita tener la impresora configurada como impresora sin formato.
  
-The printer server will need cups, cyrus-sasl and openssl packages (openssl is only mandatory if you wish to remotely administer cups). +El servidor de la impresora necesitará los paquetes cups, cyrus-sasl openssl (openssl solo es obligatorio si desea administrar tazas de forma remota). 
-If your printer has a usb interfacelike most currentlyit will be necessary to also have these packages to assist the usblp kernel module+Si su impresora tiene una interfaz usb, como la mayoría actualmenteserá necesario tener también estos paquetes para ayudar al módulo del kernel usblp
-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:+libusb, libusb-compat usbutils. Una vez que haya instalado los paquetes, si luego conecta la impresora, udev debería cargar automáticamente el módulo del kernel usblp y lsusb debería mostrarentre otras cosassu impresoraEste es el tipo de salida que necesita ver desde lsusb para confirmar que se detectó la impresora:
  
   root@printserver:~# lsusb   root@printserver:~# lsusb
Línea 24: Línea 23:
   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 this, where your printer is detected by lsusb, you can proceed otherwise you need to debug the reasons that are preventing your printer from being detected. 
  
 +Si puede ver algo similar a esto, donde su impresora es detectada por lsusb, puede proceder de lo contrario, debe depurar las razones que impiden que su impresora sea detectada.
  
-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. 
-If you intend to remotely administer it you might like to execute this command to allow it: 
  
 +Una vez que haya ordenado los paquetes y la impresora, puede dar permisos de ejecución a /etc/rc.d/rc.cups y luego iniciarlo.
 +Si pretende administrarlo de manera remota, deberia ejecutar este comando para permitirlo:
 +  
   cupsctl --remote-admin   cupsctl --remote-admin
  
-then fire up your browser and access +Entonces abre tu navegador y accede
  
   http://<your print server ip>:631    http://<your print server ip>:631 
-  or  +   
-  http://localhost:631 on the printserver itself +  http://localhost:631 en el propio servidor de impresión 
- +   
-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+En la mayoría de los casos, puede usar enlaces en un terminal de texto en el mismo servidor de impresión. Las únicas cosas que no funcionan correctamente en los enlaces son algunas selecciones de cuadros combinadospor eso permití la administración remota
-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:+Continúe y configure la impresora local como una impresora sin formatoAsegúrese de marcar la casilla de una impresora compartidaPuede llamar a la impresora como quiera, pero para mayor comodidad en esta guía, la llamaremos "prueba"Su /etc/cups/printers.conf debería tener este aspecto:
  
   <Printer test>   <Printer test>
Línea 60: Línea 59:
   </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 tiene los controladores para su impresora, puede configurarlo opcionalmente con el filtro de impresión correcto, pero no es obligatorioSi los tiene, puede ser una buena idea configurarlo correctamente solo para verificar que el servidor de impresión pueda usar la impresora correctamente.
  
-Once the printer is configured you can then instruct cups to accept remote printing requests:+Una vez que la impresora está configurada, puede indicar a las tazas que acepten las solicitudes de impresión remota:
  
   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.+Si no está interesado en compartir la impresora fuera de su red de área local, simplemente elimine la opción "--remote-any" y, por defecto, Cups solo servirá para imprimir solicitudes desde su 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 printerthe print-server would shutdown along too without crashing. +Algunas plataformas de hardware no le dejan ninguna manera de hacer un cierre limpio sin interactuar con el sistema operativo que se ejecuta en él (como el antiguo AT PC seagate dockstar). Puede solucionar este problema haciendo una regla de udev que ejecute un apagado cuando se retira la impresora (desenchufada o apagadapara que cuando termine de imprimirapague la impresorael servidor de impresión también se apagaría sin fallar
-   +===== Configuración de la impresora en los clientes de impresión ===== 
-===== Setting up the printer on the print clients  ===== +Ahora vaya a la PC donde desea acceder a la impresora y configure una impresora remota ipp con el controlador correcto para la impresora
-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+El /etc/cups/printers.conf debe tener una entrada similar a esta:
-The /etc/cups/printers.conf should have an entry similar to this:+
  
   <Printer test>   <Printer test>
Línea 94: Línea 92:
   </Printer>   </Printer>
  
-You may now try printing a test page on the client PC.+Ahora puede intentar imprimir una página de prueba en la PC cliente.
  
-===== Making the printserver crash proof  ===== +===== Hacer que el servidor de impresión se bloquee a prueba ===== 
-Once you have your print server working right you will probably want avoid doing anything to it unless it's really necessaryLooking 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+Una vez que tenga su servidor de impresión funcionando correctamente, probablemente querrá evitar hacerle nada a menos que sea realmente necesario.Cuidar de que se apague correctamente y resolver los problemas de fsck en el reinicio no debería ser algo de lo que preocuparse, pero los sistemas de archivos registrados están diseñados para hacer frente a las cortes de energía accidentales, no realmente para que bloquee el sistema cada vez que lo apague. 
 +Tener el sistema de archivos raíz montado solo para lectura, con solo las partes necesarias para escribir vinculadas en tmpfs, nos liberaría de tener que preocuparnos por apagar el servidor de impresión.
  
-Having the root filesystem mounted read only, with only the parts that are necessary for writing linked into  tmpfs, would free us form having to worry about powering down the print server. +Así es como modifiqué rc.S rc.M para el trabajo:
- +
-This is how I modified rc.S and rc.M for the job:+
  
  
Línea 205: Línea 202:
    # 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 poco de retoques con enlaces en var y en algunos otros lugares y ya está.
  
   root@printserver:~# ls -l /var/   root@printserver:~# ls -l /var/
Línea 260: Línea 257:
   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 managementand when that's done just remount it ro with a simple "mount -o remount,ro /".+Con estos enlaces, la distribución de Slackware funcionará de manera bastante normal y podrá reanudar la operación normal simplemente volviendo a montar la lectura/escritura de la raíz  "mount -o remount, rw /" para permitir cierto mantenimiento (como la gestión de paquetesy cuando se hace, simplemente vuelva montarlo "solo lectura" con un simple "mount -o remount,ro /". 
 + 
 +===== Aquí está mi servidor de impresión wifi ===== 
 +Aquí está uno de mis Dockstars en una carcasa casera que ejecuta el servidor de impresión descrito anteriormente desde el flash interno. (la memoria USB en la parte superior es una tarjeta wifi)
  
-===== Here's my wifi print server  ===== 
-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) 
 {{http://i246.photobucket.com/albums/gg113/louigi600/ARM/printesver_zps79e33939.jpg}} {{http://i246.photobucket.com/albums/gg113/louigi600/ARM/printesver_zps79e33939.jpg}}
  
-====== Sources ======+====== Fuentes ======
 <!-- If you are copying information from another source, then specify that source --> <!-- If you are copying information from another source, then specify that source -->
 <!-- * Original source: [[http://some.website.org/some/page.html]] --> <!-- * Original source: [[http://some.website.org/some/page.html]] -->
 <!-- Authors are allowed to give credit to themselves! --> <!-- Authors are allowed to give credit to themselves! -->
 <!-- * Originally written by [[wiki:user:louigi600 | User X]] --> <!-- * Originally written by [[wiki:user:louigi600 | User X]] -->
-  * Originally written by [[wiki:user:louigi600|louigi600]]+  * Escrito originalmente por [[wiki:user:louigi600|louigi600]] 
 +  * Traducido por:  [[wiki:user: slackwarespanol | Victor]]  2019/02/17 14:01 (UTC)
 <!-- * Contributions by [[wiki:user:yyy | User Y]] --> <!-- * Contributions by [[wiki:user:yyy | User Y]] -->
  
 es:howtos:network_services:slackware_print_server ()