Ubuntu Server 10.10 timed Boot Method:
Press F2 to enter BIOS settings and set daily timed boot.
Prone to problems:
The BIOS time is 8 hours slower than the system time. Set the BIOS time in the BIOS settings or set the BIOS time to the local time in the Ubuntu system, and set the BIOS time to a UTC time eight hours slower than the local time each time the system restarts.
Scenario reproduction:
Set the system to boot at every day. The BIOS time is found to be 8 hours slower than the system time. I will set the BIOS time to the system time. Www.linuxidc.com found that the BIOS time was 8 hours slower than the system time when it was restarted.
Cause:
Linux supports UTC time. The UTC time is 8 hours slower than the local time (Asia/Shanghai. BIOS has two correct time settings: 1. BIOS = local time, UTC = no; 2. BIOS = UTC time, UTC = yes. the above problem occurs because, although the BIOS time is set to the local time, because UTC is set to yes, the BIOS time is set to UTC time for each restart.
Solution:
Set UTC to no. Set UTC to no in/etc/default/rcS.
Timed Shutdown method:
Edit/etc/crontab and add a command: 55 23 *** root/sbin/shutdown-h now. Shutdown at every day. You can also set it in Scheduled Cron Jobs of webmin.