Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
13 changes: 2 additions & 11 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -13,16 +13,7 @@ $ unzip linux-daemon.zip

$ cd linux-daemon

#edit `unlocker-daemon.service` so that the absolute path to unlocker-daemon.py is correct

$ mv unlocker-daemon.service /etc/systemd/system/unlocker-daemon

$ sudo systemctl daemon-reload

$ sudo systemctl enable unlocker-daemon

$ sudo systemctl start unlocker-daemon

$ ./remote-linux-pair
$ bash ./init
```

Don't move/delete this directory even after running the script.
8 changes: 8 additions & 0 deletions linux-daemon/init.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
sudo apt install python
sed -i 's@--edit--@'"$PWD"'@' unlocker-daemon.service
mv unlocker-daemon.service /etc/systemd/system/unlocker-daemon.service

sudo systemctl daemon-reload
sudo systemctl enable unlocker-daemon
sudo systemctl start unlocker-daemon
./remote-linux-pair
Binary file modified linux-daemon/linux-daemon.zip
Binary file not shown.
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
Description=unlocker-daemon

[Service]
ExecStart=/usr/bin/python /home/maxchehab/Projects/remote-linux-unlocker/linux-daemon/unlocker-daemon.py
ExecStart=/usr/bin/python --edit--/unlocker-daemon.py

[Install]
WantedBy=multi-user.target