[23480] | 1 | # Modified from Hardy's example-preseed.txt. |
---|
| 2 | |
---|
| 3 | # This is mildly parsed by the install script. |
---|
| 4 | |
---|
| 5 | # Locale and keyboard are set by PXELINUX via kernel options. |
---|
| 6 | |
---|
| 7 | ############################################################################## |
---|
| 8 | ############################################################################## |
---|
| 9 | # Stuff which looks bogus for custom installs is current split out up here |
---|
| 10 | # for later separation. |
---|
| 11 | d-i pkgsel/update-policy select none |
---|
| 12 | |
---|
| 13 | ### Network configuration |
---|
| 14 | # netcfg will choose an interface that has link if possible. This makes it |
---|
| 15 | # skip displaying a list if there is more than one interface. |
---|
| 16 | d-i netcfg/choose_interface select auto |
---|
| 17 | |
---|
| 18 | ############################################################################## |
---|
| 19 | ############################################################################## |
---|
| 20 | |
---|
| 21 | # Any hostname and domain names assigned from dhcp take precedence over |
---|
| 22 | # values set here. However, setting the values still prevents the questions |
---|
| 23 | # from being shown, even if values come from dhcp. |
---|
| 24 | # d-i netcfg/get_hostname string unassigned-hostname |
---|
| 25 | # d-i netcfg/get_domain string unassigned-domain |
---|
| 26 | |
---|
| 27 | # Disable that annoying WEP key dialog. |
---|
| 28 | # d-i netcfg/wireless_wep string |
---|
| 29 | # The wacky dhcp hostname that some ISPs use as a password of sorts. |
---|
| 30 | # d-i netcfg/dhcp_hostname string radish |
---|
| 31 | |
---|
| 32 | ### Partitioning |
---|
| 33 | # Use the whole disk. Any disk. |
---|
| 34 | # The presently available methods are: "regular", "lvm" and "crypto" |
---|
| 35 | d-i partman-auto/method string lvm |
---|
| 36 | |
---|
| 37 | # Stomp old LVM config. |
---|
| 38 | d-i partman-auto/purge_lvm_from_device boolean true |
---|
| 39 | # Don't confirm writing LVM. |
---|
| 40 | d-i partman-lvm/confirm boolean true |
---|
| 41 | # ...and for overwriting the same thing from a previous install: |
---|
| 42 | d-i partman-lvm/device_remove_lvm boolean true |
---|
| 43 | |
---|
| 44 | # You can choose from any of the predefined partitioning recipes. |
---|
| 45 | # atomic: All files in one partition (recommended for new users) |
---|
| 46 | # home: Separate /home partition |
---|
| 47 | # multi: Separate /home, /usr, /var, and /tmp partitions |
---|
| 48 | # small_disk (alpha architecture only): |
---|
| 49 | # Small-disk (< 1GB) partitioning scheme |
---|
| 50 | # d-i partman-auto/choose_recipe select atomic |
---|
| 51 | |
---|
| 52 | # Or provide a recipe of your own... |
---|
| 53 | # The recipe format is documented in the file devel/partman-auto-recipe.txt. |
---|
| 54 | # If you have a way to get a recipe file into the d-i environment, you can |
---|
| 55 | # just point at it. |
---|
| 56 | d-i partman-auto/expert_recipe_file string /athena10-intrepid/lvm-cluster-machine.partman |
---|
| 57 | # This is completely undocumented. Sigh. |
---|
[23868] | 58 | d-i partman-auto-lvm/new_vg_name string athena |
---|
[23480] | 59 | # Don't punt for no-method filesystems. Another undocumented option. |
---|
| 60 | d-i partman-basicmethods/method_only boolean false |
---|
| 61 | |
---|
| 62 | # This makes partman automatically partition without confirmation, provided |
---|
| 63 | # that you told it what to do using one of the methods above. |
---|
| 64 | d-i partman/confirm_write_new_label boolean true |
---|
| 65 | d-i partman/choose_partition select finish |
---|
| 66 | d-i partman/confirm boolean true |
---|
| 67 | |
---|
| 68 | ### Base system installation |
---|
| 69 | # Select the initramfs generator used to generate the initrd for 2.6 kernels. |
---|
| 70 | #d-i base-installer/kernel/linux/initramfs-generators string yaird |
---|
| 71 | |
---|
| 72 | # The kernel image (meta) package to be installed; "none" can be used if no |
---|
| 73 | # kernel is to be installed. |
---|
| 74 | d-i base-installer/kernel/image linux-generic |
---|
| 75 | |
---|
| 76 | ### Account setup |
---|
| 77 | # No user account; root account with standard password: |
---|
| 78 | d-i passwd/make-user boolean false |
---|
| 79 | d-i passwd/root-login boolean true |
---|
| 80 | d-i passwd/root-password password profroot |
---|
| 81 | d-i passwd/root-password-again password profroot |
---|
| 82 | |
---|
| 83 | # Normal user's password, either in clear text |
---|
| 84 | #d-i passwd/user-password password insecure |
---|
| 85 | #d-i passwd/user-password-again password insecure |
---|
| 86 | # or encrypted using an MD5 hash. |
---|
| 87 | #d-i passwd/user-password-crypted password [MD5 hash] |
---|
| 88 | # Create the first user with the specified UID instead of the default. |
---|
| 89 | #d-i passwd/user-uid string 1010 |
---|
| 90 | |
---|
| 91 | # The user account will be added to some standard initial groups. To |
---|
| 92 | # override that, use this. |
---|
| 93 | #d-i passwd/user-default-groups string audio cdrom video |
---|
| 94 | |
---|
| 95 | ### Apt setup |
---|
| 96 | # You can choose to install restricted and universe software, or to install |
---|
| 97 | # software from the backports repository. |
---|
| 98 | d-i apt-setup/restricted boolean true |
---|
| 99 | d-i apt-setup/universe boolean true |
---|
| 100 | d-i apt-setup/backports boolean true |
---|
| 101 | # Uncomment this if you don't want to use a network mirror. |
---|
| 102 | #d-i apt-setup/use_mirror boolean false |
---|
| 103 | # Select which update services to use; define the mirrors to be used. |
---|
| 104 | # Values shown below are the normal defaults. |
---|
| 105 | #d-i apt-setup/services-select multiselect security |
---|
| 106 | #d-i apt-setup/security_host string security.ubuntu.com |
---|
| 107 | #d-i apt-setup/security_path string /ubuntu |
---|
| 108 | d-i apt-setup/country string US |
---|
| 109 | d-i apt-setup/hostname string ubuntu.media.mit.edu |
---|
| 110 | d-i apt-setup/directory string /ubuntu |
---|
| 111 | d-i apt-setup/country US |
---|
| 112 | |
---|
| 113 | |
---|
| 114 | # Additional repositories, local[0-9] available |
---|
| 115 | #d-i apt-setup/local0/repository string \ |
---|
| 116 | # http://local.server/ubuntu hardy main |
---|
| 117 | #d-i apt-setup/local0/comment string local server |
---|
| 118 | # Enable deb-src lines |
---|
| 119 | #d-i apt-setup/local0/source boolean true |
---|
| 120 | # URL to the public key of the local repository; you must provide a key or |
---|
| 121 | # apt will complain about the unauthenticated repository and so the |
---|
| 122 | # sources.list line will be left commented out |
---|
| 123 | #d-i apt-setup/local0/key string http://local.server/key |
---|
| 124 | |
---|
| 125 | # By default the installer requires that repositories be authenticated |
---|
| 126 | # using a known gpg key. This setting can be used to disable that |
---|
| 127 | # authentication. Warning: Insecure, not recommended. |
---|
| 128 | #d-i debian-installer/allow_unauthenticated string true |
---|
| 129 | |
---|
| 130 | ### Package selection |
---|
| 131 | tasksel tasksel/first multiselect standard, ubuntu-desktop |
---|
| 132 | #tasksel tasksel/first multiselect standard, lamp-server |
---|
| 133 | #tasksel tasksel/first multiselect standard, kubuntu-desktop |
---|
| 134 | |
---|
| 135 | # Individual additional packages to install |
---|
| 136 | #d-i pkgsel/include string openssh-server build-essential |
---|
| 137 | |
---|
| 138 | # Language pack selection |
---|
| 139 | #d-i pkgsel/language-packs multiselect de, en, zh |
---|
| 140 | |
---|
| 141 | # Some versions of the installer can report back on what software you have |
---|
| 142 | # installed, and what software you use. The default is not to report back, |
---|
| 143 | # but sending reports helps the project determine what software is most |
---|
| 144 | # popular and include it on CDs. |
---|
| 145 | #popularity-contest popularity-contest/participate boolean false |
---|
| 146 | |
---|
| 147 | ### Boot loader installation |
---|
| 148 | # Grub is the default boot loader (for x86). If you want lilo installed |
---|
| 149 | # instead, uncomment this: |
---|
| 150 | #d-i grub-installer/skip boolean true |
---|
| 151 | # To also skip installing lilo, and install no bootloader, uncomment this |
---|
| 152 | # too: |
---|
| 153 | #d-i lilo-installer/skip boolean true |
---|
| 154 | |
---|
| 155 | # This is fairly safe to set, it makes grub install automatically to the MBR |
---|
| 156 | # if no other operating system is detected on the machine. |
---|
| 157 | d-i grub-installer/only_debian boolean true |
---|
| 158 | |
---|
| 159 | # This one makes grub-installer install to the MBR if it also finds some other |
---|
| 160 | # OS, which is less safe as it might not be able to boot that other OS. |
---|
| 161 | d-i grub-installer/with_other_os boolean true |
---|
| 162 | |
---|
| 163 | # Alternatively, if you want to install to a location other than the mbr, |
---|
| 164 | # uncomment and edit these lines: |
---|
| 165 | #d-i grub-installer/only_debian boolean false |
---|
| 166 | #d-i grub-installer/with_other_os boolean false |
---|
| 167 | #d-i grub-installer/bootdev string (hd0,0) |
---|
| 168 | # To install grub to multiple disks: |
---|
| 169 | #d-i grub-installer/bootdev string (hd0,0) (hd1,0) (hd2,0) |
---|
| 170 | |
---|
| 171 | # On systems where unauthorized users have access at boot time, you may want |
---|
| 172 | # to set a GRUB password, either in clear text |
---|
| 173 | #d-i grub-installer/password password insecure |
---|
| 174 | #d-i grub-installer/password-again password insecure |
---|
| 175 | # or encrypted using an MD5 hash. |
---|
| 176 | #d-i grub-installer/password-crypted password [MD5 hash] |
---|
| 177 | |
---|
| 178 | ### Finishing up the installation |
---|
| 179 | # Avoid that last message about the install being complete. |
---|
| 180 | d-i finish-install/reboot_in_progress note |
---|
| 181 | |
---|
| 182 | # This will prevent the installer from ejecting the CD during the reboot, |
---|
| 183 | # which is useful in some situations. |
---|
| 184 | #d-i cdrom-detect/eject boolean false |
---|
| 185 | |
---|
| 186 | # This is how to make the installer shutdown when finished, but not |
---|
| 187 | # reboot into the installed system. |
---|
| 188 | #d-i debian-installer/exit/halt boolean true |
---|
| 189 | |
---|
| 190 | ### X configuration |
---|
| 191 | # X can detect the right driver for some cards, but if you're preseeding, |
---|
| 192 | # you override whatever it chooses. Still, vesa will work most places. |
---|
| 193 | #xserver-xorg xserver-xorg/config/device/driver select vesa |
---|
| 194 | |
---|
| 195 | # A caveat with mouse autodetection is that if it fails, X will retry it |
---|
| 196 | # over and over. So if it's preseeded to be done, there is a possibility of |
---|
| 197 | # an infinite loop if the mouse is not autodetected. |
---|
| 198 | #xserver-xorg xserver-xorg/autodetect_mouse boolean true |
---|
| 199 | |
---|
| 200 | # Monitor autodetection is recommended. |
---|
| 201 | xserver-xorg xserver-xorg/autodetect_monitor boolean true |
---|
| 202 | # Uncomment if you have an LCD display. |
---|
| 203 | #xserver-xorg xserver-xorg/config/monitor/lcd boolean true |
---|
| 204 | # X has three configuration paths for the monitor. Here's how to preseed |
---|
| 205 | # the "medium" path, which is always available. The "simple" path may not |
---|
| 206 | # be available, and the "advanced" path asks too many questions. |
---|
| 207 | xserver-xorg xserver-xorg/config/monitor/selection-method select medium |
---|
| 208 | xserver-xorg xserver-xorg/config/monitor/mode-list select 1024x768 @ 60 Hz |
---|
| 209 | |
---|
| 210 | ### Preseeding other packages |
---|
| 211 | # Depending on what software you choose to install, or if things go wrong |
---|
| 212 | # during the installation process, it's possible that other questions may |
---|
| 213 | # be asked. You can preseed those too, of course. To get a list of every |
---|
| 214 | # possible question that could be asked during an install, do an |
---|
| 215 | # installation, and then run these commands: |
---|
| 216 | # debconf-get-selections --installer > file |
---|
| 217 | # debconf-get-selections >> file |
---|
| 218 | |
---|
| 219 | |
---|
| 220 | #### Advanced options |
---|
| 221 | ### Running custom commands during the installation |
---|
| 222 | # d-i preseeding is inherently not secure. Nothing in the installer checks |
---|
| 223 | # for attempts at buffer overflows or other exploits of the values of a |
---|
| 224 | # preconfiguration file like this one. Only use preconfiguration files from |
---|
| 225 | # trusted locations! To drive that home, and because it's generally useful, |
---|
| 226 | # here's a way to run any shell command you'd like inside the installer, |
---|
| 227 | # automatically. |
---|
| 228 | |
---|
| 229 | # This first command is run as early as possible, just after |
---|
| 230 | # preseeding is read. |
---|
| 231 | #d-i preseed/early_command string anna-install some-udeb |
---|