2 mkdir -pv /usr/lib/locale
3 localedef -i cs_CZ -f UTF-8 cs_CZ.UTF-8
4 localedef -i de_DE -f ISO-8859-1 de_DE
5 localedef -i de_DE@euro -f ISO-8859-15 de_DE@euro
6 localedef -i de_DE -f UTF-8 de_DE.UTF-8
7 localedef -i en_GB -f UTF-8 en_GB.UTF-8
8 localedef -i en_HK -f ISO-8859-1 en_HK
9 localedef -i en_PH -f ISO-8859-1 en_PH
10 localedef -i en_US -f ISO-8859-1 en_US
11 localedef -i en_US -f UTF-8 en_US.UTF-8
12 localedef -i es_MX -f ISO-8859-1 es_MX
13 localedef -i fa_IR -f UTF-8 fa_IR
14 localedef -i fr_FR -f ISO-8859-1 fr_FR
15 localedef -i fr_FR@euro -f ISO-8859-15 fr_FR@euro
16 localedef -i fr_FR -f UTF-8 fr_FR.UTF-8
17 localedef -i it_IT -f ISO-8859-1 it_IT
18 localedef -i it_IT -f UTF-8 it_IT.UTF-8
19 localedef -i ja_JP -f EUC-JP ja_JP
20 localedef -i ru_RU -f KOI8-R ru_RU.KOI8-R
21 localedef -i ru_RU -f UTF-8 ru_RU.UTF-8
22 localedef -i tr_TR -f UTF-8 tr_TR.UTF-8
23 localedef -i zh_CN -f GB18030 zh_CN.GB18030
25 cat > /etc/nsswitch.conf << "EOF"
26 # Begin /etc/nsswitch.conf
40 # End /etc/nsswitch.conf
44 tar -xf tzdata2012j.tar.gz
46 ZONEINFO=/usr/share/zoneinfo
47 mkdir -pv $ZONEINFO/{posix,right}
49 for tz in etcetera southamerica northamerica europe africa antarctica \
50 asia australasia backward pacificnew solar87 solar88 solar89 \
52 zic -L /dev/null -d $ZONEINFO -y "sh yearistype.sh" ${tz}
53 zic -L /dev/null -d $ZONEINFO/posix -y "sh yearistype.sh" ${tz}
54 zic -L leapseconds -d $ZONEINFO/right -y "sh yearistype.sh" ${tz}
57 cp -v zone.tab iso3166.tab $ZONEINFO
58 zic -d $ZONEINFO -p America/New_York
61 cp -v --remove-destination /usr/share/zoneinfo/Canada/Eastern \
64 cat > /etc/ld.so.conf << "EOF"
65 # Begin /etc/ld.so.conf
71 cat >> /etc/ld.so.conf << "EOF"
72 # Add an include directory
73 include /etc/ld.so.conf.d/*.conf
76 mkdir /etc/ld.so.conf.d