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
Post Reply
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
Site Admin
Site Admin
Posts: 4617
Joined: 28 Dec 2010, 02:42
Distribution: Porteus Kiosk
Location: Poland, currently - Cork, IE
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.

Post Reply