2019/12/03

PPA 저장소 구축 후 preseed.cfg 만일 구성.

# *****************************************************************************
# 우분투 설정파일 내용 : x86/amd64
# *****************************************************************************
# d-i debconf/priority select high
# == 지역 설정 =============================================================
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

# -- 키보드 선택. ------------------------------------------------------
d-i console-setup/ask_detect boolean false
d-i keyboard-configuration/modelcode string auto
d-i keyboard-configuration/layoutcode string us
# d-i keyboard-configuration/variantcode string dvorak

# == 네트워크 설정 ====================================================
# d-i netcfg/enable boolean false
d-i netcfg/choose_interface select auto
# d-i netcfg/choose_interface select eth1
# d-i netcfg/dhcp_timeout string 60
# d-i netcfg/disable_autoconfig boolean true
# d-i netcfg/dhcp_failed note
# d-i netcfg/dhcp_options select Configure network manually

# -- IPv4 ---------------------------------------------------------------------
# d-i netcfg/get_ipaddress string 192.168.1.1
# d-i netcfg/get_netmask string 255.255.255.0
# d-i netcfg/get_gateway string 192.168.1.254
# d-i netcfg/get_nameservers string 192.168.1.254
# d-i netcfg/get_nameservers string 192.168.1.1 192.168.1.254 8.8.8.8 8.8.4.4 208.67.222.123 208.67.220.123
# d-i netcfg/get_domain string workgroup
# d-i netcfg/confirm_static boolean true

# -- IPv6 ---------------------------------------------------------------------
# d-i netcfg/get_ipaddress string fc00::2
# d-i netcfg/get_netmask string ffff:ffff:ffff:ffff::
# d-i netcfg/get_gateway string fc00::1
# d-i netcfg/get_nameservers string fc00::1
# d-i netcfg/confirm_static boolean true

# -- 호스트 이름 및 도메인 이름 설정 ------------------------------------------------
d-i netcfg/get_hostname string LINE-FLATFROM
d-i netcfg/get_domain string NNI
d-i netcfg/hostname string LINE-FLATFROM

# -- WEP key 비활성화. ------------------------------------
d-i netcfg/wireless_wep string

# -- ISP 사용자 패스워드. -------
# d-i netcfg/dhcp_hostname string radish
# -- non-free firmware is needed for the network or other hardware ------------
# d-i hw-detect/load_firmware boolean true
# -----------------------------------------------------------------------------
# d-i preseed/run string /prescript.sh

# == 네트워크 콘솔 ==========================================================
#-di anna/choose_modules string network-console
# d-i network-console/authorized_keys_url string http://10.0.0.1/openssh-key
# d-i network-console/password password install
# d-i network-console/password-again password install

# == 저장소 설정 ==========================================================
# d-i mirror/protocol string ftp
# d-i mirror/country string KR
# 수동 모드로 설정
d-i mirror/country string manual

d-i mirror/protocol string http

d-i mirror/http/hostname string kr.archive.ubuntu.fair.lan
d-i mirror/http/directory string /ubuntu
d-i mirror/http/proxy string
d-i mirror/http/mirror select kr.archive.ubuntu.fair.lan

#d-i mirror/http/hostname string ftp.daumkakao.com
#d-i mirror/http/directory string /ubuntu
#d-i mirror/http/proxy string
#d-i mirror/http/mirror select ftp.daumkakao.com


# -- 설치할 스위트. --------------------------------------------------------
# d-i mirror/suite string testing
# d-i mirror/udeb/suite string testing

# == 계정 생성 ============================================================
d-i passwd/root-login boolean true
d-i passwd/make-user boolean true

# -- 루트 암호(텍스트) --------------------------------------
d-i passwd/root-password password rootroot
d-i passwd/root-password-again password rootroot
# d-i passwd/root-password-crypted password [MD5 hash]

# -- 일반 사용자 계정. -----------------------------------------
d-i passwd/user-fullname string fairUX-LINE-OS
d-i passwd/username string fairux

# -- 일반 사용자의 암호(텍스트) -----------------------------
d-i passwd/user-password password fair1234
d-i passwd/user-password-again password fair1234
#d-i passwd/user-password-crypted password [MD5 hash]

# -- 기반값 대신 지정된 UID를 사용하여 첫 번째 사용자 생성 -----
# d-i passwd/user-uid string 1010
# -- 비약한 암호 경고. ----------------------------
d-i user-setup/allow-password-weak boolean true
# -- 표준 그룹에 사용자 추가. ----------
# d-i passwd/user-default-groups string audio cdrom video
# -- 첫 번째 사용자의 홈 디렉토리를 암호화 하려면 true. ------
d-i user-setup/encrypt-home boolean false

# == 시간 설정 ================================================
d-i clock-setup/utc boolean true
d-i time/zone string Asia/Seoul
# -- 설치시 NTP를 사용 여부 ----------
d-i clock-setup/ntp boolean true
# -- 사용할 NTP 서버 등록. ---------------
d-i clock-setup/ntp-server string 0.pool.ntp.org

# == 파티션 =============================================================
# d-i partman-auto/init_automatically_partition select biggest_free
# -----------------------------------------------------------------------------
d-i partman-auto/disk string /dev/sda
# d-i partman-auto/disk string /dev/sda /dev/sdb
# d-i partman-auto/disk string /dev/sda /dev/sdb /dev/sdc /dev/sdd
# -----------------------------------------------------------------------------
d-i partman-auto/method string regular
# d-i partman-auto/method string lvm
# d-i partman-auto/method string crypto
# d-i partman-auto/method string raid
# -----------------------------------------------------------------------------
d-i partman-lvm/device_remove_lvm boolean true
d-i partman-md/device_remove_md boolean true
d-i partman-lvm/confirm boolean true
d-i partman-lvm/confirm_nooverwrite boolean true
# -----------------------------------------------------------------------------
d-i partman-auto/choose_recipe select atomic
# d-i partman-auto/choose_recipe select home
# d-i partman-auto/choose_recipe select multi
# -----------------------------------------------------------------------------
# d-i partman-auto/expert_recipe_file string /hd-media/recipe
# -- Partitioning using RAID --------------------------------------------------
#   /      : 5120MB : ext4 : /dev/sda1 : ext4  : /dev/sd[a  ]1
#   swap   : 1024MB : swap : /dev/sda5 : swap  : /dev/sd[a  ]5
#   /share :  ~ end : ext4 : /dev/sda6 : ext4  : /dev/sd[a  ]6
# d-i partman-auto/expert_recipe string \
#   boot-root :: \
#      5120 1  5120 ext4 $primary{ } $bootable{ } method{ format } format{ } use_filesystem{ } filesystem{ ext4 } mountpoint{ /      } . \
#      1024 2  300% swap $logical{ }              method{ swap   } format{ }                                                           . \
#     10240 3    -1 ext4 $logical{ }              method{ format } format{ } use_filesystem{ } filesystem{ ext4 } mountpoint{ /share } .
# d-i partman-auto/expert_recipe string \
#   multiraid :: \
#      5120 1  5120 raid $primary{ } $bootable{ } method{ raid } format{ } . \
#      1024 2  300% raid $logical{ }              method{ raid } format{ } . \
#     10240 3    -1 raid $logical{ }              method{ raid } format{ } .
# d-i partman-auto-raid/recipe string \
#   1 2 0 ext4 /      /dev/sda1#/dev/sdb1 . \
#   1 2 0 swap -      /dev/sda5#/dev/sdb5 . \
#   1 2 0 ext4 /share /dev/sda6#/dev/sdb6 .
# d-i partman-md/confirm boolean true
# -- 자동 파티션. ---------
d-i partman-partitioning/confirm_write_new_label boolean true
d-i partman/choose_partition select finish
d-i partman/confirm boolean true
d-i partman/confirm_nooverwrite boolean true
# -- Controlling how partitions are mounted -----------------------------------
# d-i partman/mount_style select uuid

# == 기본 시스템 설치 =================================================
# d-i base-installer/install-recommends boolean false
# d-i base-installer/kernel/image string linux-image-amd64

# == Apt 설치 ================================================================
# d-i apt-setup/non-free boolean true
# d-i apt-setup/contrib boolean true
# d-i apt-setup/use_mirror boolean false
# d-i apt-setup/services-select multiselect security, updates
# d-i apt-setup/security_host string security.ubuntu.com

# -- 로컬 추가 저장소 [0-9] 사용 가능 ----------------------------
d-i apt-setup/local0/repository string http://kr.archive.ubuntu.fair.lan/ubuntu yakkety main
d-i apt-setup/local0/comment pkg.fairux.net Server
#d-i apt-setup/local0/source boolean true
d-i apt-setup/local0/key string http://kr.archive.ubuntu.fair.lan/ubuntu/dists/yakkety/pubkey-export-file
# -----------------------------------------------------------------------------
d-i debian-installer/allow_unauthenticated boolean true

# == 패키지 선택 ========================================================
# tasksel tasksel/first multiselect standard, web-server
# tasksel tasksel/desktop multiselect kde, xfce
# tasksel tasksel/first multiselect standard

tasksel tasksel/first multiselect standard, ssh-server
d-i shared/proftpd/inetd_or_standalone select standalone
d-i ucf/changeprompt select install_new
# d-i pkgsel/include string openssh-server
d-i pkgsel/include string ssh

# -- 개별 패키지 추가 설치 --------------------------------
# d-i pkgsel/upgrade select none
    d-i pkgsel/upgrade select full-upgrade
# -- Policy for applying updates. ---------------------------------------------
    d-i pkgsel/update-policy select unattended-upgrades
# -----------------------------------------------------------------------------
    popularity-contest popularity-contest/participate boolean false
# =============================================================================
# d-i grub-installer/skip boolean true
# d-i lilo-installer/skip boolean true
    d-i grub-installer/only_debian boolean true
# d-i grub-installer/with_other_os boolean true
# d-i grub-installer/only_debian boolean false
# d-i grub-installer/with_other_os boolean false
# d-i grub-installer/bootdev string (hd0,0)
# d-i grub-installer/bootdev string (hd0,0) (hd1,0) (hd2,0)
    d-i grub-installer/bootdev string /dev/sda
# d-i grub-installer/bootdev string /dev/sda /dev/sdb
# d-i grub-installer/bootdev string /dev/sda /dev/sdb /dev/sdc /dev/sdd
# d-i grub-installer/password password r00tme
# d-i grub-installer/password-again password r00tme
# d-i grub-installer/password-crypted password [MD5 hash]
# d-i debian-installer/add-kernel-opts string nousb

# == 설치 마무리 ============================================
# d-i finish-install/keep-consoles boolean true
    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 debhelper debconf-utils
#   debconf-get-selections --installer > file.txt
#   debconf-get-selections >> file.txt

# == 고급 옵션 =========================================================
# d-i preseed/early_command string anna-install some-udeb
# d-i partman/early_command string debconf-set partman-auto/disk "$(list-devices disk | head -n1)"
# d-i preseed/late_command string apt-install zsh; in-target chsh -s /bin/zsh
# == 끝 ==============================================================

댓글 없음:

댓글 쓰기