우분투 preseed 예제

Posted by !kKo geek_stuff/server & linux : 2013.10.22 17:43

# Ubuntu Server Quick Install

# by Dustin Kirkland <kirkland@ubuntu.com>

#  * Documentation: http://bit.ly/uquick-doc

# modified by ikko


################################################################################

### Localization                                                             ###

################################################################################

d-i     debian-installer/locale string en_US.UTF-8

d-i     debian-installer/splash boolean false

d-i     console-setup/ask_detect        boolean false

d-i     console-setup/layoutcode        string us

d-i     console-setup/variantcode       string 


################################################################################

### Network configuration                                                    ###

################################################################################

d-i     netcfg/choose_interface select eth0

d-i     netcfg/get_nameservers  string 

d-i     netcfg/get_ipaddress    string 

d-i     netcfg/get_netmask      string 255.255.255.0

d-i     netcfg/get_gateway      string 

d-i     netcfg/confirm_static   boolean true


################################################################################

### Mirror settings                                                          ###

################################################################################

# If you select ftp, the mirror/country string does not need to be set

d-i     mirror/country string manual

d-i     mirror/protocol string http

d-i     mirror/http/hostname string ftp.daum.net

d-i     mirror/http/directory string /ubuntu

d-i     mirror/http/proxy string


# FTP mirror configuration

#d-i    mirror/protocol string ftp

#d-i    mirror/ftp/hostname string mirror.home.lan

#d-i    mirror/ftp/directory string /pub/linux/ubuntu

#d-i    mirror/ftp/proxy string


# Alternatively: by default, the installer uses CC.archive.ubuntu.com where

# CC is the ISO-3166-2 code for the selected country. You can preseed this

# so that it does so without asking.

#d-i    mirror/http/mirror select CC.archive.ubuntu.com

#d-i    mirror/http/mirror select kr.archive.ubuntu.com


################################################################################

### Partitioning                                                             ###

################################################################################

# If the system has free space you can choose to only partition that space.

# This is only honoured if partman-auto/method (below) is not set.

# Alternatives: custom, some_device, some_device_crypto, some_device_lvm.

#d-i partman-auto/init_automatically_partition select biggest_free


# Alternatively, you may specify a disk to partition. If the system has only

# one disk the installer will default to using that, but otherwise the device

# name must be given in traditional, non-devfs format (so e.g. /dev/hda or

# /dev/sda, and not e.g. /dev/discs/disc0/disc).

d-i     partman-auto/disk string /dev/sda


# In addition, you'll need to specify the method to use.

# The presently available methods are:

# - regular: use the usual partition types for your architecture

# - lvm:     use LVM to partition the disk

# - crypto:  use LVM within an encrypted partition

d-i     partman-auto/method string regular


# If one of the disks that are going to be automatically partitioned

# contains an old LVM configuration, the user will normally receive a

# warning. This can be preseeded away...

d-i     partman-lvm/device_remove_lvm boolean true

# The same applies to pre-existing software RAID array:

d-i     partman-lvm/device_remove_md boolean true

# And the same goes for the confirmation to write the lvm partitions.

d-i     partman-lvm/confirm boolean true


## Partitioning using LVM


# For LVM partitioning, you can select how much of the volume group to use

# for logical volumes.

#d-i partman-auto-lvm/guided_size string max

#d-i partman-auto-lvm/guided_size string 10GB

#d-i partman-auto-lvm/guided_size string 50%


# You can choose one of the three predefined partitioning recipes:

# - atomic: all files in one partition

# - home:   separate /home partition

# - multi:  separate /home, /usr, /var, and /tmp partitions

d-i     partman-auto/choose_recipe select atomic


# Or provide a recipe of your own...

# If you have a way to get a recipe file into the d-i environment, you can

# just point at it.

#d-i partman-auto/expert_recipe_file string /hd-media/recipe


# If not, you can put an entire recipe into the preconfiguration file in one

# (logical) line. This example creates a small /boot partition, suitable

# swap, and uses the rest of the space for the root partition:

#d-i partman-auto/expert_recipe string            \

#    boot-root ::                                 \

#        40 50 100 ext3                           \

#            $primary{ } $bootable{ }             \

#            method{ format } format{ }           \

#            use_filesystem{ } filesystem{ ext3 } \

#            mountpoint{ /boot }                  \

#        .                                        \

#        500 10000 1000000000 ext3                \

#            method{ format } format{ }           \

#            use_filesystem{ } filesystem{ ext3 } \

#            mountpoint{ / }                      \

#        .                                        \

#        64 512 300% linux-swap                   \

#            method{ swap } format{ }             \

#        .


# The full recipe format is documented in the file partman-auto-recipe.txt

# included in the 'debian-installer' package or available from D-I source

# repository. This also documents how to specify settings such as file

# system labels, volume group names and which physical devices to include

# in a volume group.


# This makes partman automatically partition without confirmation, provided

# that you told it what to do using one of the methods above.

d-i     partman/confirm_write_new_label boolean true

d-i     partman/choose_partition        select Finish partitioning and write changes to disk

d-i     partman/confirm boolean true

d-i     partman/confirm_nooverwrite boolean true

d-i     partman/default_filesystem string ext4


################################################################################

### Clock and time zone setup                                                ###

################################################################################

# Controls whether or not the hardware clock is set to UTC.

d-i     clock-setup/utc boolean true

d-i     clock-time/zone string Asia/Seoul

d-i     clock-setup/ntp boolean true

d-i     clock-setup/ntp-server  string 0.pool.ntp.org

d-i     base-installer/kernel/image     string linux-server

d-i     passwd/root-login       boolean true

d-i     passwd/root-password password p@ssw0rd

d-i     passwd/root-password-again password p@ssw0rd

d-i     passwd/make-user        boolean true

d-i     passwd/user-fullname    string eats

d-i     passwd/username string ikko

d-i     passwd/user-password password p@ssw0rd

d-i     passwd/user-password-again password p@ssw0rd

#d-i     passwd/user-password-crypted    password $6$.1eHH0iY$ArGzKX2YeQ3G6U.mlOO3A.NaL22Ewgz8Fi4qqz.Ns7EMKjEJRIW2Pm/TikDptZpuu7I92frytmk5YeL.9fRY4.

d-i     passwd/user-uid string 

d-i     user-setup/allow-password-weak  boolean true

d-i     user-setup/encrypt-home boolean false

d-i     passwd/user-default-groups      string adm cdrom dialout lpadmin plugdev sambashare

d-i     apt-setup/services-select       multiselect security

d-i     apt-setup/security_host string ftp.daum.net

d-i     apt-setup/security_path string /ubuntu

d-i     debian-installer/allow_unauthenticated  string false

d-i     pkgsel/upgrade  select safe-upgrade

d-i     pkgsel/language-packs   multiselect 

d-i     pkgsel/update-policy    select none

d-i     pkgsel/updatedb boolean true

d-i     grub-installer/skip     boolean false

d-i     lilo-installer/skip     boolean false

d-i     grub-installer/only_debian      boolean true

d-i     grub-installer/with_other_os    boolean true

d-i     finish-install/keep-consoles    boolean false

d-i     finish-install/reboot_in_progress       note 

d-i     cdrom-detect/eject      boolean true

d-i     debian-installer/exit/halt      boolean false

d-i     debian-installer/exit/poweroff  boolean false

d-i     pkgsel/include string openssh-server ssh vim ntp byobu unattended-upgrades


################################################################################

### Advanced options                                                         ###

################################################################################


################################################################################

### Running custom commands during the installation                          ###

################################################################################

# d-i preseeding is inherently not secure. Nothing in the installer checks

# for attempts at buffer overflows or other exploits of the values of a

# preconfiguration file like this one. Only use preconfiguration files from

# trusted locations! To drive that home, and because it's generally useful,

# here's a way to run any shell command you'd like inside the installer,

# automatically.


# This first command is run as early as possible, just after

# preseeding is read.

#d-i preseed/early_command string anna-install some-udeb


# This command is run just before the install finishes, but when there is

# still a usable /target directory. You can chroot to /target and use it

# directly, or use the apt-install and in-target commands to easily install

# packages and run commands in the target system.

#d-i preseed/late_command string apt-install zsh; in-target chsh -s /bin/zsh

in-target touch /root/installed



저작자 표시 비영리 동일 조건 변경 허락
신고
 «이전 1 2 3 4 5 6 7 8 9 10 ··· 465  다음»