solaris 如何添加字符集
发布网友
发布时间:2022-05-04 22:57
我来回答
共1个回答
热心网友
时间:2022-06-26 21:04
准备在线添加还是线下添加?
如 线下添加准备好串口线,在root下执行sys-unconfig,系统会自动重启到obp下,就是ok>,接串口,然后执行boot,按照提示一步步往下走,到字符集选项中勾上你要添加的字符集,完成就ok了.相当于重新配置系统.
如 在线添加 为了便于用户对Solaris操作系统中的语言包进行便捷的管理,Solaris提供专门的本地化语言管理工具-localeadm。
一. 建立配置文件;
1. 插入语言包光盘或者DVD,或者确认你可以访问网络安装媒介;
2. 运行:# localeadm -C
3. 系统将会提示要建立配置文件,按照提示输入媒介目录,譬如 /media/cdrom或者/net/bounty/export/nv/x/95
二. 列示当前系统已经安装的语言支持;
-bash-3.2# localeadm -l
Checking for installed packages. This could take a
while.
Checking for Australasia region (aua)
(c_solaris packages)
|.|
No packages found.
Checking for Central America region (cam)
(c_solaris packages)
|.|
No packages found.
Checking for Central Europe region (ceu)
(c_solaris packages)
|.|
No packages found.
Checking for Eastern Europe region (eeu)
(c_solaris packages)
|.|
No packages found.
Checking for Middle East region (mea)
(c_solaris packages)
|.|
No packages found.
Checking for Northern Africa region (naf)
(c_solaris packages)
|.|
No packages found.
Checking for North America region (nam)
(c_solaris packages)
|.|
No packages found.
Checking for Northern Europe region (neu)
(c_solaris packages)
|.|
No packages found.
Checking for South America region (sam)
(c_solaris packages)
|.|
No packages found.
Checking for Southern Europe region (seu)
(c_solaris packages)
|.|
No packages found.
Checking for Western Europe region (weu)
(c_solaris packages)
|.|
No packages found.
Checking for Japanese region (ja)
(c_solaris packages)
|...|
Not all packages found (1 out of 3).
Checking for Korean region (korean)
(c_solaris packages)
|..|
Not all packages found (1 out of 2).
Checking for Simplified Chinese region (china)
(c_solaris
packages)
|..|
All packages found.
Checking for Simplified Chinese region (china)
(solaris1
packages)
|.............|
All packages found.
Checking for Simplified Chinese region (china)
(solaris2
packages)
|.....|
All packages found.
Checking for Simplified Chinese region (china)
(solaris3
packages)
|Checking for Simplified Chinese region (china)
(solaris4
packages)
|Checking for Simplified Chinese region (china)
(solaris5
packages)
|....|
All packages found.
Checking for Simplified Chinese region (china)
(Solaris6
packages)
|Checking for Simplified Chinese region (china)
(lan*1
packages)
|.....................................................................................|
All packages found.
Checking for Traditional Chinese (Hong Kong) region (hongkong)
(c_solaris
packages)
|..|
Not all packages found (1 out of 2).
Checking for Traditional Chinese region (taiwan)
(c_solaris
packages)
|..|
Not all packages found (1 out of 2).
Checking for Thai region (th_th)
(c_solaris packages)
|.|
No packages found.
Checking for Hindi region (hi_in)
(c_solaris packages)
|.|
No packages found.
-----------------
The following regions are installed on solaris-177 on Mon Dec 15 11:43:02 CST
2008
POSIX (C)
Simplified Chinese (china)
Done.
A copy of this report can be found in
/var/sadm/system/data/locales.list
三. 安装中文语言支持;
-bash-3.2# localeadm -a china(zh_CN) -d
/net/bounty/export/nv/x/95 //这是你的安装包位置(包括DVD、网络等等)
四. 重新启动计算机;在dtlogin的登录界面的语言栏会多出你所安装的语言选择。
五. 其他命令选项:
1. 删除语言支持; localeadm -r china
2. 查询某个特定语言是否已经安装; localeadm -q china
3.
制定操作时的目录: -d [directory]
4. 测试操作,可以在正式安装或者删除前,测试你的安装或者删除操作是否会成功; -t