### # # This work is licensed under the Creative Commons # Attribution-ShareAlike 4.0 International License. # To view a copy of this license, visit # http://creativecommons.org/licenses/by-sa/4.0/ # # micressor # # Contents of the preconfiguration file (for lenovo) # # Anhang B. Automatisieren der Installation mittels Voreinstellung # https://www.debian.org/releases/stable/amd64/apb.de.html # https://www.debian.org/releases/bullseye/example-preseed.txt # # Install lenovo via debian preseed file # # 1. Download current dvd installation image from: # # https://cdimage.debian.org/debian-cd/current/amd64/iso-dvd/ # https://cdimage.debian.org/cdimage/unofficial/non-free/cd-including-firmware/current/amd64/iso-dvd/ # # 2. Install iso on a usb stick: # # dd if=./debian-11.2.0-amd64-DVD-1.iso of=/dev/sdX bs=4M; sync # # 3. Boot from USB device and select entry "automated install" # # 4. Provide preseed url like https://preseed.balmer.name/lenovo.txt # ### ### Localization d-i debian-installer/country string CH d-i debian-installer/language string de d-i debian-installer/locale string de_CH.UTF-8 # Keyboard selection. d-i keyboard-configuration/xkb-keymap select ch ### Network configuration d-i netcfg/choose_interface select auto d-i netcfg/hostname string lenovo d-i netcfg/wireless_wep string d-i hw-detect/load_firmware boolean true ### Mirror settings d-i mirror/protocol string http d-i mirror/http/hostname string ftp.ch.debian.org d-i mirror/http/directory string /debian d-i mirror/http/proxy string ### Account setup d-i passwd/root-login boolean false d-i passwd/user-fullname string Debian User d-i passwd/username string debian d-i passwd/user-password password lenovo1234 d-i passwd/user-password-again password lenovo1234 ### Clock and time zone setup d-i clock-setup/utc boolean false d-i clock-setup/ntp boolean true d-i clock-setup/ntp-server string 2.debian.pool.ntp.org d-i time/zone string Europe/Zurich ### Partitioning d-i partman-auto/disk string /dev/sda d-i partman-auto/method string crypto 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 custom-recipe d-i partman-auto/expert_recipe string \ custom-recipe :: \ 100 50 250 fat16 \ $primary{ } \ method{ efi } format{ } \ . \ 1024 50 1024 btrfs \ $primary{ } \ $bootable{ } \ method{ format } format{ } \ use_filesystem{ } filesystem{ btrfs } \ mountpoint{ /boot } \ . \ 16000 16000 16000 linux-swap \ lv_name{ swap } \ method{ swap } format{ } \ $lvmok{ } \ . \ 30000 50 40000 btrfs \ lv_name{ root } \ method{ lvm } format{ } \ use_filesystem{ } filesystem{ btrfs } \ mountpoint{ / } \ $lvmok{ } \ . \ 40 50 -1 btrfs \ lv_name{ home } \ method{ lvm } format{ } \ use_filesystem{ } filesystem{ btrfs } \ mountpoint{ /home } \ $lvmok{ } \ . \ 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 d-i partman-partitioning/choose_label string gpt d-i partman-partitioning/default_label string gpt # When disk encryption is enabled, skip wiping the partitions beforehand. d-i partman-auto-crypto/erase_disks boolean false ### Boot loader installation # Grub is the boot loader (for x86). d-i grub-installer/only_debian boolean true d-i grub-installer/with_other_os boolean true d-i base-installer/kernel/image string linux-image-amd64 ### Apt setup # You can choose to install non-free and contrib software. d-i apt-setup/non-free boolean true d-i apt-setup/contrib boolean true d-i apt-setup/disable-cdrom-entries boolean true d-i apt-setup/use_mirror boolean true ### Package selection tasksel tasksel/first multiselect standard, gnome-desktop, print-server # Individual additional packages to install d-i pkgsel/include string \ android-tools-adb \ apt-transport-https \ ansible \ apt-file \ curl \ deborphan \ debfoster \ fastboot \ hwinfo \ git \ lynx \ mtr \ netcat \ python3-apt \ screen \ smartmontools \ sysstat \ tlp \ firmware-iwlwifi \ firmware-misc-nonfree \ acpi-call-dkms \ tp-smapi-dkms \ modem-manager-gui \ network-manager-openvpn-gnome \ qbittorrent \ vlc \ zulucrypt-gui \ zulucrypt-cli \ zulumount-cli \ zulumount-gui \ rclone \ ttf-mscorefonts-installer \ uptimed d-i pkgsel/upgrade select none popularity-contest popularity-contest/participate boolean false ### Finishing up the installation d-i finish-install/reboot_in_progress note d-i debian-installer/exit/halt boolean true