Porteus Kiosk Turn On and Off

'User made' tutorials related to Porteus Kiosk edition.
Official kiosk documentation can be find here: http://porteus-kiosk.org/documentation.html
Forum rules
Porteus Kiosk section of the forum is unmaintained now. Its kept in a 'read only' mode for archival purposes.
Please use the kiosk contact page for directing your queries: https://porteus-kiosk.org/contact.html
eli_garrett
Ronin
Ronin
Posts: 1
Joined: 01 Nov 2017, 16:44
Distribution: 4.0

Porteus Kiosk Turn On and Off

Post#1 by eli_garrett » 01 Nov 2017, 16:51

I am looking for a way to turn on and off my Kiosk via IP commands. I can use a wake on lan command to turn my computers on. But I am unsure how to turn my computers off at night via an IP command. Is this possible? Also is there a way to send an IP command to the kiosk to get a status message showing that the kiosk is still running?

User avatar
fanthom
Moderator Team
Moderator Team
Posts: 5666
Joined: 28 Dec 2010, 02:42
Distribution: Porteus Kiosk
Location: Poland
Contact:

Porteus Kiosk Turn On and Off

Post#2 by fanthom » 01 Nov 2017, 21:07

1) you could enable ssh access to the kiosk during installation and then use following script to power it off:

Code: Select all

#!/bin/bash

sshpass -p root_password ssh -oUserKnownHostsFile=/dev/null -o StrictHostKeyChecking=no root@kiosk_IP -t "halt"
2) allow ping in the wizard and then use ping utility to check if kiosk is still online

Thanks
Please add [Solved] to your thread title if the solution was found.

Locked