Set Timezone & Date/Time

From 0xWIKI
Jump to: navigation, search

Set your timezone

 rm /etc/localtime
 ln -sf /usr/share/zoneinfo/America/Denver /etc/localtime

Edit /etc/conf.d/hwclock

 sed -i /'clock\='/c'clock\=\"America\/Denver\"' /etc/conf.d/hwclock


Set date with 'date'

 # format is MonthDayHourMinuteYear (e.g. 'date 010509302009')
 date MMDDhhmmYYYY

Setup NTP

 emerge ntp
 rc-update add ntp-client default
 /etc/init.d/ntp-client start
Personal tools