I am using both Ubuntu and Lubuntu 16.04 and this question is regarding both of them.
I want my computer to always shut down 2 hours after it was turned on, i tried to use these instructions that I found to run a timed shutdown on startup but it does not work.
How can I do that?
1.Edit sudoers (you must be root):
At the end add following:
and save.
2.Crete .sh script:
add following there:
3.run "startup applications" tool you just need write it in search box. And press Add button:
Write there your .sh script name and path to it. Press add there too.