[Solved] computers don't shutdown

'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
forstera
White ninja
White ninja
Posts: 12
Joined: 15 Aug 2018, 12:09
Distribution: porteus kiosk

[Solved] computers don't shutdown

Post#1 by forstera » 06 Sep 2018, 14:01

Hello all,
I've installed Porteus on 15 old computers to automatically connect to a Windows multipoint server to manage a classroom and this works great ! :)

But still have 2 smalls problems
I've a config.txt file on the network to manage them and a line to shutdown the computers every days at 19:30 (7:30 pm) but computers don't shutdown. I dont know what I did wrong ..

here's the line :
scheduled_action=Monday-19:30 Tuesday-19:30 Wednesday-19:30 Thursday-19:30 Friday-19:30 Saturday-19:30 Sunday-19:30 action:halt

the second one : computers automatically login with credentials to the Windows Server but is there a way, when they logoff, to automatically shutdown the local computer ?

Per advance, thanks very much for your help
Arnaud
Last edited by forstera on 07 Sep 2018, 11:48, edited 1 time in total.

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

computers don't shutdown

Post#2 by fanthom » 06 Sep 2018, 18:34

1) Please check system time on this webpage:
https://www.online-stopwatch.com/online-digital-clock/

If its incorrect then please make sure that NTP protocol is not blocked in your network. You may run these commands over SSH to confirm the NTP is ok:

Code: Select all

date
ntpdate pool.ntp.org
date
2) I dont think its possible as system is not able to check what page the browser is currently viewing (security feature) and javascript is not able to power off the PC (security feature).

The only solution would be a customized build which turns the PC off when browser is closed. Users would need to be instructed on the logoff page to close the browser. Or you could just use 'halt_idle=' parameter and set it to some relatively high value:
http://porteus-kiosk.org/parameters.html#halt_idle
Please add [Solved] to your thread title if the solution was found.

forstera
White ninja
White ninja
Posts: 12
Joined: 15 Aug 2018, 12:09
Distribution: porteus kiosk

computers don't shutdown

Post#3 by forstera » 06 Sep 2018, 20:10

Hello fanthom,
Thanks for your answers, I^'ll check the ntp tomorrow. According to your second answer, I forgot to say that Porteus is connecting to the terminal Server using the xfreerdp - FreeRDP X11 client package. I don't know if this makes a change.
Thanks very much :)

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

computers don't shutdown

Post#4 by fanthom » 07 Sep 2018, 04:59

If freerdp session closes automatically then it's easy to shutdown the PC:

Code: Select all

run_command=xfreerdp -arguments; halt
Please add [Solved] to your thread title if the solution was found.

forstera
White ninja
White ninja
Posts: 12
Joined: 15 Aug 2018, 12:09
Distribution: porteus kiosk

computers don't shutdown

Post#5 by forstera » 07 Sep 2018, 05:14

Will test that this morning, thanks very much :)

forstera
White ninja
White ninja
Posts: 12
Joined: 15 Aug 2018, 12:09
Distribution: porteus kiosk

computers don't shutdown

Post#6 by forstera » 07 Sep 2018, 11:46

the command run_command=xfreerdp -arguments; halt worked great, thanks very much :)
Still have to test the evening shutdown :)

Locked