Sent: Wednesday, December 04, 2024 at 7:35 AM
From: "Ralph Aichinger" <ra@h5.or.at>
To: debian-user@lists.debian.org
Subject: Preseed install, Selection of Language/Country/Keyboard and Desktop Environment
Hi fellow Debian Users
I am currently trying to build an USB stick that does a scripted install
of Debian. This works very well, and much much easier with UEFI, where
you can just edit the preseed.cfg file instead of rebuilding an ISO
every time you make a change.
But: I am stuck with getting rid of two groups of prompts:
The first three prompts in any install are language, country and keymap (German, Austria, German) in my case. I have googled around a bit and included the following for now (some of it probably redundant, useless
or cargo cultish):
d-i debian-installer/locale string de_AT
d-i debconf/language string de
d-i console-setup/ask_detect boolean false
d-i keyboard-configuration/xkb-keymap select de
d-i keyboard-configuration/layoutcode string de
d-i keyboard-configuration/variantcode string
d-i console-keymaps-usb/keymap select German
d-i console-keymaps-at/keymap select German
Some of this I grabbed from https://preseed.debian.net/debian-preseed/bookworm/
but this is a lot of information in these files.
The above is not enough to get my three selections without
being prompted.
Similar with the menu where the desktop environment is selected.
I want LXDE and "SSH Server". I always drop back into the menu.
I have tried:
d-i pkgsel/include string openssh-server
d-i tasksel/desktop multiselect lxde
I am using the most recent netinstall image 12.8.0, and
using this recipe for UEFI configurations:
https://wiki.debian.org/DebianInstaller/WritableUSBStick
All other configurations (e.g. partitioning, mirror etc.) are picked up
just fine.
Any hints for me?
/ralph
But: I am stuck with getting rid of two groups of prompts:
The first three prompts in any install are language, country and keymap (German, Austria, German) in my case. I have googled around a bit and included the following for now (some of it probably redundant, useless
or cargo cultish):
d-i debian-installer/locale string de_AT
d-i debconf/language string de
d-i console-setup/ask_detect boolean false
d-i keyboard-configuration/xkb-keymap select de
d-i keyboard-configuration/layoutcode string de
d-i keyboard-configuration/variantcode string
d-i console-keymaps-usb/keymap select German
d-i console-keymaps-at/keymap select German
Similar with the menu where the desktop environment is selected.
I want LXDE and "SSH Server". I always drop back into the menu.
I have tried:
d-i pkgsel/include string openssh-server
d-i tasksel/desktop multiselect lxde
Hi fellow Debian Users
I am currently trying to build an USB stick that does a scripted install
of Debian. This works very well, and much much easier with UEFI, where
you can just edit the preseed.cfg file instead of rebuilding an ISO
every time you make a change.
But: I am stuck with getting rid of two groups of prompts:
The first three prompts in any install are language, country and keymap (German, Austria, German) in my case. I have googled around a bit and included the following for now (some of it probably redundant, useless
or cargo cultish):
d-i debian-installer/locale string de_AT
Similar with the menu where the desktop environment is selected.
I want LXDE and "SSH Server". I always drop back into the menu.
I have tried:
d-i debian-installer/locale string de_AT
The "local" is less "flexible".
Look at [1], the first few lines
Similar with the menu where the desktop environment is selected.
I want LXDE and "SSH Server". I always drop back into the menu.
I have tried:
Also look at [1] for "tasksel".
[1] https://www.debian.org/releases/stable/example-preseed.txt
I do an install to a hard drive and when I get it configured to what I
want i copy to an USB drive.
Then any time I need to do a install I simply partition a drive,
create the filesystems mount the drive and the USB drive and rsync
from the USB drive. Then I tickle the new drives innards unmount
and place it into the machine. All the "installs" then start from
the same "format/place"
I can do many "installs" in less time it takes shake a stick.
Compare https://michael.kjorling.se/debian-12-bookworm-preseed/ under
the B.4.1 heading about half way down the page.
tasksel tasksel/first multiselect standard, ssh-server
d-i pkgsel/upgrade select full-upgrade
By all means feel free to use mine as a starting point if you want.
Sysop: | Keyop |
---|---|
Location: | Huddersfield, West Yorkshire, UK |
Users: | 546 |
Nodes: | 16 (0 / 16) |
Uptime: | 161:43:45 |
Calls: | 10,385 |
Calls today: | 2 |
Files: | 14,057 |
Messages: | 6,416,500 |