Many of you know this stuff but others do not so here
first so you do not have to enter password each time
Code:
sudo gedit /etc/sudoers
then add both lines at bottom of document and save
Code:
#includedir /etc/sudoers.d
username ALL=NOPASSWD: /sbin/halt
Code:
#includedir /etc/sudoers.d
username ALL=NOPASSWD: /sbin/shutdown
=============================================
NOW you can enter to turn off computer
or to reboot
============================================
But the good stuff is using the timer
Code:
sudo shutdown -h 08:48
will shut you down at 8:48
Code:
sudo shutdown -r 18:49
will reboot you at 18:49
Further options found with
===========================================
It means you start a download & ask your computer to shutdown 3 hours later for example
Bookmarks