ラズパイ /etc/localtime /etc/timezoneの変更
ntpパッケージをapt-get installしたとして、
hirasawa@raspi-81 ~ $ date Tue Apr 23 07:40:01 UTC 2013 hirasawa@raspi-81 ~ $ sudo tzconfig WARNING: the tzconfig command is deprecated, please use: dpkg-reconfigure tzdata hirasawa@raspi-81 ~ $ dpkg-reconfigure tzdata /usr/sbin/dpkg-reconfigure must be run as root hirasawa@raspi-81 ~ $ sudo su - root@raspi-81:~# dpkg-reconfigure tzdata Current default time zone: 'Asia/Tokyo' Local time is now: Tue Apr 23 16:41:36 JST 2013. Universal Time is now: Tue Apr 23 07:41:36 UTC 2013. root@raspi-81:~# date Tue Apr 23 16:41:46 JST 2013 root@raspi-81:~# root@raspi-81:/etc# cat timezone | strings Asia/Tokyo root@raspi-81:/etc# cat localtime | strings TZif2 TZif2 JST-9 root@raspi-81:/etc#
root@raspi-81:/etc# ntpq -p remote refid st t when poll reach delay offset jitter ============================================================================== ntt-route.hiras .STEP. 16 u - 64 0 0.000 0.000 0.000 +ntp-b3.nict.go. .NICT. 1 u 28 64 37 13.595 -20.072 14.444 *ntp-a2.nict.go. .NICT. 1 u 18 64 77 11.628 -21.356 15.594 +ntp-a3.nict.go. .NICT. 1 u 22 64 77 10.465 -20.554 14.789 +ntp-b2.nict.go. .NICT. 1 u 56 64 77 14.072 -19.441 14.692 root@raspi-81:/etc#