- 论坛徽章:
- 0
|
[color="#000000"]HP-UX在vi中如何才何输入汉字
HP-UX在vi中如何才何输入汉字
1,设置环境变量
#vi /etc/rc.config.d/LANG
默认的内容为:
LANG=C
export LANG
改为:
LANG=zh_CN.hp15CN
export LANG
2,增加这一行到/etc/profile
stty -istrip -parity cs8
3,重新登录
* 你可以检查这个文件/etc/kbdlang看内容是不是
PS2_DIN_S_Chines
hpux的启动过程
实在B2000中作的试验,如与其他系列机型不同,请大家做出补充。
hpux的启动过程概况如下:
pdc(Processor-dependent-code,在rom中,完成硬件自检
| 读取stable storge中的信息,如autosearch,
| primarypath等等,然后调用isl
isl (Initial system loader,在boot盘的lif区域。lif
| 区域主要有四个文件,分别是sl,hpux,AUTO,LABEL
| 在#下,可以使用lifls命令察看,同时可以使用
| lifcp 察看AUTO的内容。
| isl的主要任务是执行lif区域的hpux,同时也可
| 以改变stable storge中的部分信息,如
| primarypath,autoboot等等
hpux 引导os,主要是读取/stand/vmunix文件,同时把
| 控制权交给内核,
|
init 从这里开始,就是软件之间的启动了
说明:
1。hpux在系统的启动时是按照stable storge 中设置的
primarypath/alterpath/其他等来搜寻可引导盘的,
直到发现可引导盘为止,否则就会停在main command
状态。如果发现可引导盘,就到了isl状态
2。如果你忘了root密码,而且security=on的话,
如果你想获取密码,这只能拔掉硬盘。才能进入
单用户状态。
3。如果你设置了security=on,你想将它恢复成
security=off的话,可以这样,不用拔掉硬盘,
但需要使用光盘用recovery恢复系统。
在#下山掉isl
#lifrm /dev/rdsk/c2t6d0:ISL
#lifcp /dev/rdsk/c2t6d0:LABEL /dev/rdsk/c2t6d0:ISL
其中/dev/rdsk/c2t6d0为你的boot盘路径。关于为什么要使用lifcp请看注释
这样reboot以后,就会停在main command下,就可以
恢复security=on了,不过现在你的硬盘不能启动
了,你现在需要从光盘启动,到recovery shell中,
然后,从新生成boot盘的bootlif的东西)
4。如果你想改成光盘启动(重装系统之类的),这就更简单了,到
#下,使用setboot命令,将光盘的路径设为primarypath就可以了
使用命令 setboot -p 10/0/15/0.0.0
同时,最好将原boot盘设为alternativepath
使用命令:setboot -a 10/0/14/0.0.0 假设
10/0/15/0.0.0为光盘,10/0//14/0.0.0为硬盘
###############################################
注释:
Problem Description
When I do lifrm /dev/dsk/c0t6d0:ISL to remove the ISL area from
the LIF area (boot area) on my boot disk, and I reboot the system,
I am still able to go to ISL and boot -is and boot -lm.
Why is this possible?
Configuration Info
Operating System - HPUX
Version - 11.0
Hardware System - HP 9000
Series - D350
Solution
LIF is a filesystem structure that contains continuous files.
lifrm is nothing but purging file, and in that fs structure, all that
means is that the file type is set to PURGED, while nothing else is
touched. When booting, the system is looking for the file by name
and does not care about it's type; therefore, it finds the file and
boots. But, since the file type now is PURGED, then any lifcp
of a smaller file than ISL will use the first area in LIF that fits.
It will sit on top of ISL and will render the system unbootable.
本文来自ChinaUnix博客,如果查看原文请点:http://blog.chinaunix.net/u/5411/showart_23722.html |
|