官术网_书友最值得收藏!

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.

  1. 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
    
  2. 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.
  3. 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.
  4. 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
    
主站蜘蛛池模板: 鲁山县| 太湖县| 北海市| 宁德市| 洪江市| 当雄县| 贵港市| 自治县| 温泉县| 皋兰县| 梁山县| 冀州市| 昭觉县| 宝应县| 堆龙德庆县| 定结县| 南阳市| 镇赉县| 白银市| 肥城市| 揭西县| 扶沟县| 阜新市| 饶河县| 资兴市| 巧家县| 阿克| 鹰潭市| 竹山县| 甘南县| 民县| 怀化市| 南阳市| 福州市| 太湖县| 乡宁县| 永济市| 文水县| 焦作市| 眉山市| 莱西市|