Linux/Ubuntu2011. 4. 15. 10:57
리눅스와 윈도우를 하나의 pc에서 설치하면 시간이 오락가락한다 -_-
원인이라면 리눅스에서 하드웨어 시간을 UTC로 사용하기 때문이고
윈도우에서는 하드웨어 시간을 지역시간(한국이라면 KST)로 사용하기 때문이다.

그렇다면.. 리눅스에서 강제로 KST를 UTC로 조정해서 저장을 한다는 의미이려나 -ㅁ-?

아래의 ubuntu 도움말에서는 윈도우에서 UTC를 기본시간으로 설정하는 방법과
리눅스의 시간을 UTC로 사용하지 않는 방법 두가지를 설명해 놓았다.
Make Windows use UTC

Note: This method was not initially supported on Windows Vista and Server 2008, but came back with Vista SP2, Windows 7 and Server 2008 R2.

To make MS Windows calculate the time from the hardware clock as UTC.

    Create a file named WindowsTimeFixUTC.reg with the following contents and then double click on it to merge the contents with the registry:

Windows Registry Editor Version 5.00

[HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\TimeZoneInformation]
     "RealTimeIsUniversal"=dword:00000001

Make Linux use 'Local' time

To tell your Ubuntu system that the hardware clock is set to 'local' time:

    edit /etc/default/rcS
    add or change the following section

    # Set UTC=yes if your hardware clock is set to UTC (GMT)
    UTC=no

[링크 : https://help.ubuntu.com/community/UbuntuTime]

 sudo gedit /etc/default/rcS

# Set UTC=yes if your system clock is set to UTC (GMT), and UTC=no if not.
UTC=no

[링크 : http://ubuntuforums.org/archive/index.php/t-43810.html]

'Linux > Ubuntu' 카테고리의 다른 글

apt-get 관련  (0) 2011.06.05
PAE - Physical Address Extension  (0) 2011.05.08
Ubuntu 에서 듀얼 모니터 사용하기  (2) 2011.04.15
ubuntu 10.04 LTS 64bit  (0) 2011.03.22
우분투 32bit 최대 메모리 인식용량ㅠ  (2) 2011.03.20
Posted by 구차니
Linux2010. 9. 21. 00:32
POSIX는 "유닉스 관련 운영체제에 대한 이동성을 위한 표준" 이라고 하지만
도대체 무슨 의미인지 이해도 안되는데..

POSIX.1


이러한 시스템적인 녀석들에 대한 표준을 규정하고 있다.
하지만, 이녀석 검색을 파고 들다보니 예전에 Windows에서 NFS를 사용하는 방법중 하나인 SFU가 떠올랐고
MS Windows에서 POSIX를 지원하는 내용을 봤던게 떠올랐다.

[링크 : http://en.wikipedia.org/wiki/POSIX]
    [링크 : http://en.wikipedia.org/wiki/Microsoft_POSIX_subsystem[]
    [링크 : http://en.wikipedia.org/wiki/Microsoft_Windows_Services_for_UNIX]
        [링크 : http://support.microsoft.com/kb/324055]
        [링크 : http://www.microsoft.com/downloads/en/details.aspx] Download Windows Services for UNIX v3.5

물론 POSIX를 지원한다고 해서, 바이너리 수준의 호환성을 지원하는게 아니라
리눅스의 ELF 실행 파일들을 윈도우에서 실행할수도 있는게 아닌데
왜 MS Windows에서 POSIX를 지원하고 그걸 따르려는지는 조금 의문이었다.
(물론 미국정부 입찰시 정부 요구사항으로 POSIX 호환을 요구했다지만..)
FIPS - Federal Information Processing Standard
[링크 : http://en.wikipedia.org/wiki/Federal_Information_Processing_Standard]

개인적으로는 윈도우의 POSIX 를 따르는 것 중 하나가
NT 커널로 오면서 Program Files / Windows / Documents and Users 등의 File system hierachy 등부터
사용자 관리 등을 포함하는게 아닐까 싶었는데 음.. 이것과는 좀 다른것 같기도 하다.
Posted by 구차니