Skip to Content
Linux Networking Cookbook
book

Linux Networking Cookbook

by Carla Schroder
November 2007
Beginner
642 pages
15h 43m
English
O'Reilly Media, Inc.
Content preview from Linux Networking Cookbook

16.14. Automating Debian Installations with Preseed Files

Problem

You want a fairly simple way to automate network installation of new Debian PCs, and to create custom installations for different roles, such as web servers, workstations, file servers, and so forth.

Solution

Create a preseed, or preconfiguration file, that answers the installer questions, and does your package selections for you. First, study the example preseed file at http://d-i.alioth.debian.org/manual/example-preseed.txt Then, create one from your own Debian system by running these two commands:

	# debconf-get-selections --installer > preseed.txt
	# debconf-get-selections >> file preseed.txt

Your own preseed.txt is going to look different from the example-preseed.txt; it's messier and has a lot more entries. You can't use your own preseed.txt as-is, but you can see exactly what was done on your system, and you can copy anything you want to duplicate to example-preseed.txt.

The tasksel command selects package groups. You can see a list of these:

	$ tasksel --list-tasks 
	u desktop  Desktop environment
	i web-server  Web server
	u print-server  Print server
	u dns-server  DNS server
	[...]

u means uninstalled, and i means installed. Display individual packages with this command:

	$ tasksel --task-packages desktop
	twm
	gimp-print
	xresprobe
	openoffice.org
	[...]

Use tasksel to select package groups in your preseed file like this:

 #tasksel tasksel/desktop multiselect kde-desktop, xfce-desktop #tasksel tasksel/first multiselect standard, ...
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.

Read now

Unlock full access

More than 5,000 organizations count on O’Reilly

AirBnbBlueOriginElectronic ArtsHomeDepotNasdaqRakutenTata Consultancy Services

QuotationMarkO’Reilly covers everything we've got, with content to help us build a world-class technology community, upgrade the capabilities and competencies of our teams, and improve overall team performance as well as their engagement.
Julian F.
Head of Cybersecurity
QuotationMarkI wanted to learn C and C++, but it didn't click for me until I picked up an O'Reilly book. When I went on the O’Reilly platform, I was astonished to find all the books there, plus live events and sandboxes so you could play around with the technology.
Addison B.
Field Engineer
QuotationMarkI’ve been on the O’Reilly platform for more than eight years. I use a couple of learning platforms, but I'm on O'Reilly more than anybody else. When you're there, you start learning. I'm never disappointed.
Amir M.
Data Platform Tech Lead
QuotationMarkI'm always learning. So when I got on to O'Reilly, I was like a kid in a candy store. There are playlists. There are answers. There's on-demand training. It's worth its weight in gold, in terms of what it allows me to do.
Mark W.
Embedded Software Engineer

You might also like

Linux Networking Cookbook

Linux Networking Cookbook

Gregory Boyce
Linux Security Cookbook

Linux Security Cookbook

Daniel J. Barrett, Richard E. Silverman, Robert G. Byrnes

Publisher Resources

ISBN: 9780596102487Errata Page