An open API service indexing awesome lists of open source software.

https://github.com/timschneider42/easywake

Tool to create magic packets that does not require sudo for installation and execution.
https://github.com/timschneider42/easywake

etherwake rootless wake-on-lan

Last synced: about 1 year ago
JSON representation

Tool to create magic packets that does not require sudo for installation and execution.

Awesome Lists containing this project

README

          

# easywake

Tool to create magic packets that does not require sudo for installation and execution.

## Installation

First, configure wake-on-lan on the machine you want to wake up:

1. Make sure that wake-on-lan is enabled in the bios.

2. Install `ethtool` via `sudo apt install ethtool`

3. Enable wake-on-lan persistently. This requires you to copy the file `wol.service` of this repository to `/etc/systemd/system/wol.service` and replace "eth0" inside of this file with the name of your network interface. You can obtain this name by running `ip addr`. Enable the WOL service via
```bash
sudo systemctl daemon-reload
sudo systemctl enable wol
sudo systemctl start wol
```

Second, download the easywake script on the machine you want to use for waking up the first machine:

```bash
wget --no-check-certificate https://raw.githubusercontent.com/TimSchneider42/easywake/master/easywake
chmod a+x easywake
```

## Usage

To wake your machine up, call

```bash
./easywake [MAC ADDRESS] [IP ADDRESS]
```
where you replace [MAC ADDRESS] and [IP ADDRESS] with the MAC address and IP address of the machine you want to wake up. You can obtain this information by running `ip addr`. For example:

```bash
./easywake DE:AD:00:BE:EF:42 192.168.0.42
```

If you are like us and need to frequently easywake the same machine over and over again... Worry no more! Just for this case we created the `wakemaboi` script. To obtain your copy of this limited edition bash script, run
```bash
wget --no-check-certificate https://raw.githubusercontent.com/TimSchneider42/easywake/master/mk-wakemaboi
chmod a+x mk-wakemaboi
```
Set your MAC and IP address by running
```bash
./mk-wakemaboi [MAC ADDRESS] [IP ADDRESS]
```
Now your machine can be woken up by simply running
```bash
./wakemaboi
```