🦥 Lazy Helper !

A simple interface to help lazy people like me to shut down/reboot/sleep/lock/etc. their computer remotely.



If you’re a lazy guy, like me. or a busy one, you may leave your PC on, when you’re going to sleep, or going to watch a movie on TV.

There you are ! This is the solution you’re looking for 🙂

Just install and run LazyHelper and after that you’re able to shut down your linux PC with your mobile !

– Installation

git clone https://github.com/mehdiirh/LazyHelper.git
cd LazyHelper
python -m venv venv
source venv/bin/activate
pip install -r requirements.txt 

Then, generate a SECRET_KEY for your project by:

python -c 'from django.core.management.utils import get_random_secret_key; print(get_random_secret_key())'

You’ll see something like 640ivxu...2k7w6%% as output. copy it and replace LazyHelper/settings.py (line 24) with it:

# settings.py


23: # SECURITY WARNING: keep the secret key used in production secret!
> 24: SECRET_KEY = 'DJANGO_INSECURE(`-._!$(#)$!===*YOUR_SECRET_KEY*===!$(#)$!*_.-`)'
    # ^^^^ PASTE IT HERE
26: # SECURITY WARNING: don't run with debug turned on in production!
27: DEBUG = True


Now you can run your LazyHelper:

./manage.py runserver

Connect your phone and PC to same network and access it from your PC local ip address (192.168.* . *)

– [Optional] Set host name

sudo nano /etc/hosts

Add this line after localhost:    <your-host-name>  # like: mehdi

Execute this command:

hostnamectl set-hostname <your-host-name>


Now you can access your PC from your-host-name.local ( like: mehdi.local) from any device on your network

– Daemonize

sudo nano /etc/systemd/system/LazyHelper.service

Edit this service based on your configs, then hit Ctrl+X and Enter to save


WorkingDirectory=  # Like: /home/mehdi/python/projects/LazyHelper
ExecStart= # Like: /home/mehdi/python/projects/LazyHelper/venv/bin/python manage.py runserver



sudo systemctl enable LazyHelper
sudo systemctl start LazyHelper

Done !

Your Pull Requests are so welcome !

Currently, I have no idea how to make this work on Windows. If you know, please submit a PR.

Also, any UI/UX improvements are welcome



View Github