Attachment 'preseed.cfg'

Download

   1 # 'priority=high' is the default. (https://www.debian.org/releases/stable/i386/ch05s03.html.en).
   2 
   3 
   4 # If possible, netcfg will choose interfaces which have links. This makes it
   5 # skip displaying a list if there is more than one interface. The first
   6 # connected network interface will be selected and used.
   7 d-i netcfg/choose_interface select auto
   8 
   9 # This sets the hostname. 
  10 d-i netcfg/hostname string whatever
  11 
  12 # The hostname and domain name questions will still be presented unless
  13 # we have the following two lines. The domain name cannot be preseeded.
  14 d-i netcfg/get_domain string example.com
  15 d-i netcfg/get_hostname string good
  16 
  17 # Use ifupdown irrespective of whether a DE (which would bring in
  18 # network manager) is installed or whether the connection is wired or
  19 # wireless.
  20 d-i netcfg/target_network_config select ifupdown
  21 
  22 d-i passwd/user-fullname string Brian Potkin
  23 d-i passwd/username string brian
  24 d-i passwd/root-password password whatever
  25 d-i passwd/root-password-again password whatever
  26 d-i passwd/user-password password whatever
  27 d-i passwd/user-password-again password whatever
  28 
  29 # Comment out if the intention is to set up a swap partition .
  30 d-i partman-basicfilesystems/no_swap boolean false
  31 
  32 # Write the parition changes to disk without asking.
  33 d-i partman/confirm boolean true
  34 d-i partman/confirm_nooverwrite boolean true
  35 
  36 # The archive on the USB stick will be used as a mirror.
  37 d-i apt-setup/use_mirror boolean false
  38 
  39 # Continue without a network mirror.
  40 d-i apt-setup/no_mirror boolean true
  41 
  42 # Needs an internet connection.
  43 d-i apt-setup/services-select security
  44 
  45 # Do not choose and install any tasks.
  46 tasksel tasksel/first multiselect
  47 
  48 # Do not Participate in the package usage survey.
  49 popularity-contest popularity-contest/participate boolean false
  50 
  51 # Install GRUB to the master boot record (MBR).
  52 d-i grub-installer/with_other_os boolean true
  53 d-i grub-installer/only_debian boolean true
  54 
  55 # Device for boot loader installation.
  56 d-i grub-installer/choose_bootdev select manual
  57 d-i grub-installer/bootdev string /dev/sda
  58 
  59 # Confirm the system clock is (or will be) set to UTC.
  60 d-i clock-setup/utc boolean true
  61 
  62 # Set up sources.list and install a few packages. Optional: it can be
  63 # done after first boot of the OS.
  64 d-i preseed/late_command string											\
  65     mkdir /target/media/ARCHIVE;										\
  66     mount --bind /hd-media /target/media/ARCHIVE;								\
  67     sed -i 's/^/#/' /target/etc/apt/sources.list;								\
  68     echo "deb [ trusted=yes ] file:/media/ARCHIVE/debian jessie main contrib" >> /target/etc/apt/sources.list;	\
  69     in-target apt-get update;											\
  70     in-target apt-get -y install mc gpm vim bash-completion;

Attached Files

To refer to attachments on a page, use attachment:filename, as shown below in the list of files. Do NOT use the URL of the [get] link, since this is subject to change and can break easily.
  • [get | view] (2015-11-26 17:23:28, 2.6 KB) [[attachment:preseed.cfg]]
 All files | Selected Files: delete move to page copy to page

You are not allowed to attach a file to this page.