Herramientas de usuario

Herramientas del sitio


informatica:certificaciones:lpic:lpic-1:108_essential_system_services

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
informatica:certificaciones:lpic:lpic-1:108_essential_system_services [2022/04/25 19:40] – [Ejercicios] tempwininformatica:certificaciones:lpic:lpic-1:108_essential_system_services [2022/04/29 19:11] (actual) – [Ejercicios] tempwin
Línea 37: Línea 37:
  
 <code> <code>
-apt install cups-pdf+apt install printer-driver-cups-pdf
 </code> </code>
  
Línea 56: Línea 56:
 <code> <code>
 lpstat -s lpstat -s
 +</code>
 +
 +Ejemplo de salida:
 +
 +<code>
 +destino predeterminado del sistema: PDF
 +dispositivo para PDF: cups-pdf:/
 </code> </code>
  
 **5. Configure la impresora CUPS-PDF como predeterminada.** **5. Configure la impresora CUPS-PDF como predeterminada.**
 +
 +En mi caso, al no haber instalado otra antes, cuando se instaló la impresora virtual CUPS-PDF, se añadió como predeterminada. Si no, habría que ejecutar el siguiente comando:
  
 <code> <code>
Línea 72: Línea 81:
 </code> </code>
  
-Para ver las opciones ¿?¿?¿?+Para ver el listado de opciones:
  
 <code> <code>
 +lpoptions -d PDF -l
 </code> </code>
  
Línea 102: Línea 111:
 **2. Muestre la hora del reloj de hardware del sistema. Restablece la hora del sistema en función de la hora del reloj de hardware.** **2. Muestre la hora del reloj de hardware del sistema. Restablece la hora del sistema en función de la hora del reloj de hardware.**
  
-Para ver la hora del chipset de la placabase:+Para ver la hora del chipset de la placa base:
  
 <code> <code>
Línea 111: Línea 120:
  
 <code> <code>
-hwclock hctosys+hwclock %%--%%hctosys
 </code> </code>
  
Línea 140: Línea 149:
 <code> <code>
 server ntp.ubuntu.com server ntp.ubuntu.com
-server 0.pool.ntp.org +server hora.rediris.es 
-server 1.pool.ntp.org +server hora.roa.es
-server 2.pool.ntp.org+
 </code> </code>
  
Línea 148: Línea 156:
  
 <code> <code>
-systemct restart ntp.service+systemctl restart ntp.service
 </code> </code>
  
Línea 170: Línea 178:
 timedatectl timedatectl
 </code> </code>
 +
 +Si nos indicase que el reloj del sistema no está sincronizado (como a mí), en el caso de Debian 11 hay que instalar el paquete ''systemd-timesyncd''. Tras la instalación volvemos a verificar:
 +
 +<code>
 +timedatectl
 +</code>
 +===== Test =====
 +
 +**The CUPS command 'cupsdisable' will have what effect on a printer?**
 +
 +  * Disable the printer and reject all jobs 
 +  * Disable the printer and remove the queue
 +  * Disable the printer and queue all jobs (**Solución**)
 +  * Disable the queue but leave the printer online
 +
 +<WRAP center round important 60%>
 +¿Dónde se explica esto?
 +</WRAP>
 +
 +**What is the definition of 'time drift'?**
 +
 +  * The amount of time that the hardware and system clocks differ (**Solución**)
 +  * The amount of time it takes the 'date' command to return the date/time
 +  * None of the Above 
 +  * The amount of time elapsed since the 'date' command was last run
 +
 +<WRAP center round important 60%>
 +¿Dónde se explica esto?
 +</WRAP>
 +
 +**Which of the following are 'syslog' alternatives? (CHOOSE ALL THAT APPLY)**
 +
 +  * syslog-ng (**Solución**)
 +  * rsyslog (**Solución**)
 +  * messages
 +  * None of the Above
 +
 +**Which of the following is the correct format for an entry in the /etc/aliases file for email?**
 +
 +  * ''root : fred : sam''
 +  * None of the Above
 +  * ''root: fred,sam'' (**Solución**)
 +  * ''root: mail fred;mail sam''
 +
 +**Which of the following special character combinations that, when used with the 'date' command, will display JUST the two digit month?**
 +
 +  * ''%M''
 +  * ''%MM''
 +  * None of the Above
 +  * ''%m'' (**Solución**)
informatica/certificaciones/lpic/lpic-1/108_essential_system_services.1650908454.txt.gz · Última modificación: por tempwin