- 論壇徽章:
- 0
|
[color="#000000"]HP-UX在vi中如何才何輸入漢字
HP-UX在vi中如何才何輸入漢字
1,設(shè)置環(huán)境變量
#vi /etc/rc.config.d/LANG
默認(rèn)的內(nèi)容為:
LANG=C
export LANG
改為:
LANG=zh_CN.hp15CN
export LANG
2,增加這一行到/etc/profile
stty -istrip -parity cs8
3,重新登錄
* 你可以檢查這個文件/etc/kbdlang看內(nèi)容是不是
PS2_DIN_S_Chines
hpux的啟動過程
實在B2000中作的試驗,如與其他系列機型不同,請大家做出補充。
hpux的啟動過程概況如下:
pdc(Processor-dependent-code,在rom中,完成硬件自檢
| 讀取stable storge中的信息,如autosearch,
| primarypath等等,然后調(diào)用isl
isl (Initial system loader,在boot盤的lif區(qū)域。lif
| 區(qū)域主要有四個文件,分別是sl,hpux,AUTO,LABEL
| 在#下,可以使用lifls命令察看,同時可以使用
| lifcp 察看AUTO的內(nèi)容。
| isl的主要任務(wù)是執(zhí)行l(wèi)if區(qū)域的hpux,同時也可
| 以改變stable storge中的部分信息,如
| primarypath,autoboot等等
hpux 引導(dǎo)os,主要是讀取/stand/vmunix文件,同時把
| 控制權(quán)交給內(nèi)核,
|
init 從這里開始,就是軟件之間的啟動了
說明:
1。hpux在系統(tǒng)的啟動時是按照stable storge 中設(shè)置的
primarypath/alterpath/其他等來搜尋可引導(dǎo)盤的,
直到發(fā)現(xiàn)可引導(dǎo)盤為止,否則就會停在main command
狀態(tài)。如果發(fā)現(xiàn)可引導(dǎo)盤,就到了isl狀態(tài)
2。如果你忘了root密碼,而且security=on的話,
如果你想獲取密碼,這只能拔掉硬盤。才能進入
單用戶狀態(tài)。
3。如果你設(shè)置了security=on,你想將它恢復(fù)成
security=off的話,可以這樣,不用拔掉硬盤,
但需要使用光盤用recovery恢復(fù)系統(tǒng)。
在#下山掉isl
#lifrm /dev/rdsk/c2t6d0:ISL
#lifcp /dev/rdsk/c2t6d0:LABEL /dev/rdsk/c2t6d0:ISL
其中/dev/rdsk/c2t6d0為你的boot盤路徑。關(guān)于為什么要使用lifcp請看注釋
這樣reboot以后,就會停在main command下,就可以
恢復(fù)security=on了,不過現(xiàn)在你的硬盤不能啟動
了,你現(xiàn)在需要從光盤啟動,到recovery shell中,
然后,從新生成boot盤的bootlif的東西)
4。如果你想改成光盤啟動(重裝系統(tǒng)之類的),這就更簡單了,到
#下,使用setboot命令,將光盤的路徑設(shè)為primarypath就可以了
使用命令 setboot -p 10/0/15/0.0.0
同時,最好將原boot盤設(shè)為alternativepath
使用命令:setboot -a 10/0/14/0.0.0 假設(shè)
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 |
|