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.
- Host: GitHub
- URL: https://github.com/timschneider42/easywake
- Owner: TimSchneider42
- License: mit
- Created: 2023-01-10T17:42:10.000Z (over 3 years ago)
- Default Branch: master
- Last Pushed: 2023-01-17T13:58:15.000Z (over 3 years ago)
- Last Synced: 2025-04-04T05:41:54.212Z (about 1 year ago)
- Topics: etherwake, rootless, wake-on-lan
- Language: Shell
- Homepage:
- Size: 11.7 KB
- Stars: 6
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
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
```