Advertisement
karlkloppenborg

Karl's Ubuntu Preseed Test KS

Mar 23rd, 2011
392
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Bash 16.51 KB | None | 0 0
  1. # Karls LOLCAT Configurator,
  2. # Copyright Karl Kloppenborg / Crucial Paradigm
  3. ### Localization
  4. # Locale sets language and country.
  5. d-i debian-installer/locale string en_US
  6.  
  7. # Keyboard selection.
  8. # Disable automatic (interactive) keymap detection.
  9. d-i console-setup/ask_detect boolean false
  10. #d-i console-setup/modelcode string pc105
  11. d-i console-setup/layoutcode string us
  12. # To select a variant of the selected layout (if you leave this out, the
  13. # basic form of the layout will be used):
  14. #d-i console-setup/variantcode string dvorak
  15.  
  16. ### Network configuration
  17. # netcfg will choose an interface that has link if possible. This makes it
  18. # skip displaying a list if there is more than one interface.
  19. d-i netcfg/choose_interface select auto
  20.  
  21. # To pick a particular interface instead:
  22. #d-i netcfg/choose_interface select eth1
  23.  
  24. # If you have a slow dhcp server and the installer times out waiting for
  25. # it, this might be useful.
  26. #d-i netcfg/dhcp_timeout string 60
  27.  
  28. # If you prefer to configure the network manually, uncomment this line and
  29. # the static network configuration below.
  30. #d-i netcfg/disable_dhcp boolean true
  31.  
  32. # If you want the preconfiguration file to work on systems both with and
  33. # without a dhcp server, uncomment these lines and the static network
  34. # configuration below.
  35. #d-i netcfg/dhcp_failed note
  36. #d-i netcfg/dhcp_options select Configure network manually
  37.  
  38. # Static network configuration.
  39. #d-i netcfg/get_nameservers string 192.168.1.1
  40. #d-i netcfg/get_ipaddress string 192.168.1.42
  41. #d-i netcfg/get_netmask string 255.255.255.0
  42. #d-i netcfg/get_gateway string 192.168.1.1
  43. #d-i netcfg/confirm_static boolean true
  44.  
  45. # Any hostname and domain names assigned from dhcp take precedence over
  46. # values set here. However, setting the values still prevents the questions
  47. # from being shown, even if values come from dhcp.
  48. d-i netcfg/get_hostname string unassigned-hostname
  49. d-i netcfg/get_domain string unassigned-domain
  50.  
  51. # Disable that annoying WEP key dialog.
  52. d-i netcfg/wireless_wep string
  53. # The wacky dhcp hostname that some ISPs use as a password of sorts.
  54. #d-i netcfg/dhcp_hostname string radish
  55.  
  56. # If non-free firmware is needed for the network or other hardware, you can
  57. # configure the installer to always try to load it, without prompting. Or
  58. # change to false to disable asking.
  59. #d-i hw-detect/load_firmware boolean true
  60.  
  61. ### Mirror settings
  62. # If you select ftp, the mirror/country string does not need to be set.
  63. #d-i mirror/protocol string ftp
  64. d-i mirror/country string manual
  65. d-i mirror/http/hostname string 10.255.0.1
  66. d-i mirror/http/directory string /ubuntu
  67. d-i mirror/http/proxy string
  68.  
  69. # Alternatively: by default, the installer uses CC.archive.ubuntu.com where
  70. # CC is the ISO-3166-2 code for the selected country. You can preseed this
  71. # so that it does so without asking.
  72. #d-i mirror/http/mirror select CC.archive.ubuntu.com
  73.  
  74. # Suite to install.
  75. #d-i mirror/suite string &releasename;
  76. # Suite to use for loading installer components (optional).
  77. #d-i mirror/udeb/suite string &releasename;
  78. # Components to use for loading installer components (optional).
  79. #d-i mirror/udeb/components multiselect main, restricted
  80.  
  81. ### Clock and time zone setup
  82. # Controls whether or not the hardware clock is set to UTC.
  83. d-i clock-setup/utc boolean true
  84.  
  85. # You may set this to any valid setting for $TZ; see the contents of
  86. # /usr/share/zoneinfo/ for valid values.
  87. d-i time/zone string US/Eastern
  88.  
  89. # Controls whether to use NTP to set the clock during the install
  90. d-i clock-setup/ntp boolean true
  91. # NTP server to use. The default is almost always fine here.
  92. #d-i clock-setup/ntp-server string ntp.example.com
  93.  
  94. ### Partitioning
  95. # If the system has free space you can choose to only partition that space.
  96. # Alternatives: custom, some_device, some_device_crypto, some_device_lvm.
  97. #d-i partman-auto/init_automatically_partition select biggest_free
  98.  
  99. # Alternatively, you can specify a disk to partition. The device name must
  100. # be given in traditional non-devfs format.
  101. # Note: A disk must be specified, unless the system has only one disk.
  102. # For example, to use the first SCSI/SATA hard disk:
  103. d-i partman-auto/disk string /dev/sda
  104. # In addition, you'll need to specify the method to use.
  105. # The presently available methods are: "regular", "lvm" and "crypto"
  106. d-i partman-auto/method string regular
  107.  
  108. # If one of the disks that are going to be automatically partitioned
  109. # contains an old LVM configuration, the user will normally receive a
  110. # warning. This can be preseeded away...
  111. d-i partman-lvm/device_remove_lvm boolean true
  112. # The same applies to pre-existing software RAID array:
  113. d-i partman-md/device_remove_md boolean true
  114. # And the same goes for the confirmation to write the lvm partitions.
  115. d-i partman-lvm/confirm boolean true
  116.  
  117. # For LVM partitioning, you can select how much of the volume group to use
  118. # for logical volumes.
  119. #d-i partman-auto-lvm/guided_size string max
  120. #d-i partman-auto-lvm/guided_size string 10GB
  121. #d-i partman-auto-lvm/guided_size string 50%
  122.  
  123. # You can choose one of the three predefined partitioning recipes:
  124. # - atomic: all files in one partition
  125. # - home:   separate /home partition
  126. # - multi:  separate /home, /usr, /var, and /tmp partitions
  127. d-i partman-auto/choose_recipe select atomic
  128.  
  129. # Or provide a recipe of your own...
  130. # The recipe format is documented in the file devel/partman-auto-recipe.txt.
  131. # If you have a way to get a recipe file into the d-i environment, you can
  132. # just point at it.
  133. #d-i partman-auto/expert_recipe_file string /hd-media/recipe
  134.  
  135. # If not, you can put an entire recipe into the preconfiguration file in one
  136. # (logical) line. This example creates a small /boot partition, suitable
  137. # swap, and uses the rest of the space for the root partition:
  138. #d-i partman-auto/expert_recipe string                         \
  139. #      boot-root ::                                            \
  140. #              40 50 100 ext3                                  \
  141. #                      $primary{ } $bootable{ }                \
  142. #                      method{ format } format{ }              \
  143. #                      use_filesystem{ } filesystem{ ext3 }    \
  144. #                      mountpoint{ /boot }                     \
  145. #              .                                               \
  146. #              500 10000 1000000000 ext3                       \
  147. #                      method{ format } format{ }              \
  148. #                      use_filesystem{ } filesystem{ ext3 }    \
  149. #                      mountpoint{ / }                         \
  150. #              .                                               \
  151. #              64 512 300% linux-swap                          \
  152. #                      method{ swap } format{ }                \
  153. #              .
  154.  
  155. # If you just want to change the default filesystem from ext3 to something
  156. # else, you can do that without providing a full recipe.
  157. #d-i partman/default_filesystem string ext4
  158.  
  159. # This makes partman automatically partition without confirmation, provided
  160. # that you told it what to do using one of the methods above.
  161. d-i partman/confirm_write_new_label boolean true
  162. d-i partman/choose_partition select finish
  163. d-i partman/confirm boolean true
  164. d-i partman/confirm_nooverwrite boolean true
  165.  
  166. ### Controlling how partitions are mounted
  167. # The default is to mount by UUID, but you can also choose "traditional" to
  168. # use traditional device names, or "label" to try filesystem labels before
  169. # falling back to UUIDs.
  170. #d-i partman/mount_style select uuid
  171.  
  172. ### Base system installation
  173. # The kernel image (meta) package to be installed; "none" can be used if no
  174. # kernel is to be installed.
  175. #d-i base-installer/kernel/image string linux-generic
  176.  
  177. ### Account setup
  178. # Skip creation of a root account (normal user account will be able to
  179. # use sudo). The default is false; preseed this to true if you want to set
  180. # a root password.
  181. d-i passwd/root-login boolean false
  182. # Alternatively, to skip creation of a normal user account.
  183. d-i passwd/make-user boolean false
  184.  
  185. # Root password, either in clear text
  186. d-i passwd/root-password password p@ssw0rd
  187. d-i passwd/root-password-again password p@ssw0rd
  188. # or encrypted using an MD5 hash.
  189. #d-i passwd/root-password-crypted password [MD5 hash]
  190.  
  191. # To create a normal user account.
  192. #d-i passwd/user-fullname string Ubuntu User
  193. #d-i passwd/username string ubuntu
  194. # Normal user's password, either in clear text
  195. #d-i passwd/user-password password insecure
  196. #d-i passwd/user-password-again password insecure
  197. # or encrypted using an MD5 hash.
  198. #d-i passwd/user-password-crypted password [MD5 hash]
  199. # Create the first user with the specified UID instead of the default.
  200. #d-i passwd/user-uid string 1010
  201. # The installer will warn about weak passwords. If you are sure you know
  202. # what you're doing and want to override it, uncomment this.
  203. #d-i user-setup/allow-password-weak boolean true
  204.  
  205. # The user account will be added to some standard initial groups. To
  206. # override that, use this.
  207. #d-i passwd/user-default-groups string audio cdrom video
  208.  
  209. # Set to true if you want to encrypt the first user's home directory.
  210. d-i user-setup/encrypt-home boolean false
  211.  
  212. ### Apt setup
  213. # You can choose to install restricted and universe software, or to install
  214. # software from the backports repository.
  215. #d-i apt-setup/restricted boolean true
  216. #d-i apt-setup/universe boolean true
  217. #d-i apt-setup/backports boolean true
  218. # Uncomment this if you don't want to use a network mirror.
  219. #d-i apt-setup/use_mirror boolean false
  220. # Select which update services to use; define the mirrors to be used.
  221. # Values shown below are the normal defaults.
  222. #d-i apt-setup/services-select multiselect security
  223. #d-i apt-setup/security_host string security.ubuntu.com
  224. #d-i apt-setup/security_path string /ubuntu
  225.  
  226. # Additional repositories, local[0-9] available
  227. #d-i apt-setup/local0/repository string \
  228. #       http://local.server/ubuntu &releasename; main
  229. #d-i apt-setup/local0/comment string local server
  230. # Enable deb-src lines
  231. #d-i apt-setup/local0/source boolean true
  232. # URL to the public key of the local repository; you must provide a key or
  233. # apt will complain about the unauthenticated repository and so the
  234. # sources.list line will be left commented out
  235. #d-i apt-setup/local0/key string http://local.server/key
  236.  
  237. # By default the installer requires that repositories be authenticated
  238. # using a known gpg key. This setting can be used to disable that
  239. # authentication. Warning: Insecure, not recommended.
  240. #d-i debian-installer/allow_unauthenticated string true
  241.  
  242. ### Package selection
  243. tasksel tasksel/first multiselect ubuntu-desktop
  244. #tasksel tasksel/first multiselect lamp-server, print-server
  245. #tasksel tasksel/first multiselect kubuntu-desktop
  246.  
  247. # Individual additional packages to install
  248. #d-i pkgsel/include string openssh-server build-essential
  249. # Whether to upgrade packages after debootstrap.
  250. # Allowed values: none, safe-upgrade, full-upgrade
  251. #d-i pkgsel/upgrade select none
  252.  
  253. # Language pack selection
  254. #d-i pkgsel/language-packs multiselect de, en, zh
  255.  
  256. # Policy for applying updates. May be "none" (no automatic updates),
  257. # "unattended-upgrades" (install security updates automatically), or
  258. # "landscape" (manage system with Landscape).
  259. d-i pkgsel/update-policy select none
  260.  
  261. # Some versions of the installer can report back on what software you have
  262. # installed, and what software you use. The default is not to report back,
  263. # but sending reports helps the project determine what software is most
  264. # popular and include it on CDs.
  265. #popularity-contest popularity-contest/participate boolean false
  266.  
  267. # By default, the system's locate database will be updated after the
  268. # installer has finished installing most packages. This may take a while, so
  269. # if you don't want it, you can set this to "false" to turn it off.
  270. d-i pkgsel/updatedb boolean true
  271.  
  272. ### Boot loader installation
  273. # Grub is the default boot loader (for x86). If you want lilo installed
  274. # instead, uncomment this:
  275. #d-i grub-installer/skip boolean true
  276. # To also skip installing lilo, and install no bootloader, uncomment this
  277. # too:
  278. #d-i lilo-installer/skip boolean true
  279.  
  280. # This is fairly safe to set, it makes grub install automatically to the MBR
  281. # if no other operating system is detected on the machine.
  282. d-i grub-installer/only_debian boolean true
  283.  
  284. # This one makes grub-installer install to the MBR if it also finds some other
  285. # OS, which is less safe as it might not be able to boot that other OS.
  286. d-i grub-installer/with_other_os boolean true
  287.  
  288. # Alternatively, if you want to install to a location other than the mbr,
  289. # uncomment and edit these lines:
  290. #d-i grub-installer/only_debian boolean false
  291. #d-i grub-installer/with_other_os boolean false
  292. #d-i grub-installer/bootdev  string (hd0,0)
  293. # To install grub to multiple disks:
  294. #d-i grub-installer/bootdev  string (hd0,0) (hd1,0) (hd2,0)
  295.  
  296. # Optional password for grub, either in clear text
  297. #d-i grub-installer/password password r00tme
  298. #d-i grub-installer/password-again password r00tme
  299. # or encrypted using an MD5 hash, see grub-md5-crypt(8).
  300. #d-i grub-installer/password-crypted password [MD5 hash]
  301.  
  302. ### Finishing up the installation
  303. # During installations from serial console, the regular virtual consoles
  304. # (VT1-VT6) are normally disabled in /etc/inittab. Uncomment the next
  305. # line to prevent this.
  306. #d-i finish-install/keep-consoles boolean true
  307.  
  308. # Avoid that last message about the install being complete.
  309. d-i finish-install/reboot_in_progress note
  310.  
  311. # This will prevent the installer from ejecting the CD during the reboot,
  312. # which is useful in some situations.
  313. #d-i cdrom-detect/eject boolean false
  314.  
  315. # This is how to make the installer shutdown when finished, but not
  316. # reboot into the installed system.
  317. #d-i debian-installer/exit/halt boolean true
  318. # This will power off the machine instead of just halting it.
  319. #d-i debian-installer/exit/poweroff boolean true
  320.  
  321. ### X configuration
  322. # X can detect the right driver for some cards, but if you're preseeding,
  323. # you override whatever it chooses. Still, vesa will work most places.
  324. #xserver-xorg xserver-xorg/config/device/driver select vesa
  325.  
  326. # A caveat with mouse autodetection is that if it fails, X will retry it
  327. # over and over. So if it's preseeded to be done, there is a possibility of
  328. # an infinite loop if the mouse is not autodetected.
  329. #xserver-xorg xserver-xorg/autodetect_mouse boolean true
  330.  
  331. # Monitor autodetection is recommended.
  332. xserver-xorg xserver-xorg/autodetect_monitor boolean true
  333. # Uncomment if you have an LCD display.
  334. #xserver-xorg xserver-xorg/config/monitor/lcd boolean true
  335. # X has three configuration paths for the monitor. Here's how to preseed
  336. # the "medium" path, which is always available. The "simple" path may not
  337. # be available, and the "advanced" path asks too many questions.
  338. xserver-xorg xserver-xorg/config/monitor/selection-method \
  339.        select medium
  340. xserver-xorg xserver-xorg/config/monitor/mode-list \
  341.        select 1024x768 @ 60 Hz
  342.  
  343. ### Preseeding other packages
  344. # Depending on what software you choose to install, or if things go wrong
  345. # during the installation process, it's possible that other questions may
  346. # be asked. You can preseed those too, of course. To get a list of every
  347. # possible question that could be asked during an install, do an
  348. # installation, and then run these commands:
  349. #   debconf-get-selections --installer > file
  350. #   debconf-get-selections >> file
  351.  
  352.  
  353. #### Advanced options
  354. ### Running custom commands during the installation
  355. # d-i preseeding is inherently not secure. Nothing in the installer checks
  356. # for attempts at buffer overflows or other exploits of the values of a
  357. # preconfiguration file like this one. Only use preconfiguration files from
  358. # trusted locations! To drive that home, and because it's generally useful,
  359. # here's a way to run any shell command you'd like inside the installer,
  360. # automatically.
  361.  
  362. # This first command is run as early as possible, just after
  363. # preseeding is read.
  364. #d-i preseed/early_command string anna-install some-udeb
  365.  
  366. # This command is run immediately before the partitioner starts. It may be
  367. # useful to apply dynamic partitioner preseeding that depends on the state
  368. # of the disks (which may not be visible when preseed/early_command runs).
  369. #d-i partman/early_command string debconf-set partman-auto/disk "$(list-devices disk | head -n1)"
  370.  
  371. # This command is run just before the install finishes, but when there is
  372. # still a usable /target directory. You can chroot to /target and use it
  373. # directly, or use the apt-install and in-target commands to easily install
  374. # packages and run commands in the target system.
  375. #d-i preseed/late_command string apt-install zsh; in-target chsh -s /bin/zsh
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement