Matthieu Amiguet wrote:

1) How do I set the date/time in gentoo? do I have to set the system clock only, and let gentoo sync the hwclock at poweroff, or do I have to run the classical "date xxxxxx;hwclock --systohc" sequence?



U can use "date" + "hwclock -w" commands, but for future it's far
better to setup NTP daemon (emerge ntp), if u are online
or use rdate (emerge rdate)  if not.


2) How do I safely put my date 14 years back??? can I just set the date, or will it cause problems? should I try some magic "find" invocation to set every file dated 2017 back to 2003? Do I have to delete/modify certain settings/log files?



Yes, I would recommend find preocedure for different reasons ...
deleting logfiles is not necessary (afaik)
If u'll meet some problems with commands which use wtmp or so
do not delete it, but concatenate ( >/var/log/wtmp ), since
it's much safier.

Let's do this:

setup proper date

touch foo; find / -newer foo -exec touch -t 200312150000 {} \;

And everything should be OK

noro


-- [EMAIL PROTECTED] mailing list



Reply via email to