This brief tutorial will show you how to remotely turn on Ubuntu machine from another within same network.

On target Ubuntu machine:

  • 1. reboot and go into BIOS settings.
  • 2. In BIOS, enable Wake on Lan(WOL) or Wake On PCI(E). Then save and boot Ubuntu.
  • 3. In Ubuntu, open terminal from the dash or press Ctrl+Alt+T, install ethtool
    sudo apt-get install ethtool
  • 4. run this command, eth? depends on the output of ifconfig command (default is eth0).
    sudo ethtool -s eth0 wol g
  • 5. Edit /etc/rc.local by sudo gedit /etc/rc.local, add following and save.

    sleep 5
    ethtool -s eth0 wol g

  • 6. Edit /etc/init.d/halt by sudo gedit /etc/init.d/halt, add following and save.

    NETDOWN = no

  • 7. Run ifconfig and remember the hardware address:

    eth0 Link encap:Ethernet HWaddr 00:18:f3:c2:b1:07
    inet addr: Bcast: Mask:
    RX packets:57879 errors:0 dropped:0 overruns:0 frame:0
    TX packets:39853 errors:0 dropped:0 overruns:0 carrier:1
    collisions:0 txqueuelen:1000
    RX bytes:31701509 (31.7 MB) TX bytes:4083738 (4.0 MB)

From Lan Machine:

  • For Ubuntu:

    install this in terminal:

    sudo apt-get install wakeonlan

    then remotely turn on target machine with this command:

    wakeonlan 00:18:f3:c2:b1:07
  • For Windows:

    there’re several tools for wake on lan.

    Nyxbull Wake on LAN

  • FUSION WakeUp on Lan