Автоматически обновите hwclock при начальной загрузке

Вы могли попытаться выполнить тот screen сессия с несколькими окнами, и настраивает каждое окно заранее через ~/.screenrc. Вот рабочий пример:

# Automatically running some programs in windows on screen startup.
# The following will open top in the first window, an ssh session to
# monkey in the next window, and then open mutt and tail in windows 8 
# and 9 respectively.

screen top
screen -t monkey ssh monkey
screen -t mail 8 mutt
screen -t daemon 9 tail -f /var/log/daemon.log

Украл его из /etc/screenrc - большой чистые, зарегистрированные примеры screen конфигурации там.

3
27.02.2015, 20:34
1 ответ

Установите фальшивую программу HWCLOCK:

# apt-get install fake-hwclock


fake-hwclock: Save/restore system clock on machines without working RTC hardware

 Some machines don't have a working realtime clock (RTC) unit, or no
 driver for the hardware that does exist. fake-hwclock is a simple set
 of scripts to save the kernel's current clock periodically (including
 at shutdown) and restore it at boot so that the system clock keeps at
 least close to realtime. This will stop some of the problems that may
 be caused by a system believing it has travelled in time back to
 1970, such as needing to perform filesystem checks at every boot.

 On top of this, use of NTP is still recommended to deal with the fake
 clock "drifting" while the hardware is halted or rebooting.

с установленным поддельным hwclock Ваш машиной не запускается, думая, что это 1970 год снова. Когда ваша машина загружается, она установит свои часы на Timestamp Fake-HwClock во время последней перезагрузки / выключения. Это означает, что вы можете иметь несколько правильных часов в случае, если вы загружаетесь.

2
27.01.2020, 21:27

Теги

Похожие вопросы