Tinycore Linux에서 작업할 일이 있어 작업 도중, curl이 SSL 에러를 뱉는다.
어라... 싶어서 date를 쳤는데... 2013년이란다... 허... 이것 참....
해결법
ntpclient를 설치하여 ntp를 이용한 동기화를 해 줄 것이다.
ntpclient 설치
tc@box:~$ tcetce-ab - Tiny Core Extension: Application Browser
S)earch P)rovides K)eywords or Q)uit: S
Enter starting chars of desired extension, e.g. abi: ntpclienttce를 이용하여 ntpclient를 검색한다
Title: ntpclient.tczDescription: ntp clientVersion: 2010.365Author: see list of sites belowOriginal-site: see list of sites belowCopying-policy: see list of sites belowSize: 12KBExtension_by: juanitoTags: ntp clientComments: an ntp (rfc-1305) client, its functionality is a small subset of xntpd ---------- This extension contains: ntpclient_2010_365 - GPLv2 - http://doolittle.icarus.com/ntpclient/ntpclient_2010_365.tar.gz ----------Change-log: first versionCurrent: 2015/03/14~~~~ntpclient.tcz정보가 나오는데, Q를 눌러 나가준다
A)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를 눌러 설치한다
tc@box:~$ ntpclientUsage: ntpclient [-c count] [-d] [-f frequency] [-g goodness] -h hostname [-i interval] [-l] [-p port] [-q min_delay] [-r] [-s] [-t]설치 후 나와서 ntpclient를 쳐보면 사용 가능하다
ntpclient로 동기화
sudo ntpclient -s -c 1 -h pool.ntp.org다음과 같이 입력하여 pool.ntp.org와 동기화한다.
tc@box:~$ dateFri Feb 11 19:57:53 UTC 2022시간 확인
여담
- 생각해보니까 사용 전에 바이오스 초기화를 해서 날짜가 안맞는거였다...
안내
해당 글은 '도다 Aha!'에서 이전된 글입니다. 이전 글과 달라진 부분이 있을 수 있습니다.
태그
linux
•
ntp
•
tinycore
반응과 댓글 시스템은 Giscus에 의해 호스팅되며, 모든 대화는 GitHub에 저장됩니다.