Loading

2018sy_preseed.cfg

  1. #### Contents of the preconfiguration file (for stretch)
  2. ### Localization
  3. # Preseeding only locale sets language, country and locale.
  4. d-i debian-installer/locale string en_US
  5.  
  6. # The values can also be preseeded individually for greater flexibility.
  7. #d-i debian-installer/language string en
  8. #d-i debian-installer/country string NL
  9. #d-i debian-installer/locale string en_GB.UTF-8
  10. # Optionally specify additional locales to be generated.
  11. d-i localechooser/supported-locales multiselect en_US.UTF-8, zh_CN, zh_CN.UTF-8, zh_TW.UTF-8
  12.  
  13. # Keyboard selection.
  14. # Disable automatic (interactive) keymap detection.
  15. d-i console-setup/ask_detect boolean false
  16. d-i keyboard-configuration/xkb-keymap select us
  17. # To select a variant of the selected layout:
  18. #d-i keyboard-configuration/xkb-keymap select us(dvorak)
  19. # d-i keyboard-configuration/toggle select No toggling
  20.  
  21. ### Network configuration
  22. # Disable network configuration entirely. This is useful for cdrom
  23. # installations on non-networked devices where the network questions,
  24. # warning and long timeouts are a nuisance.
  25. #d-i netcfg/enable boolean false
  26.  
  27. # netcfg will choose an interface that has link if possible. This makes it
  28. # skip displaying a list if there is more than one interface.
  29. d-i netcfg/choose_interface select auto
  30.  
  31.  
  32.  
  33. # To set a different link detection timeout (default is 3 seconds).
  34. # Values are interpreted as seconds.
  35. #d-i netcfg/link_wait_timeout string 10
  36.  
  37. # If you have a slow dhcp server and the installer times out waiting for
  38. # it, this might be useful.
  39. d-i netcfg/dhcp_timeout string 30
  40. d-i netcfg/dhcpv6_timeout string 30
  41.  
  42. # If you prefer to configure the network manually, uncomment this line and
  43. # the static network configuration below.
  44. #d-i netcfg/disable_autoconfig boolean true
  45.  
  46. # If you want the preconfiguration file to work on systems both with and
  47. # without a dhcp server, uncomment these lines and the static network
  48. # configuration below.
  49. #d-i netcfg/dhcp_failed note
  50. #d-i netcfg/dhcp_options select Configure network manually
  51.  
  52. # Static network configuration.
  53. #
  54. # IPv4 example
  55. #d-i netcfg/get_ipaddress string 192.168.1.42
  56. #d-i netcfg/get_netmask string 255.255.255.0
  57. #d-i netcfg/get_gateway string 192.168.1.1
  58. #d-i netcfg/get_nameservers string 192.168.1.1
  59. #d-i netcfg/confirm_static boolean true
  60. #
  61. # IPv6 example
  62. #d-i netcfg/get_ipaddress string fc00::2
  63. #d-i netcfg/get_netmask string ffff:ffff:ffff:ffff::
  64. #d-i netcfg/get_gateway string fc00::1
  65. #d-i netcfg/get_nameservers string fc00::1
  66. #d-i netcfg/confirm_static boolean true
  67.  
  68. # Any hostname and domain names assigned from dhcp take precedence over
  69. # values set here. However, setting the values still prevents the questions
  70. # from being shown, even if values come from dhcp.
  71. d-i netcfg/get_hostname string syclient
  72. d-i netcfg/get_domain string 2018sy
  73.  
  74. # If you want to force a hostname, regardless of what either the DHCP
  75. # server returns or what the reverse DNS entry for the IP is, uncomment
  76. # and adjust the following line.
  77. #d-i netcfg/hostname string somehost
  78.  
  79. # Disable that annoying WEP key dialog.
  80. d-i netcfg/wireless_wep string
  81. # The wacky dhcp hostname that some ISPs use as a password of sorts.
  82. #d-i netcfg/dhcp_hostname string radish
  83.  
  84. # If non-free firmware is needed for the network or other hardware, you can
  85. # configure the installer to always try to load it, without prompting. Or
  86. # change to false to disable asking.
  87. #d-i hw-detect/load_firmware boolean true
  88.  
  89. ### Network console
  90. # Use the following settings if you wish to make use of the network-console
  91. # component for remote installation over SSH. This only makes sense if you
  92. # intend to perform the remainder of the installation manually.
  93. #d-i anna/choose_modules string network-console
  94. #d-i network-console/authorized_keys_url string http://10.0.0.1/openssh-key
  95. #d-i network-console/password password r00tme
  96. #d-i network-console/password-again password r00tme
  97. # Use this instead if you prefer to use key-based authentication
  98. #d-i network-console/authorized_keys_url http://host/authorized_keys
  99.  
  100. ### Mirror settings
  101. # If you select ftp, the mirror/country string does not need to be set.
  102. #d-i mirror/protocol string ftp
  103. d-i mirror/country string manual
  104. d-i mirror/http/hostname string mirrors.tuna.tsinghua.edu.cn
  105. d-i mirror/http/directory string /ubuntu
  106. d-i mirror/http/proxy string http://192.168.1.252:8888
  107.  
  108. # Alternatively: by default, the installer uses CC.archive.ubuntu.com where
  109. # CC is the ISO-3166-2 code for the selected country. You can preseed this
  110. # so that it does so without asking.
  111. #d-i mirror/http/mirror select CC.archive.ubuntu.com
  112.  
  113. # Suite to install.
  114. #d-i mirror/suite string stretch
  115. # Suite to use for loading installer components (optional).
  116. #d-i mirror/udeb/suite string stretch
  117. # Components to use for loading installer components (optional).
  118. #d-i mirror/udeb/components multiselect main, restricted
  119.  
  120. ### Account setup
  121. # Skip creation of a root account (normal user account will be able to
  122. # use sudo). The default is false; preseed this to true if you want to set
  123. # a root password.
  124. #d-i passwd/root-login boolean false
  125. # Alternatively, to skip creation of a normal user account.
  126. #d-i passwd/make-user boolean false
  127.  
  128. # Root password, either in clear text
  129. #d-i passwd/root-password password r00tme
  130. #d-i passwd/root-password-again password r00tme
  131. # or encrypted using a crypt(3)  hash.
  132. #d-i passwd/root-password-crypted password [crypt(3) hash]
  133.  
  134. # To create a normal user account.
  135. d-i passwd/user-fullname string syclient
  136. d-i passwd/username string syclient
  137. # Normal user's password, either in clear text
  138. d-i passwd/user-password password mypwd
  139. d-i passwd/user-password-again password mypwd
  140. # or encrypted using a crypt(3) hash.
  141. #d-i passwd/user-password-crypted password [crypt(3) hash]
  142. # Create the first user with the specified UID instead of the default.
  143. #d-i passwd/user-uid string 1010
  144. # The installer will warn about weak passwords. If you are sure you know
  145. # what you're doing and want to override it, uncomment this.
  146. d-i user-setup/allow-password-weak boolean true
  147.  
  148. # The user account will be added to some standard initial groups. To
  149. # override that, use this.
  150. #d-i passwd/user-default-groups string audio cdrom video
  151.  
  152. # Set to true if you want to encrypt the first user's home directory.
  153. d-i user-setup/encrypt-home boolean false
  154.  
  155. ### Clock and time zone setup
  156. # Controls whether or not the hardware clock is set to UTC.
  157. d-i clock-setup/utc boolean true
  158.  
  159. # You may set this to any valid setting for $TZ; see the contents of
  160. # /usr/share/zoneinfo/ for valid values.
  161. d-i time/zone string Asia/Shanghai
  162.  
  163. # Controls whether to use NTP to set the clock during the install
  164. d-i clock-setup/ntp boolean true
  165. # NTP server to use. The default is almost always fine here.
  166. #d-i clock-setup/ntp-server string ntp.example.com
  167.  
  168. ### i386 specific disk storage
  169. # Activate DASD disks
  170. #d-i s390-dasd/dasd string 0.0.0200,0.0.0300,0.0.0400
  171.  
  172. # DASD configuration; by default dasdfmt (low-level format) if needed
  173. #d-i s390-dasd/auto-format boolean true
  174. #d-i s390-dasd/force-format boolean true
  175.  
  176. # zFCP activation and configuration
  177. # d-i s390-zfcp/zfcp string 0.0.1b34:0x400870075678a1b2:0x201480c800000000, \
  178. #                           0.0.1b34:0x400870075679a1b2:0x201480c800000000
  179.  
  180. ### Partitioning
  181. ## Partitioning example
  182. # If the system has free space you can choose to only partition that space.
  183. # This is only honoured if partman-auto/method (below) is not set.
  184. # Alternatives: custom, some_device, some_device_crypto, some_device_lvm.
  185. #d-i partman-auto/init_automatically_partition select biggest_free
  186.  
  187. # Alternatively, you may specify a disk to partition. If the system has only
  188. # one disk the installer will default to using that, but otherwise the device
  189. # name must be given in traditional, non-devfs format (so e.g. /dev/sda
  190. # and not e.g. /dev/discs/disc0/disc).
  191. # For example, to use the first SCSI/SATA hard disk:
  192. d-i partman-auto/disk string /dev/sda
  193. # In addition, you'll need to specify the method to use.
  194. # The presently available methods are:
  195. # - regular: use the usual partition types for your architecture
  196. # - lvm:     use LVM to partition the disk
  197. # - crypto:  use LVM within an encrypted partition
  198. d-i partman-auto/method string regular
  199.  
  200. # If one of the disks that are going to be automatically partitioned
  201. # contains an old LVM configuration, the user will normally receive a
  202. # warning. This can be preseeded away...
  203. d-i partman-lvm/device_remove_lvm boolean true
  204. # The same applies to pre-existing software RAID array:
  205. d-i partman-md/device_remove_md boolean true
  206. # And the same goes for the confirmation to write the lvm partitions.
  207. d-i partman-lvm/confirm boolean true
  208. d-i partman-lvm/confirm_nooverwrite boolean true
  209.  
  210. # For LVM partitioning, you can select how much of the volume group to use
  211. # for logical volumes.
  212. #d-i partman-auto-lvm/guided_size string max
  213. #d-i partman-auto-lvm/guided_size string 10GB
  214. #d-i partman-auto-lvm/guided_size string 50%
  215.  
  216. # You can choose one of the three predefined partitioning recipes:
  217. # - atomic: all files in one partition
  218. # - home:   separate /home partition
  219. # - multi:  separate /home, /var, and /tmp partitions
  220. d-i partman-auto/choose_recipe select atomic
  221.  
  222. # Or provide a recipe of your own...
  223. # If you have a way to get a recipe file into the d-i environment, you can
  224. # just point at it.
  225. #d-i partman-auto/expert_recipe_file string /hd-media/recipe
  226.  
  227. # If not, you can put an entire recipe into the preconfiguration file in one
  228. # (logical) line. This example creates a small /boot partition, suitable
  229. # swap, and uses the rest of the space for the root partition:
  230. #d-i partman-auto/expert_recipe string                         \
  231. #      boot-root ::                                            \
  232. #              40 50 100 ext3                                  \
  233. #                      $primary{ } $bootable{ }                \
  234. #                      method{ format } format{ }              \
  235. #                      use_filesystem{ } filesystem{ ext3 }    \
  236. #                      mountpoint{ /boot }                     \
  237. #              .                                               \
  238. #              500 10000 1000000000 ext3                       \
  239. #                      method{ format } format{ }              \
  240. #                      use_filesystem{ } filesystem{ ext3 }    \
  241. #                      mountpoint{ / }                         \
  242. #              .                                               \
  243. #              64 512 300% linux-swap                          \
  244. #                      method{ swap } format{ }                \
  245. #              .
  246.  
  247. # If you just want to change the default filesystem from ext3 to something
  248. # else, you can do that without providing a full recipe.
  249. #d-i partman/default_filesystem string ext4
  250.  
  251. # The full recipe format is documented in the file partman-auto-recipe.txt
  252. # included in the 'debian-installer' package or available from D-I source
  253. # repository. This also documents how to specify settings such as file
  254. # system labels, volume group names and which physical devices to include
  255. # in a volume group.
  256.  
  257. # This makes partman automatically partition without confirmation, provided
  258. # that you told it what to do using one of the methods above.
  259. d-i partman-partitioning/confirm_write_new_label boolean true
  260. d-i partman/choose_partition select finish
  261. d-i partman/confirm boolean true
  262. d-i partman/confirm_nooverwrite boolean true
  263.  
  264. ## Partitioning using RAID
  265. # The method should be set to "raid".
  266. #d-i partman-auto/method string raid
  267. # Specify the disks to be partitioned. They will all get the same layout,
  268. # so this will only work if the disks are the same size.
  269. #d-i partman-auto/disk string /dev/sda /dev/sdb
  270.  
  271. # Next you need to specify the physical partitions that will be used.
  272. #d-i partman-auto/expert_recipe string \
  273. #      multiraid ::                                         \
  274. #              1000 5000 4000 raid                          \
  275. #                      $primary{ } method{ raid }           \
  276. #              .                                            \
  277. #              64 512 300% raid                             \
  278. #                      method{ raid }                       \
  279. #              .                                            \
  280. #              500 10000 1000000000 raid                    \
  281. #                      method{ raid }                       \
  282. #              .
  283.  
  284. # Last you need to specify how the previously defined partitions will be
  285. # used in the RAID setup. Remember to use the correct partition numbers
  286. # for logical partitions. RAID levels 0, 1, 5, 6 and 10 are supported;
  287. # devices are separated using "#".
  288. # Parameters are:
  289. # <raidtype> <devcount> <sparecount> <fstype> <mountpoint> \
  290. #          <devices> <sparedevices>
  291.  
  292. #d-i partman-auto-raid/recipe string \
  293. #    1 2 0 ext3 /                    \
  294. #          /dev/sda1#/dev/sdb1       \
  295. #    .                               \
  296. #    1 2 0 swap -                    \
  297. #          /dev/sda5#/dev/sdb5       \
  298. #    .                               \
  299. #    0 2 0 ext3 /home                \
  300. #          /dev/sda6#/dev/sdb6       \
  301. #    .
  302.  
  303. # For additional information see the file partman-auto-raid-recipe.txt
  304. # included in the 'debian-installer' package or available from D-I source
  305. # repository.
  306.  
  307. # This makes partman automatically partition without confirmation.
  308. d-i partman-md/confirm boolean true
  309. d-i partman-partitioning/confirm_write_new_label boolean true
  310. d-i partman/choose_partition select finish
  311. d-i partman/confirm boolean true
  312. d-i partman/confirm_nooverwrite boolean true
  313.  
  314. ## Controlling how partitions are mounted
  315. # The default is to mount by UUID, but you can also choose "traditional" to
  316. # use traditional device names, or "label" to try filesystem labels before
  317. # falling back to UUIDs.
  318. #d-i partman/mount_style select uuid
  319.  
  320. ### Base system installation
  321. # Configure a path to the preconfigured base filesystem. This can be used to
  322. # specify a path for the installer to retrieve the filesystem image that will
  323. # be deployed to disk and used as a base system for the installation.
  324. d-i live-installer/net-image string http://192.168.1.1/casper/filesystem.squashfs
  325.  
  326. # Configure APT to not install recommended packages by default. Use of this
  327. # option can result in an incomplete system and should only be used by very
  328. # experienced users.
  329. #d-i base-installer/install-recommends boolean false
  330.  
  331. # The kernel image (meta) package to be installed; "none" can be used if no
  332. # kernel is to be installed.
  333. #d-i base-installer/kernel/image string linux-generic
  334.  
  335. ### Apt setup
  336. # You can choose to install restricted and universe software, or to install
  337. # software from the backports repository.
  338. #d-i apt-setup/restricted boolean true
  339. #d-i apt-setup/universe boolean true
  340. #d-i apt-setup/backports boolean true
  341. # Uncomment this if you don't want to use a network mirror.
  342. #d-i apt-setup/use_mirror boolean false
  343. # Select which update services to use; define the mirrors to be used.
  344. # Values shown below are the normal defaults.
  345. #d-i apt-setup/services-select multiselect security
  346. #d-i apt-setup/security_host string security.ubuntu.com
  347. #d-i apt-setup/security_path string /ubuntu
  348.  
  349. # Additional repositories, local[0-9] available
  350. #d-i apt-setup/local0/repository string \
  351. #       http://local.server/ubuntu stretch main
  352. #d-i apt-setup/local0/comment string local server
  353. # Enable deb-src lines
  354. #d-i apt-setup/local0/source boolean true
  355. # URL to the public key of the local repository; you must provide a key or
  356. # apt will complain about the unauthenticated repository and so the
  357. # sources.list line will be left commented out
  358. #d-i apt-setup/local0/key string http://local.server/key
  359.  
  360. # By default the installer requires that repositories be authenticated
  361. # using a known gpg key. This setting can be used to disable that
  362. # authentication. Warning: Insecure, not recommended.
  363. #d-i debian-installer/allow_unauthenticated boolean true
  364.  
  365. # Uncomment this to add multiarch configuration for i386
  366. #d-i apt-setup/multiarch string i386
  367.  
  368.  
  369. ### Package selection
  370. tasksel tasksel/first multiselect ubuntu-desktop
  371. #tasksel tasksel/first multiselect lamp-server, print-server
  372. #tasksel tasksel/first multiselect kubuntu-desktop
  373.  
  374. # Individual additional packages to install
  375. d-i pkgsel/include string openssh-server build-essential openjdk-8-jdk openjdk-8-jre-headless vim emacs codeblocks codeblocks-common codeblocks-contrib codeblocks-dbg codeblocks-dev geany libcodeblocks0 git terminator ntpdate
  376. # Whether to upgrade packages after debootstrap.
  377. # Allowed values: none, safe-upgrade, full-upgrade
  378. #d-i pkgsel/upgrade select none
  379.  
  380. # Language pack selection
  381. #d-i pkgsel/language-packs multiselect de, en, zh
  382.  
  383. # Policy for applying updates. May be "none" (no automatic updates),
  384. # "unattended-upgrades" (install security updates automatically), or
  385. # "landscape" (manage system with Landscape).
  386. d-i pkgsel/update-policy select none
  387.  
  388. # Some versions of the installer can report back on what software you have
  389. # installed, and what software you use. The default is not to report back,
  390. # but sending reports helps the project determine what software is most
  391. # popular and include it on CDs.
  392. #popularity-contest popularity-contest/participate boolean false
  393.  
  394. # By default, the system's locate database will be updated after the
  395. # installer has finished installing most packages. This may take a while, so
  396. # if you don't want it, you can set this to "false" to turn it off.
  397. #d-i pkgsel/updatedb boolean true
  398.  
  399. ### Boot loader installation
  400. # Grub is the default boot loader (for x86). If you want lilo installed
  401. # instead, uncomment this:
  402. #d-i grub-installer/skip boolean true
  403. # To also skip installing lilo, and install no bootloader, uncomment this
  404. # too:
  405. #d-i lilo-installer/skip boolean true
  406.  
  407.  
  408. # This is fairly safe to set, it makes grub install automatically to the MBR
  409. # if no other operating system is detected on the machine.
  410. d-i grub-installer/only_debian boolean true
  411.  
  412. # This one makes grub-installer install to the MBR if it also finds some other
  413. # OS, which is less safe as it might not be able to boot that other OS.
  414. d-i grub-installer/with_other_os boolean true
  415.  
  416. # Due notably to potential USB sticks, the location of the MBR can not be
  417. # determined safely in general, so this needs to be specified:
  418. #d-i grub-installer/bootdev  string /dev/sda
  419. # To install to the first device (assuming it is not a USB stick):
  420. d-i grub-installer/bootdev  string default
  421.  
  422. # Alternatively, if you want to install to a location other than the mbr,
  423. # uncomment and edit these lines:
  424. #d-i grub-installer/only_debian boolean false
  425. #d-i grub-installer/with_other_os boolean false
  426. #d-i grub-installer/bootdev  string (hd0,1)
  427. # To install grub to multiple disks:
  428. #d-i grub-installer/bootdev  string (hd0,1) (hd1,1) (hd2,1)
  429.  
  430. # Optional password for grub, either in clear text
  431. #d-i grub-installer/password password r00tme
  432. #d-i grub-installer/password-again password r00tme
  433. # or encrypted using an MD5 hash, see grub-md5-crypt(8).
  434. #d-i grub-installer/password-crypted password [MD5 hash]
  435.  
  436. # Use the following option to add additional boot parameters for the
  437. # installed system (if supported by the bootloader installer).
  438. # Note: options passed to the installer will be added automatically.
  439. #d-i debian-installer/add-kernel-opts string nousb
  440.  
  441. ### Finishing up the installation
  442. # During installations from serial console, the regular virtual consoles
  443. # (VT1-VT6) are normally disabled in /etc/inittab. Uncomment the next
  444. # line to prevent this.
  445. #d-i finish-install/keep-consoles boolean true
  446.  
  447. # Avoid that last message about the install being complete.
  448. d-i finish-install/reboot_in_progress note
  449.  
  450. # This will prevent the installer from ejecting the CD during the reboot,
  451. # which is useful in some situations.
  452. #d-i cdrom-detect/eject boolean false
  453.  
  454. # This is how to make the installer shutdown when finished, but not
  455. # reboot into the installed system.
  456. #d-i debian-installer/exit/halt boolean true
  457. # This will power off the machine instead of just halting it.
  458. #d-i debian-installer/exit/poweroff boolean true
  459.  
  460. ### Preseeding other packages
  461. # Depending on what software you choose to install, or if things go wrong
  462. # during the installation process, it's possible that other questions may
  463. # be asked. You can preseed those too, of course. To get a list of every
  464. # possible question that could be asked during an install, do an
  465. # installation, and then run these commands:
  466. #   debconf-get-selections --installer > file
  467. #   debconf-get-selections >> file
  468.  
  469.  
  470. #### Advanced options
  471. ### Running custom commands during the installation
  472. ## i386 Preseed Example
  473. # d-i preseeding is inherently not secure. Nothing in the installer checks
  474. # for attempts at buffer overflows or other exploits of the values of a
  475. # preconfiguration file like this one. Only use preconfiguration files from
  476. # trusted locations! To drive that home, and because it's generally useful,
  477. # here's a way to run any shell command you'd like inside the installer,
  478. # automatically.
  479.  
  480. # This first command is run as early as possible, just after
  481. # preseeding is read.
  482. #d-i preseed/early_command string anna-install some-udeb
  483. # This command is run immediately before the partitioner starts. It may be
  484. # useful to apply dynamic partitioner preseeding that depends on the state
  485. # of the disks (which may not be visible when preseed/early_command runs).
  486. #d-i partman/early_command \
  487. #       string debconf-set partman-auto/disk "$(list-devices disk | head -n1)"
  488. # This command is run just before the install finishes, but when there is
  489. # still a usable /target directory. You can chroot to /target and use it
  490. # directly, or use the apt-install and in-target commands to easily install
  491. # packages and run commands in the target system.
  492. # d-i preseed/late_command string apt-install zsh; in-target chsh -s /bin/zsh
  493. d-i preseed/late_command string \
  494.     in-target apt-get -y --force-yes remove gnome-terminal;\
  495.     in-target ntpdate 192.168.1.252;\
  496.     in-target wget http://192.168.1.252/eclipse.tar.gz -O /tmp/eclipse.tar.gz;\
  497.     in-target tar -xf /tmp/eclipse.tar.gz -C /opt;\
  498.     in-target wget http://192.168.1.252/scripts/set_autologin.sh -O /tmp/set_autologin.sh;\
  499.     in-target /bin/bash /tmp/set_autologin.sh syclient;\
  500.     in-target wget http://192.168.1.252/home.tar.xz -O /tmp/home.tar.xz;\
  501.     in-target wget http://192.168.1.252/scripts/init_home.sh -O /tmp/init_home.sh;\
  502.     in-target /bin/bash /tmp/init_home.sh syclient;

Comments