"Gentoo DateTime HowTo"의 두 판 사이의 차이
둘러보기로 가기
검색하러 가기
Darkcircle (토론 | 기여) (새 문서: ==개요== 한국의 한국에 대한 한국을 위한 젠투 리눅스의 날찌 시간 설정 방법입니다. (이외의 지역에서는 알아서 적절하게 설정하시기 바...) |
(차이 없음)
|
2013년 3월 24일 (일) 18:08 판
개요
한국의 한국에 대한 한국을 위한 젠투 리눅스의 날찌 시간 설정 방법입니다. (이외의 지역에서는 알아서 적절하게 설정하시기 바랍니다.)
필요한 패키지 설치
rdate와 net-misc/ntp, net-misc/openntpd 등이 있지만 여기서는 rdate의 사용을 지양 하고 openntpd 의 사용을 적극 권장하는 바입니다.
코드 예제 2.1: 필요한 패키지 설치하기 |
emerge sys-libs/timezone-data openntpd ntp-syntax |
참고: 필요한 패키지만 언급하였습니다. 기타 의존 요소 존재 여부에 대해서는 -pav 옵션을 사용하여 확인하십시오
시스템 설정
다음 명령을 내려 편집기를 통해 설정 파일을 엽니다. (emacs 신도라면 emacs로 여셔도 됩니다.)
코드 예제 3.1: 시스템 설정 |
# vi /etc/conf.d/hwclock |
다음 설정을 참고하여 적절하게 값을 기입해 넣으십시오.
# /etc/conf.d/clock
# Set CLOCK to "UTC" if your hardware clock is set to UTC (also known as
# Greenwich Mean Time). If that clock is set to the local time, then
# set CLOCK to "local".
# Note that if you dual boot with Windows, then you should set it to
# "local" because Windows always sets the hardware clock to local time.
CLOCK="local"
# Select the proper timezone. For valid values, peek inside of the
# /usr/share/zoneinfo/ directory. For example, some common values are
# "America/New_York" or "EST5EDT" or "Europe/Berlin". If you want to
# manage /etc/localtime yourself, set this to "".
TIMEZONE="Asia/Seoul"
# If you wish to pass any other arguments to hwclock during bootup,
# you may do so here.
CLOCK_OPTS=""
# If you want to set the Hardware Clock to the current System Time (software
# clock) during shutdown, then say "yes" here.
CLOCK_SYSTOHC="yes"
### ALPHA SPECIFIC OPTIONS ###
# If your alpha uses the SRM console, set this to "yes".
SRM="no"
# If your alpha uses the ARC console, set this to "yes".
ARC="no"