Inicio

martes, abril 1

"Encender" (wake) por red equipos con Ubuntu 22.04.

Para poder "encender" (wake) por red equipos con Ubuntu 22.04, además de activar la configuración pertinente en la BIOS, necesitaremos realizar lo siguiente en el equipo en cuestión:

# 1. Instalar ethtool y wakeonlan

apt install ethtool -y

apt install wakeonlan -y

# 2. Crear el fichero /etc/systemd/system/wol.service con el siguiente contenido:

[Unit]

Description=Configure Wake On LAN

[Service]

Type=oneshot

ExecStart=/sbin/ethtool -s enp4s0 wol g

[Install]

WantedBy=basic.target

# 3. Cargar el demonio y habilitar e inicializar el servicio.

systemctl daemon-reload        (cargar el demonio)

systemctl enable wol.service   (habilitar el servicio)

systemctl start wol.service      (inicializar el servicio)

-------------------------------------

NOTA: Para los equipos TTL TeknoComputer (modelo: "Tekno Pro"), la opción de la BIOS que hay que activar es la de  "Power on PCIE PME".


No hay comentarios:

Publicar un comentario