The best way to reboot a Linux target system is from its desktop environment or with the reboot
command. If you can't do that because the Linux target system has crashed, you may still be able to safely reboot it using a magic SysRq key combination. TinyPilot can send the REISUB
key combination for you using a script.
Note: It isn't possible to send magic SysRq key combinations from TinyPilot using the physical or on-screen keyboards.
To add the "send-reisub" script, connect to your device over SSH and run the following commands:
sudo curl \
--silent \
--show-error \
--remote-name \
--create-dirs \
--output-dir "/usr/bin/tinypilot-user-scripts" \
"https://tinypilotkvm.com/scripts/send-reisub" &&
sudo chmod 755 "/usr/bin/tinypilot-user-scripts/" &&
sudo chmod 744 "/usr/bin/tinypilot-user-scripts/send-reisub"
Once you've installed the "send-reisub" script, you can run it by opening the "Scripts" menu and pressing "send-reisub". The script will immediately send the relevant commands to the target computer, which should reboot after a short delay.