root:/sources/glibc-build# mkdir -pv /usr/lib/locale mkdir: created directory '/usr/lib/locale' root:/sources/glibc-build# localedef -i cs_CZ -f UTF-8 cz_CZ.UTF-8 root:/sources/glibc-build# localedef -i de_DE -f ISO-8859-1 de_DE root:/sources/glibc-build# localedef -i de_DE@euro -f ISO-8859-15 de_DE@euro root:/sources/glibc-build# grep Error glibc-check-log^C root:/sources/glibc-build# localedef -i de_DE -f UTF-8 de_DE.UTF-8 root:/sources/glibc-build# localedef -i en_GB -f UTF-8 en_GB.UTF-8 root:/sources/glibc-build# localedef -i en_HK -f ISO-8859-1 en_HK root:/sources/glibc-build# localedef -i en_PH -f ISO-8859-1 en_PH root:/sources/glibc-build# localedef -i en_US -f ISO-8859-1 en_US root:/sources/glibc-build# localedef -i en_US -f UTF-8 en_US.UTF-8 root:/sources/glibc-build# localedef -i es_MX -f ISO-8859-1 es_MX root:/sources/glibc-build# localedef -i fa_IR -f UTF-8 fa_IR root:/sources/glibc-build# localedef -i fr_FR -f ISO-8859-1 fr_FR root:/sources/glibc-build# localedef -i fr_FR@euro -f ISO-8859-15 fr_FR@euro root:/sources/glibc-build# localedef -i fr_FR -f UTF-8 fr_FR.UTF-8 root:/sources/glibc-build# localedef -i it_IT -f ISO-8859-1 it_IT root:/sources/glibc-build# localedef -i it_IT -f UTF-8 it_IT.UTF-8 root:/sources/glibc-build# localedef -i ja_JP -f EUC-JP ja_JP root:/sources/glibc-build# localedef -i ru_RU -f KOI8-R ru_RU.KOI8-R root:/sources/glibc-build# localedef -i ru_RU -f UTF-8 ru_RU.UTF-8 root:/sources/glibc-build# localedef -i tr_TR -f UTF-8 tr_TR.UTF-8 root:/sources/glibc-build# localedef -i zh_CN -f GB18030 zh_CN.GB18030 root:/sources/glibc-build# cat > /etc/nsswitch.conf << "EOF" > # Begin /etc/nsswitch.conf > > passwd: files > group: files > shadow: files > > hosts: files dns > networks: files > > protocols: files > services: files > ethers: files > rpc: files > > # End /etc/nsswitch.conf > EOF root:/sources/glibc-build# root:/sources/glibc-build# root:/sources/glibc-build# tar -xf ../tzdata2013i.tar.gz root:/sources/glibc-build# root:/sources/glibc-build# ZONEINFO=/usr/share/zoneinfo root:/sources/glibc-build# mkdir -pv $ZONEINFO/{posix,right} mkdir: created directory '/usr/share/zoneinfo/posix' mkdir: created directory '/usr/share/zoneinfo/right' root:/sources/glibc-build# asia australasia backward pacificnew systemv; do > zic -L /dev/null -d $ZONEINFO -y "sh yearistype.sh" ${tz} > zic -L /dev/null -d $ZONEINFO/posix -y "sh yearistype.sh" ${tz} > zic -L leapseconds -d $ZONEINFO/right -y "sh yearistype.sh" ${tz} > done root:/sources/glibc-build# root:/sources/glibc-build# cp -v zone.tab iso3166.tab $ZONEINFO 'zone.tab' -> '/usr/share/zoneinfo/zone.tab' 'iso3166.tab' -> '/usr/share/zoneinfo/iso3166.tab' root:/sources/glibc-build# zic -d $ZONEINFO -p America/New_York root:/sources/glibc-build# unset ZONEINFO root:/sources/glibc-build# tzselect Please identify a location so that time zone rules can be set correctly. Please select a continent, ocean, "coord", or "TZ". 1) Africa 2) Americas 3) Antarctica 4) Arctic Ocean 5) Asia 6) Atlantic Ocean 7) Australia 8) Europe 9) Indian Ocean 10) Pacific Ocean 11) coord - I want to use geographical coordinates. 12) TZ - I want to specify the time zone using the Posix TZ format. #? 2 Please select a country whose clocks agree with yours. 1) Anguilla 28) Haiti 2) Antigua & Barbuda 29) Honduras 3) Argentina 30) Jamaica 4) Aruba 31) Martinique 5) Bahamas 32) Mexico 6) Barbados 33) Montserrat 7) Belize 34) Nicaragua 8) Bolivia 35) Panama 9) Brazil 36) Paraguay 10) Canada 37) Peru 11) Caribbean Netherlands 38) Puerto Rico 12) Cayman Islands 39) St Barthelemy 13) Chile 40) St Kitts & Nevis 14) Colombia 41) St Lucia 15) Costa Rica 42) St Maarten (Dutch part) 16) Cuba 43) St Martin (French part) 17) Curacao 44) St Pierre & Miquelon 18) Dominica 45) St Vincent 19) Dominican Republic 46) Suriname 20) Ecuador 47) Trinidad & Tobago 21) El Salvador 48) Turks & Caicos Is 22) French Guiana 49) United States 23) Greenland 50) Uruguay 24) Grenada 51) Venezuela 25) Guadeloupe 52) Virgin Islands (UK) 26) Guatemala 53) Virgin Islands (US) 27) Guyana #? 49 Please select one of the following time zone regions. 1) Eastern Time 2) Eastern Time - Michigan - most locations 3) Eastern Time - Kentucky - Louisville area 4) Eastern Time - Kentucky - Wayne County 5) Eastern Time - Indiana - most locations 6) Eastern Time - Indiana - Daviess, Dubois, Knox & Martin Counties 7) Eastern Time - Indiana - Pulaski County 8) Eastern Time - Indiana - Crawford County 9) Eastern Time - Indiana - Pike County 10) Eastern Time - Indiana - Switzerland County 11) Central Time 12) Central Time - Indiana - Perry County 13) Central Time - Indiana - Starke County 14) Central Time - Michigan - Dickinson, Gogebic, Iron & Menominee Counties 15) Central Time - North Dakota - Oliver County 16) Central Time - North Dakota - Morton County (except Mandan area) 17) Central Time - North Dakota - Mercer County 18) Mountain Time 19) Mountain Time - south Idaho & east Oregon 20) Mountain Standard Time - Arizona (except Navajo) 21) Pacific Time 22) Alaska Time 23) Alaska Time - Alaska panhandle 24) Alaska Time - southeast Alaska panhandle 25) Alaska Time - Alaska panhandle neck 26) Alaska Time - west Alaska 27) Aleutian Islands 28) Metlakatla Time - Annette Island 29) Hawaii #? 21 /usr/bin/tzselect: line 439: /sources/glibc-build/America/Los_Angeles: No such file or directory /usr/bin/tzselect: time zone files are not set up correctly root:/sources/glibc-build# cd root:~# tzselect /usr/bin/tzselect: line 171: /root/iso3166.tab: No such file or directory /usr/bin/tzselect: time zone files are not set up correctly root:~# cd /usr/share/zoneinfo/ root:/usr/share/zoneinfo# tzselect Please identify a location so that time zone rules can be set correctly. Please select a continent, ocean, "coord", or "TZ". 1) Africa 2) Americas 3) Antarctica 4) Arctic Ocean 5) Asia 6) Atlantic Ocean 7) Australia 8) Europe 9) Indian Ocean 10) Pacific Ocean 11) coord - I want to use geographical coordinates. 12) TZ - I want to specify the time zone using the Posix TZ format. #? 2 Please select a country whose clocks agree with yours. 1) Anguilla 28) Haiti 2) Antigua & Barbuda 29) Honduras 3) Argentina 30) Jamaica 4) Aruba 31) Martinique 5) Bahamas 32) Mexico 6) Barbados 33) Montserrat 7) Belize 34) Nicaragua 8) Bolivia 35) Panama 9) Brazil 36) Paraguay 10) Canada 37) Peru 11) Caribbean Netherlands 38) Puerto Rico 12) Cayman Islands 39) St Barthelemy 13) Chile 40) St Kitts & Nevis 14) Colombia 41) St Lucia 15) Costa Rica 42) St Maarten (Dutch part) 16) Cuba 43) St Martin (French part) 17) Curacao 44) St Pierre & Miquelon 18) Dominica 45) St Vincent 19) Dominican Republic 46) Suriname 20) Ecuador 47) Trinidad & Tobago 21) El Salvador 48) Turks & Caicos Is 22) French Guiana 49) United States 23) Greenland 50) Uruguay 24) Grenada 51) Venezuela 25) Guadeloupe 52) Virgin Islands (UK) 26) Guatemala 53) Virgin Islands (US) 27) Guyana #? 49 Please select one of the following time zone regions. 1) Eastern Time 2) Eastern Time - Michigan - most locations 3) Eastern Time - Kentucky - Louisville area 4) Eastern Time - Kentucky - Wayne County 5) Eastern Time - Indiana - most locations 6) Eastern Time - Indiana - Daviess, Dubois, Knox & Martin Counties 7) Eastern Time - Indiana - Pulaski County 8) Eastern Time - Indiana - Crawford County 9) Eastern Time - Indiana - Pike County 10) Eastern Time - Indiana - Switzerland County 11) Central Time 12) Central Time - Indiana - Perry County 13) Central Time - Indiana - Starke County 14) Central Time - Michigan - Dickinson, Gogebic, Iron & Menominee Counties 15) Central Time - North Dakota - Oliver County 16) Central Time - North Dakota - Morton County (except Mandan area) 17) Central Time - North Dakota - Mercer County 18) Mountain Time 19) Mountain Time - south Idaho & east Oregon 20) Mountain Standard Time - Arizona (except Navajo) 21) Pacific Time 22) Alaska Time 23) Alaska Time - Alaska panhandle 24) Alaska Time - southeast Alaska panhandle 25) Alaska Time - Alaska panhandle neck 26) Alaska Time - west Alaska 27) Aleutian Islands 28) Metlakatla Time - Annette Island 29) Hawaii #? 21 The following information has been given: United States Pacific Time Therefore TZ='America/Los_Angeles' will be used. Local time is now: Fri May 30 18:58:54 PDT 2014. Universal Time is now: Sat May 31 01:58:54 UTC 2014. Is the above information OK? 1) Yes 2) No #? 1 You can make this change permanent for yourself by appending the line TZ='America/Los_Angeles'; export TZ to the file '.profile' in your home directory; then log out and log in again. Here is that TZ value again, this time on standard output so that you can use the /usr/bin/tzselect command in shell scripts: America/Los_Angeles root:/usr/share/zoneinfo# cp -v /usr/share/zoneinfo/America/Los_Angeles /etc/localtime '/usr/share/zoneinfo/America/Los_Angeles' -> '/etc/localtime'