| 1 | = preseed : 無人值守自動安裝 Debian = |
| 2 | |
| 3 | == DEBUG == |
| 4 | |
| 5 | * [參考] [http://www.debian.org/releases/squeeze/i386/apbs03.html.en B.3. Creating a preconfiguration file] |
| 6 | {{{ |
| 7 | To check possible values for questions, you can use nano to examine the files in /var/lib/cdebconf |
| 8 | while an installation is in progress. View templates.dat for the raw templates and questions.dat for |
| 9 | the current values and for the values assigned to variables. |
| 10 | |
| 11 | To check if the format of your preconfiguration file is valid before performing an install, you can |
| 12 | use the command debconf-set-selections -c preseed.cfg. |
| 13 | }}} |
| 14 | * 安裝過程中,可以按 ALT-F2 換到另一個 console,並使用 nano 編輯器檢查 /var/lib/cdebconf 底下的 questions.dat 來得知可能會詢問的問題 |
| 15 | * 可以使用以下指令驗證 preseed 設定檔是否正確 |
| 16 | {{{ |
| 17 | ~$ sudo debconf-set-selections -c preseed.cfg |
| 18 | }}} |