Page 1 of 1

[Solved] computers don't shutdown

Posted: 06 Sep 2018, 14:01
by forstera
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

computers don't shutdown

Posted: 06 Sep 2018, 18:34
by fanthom
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

computers don't shutdown

Posted: 06 Sep 2018, 20:10
by forstera
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 :)

computers don't shutdown

Posted: 07 Sep 2018, 04:59
by fanthom
If freerdp session closes automatically then it's easy to shutdown the PC:

Code: Select all

run_command=xfreerdp -arguments; halt

computers don't shutdown

Posted: 07 Sep 2018, 05:14
by forstera
Will test that this morning, thanks very much :)

computers don't shutdown

Posted: 07 Sep 2018, 11:46
by forstera
the command run_command=xfreerdp -arguments; halt worked great, thanks very much :)
Still have to test the evening shutdown :)