Tinycore Linux 시간 안 맞을때
Tinycore Linux에서 작업할 일이 있어 작업 도중, curl이 SSL 에러를 뱉는다.
어라... 싶어서 date를 쳤는데... 2013년이란다... 허... 이것 참....
해결법
ntpclient를 설치하여 ntp를 이용한 동기화를 해 줄 것이다.
ntpclient 설치
1tc@box:~$ tce2tce-ab - Tiny Core Extension: Application Browser34S)earch P)rovides K)eywords or Q)uit: S56Enter starting chars of desired extension, e.g. abi: ntpclient
tce를 이용하여 ntpclient를 검색한다
1Title: ntpclient.tcz2Description: ntp client3Version: 2010.3654Author: see list of sites below5Original-site: see list of sites below6Copying-policy: see list of sites below7Size: 12KB8Extension_by: juanito9Tags: ntp client10Comments: an ntp (rfc-1305) client, its functionality is a small subset of xntpd11 ----------12 This extension contains:13 ntpclient_2010_365 - GPLv2 - http://doolittle.icarus.com/ntpclient/ntpclient_2010_365.tar.gz14 ----------15Change-log: first version16Current: 2015/03/1417~18~19~20~21ntpclient.tcz
정보가 나오는데, Q를 눌러 나가준다
1A)bout I)nstall O)nDemand D)epends T)ree F)iles siZ)e L)ist S)earch P)rovides K)eywords or Q)uit: I
선택 칸에서 I를 눌러 설치한다
1tc@box:~$ ntpclient2Usage: ntpclient [-c count] [-d] [-f frequency] [-g goodness] -h hostname3 [-i interval] [-l] [-p port] [-q min_delay] [-r] [-s] [-t]
설치 후 나와서 ntpclient를 쳐보면 사용 가능하다
ntpclient로 동기화
1sudo ntpclient -s -c 1 -h pool.ntp.org
다음과 같이 입력하여 pool.ntp.org와 동기화한다.
1tc@box:~$ date2Fri Feb 11 19:57:53 UTC 2022
시간 확인
여담
- 생각해보니까 사용 전에 바이오스 초기화를 해서 날짜가 안맞는거였다...