This is a small project to wake on lan your computer when your network card does not support it. It is more of a learning project, but maybe someone is in need of solution, so why not share it. If you happen to have a raspberry-pi, internet and a desktop computer and your card does not support WoL or WoWLAN (or does it?), then this might be the project for you.
Install the linux distro of your choice on your raspberry-pi. Configure the wifi if needed and install both docker and docker-compose. You are going to need a rsa key pair, since the project uses asymetrique signature for authentication.
- copy your public key in the server directory
cp /path/to/id_rsa.pub cp /path/to/server/id_rsa.pub
- start services on the raspberry-pi
docker-compose -p raspberry-grpc-wol up -d
- to access the services from the public network you are going to do some port forwarding on your router from the port of your client to the ip:port of the server (default: your_local_ip:50501).
- power up the raspberry-pi from the inside
- you will need to plug the GPIO the way it is describe in the
gpio_interface.py
raspberry-pi-zero-gpio - plug the other part of the button to a 5v pin
- let the alimentation of the led on your motherboard
- install python3 and python-pip
- go in root folder of the project and execute
sh setup.sh
- go to the client directory
cd client
- start the client
python desk_wol_client.py {poweron|poweroff|hardreset} -i /path/to/private/key/id_rsa