| 228 | |
| 229 | == DEBUG 除錯技巧 == |
| 230 | |
| 231 | * [參考] [http://www.debian.org/releases/squeeze/i386/apbs03.html.en B.3. Creating a preconfiguration file] |
| 232 | {{{ |
| 233 | To check possible values for questions, you can use nano to examine the files in /var/lib/cdebconf |
| 234 | while an installation is in progress. View templates.dat for the raw templates and questions.dat for |
| 235 | the current values and for the values assigned to variables. |
| 236 | |
| 237 | To check if the format of your preconfiguration file is valid before performing an install, you can |
| 238 | use the command debconf-set-selections -c preseed.cfg. |
| 239 | }}} |
| 240 | * 安裝過程中,可以按 ALT-F2 換到另一個 console,並使用 nano 編輯器檢查 /var/lib/cdebconf 底下的 questions.dat 來得知可能會詢問的問題 |
| 241 | * 可以使用以下指令驗證 preseed 設定檔是否正確 |
| 242 | {{{ |
| 243 | ~$ sudo debconf-set-selections -c preseed.cfg |
| 244 | }}} |