Created
June 10, 2022 02:45
-
-
Save changchichung/e292f6652b2c30c1439709da490a7d64 to your computer and use it in GitHub Desktop.
ubuntu 22.04 jammy preseed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
from tcboeira | |
``` | |
# Preseeding only locale sets language, country and locale. | |
d-i debian-installer/locale string pt_BR | |
# Set language, country and locale. | |
d-i debian-installer/language string pt_BR | |
d-i debian-installer/country string BR | |
d-i debian-installer/locale string pt_BR.UTF-8 | |
# Specify additional locales to be generated. | |
d-i localechooser/supported-locales multiselect pt_BR.UTF-8 | |
# Enable extras.ubuntu.com. | |
d-i apt-setup/extras boolean true | |
# Install the Ubuntu desktop. | |
tasksel tasksel/first multiselect ubuntu-desktop | |
# On live DVDs, don't spend huge amounts of time removing substantial | |
# application packages pulled in by language packs. Given that we clearly | |
# have the space to include them on the DVD, they're useful and we might as | |
# well keep them installed. | |
ubiquity ubiquity/keep-installed string icedtea6-plugin openoffice.org | |
# Any hostname and domain names assigned from dhcp take precedence over | |
# values set here. However, setting the values still prevents the questions | |
# from being shown, even if values come from dhcp. | |
d-i netcfg/get_hostname string NOME-PC | |
d-i netcfg/get_domain string DOMINIO.SUFIXO | |
# If you want to force a hostname, regardless of what either the DHCP | |
# server returns or what the reverse DNS entry for the IP is, uncomment | |
# and adjust the following line. | |
d-i netcfg/hostname string NOME-PC | |
# Set keyboard layout. | |
d-i keyboard-configuration/xkb-keymap select pt | |
# Set time zone and region. | |
d-i time/zone string America/Sao_Paulo | |
d-i debian-installer/region string pt_BR.UTF-8 | |
# Create a normal user account. | |
d-i passwd/user-fullname string USER | |
d-i passwd/username string USER | |
d-i passwd/user-password-crypted password [AQUI MINHA SENHA CRIPTO] | |
# Override weak password warning. | |
d-i user-setup/allow-password-weak boolean false | |
# Add user to specific groups. | |
# d-i passwd/user-default-groups string audio cdrom video | |
d-i passwd/user-default-groups string adm cdrom sudo root USER dip plugdev lpadmin lxd | |
ubiquity ubiquity/success_command string \ | |
echo "Running Post Install Commands"; \ | |
in-target touch /usr/local/bin/PASTA_LOC/install/inst-end.sh; \ | |
in-target /bin/bash /usr/local/bin/PASTA_LOC/install/inst-end.sh | |
ubiquity ubiquity/reboot boolean true | |
``` |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
however , I just paste the full preseed into ubuntu.seed in cubic , but it didn't "full automate" install ubuntu.
I see the language and keyboard were defaulat in BR language. that means the preseed did work in some way, but what I really want to is "auto" select language/keyboard , configure user account , install some packages without human ( so called "unattended install " )
and BTW , I use ubuntu jammy desktop as based ISO in cubic , what's your choice ?