preseed d-i
Hi,
I've made an custom live-cd with d-i included. Now I want to do some
preseeding and I need some help with it to getting started.
I want to disable root password (enable sudo) and add a custom sources.list.
This are the options specified in the preseed.cfg to enable sudo and
have a custom sources.list:
### Account setup
# Skip creation of a root account (normal user account will be able to
# use sudo).
d-i passwd/root-login boolean false
# Alternatively, to skip creation of a normal user account.
#d-i passwd/make-user boolean false
# Root password, either in clear text
#d-i passwd/root-password password r00tme
#d-i passwd/root-password-again password r00tme
# or encrypted using an MD5 hash.
#d-i passwd/root-password-crypted password [MD5 hash]
# To create a normal user account.
#d-i passwd/user-fullname string Debian User
#d-i passwd/username string debian
# Normal user's password, either in clear text
#d-i passwd/user-password password insecure
#d-i passwd/user-password-again password insecure
# or encrypted using an MD5 hash.
#d-i passwd/user-password-crypted password [MD5 hash]
# Create the first user with the specified UID instead of the default.
#d-i passwd/user-uid string 1010
# The user account will be added to some standard initial groups. To
# override that, use this.
#d-i passwd/user-default-groups string audio cdrom video
### 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
# Uncomment this if you don't want to use a network mirror.
d-i apt-setup/use_mirror boolean false
# Select which update services to use; define the mirrors to be used.
# Values shown below are the normal defaults.
#d-i apt-setup/services-select multiselect security, volatile
#d-i apt-setup/security_host string security.debian.org
#d-i apt-setup/volatile_host string volatile.debian.org
# Additional repositories, local[0-9] available
d-i apt-setup/local0/repository string \
# http://local.server/debian stable main
ftp://ftp.debian.us/debian/ testing main contrib non-free
d-i apt-setup/local1/repository string \
http://www.debian-multimedia.org/ testing main
d-i apt-setup/local2/repository string \
http://ftp.us.debian.org/debian/ unstable main contrib non-free
d-i apt-setup/local3/repository string \
http://ftp.uni-kl.de/debian-multimedia/ unstable main
d-i apt-setup/local4/repository string \
http://security.debian.org lenny/updates main contrib non-free
#d-i apt-setup/local0/comment string local server
# Enable deb-src lines
d-i apt-setup/local0/source boolean true
# URL to the public key of the local repository; you must provide a key or
# apt will complain about the unauthenticated repository and so the
# sources.list line will be left commented out
#d-i apt-setup/local0/key string http://local.server/key
# By default the installer requires that repositories be authenticated
# using a known gpg key. This setting can be used to disable that
# authentication. Warning: Insecure, not recommended.
d-i debian-installer/allow_unauthenticated string true
I've this in the binary file in the build environment of the live-cd:
# $LH_DEBIAN_INSTALLER_PRESEEDFILE: set debian-installer preseed
filename/url
# (Default: )
LH_DEBIAN_INSTALLER_PRESEEDFILE="/home/d/debianlive/preseed.cfg"
Are these setting right? Comments and advises are welcome!
\d
Reply to: