💡Aha!

Tinycore Linux 시간 안 맞을때

Tinycore Linux에서 작업할 일이 있어 작업 도중, curl이 SSL 에러를 뱉는다.

어라... 싶어서 date를 쳤는데... 2013년이란다... 허... 이것 참....

해결법

ntpclient를 설치하여 ntp를 이용한 동기화를 해 줄 것이다.

ntpclient 설치

1tc@box:~$ tce
2tce-ab - Tiny Core Extension: Application Browser
3
4S)earch P)rovides K)eywords or Q)uit: S
5
6Enter starting chars of desired extension, e.g. abi: ntpclient

tce를 이용하여 ntpclient를 검색한다

1Title: ntpclient.tcz
2Description: ntp client
3Version: 2010.365
4Author: see list of sites below
5Original-site: see list of sites below
6Copying-policy: see list of sites below
7Size: 12KB
8Extension_by: juanito
9Tags: ntp client
10Comments: an ntp (rfc-1305) client, its functionality is a small subset of xntpd
11 ----------
12 This extension contains:
13 ntpclient_2010_365 - GPLv2 - http://doolittle.icarus.com/ntpclient/ntpclient_2010_365.tar.gz
14 ----------
15Change-log: first version
16Current: 2015/03/14
17~
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:~$ ntpclient
2Usage: ntpclient [-c count] [-d] [-f frequency] [-g goodness] -h hostname
3 [-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:~$ date
2Fri Feb 11 19:57:53 UTC 2022

시간 확인

여담

  • 생각해보니까 사용 전에 바이오스 초기화를 해서 날짜가 안맞는거였다...
2024 Dohyun Jung.
Made with ☕️.