- Instant Debian:Build a Web Server
- Jose Miguel Parrella
- 258字
- 2021-08-04 10:11:39
How to do it…
Preseeding is one of the faster ways to save time during Debian installation. As with remastering, you install one system, and you extract the answers to the configuration prompts handled through the debconf
program in order for them to be reused in a new installation.
- You can also create your own preseed files by specifying as many answers as you need using standard tools:
apt-get install debconf-utils debconf-get-selections –installer >preseed.cfg
- Inspect the contents of this file with your favorite editor (
editor preseed.cfg
). You will find that questions that were asked on the installer are preceded by # and your answers are below. Some answers, such as password, are not included. Also, there are a lot of answers that you don't even remember to be asked about—those are defaults. Finally, you will notice that there is no answer for your partitioning elections, on the basis that you might have different servers with different hardware and different storage to address. - Once you have a preseed file that works, instead of selecting the Install option of Debian, you can choose Advanced options, and then Automated install to specify the URL of your preseed file. Probably, you will find the easiest way to do this is to serve it from another web server.
- You can also feed broader choices, not only install-time choices, using
debconf-get-selections
without the–installer
flag. It is useful to capture these choices at the end of your configuration process (that is, when you're done with this book).debconf-get-selections> package-choices.log
推薦閱讀
- Node.js 10實戰(zhàn)
- C語言程序設(shè)計(第3版)
- Beginning C++ Game Programming
- Building a RESTful Web Service with Spring
- C語言程序設(shè)計立體化案例教程
- Mastering Python High Performance
- Redis Essentials
- Android開發(fā)案例教程與項目實戰(zhàn)(在線實驗+在線自測)
- 運用后端技術(shù)處理業(yè)務(wù)邏輯(藍橋杯軟件大賽培訓(xùn)教材-Java方向)
- Active Directory with PowerShell
- Haskell Data Analysis Cookbook
- Mastering Unity 2D Game Development(Second Edition)
- INSTANT Silverlight 5 Animation
- Go語言開發(fā)實戰(zhàn)(慕課版)
- Mastering VMware Horizon 7(Second Edition)