FlossDoc: 请协力 GPLv3 的中文翻译工作。
使用 Kickstart 自動安裝 GNU/Linux
FlossDoc,自由中文開源知識庫
目录 |
[编辑]
建立 Kickstart 配置檔案
[编辑]
使用 Anaconda 建立的 Kickstart 配置檔案
安裝 CentOS/Fedora/RHEL 時,其安裝程式 Anaconda 會自動產生 Kickstart 配置檔案 /root/anaconda-ks.cfg。這檔案可以作為設定 Kictstart 配置檔案的基礎。
# Kickstart file automatically generated by anaconda. install cdrom lang en_US.UTF-8 keyboard us xconfig --startxonboot network --device eth0 --bootproto dhcp rootpw --iscrypted $1$Kze/u1ST$5aIojW/G9KsP9cZRohoFK. firewall --disabled authconfig --enableshadow --enablemd5 selinux --disabled timezone Asia/Hong_Kong bootloader --location=mbr --driveorder=hde,sda --append="rhgb quiet" # The following is the partition information you requested # Note that any partitions you deleted are not expressed # here so unless you clear all partitions first, this is # not guaranteed to work #part / --fstype ext3 --onpart hde1 #part swap --onpart hde2 %packages @base @core @dialup @editors @gnome-desktop @games @graphical-internet @graphics @office @printing @sound-and-video @text-internet @base-x keyutils trousers fipscheck device-mapper-multipath libsane-hpaio
- install 或 upgrade - 安裝一個全新 GNU/Linux 或升級一個舊 GNU/Linux
- cdrom - 使用安裝光碟安裝而非透過網絡安裝。
- lang - 設定系統語言
lang zh_TW.UTF-8 - network - 設定網絡
network --device eth0 --bootproto dhcp - keyboard - 設定鍵盤排列
keyboard us - timezone - 設定時區
timezone --utc Asia/Hong_Kong - rootpw - 設定 root 的密碼
rootpw --iscrypted EvPXdF/cQsBI - auth
- autopart (可省略) - 自動建立硬碟分割區 - 1 GB 或以上的根 (/) 分區,置換 (swap) 分區和一個啟動分區 (boot partition)。可以使用 part 指令定義個別分區的大小。
- --encrypted - 加密所有支援分割區。
- --passphrase= - 設定加密分區的預設密碼
- --escrowcert=URL - 將所有加密分區的資料加密金鑰存放在 / (root) 的檔案 (每一個加密分區一個檔案) ,並以選項所提定 URL 的 X.509 電子證書加密。只在有 --encrypted 選項時才有效。
- --backuppassphrase= - 有每個加密分區加入隨機產生的密碼,並把密碼存放在 / (root) 的檔案,並使用選項 --escrowcert 提定的 X.509 電子證書加密。只在有 --escrowcert 選項時才有效。
- %packages - 列出要安裝的軟件套件。
- %post - 安裝完成後要進行的動作。
[编辑]
請參看
[编辑]
相關連結
- 維基百科: Kictstart (Linux) - 維基百科關於 Kickstart 的說明。
- Red Hat Enterprise Linux 6 Installation Guide: Chapter 32. Kickstart Installations (Red Hat Engineering Content Services 2010)

