Monday, December 19, 2011

Ubuntu Shutdown Automatically

Looking for an easy way to shutdown Ubuntu automatically? If you need to shutdown Ubuntu at, for example, midnight everyday, you’ll have to schedule a task that will run at midnight to perform or carry-out such action. If you need help with that, then this brief tutorial will show you how to do it.This guide shows you how to schedule a task in Ubuntu to automatically shutdown at a specific time daily. This is a great way to make sure that your PC isn’t running at times when on one is using it.
Objectives:
  • Schedule tasks in Ubuntu to automatically shutdown
  • Enjoy!

To get started, press Ctrl – Alt – T on your keyboard to open Terminal. When it opens, run the commands below to install gnome-schedule.

sudo apt-get install gnome-schedule

radmin@radmin-desktop:~$ sudo apt-get install gnome-schedule

After installing, launch gnome-schedule and schedule tasks.

sudo gnome-schedule

radmin@radmin-desktop:~$ sudo gnome-schedule

Next, select ‘New –> Recurrent task’

Then enter the description and the command to shutdown Ubuntu. The command is:
/sbin/poweroff

Select ‘Advanced’ under Time  & Date, then enter the minute, hour, day, month and weekday you want to task to run, then click ‘Add’
The scheduled task above runs at midnight every day.