KlipperScreen / KlipperScreen

GUI for Klipper
https://klipperscreen.github.io/KlipperScreen/
GNU Affero General Public License v3.0
1.02k stars 319 forks source link

[BUG] Documentation issue - Missing "cd" command in Android WIFI documentation #1313

Closed anetanel closed 2 months ago

anetanel commented 3 months ago

What happened?

Following the instructions to configure the service as WIFI on android (https://klipperscreen.readthedocs.io/en/latest/Android/#wifi) and running these commands from the pi user's home directory:

rm ~/KlipperScreen/scripts/launch_KlipperScreen.sh
touch ~/KlipperScreen/scripts/launch_KlipperScreen.sh
chmod +x launch_KlipperScreen.sh
nano ~/KlipperScreen/scripts/launch_KlipperScreen.sh

results with an error: chmod: cannot access 'launch_KlipperScreen.sh': No such file or directory And the service fails to start.

What did you expect to happen instead?

The chmod command should succeed and the service would start.

How to reproduce this bug?

from the home directory, run:

rm ~/KlipperScreen/scripts/launch_KlipperScreen.sh
touch ~/KlipperScreen/scripts/launch_KlipperScreen.sh
chmod +x launch_KlipperScreen.sh
nano ~/KlipperScreen/scripts/launch_KlipperScreen.sh

Additional information:

Either add a "cd ~/KlipperScreen/scripts/" command before the chmod, or use full path to the file. Attached a snippet from journalctl -u KlipperScreen.service

Log output

Started KlipperScreen.
Running /home/pi/KlipperScreen/scripts/launch_KlipperScreen.sh
/home/pi/KlipperScreen/scripts/KlipperScreen-start.sh: line 7: /home/pi/KlipperScreen/scripts/launch_KlipperScreen.sh: Permission denied
KlipperScreen.service: Main process exited, code=exited, status=126/n/a
KlipperScreen.service: Failed with result 'exit-code'.
KlipperScreen.service: Scheduled restart job, restart counter is at 7.
Stopped KlipperScreen.