Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

add question (userinput) for hostname #34

Open
crazydave1981 opened this issue Jul 25, 2022 · 0 comments
Open

add question (userinput) for hostname #34

crazydave1981 opened this issue Jul 25, 2022 · 0 comments

Comments

@crazydave1981
Copy link

Dear Team,

Any way to get an userinput within a unnatended installation for setting the hostname?
Also looks like the terminal is broken after install, cant start it.

my .seed file looks like this.

Partitioning

ubiquity partman-auto/disk string /dev/sda
ubiquity partman-auto/method string regular
ubiquity partman-lvm/device_remove_lvm boolean true
ubiquity partman-md/device_remove_md boolean true
ubiquity partman-auto/choose_recipe select atomic

This makes partman automatically partition without confirmation

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

Locale

d-i keyboard-configuration/layoutcode select us
d-i debian-installer/locale string en_US
d-i console-setup/ask_detect boolean false
d-i console-setup/layoutcode string us

Network

d-i netcfg/get_hostname string localhost
d-i netcfg/get_domain string localdomain
d-i netcfg/choose_interface select auto

Clock

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

Packages, Mirrors, Image

d-i mirror/country string US
d-i apt-setup/multiverse boolean true
d-i apt-setup/restricted boolean true
d-i apt-setup/universe boolean true

Users

d-i passwd/user-fullname string led-visuals
d-i passwd/username string led-visuals

Generate with "openssl passwd -6"

d-i passwd/user-password-crypted password $6$Q/PnbVPNxvO1Vkmx$FwdX.6.Cz6DoAnXA8RddSFSAgvye5uznja.1ix8bbnord1uMUmC0.9cEgyVy4XNoHB/e5GYBDidDgJQIXI4vI1

d-i passwd/user-default-groups string adm audio cdrom dip lpadmin sudo plugdev sambashare video
d-i passwd/root-login boolean false
d-i user-setup/allow-password-weak boolean false
d-i passwd/auto-login boolean true

Grub

d-i grub-installer/grub2_instead_of_grub_legacy boolean true
d-i grub-installer/only_debian boolean true
d-i finish-install/reboot_in_progress note

Custom Commands

ubiquity ubiquity/success_command string
in-target apt update;
in-target apt remove --purge -yy gnome-initial-setup rhythmbox libreoffice* thunderbird* aisleriot gnome-sudoku mahjongg ace-of-penguins gnomine gbrainy;
in-target apt install -y wget;
in-target wget https://dl.google.com/linux/direct/google-chrome-stable_current_amd64.deb;\
in-target sudo apt install -y ./google-chrome-stable_current_amd64.deb;
in-target gsettings set org.gnome.settings-daemon.plugins.power ambient-enabled false;
in-target gsettings set org.gnome.settings-daemon.plugins.power idle-dim false;
in-target gsettings set org.gnome.settings-daemon.plugins.power sleep-inactive-ac-type 'nothing';
in-target gsettings set org.gnome.settings-daemon.plugins.power sleep-inactive-battery-type 'suspend';\

Poweroff after install

ubiquity ubiquity/poweroff boolean true

Reboot after install

#ubiquity ubiquity/reboot boolean true

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant