how to set timezone on the chroot environment

1,211 views
Skip to first unread message

Ted

unread,
Mar 28, 2011, 10:07:20 PM3/28/11
to DealExtreme NAS
Hi, i am just sharing something i learnt new just now. As i was using
nas to rip stream and name the files according to the date, i realized
that the chroot env and the machine root are actually in different
timezones by default. The one u can set in your web gui only makes
effect on the machine root. For the chroot env, the timezone needs to
be set like this:
ln -sf /usr/share/zoneinfo/America/_____ /etc/localtime
where as the underscored part is the path to your timezone in the
chroot env, so the
/usr/share/zoneinfo/America/___ is actually /usb/sda1/debian/usr/share/
zoneinfo/America/_____
America/_____ doesnt have to be in the America dir, it can be a
directory above such as the UTC or other timezones in other parts of
the world such as Asia.etc.
Hope this is helpful to anyone
Ted

yk42b7

unread,
Mar 30, 2011, 4:58:21 AM3/30/11
to DealExtreme NAS
Type :

dpkg-reconfigure tzdata

and follow the instructions ! it worked great for me.

Ted

unread,
Mar 30, 2011, 12:28:29 PM3/30/11
to DealExtreme NAS
wow! i didn't find this command, this seems like a wayy more friendly
way of doing it! thanks for sharing!
Reply all
Reply to author
Forward
0 new messages