Vbird CH5 的一些記錄。

2.6.32-279.2.1.e16
主版本.次版本.釋出版本-修改版本

主、次版本為奇數:開發中版本 (2.5.xx)
主、次版本為偶數:穩定版本 (2.6.xx)

可修改開機標籤為 flyfox's Linux
設定使用開機管理程式密碼將無法在遠端重新開機
取消系統時鐘使用UTC避免日光節約時間和正常時間的切換問題
安裝過程在 /root/install.log
選擇的軟體項目在 /root/anaconda-ks.cfg

安裝 NB 的參數
boot: linux nofb apm=off acpi=off pci=noacpi
nofb:取消顯示卡上面的緩衝記憶體偵測
apm、acpi:電源管理模組

強制使用 SELinux 以控制程式對系統檔案的存取權限

Kdump:除非要找 Kernel error dump 出的資料,否則關閉

重新啟動 X-Window:
登出 -> 登入
在 X-Window 中 alt+ctrl+backspace

Console tty1-6:ctrl+alt+F1~F6
X-Window:ctrl+alt+F7
# startx

登入畫面
CentOS release 6.3 (Final)
Kernel 2.6.32-279.2.1.e16.x86_64 on an x86_64
flyfox login:

# cat /etc/issue
CentOS release 6.3 (Final)
Kernel \r on an \m

# bc
unix 計算機
預設僅輸出整數,要算小數須設定 scale=number。

1. user commands
2. system call
3. library
4. special files
5. file formats and conventions
6. games
7. conventions and miscellaneous
8. system management commands
9. kernel routines

查詢系統中和 man 這個關鍵字有關的說明文件
# man -f man
# whatis man
man (7) - macros to format man pages
man (1) - an interface to the on-line reference manuals
man (1p) - display system documentation

查詢系統中有包含 man 這個字串的說明文件
# man -k man
# apropos man
Socket (3pm) - load the C socket.h defines and structure manipulators
Xcursor (3) - Cursor management library
aa-logprof (8) - utility program for managing AppArmor security profiles
accessdb (8) - dumps the content of a man-db database in a human readable format.
aclocal (1) - manual page for aclocal 1.10.1
AppleWM (3) - Apple rootless window management extension.
apropos (1) - search the manual page names and descriptions
Archive::Tar (3pm) - module for manipulations of tar archives
arp (8) - manipulate the system ARP cache
asn1_array2tree (3) - Creates the structures needed to manage the ASN1 definitions.
at (1p) - execute commands at a later time
AutoLoader (3pm) - load subroutines only on demand
automake (1) - manual page for automake 1.10.1
automount (8) - manage autofs mount points

使用 man -f、man -k 須先建立 whatis database,可用 root 以 makewhatis 建立,
建立好之後可指定要查詢 man(1)、man(7) 的文件。
# man 1 man
# man 7 man

查詢指令用法或檔案格式
# info info
/usr/share/info/

nano 文書編輯器
# nano test.txt

shutdown 可依據已啟動的服務逐次關閉(正常情況),
halt 可不理會系統狀態直接關閉硬體(有程式卡住)。

shutdown / halt / poweroff / init / reboot

run level 0:關機
run level 3:純文字介面
run level 5:圖形介面
run level 6:重新開機

根目錄沒有損毀的情況下修復硬碟:
# fsck /dev/sda5

根目錄損毀的情況下修復硬碟:
接到另一台電腦 fsck /dev/sdb1
使用 live CD fsck /dev/sda1

變更 root 密碼
進入 single user mode,讀秒時按任意鍵,接著按 e 來編輯命令,
移到 kernel /vmlinz-2.6.32-279.2.1.e16.x86_64 ro root=/dev/mapper/vg_flyfox/ 再按一次 e,
變更為 kernel /vmlinz-2.6.32-279.2.1.e16.x86_64 ro root=/dev/mapper/vg_flyfox/ single,
Enter 確定後再按一次 b 即可 boot,進入系統後 passwd 變更密碼。

arrow
arrow
    全站熱搜

    flyfox 發表在 痞客邦 留言(0) 人氣()