# LANG=zh; export LANG # set the locale environment in Chinese.
# kill -9 `cat /etc/syslog.pid` # to kill the former syslogd
# /usr/sbin/syslogd
If you want syslogd to support Chinese characters whenever the
machine boot. Put the attacted file in the /etc/rc3.d directory.Make
sure this file"s mode is "rwxr-xr-x" and the owner is root.
105 Q: 我的工作站的交换分区分的太小了 , 除重装系统外 , 是否有其它办法将空间调
整一下 。
A: You can extend your swap region by issueing the following command:
#mkfile
#swap -a
Note: the
106 Q: 用vi打开一个script文件 , 发现里面有非法字符^M,在vi命令行如何全程替代
掉该字符?我试了一下用以下命令来做 , 却不行:0,$s/^M//
A: 1,$s/^M//g ,其中 , ^M是 ctrl V ,ctrl M,或者 , 用下面这个命令 。
\unix2dos $filename > $newfilename
107 Q: How to add space to a filesystem in solaris2.5.7 ? When I patchadd a
patch,It tell me that there is no sufficient filesystem capacity.
A: It seems like your root partition too small. Please check it
availiable size. If it is small, I think you would better to
reinstall the system. Please store all the data in the disk.
In the new installation, you need really to partitions, one is for
swap, and another is for /. The swap partition /tmp needs about 200M
to 500M. Then all the left should be given to /.
108 Q: 请教关于Solaris Patch的问题 。我们在安装一些软件时 , 经常需要先安装一
些Patch , 有一事不明 , 向您请教一下,比如某个软件需要Patch : 107546-02,
现在我的机器上已经安装107546-08 , 是不是就不用再安装107546-02了Patch
后面的那部分是什么意思?是不是大的数字可以包含小的数字的功能了? 同一
个Patch的不同版本之间会不会有冲突?
A: You are right. If you have installed a bigger version of the same
patch, it not necessary for you to install the smaller one. The
bigger version will override the earlier one if it installed before.
You need not worry about any collision.
109 Q: 关于sun的SunNet 我目前想了解关于sun的SunNet 。我从sun的网站上了解到
SunNet已经被合并入到Solstice里了 , 我目前想试着把我做得程序集成到
SunNet或Solstice里 , 我看了Slostice得White Paper,但里边只提到了一点点
相关得Api , 我从哪里 , 怎么才能到比较完全得文档呢?
A: To my knowledge, you can go to the following for a detailed info:
http://www.sun.com/software/solstice/em-products/network/sunnetmgr.html.
110 Q: 关于SUN机器root口令丢失问题 , 如何解决?
A: 办法如下:
利用SOLARIS的启动盘来启动 , 然后把硬盘mount上去 , 修改硬盘上原etc目录
下的shadow文件,将root项里的passWord域内容删除 , 变成无密码 。然后重新
启动主机 , 以无密码的root登陆后 , 重新设置root口令 。具体步骤如下:
1.把你的solaris光盘放进cdrom
2.键入stop a
3.当出现"ok"字样时,键入boot cdrom -s
4.cd /tmp/root
5.mkdir /tmp/root/xxx (xxx是什么鬼东西就无关紧要了)
6.mount /dev/dsk/c0t0d0s0 /tmp/root/xxx (在这里c0t0d0s0是你的root盘)
7.运行csh
8.setenv TERM vt220
9.cp /tmp/root/xxx/etc/shadow /tmp/root/xxx/shadow/shadow.bak
10.vi /tmp/root/xxx/shadow,并且将root项里的password域删除即可 。
11.重启动 , 你就可以以无密码的root登陆了 , 登录后 , 更改root的密码 。
111 Q: In solaris 2.6. when i use command "killall" ,all process started in
CDE will be killed and the eviroment will change to CDE login. I
looked up the man manual about "killall" ,it told me that "only root
can use the command".But I really use it with common id.In
solaris7 and solairs 8, with common id,i can"t use the common.can
推荐阅读
- 关于i519的红外和由红外所想到的
- solaris9下实现socks5代理
- 棉花苗期、蕾期和花铃期害虫的防治措施
- 如何在 solaris 中使用 auto mount 来 mount NFS
- 范闲和战豆豆什么关系
- solaris中有类似windows的DLL有关的函数吗?
- Solaris 8.0 +Oracle 9.2.0 +VRTSvcs 双机安装文档
- Solaris下究竟如何使用setuid/seteuid/setreuid
- 粉粉日记怎么同步和备份?粉粉日记同步和备份解决方法
- 华为p30中显示时间和天气的操作教程
