tsites
tsites computer tuition, website design, network security
software

Re-booter

Re-booter will restart your debian-linux-based computer at a given time every day, as long as the program and it's main window is open. You can make sure Re-booter is running by adding it to your login session startup items.

You simply select a time for it to run the reboot command. (you could also run any other 1 line command at that time by changing it in this window)

When the system time is the same as the selected hours:mins, the command will run after a delay of 40 seconds. This is to prevent multiple reboots as most Debian OS computers tend to fully restart and log back in within 30 seconds. Without the delay, the command could be triggered multiple times by mistake.

Instructions

Re-booter uses the 'sudo reboot' command as default. To be able to run this command in Debian as a normal user, you need to edit the sudoers file.

Open a terminal and become root by entering:

su

Then enter your root password.

Make a backup copy of your sudoers file with:

cp /etc/sudoers /etc/sudoers.old

To allow yourself to edit the file run:

chmod 777 /etc/sudoers

Then, edit the file with:

pluma /etc/sudoers

(Replace 'Pluma' with whatever your text editor is)
Add these lines (replacing tom with your user name):

# this user can reboot without entering a password
tom ALL=NOPASSWD:/sbin/reboot

Now file menu > save and close the text editor.

Set the permissions back to how they were:

chmod 440 /etc/sudoers

You can then close the terminal window. Reboot commands will now work without asking you for a password or failing due to authentication errors.

If you make a terrible error editing the sudoers file, you can restore the backup you made earlier by running:

rm /etc/sudoers && cp /etc/sudoers.old /etc/sudoers

Download

Download Re-booter for 64bit Debian Linux

Pricing

Re-booter is free.

Version history

version 0.1 - October 2021. First release

System requirements

Tested with Debian Buster 10, and Devuan 4. This version is for Debian Linux. It might work on Ubuntu and derivatives, but I'd recommend you use timedrestart instead for those distros.

If you have any suggestions, please get in touch via email. Many thanks.

Tom.

tom@tsites.co.uk