Adapting an S6 for OctoPrint

In my last project, I managed to get OctoPrint running inside Debian on my Galaxy S6. Everything was running fine, except a few small things keeping the system from being fully controllable from OctoPrint:

1) Can’t restart/shutdown phone from OctoPrint’s web interface
2) Permissions block 3D printer every time it’s reconnected
This post demonstrates the fix for the issue and some other benefits as a result.

OctoPrint on a Galaxy S6

**UPDATED 5/10/2020**
Why? I was quite happy with the performance and print quality I was able to get out of my 3D printer, a Monoprice Select Mini. With my print settings dialed in, I was ready to move on to getting my 3D printer to run a bit more independently. This led me to find OctoPrint, a convenient remote control and monitoring software that can run on various platforms.

Ideally, OctoPrint would be installed on a Linux-based single board computer like a Raspberry Pi. Unfortunately, I had no Pi, but I did have a possible alternative: a Samsung Galaxy S6.