当前位置: 首页 > 图文教程 > 操作系统 > Solaris > 修改solaris的默认语言

Solaris
Solaris系统硬盘分区知识
Solaris9系统上安装Oracle10g RAC
solaris/linux 增加swap交换空间的方法
Solaris系统上Mount(挂载) NTFS / FAT32 / FAT16 / EXT2 / EXT3文件系统
solaris系统配置文件说明
Solaris系统使用小技巧
Solaris 10 x86系统上添加新硬盘
Solaris 10 x86系统下安装gcc过程
改变Solaris 系统运行级别 init
Solaris10.0 文件系统备份和恢复
Solaris系统多用户模式下系统备份和多分区写入磁带
Solaris系统下配置MPXIO
Solaris10.0下挂载光驱
Solaris系统维护经验的几点总结
Solaris10之加载Windows/EXT等分区数据
手工设置Solaris 10.0 上网
详细Solaris 11 安装图解教程
Solaris 远程磁带备份步骤
Solaris 命令 小结

Solaris 中的 修改solaris的默认语言


出处:互联网   整理: 软晨网(RuanChen.com)   发布: 2010-01-15   浏览: 160 ::
收藏到网摘: n/a

安装solaris时用了中文版,用ssh连接中文会出现乱码情况,所以修改solaris默认语言为英文模式

#chmod u+w /etc/default/init
#vi /etc/default/init
$ cat init
#
# Copyright 1992, 1999-2002 Sun Microsystems, Inc.  All rights reserved.
# Use is subject to license terms.
#
#ident  "@(#)init.dfl   1.7     02/12/03 SMI"
#
# This file is /etc/default/init.  /etc/TIMEZONE is a symlink to this file.
# This file looks like a shell script, but it is not.  To maintain
# compatibility with old versions of /etc/TIMEZONE, some shell constructs
# (i.e., export commands) are allowed in this file, but are ignored.
#
# Lines of this file should be of the form VAR=value, where VAR is one of
# TZ, LANG, CMASK, or any of the LC_* environment variables.  value may
# be enclosed in double quotes (") or single quotes (').
#
TZ=PRC
CMASK=022
LANG=EN //使用英文字体
#LANG=zh_CN.UTF-8  //原来默认的中文,注解掉

保存重启