불필요한 줄 제거

불필요한 줄 제거

Ubuntu Desktop 18.04.4용 사전 설정을 사용하여 무인 설치를 생성 중이며, 설치가 완료된 후 실제로 ssh가 가능하도록 openssh-server( 데스크탑용) 설치하고 싶습니다 .openssh-sftp-server

pkgsel/include나는 다음 과 같은 명령을 사용해 보았지만 행운이 없었습니다 ubiquity/success_command.preseed/late_command

미리 설정은 소프트웨어를 설치하지 않으며 패키지를 업데이트하지도 않습니다.

참조Ubuntu Server 13.10의 preseed.cfg에 추가 소프트웨어를 포함하는 방법

도움이 되었다면:

# Installer config
d-i base-installer/kernel/override-image string linux-image-amd64

# GRUB
d-i grub-installer/only_debian boolean true
d-i grub-installer/with_other_os boolean true

# Setting the locales, country
# Supported locales available in /usr/share/i18n/SUPPORTED
d-i debian-installer/language string en
d-i debian-installer/country string IN
d-i debian-installer/locale string en_US.UTF-8

# Keyboard setting
d-i console-setup/ask_detect boolean false
d-i keyboard-configuration/layoutcode string us
d-i keyboard-configuration/xkb-keymap us
d-i keyboard-configuration/modelcode string pc105

# Network configuration
d-i netcfg/choose_interface select auto
d-i netcfg/enable boolean true
d-i netcfg/get_hostname string ubuntu-bionic-desktop
d-i netcfg/get_domain string localdomain
d-i netcfg/wireless_wep string
# d-i hw-detect/load_firmware boolean true

# Mirror settings
choose-mirror-bin mirror/http/proxy string

# Clock and time zone setup
d-i time/zone string UTC
d-i clock-setup/utc-auto boolean true
d-i clock-setup/utc boolean true
d-i clock-setup/ntp boolean true

# Disk and Partitioning setup
d-i partman-auto/disk string /dev/sda
d-i partman-auto-lvm/guided_size string max
d-i partman-auto/choose_recipe select atomic
d-i partman-auto/method string lvm
d-i partman-lvm/confirm boolean true
d-i partman-lvm/confirm boolean true
d-i partman-lvm/confirm_nooverwrite boolean true
d-i partman-lvm/device_remove_lvm boolean true
d-i partman/choose_partition select finish
d-i partman/confirm boolean true
d-i partman/confirm_nooverwrite boolean true
d-i partman/confirm_write_new_label boolean true

# Vagrant user creation
d-i passwd/user-fullname string vagrant
d-i passwd/username string vagrant
d-i passwd/user-password password vagrant
d-i passwd/user-password-again password vagrant
d-i user-setup/encrypt-home boolean false
d-i user-setup/allow-password-weak boolean true
d-i passwd/user-default-groups vagrant sudo

# Package installations

d-i pkgsel/include string openssh-sftp-server vim cryptsetup build-essential libssl-dev libreadline-dev zlib1g-dev linux-source dkms nfs-common
# Upgrading the system
d-i pkgsel/install-language-support boolean false
d-i pkgsel/update-policy select none
d-i pkgsel/upgrade select full-upgrade
tasksel tasksel/first multiselect standard, ubuntu-desktop

ubiquity ubiquity/use_nonfree boolean true

d-i preseed/late_command string apt-install openssh-sftp-server;

# Success Installation - Tasks
ubiquity ubiquity/success_command string  \
    in-target apt install openssh-sftp-server;

# Installation - final
d-i finish-install/reboot_in_progress note
ubiquity ubiquity/summary note
ubiquity ubiquity/reboot boolean true`

답변1

불필요한 줄 제거

편재무시하다preseed/late_command를 사용하면 아무런 의미가 없습니다. 따라서 다음 줄에 openssh-sftp-server 패키지를 포함시켰습니다.

d-i pkgsel/include string openssh-sftp-server vim cryptsetup build-essential libssl-dev libreadline-dev zlib1g-dev linux-source dkms nfs-common

따라서 다음 줄을 제거할 수 있습니다.

d-i preseed/late_command string apt-install openssh-sftp-server;

# Success Installation - Tasks
ubiquity ubiquity/success_command string  \
    in-target apt install openssh-sftp-server;

유비쿼터스를 활용하는 방법

찾을 수 있는 Ubuntu 최소 iso를 사용하여 미리 설정 파일을 테스트했습니다.여기. 선택 화면에서 커서를 이동하여 command-line install눌렀습니다.열쇠. 화면 하단에 나타나는 속성을 확인하세요.

우분투 설치 프로그램

그런 다음 다음 속성을 추가하고 값을 자유롭게 변경하세요.

locale=en_US hostname=ubuntu keyboard-configuration/modelcode=SKIP ubiquity url=http://192.168.0.1:8000/preseed-ubuntu.cfg

미리 설정 파일은 예를 들어 python3 -m http.server. 귀하의 IP 주소는 분명히 다를 것입니다. Enter를 누르면 설치가 진행되고 설치 프로그램은 미리 설정 파일에 정의되어 있지 않기 때문에 repo 서버를 묻는 메시지만 표시합니다.

설치가 완료되면 로그인하여 openssh-sftp-server다른 패키지가 설치되었는지 확인할 수 있습니다.

관련 정보