Git Product home page Git Product logo

easywake's Introduction

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

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:

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

Usage

To wake your machine up, call

./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:

./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

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

./mk-wakemaboi [MAC ADDRESS] [IP ADDRESS]

Now your machine can be woken up by simply running

./wakemaboi

easywake's People

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.