Difference between revisions of "Ubuntu: Kickstart"
Jump to navigation
Jump to search
Rafahsolis (talk | contribs) (Created page with "= Install Ubuntu using Kickstart = == Kickstart example == <nowiki>#Generated by Kickstart Configurator #platform=AMD64 or Intel EM64T #System language lang en_US.UTF-8 #La...") |
Rafahsolis (talk | contribs) |
||
| (2 intermediate revisions by the same user not shown) | |||
| Line 1: | Line 1: | ||
= Install Ubuntu using Kickstart = | = Install Ubuntu using Kickstart = | ||
| + | |||
| + | == Generate kickstart iscrypted password == | ||
| + | openssl passwd -1 | ||
== Kickstart example == | == Kickstart example == | ||
| Line 18: | Line 21: | ||
user rra --fullname "RRA User" --iscrypted --password $1$pJDvPfus$7Pc.fWyqWME.1gjcOXG/20 | user rra --fullname "RRA User" --iscrypted --password $1$pJDvPfus$7Pc.fWyqWME.1gjcOXG/20 | ||
#Root password | #Root password | ||
| − | rootpw -- | + | rootpw --disabled |
#Reboot after installation | #Reboot after installation | ||
# -- reboot | # -- reboot | ||
| Line 75: | Line 78: | ||
wget --ca-certificate=/etc/ssl/certs/FreeIPA-CA.crt -O /etc/rsyslog.d/50-default.conf https://$URL_REPO/etc/rsyslog.d/50-default.conf | wget --ca-certificate=/etc/ssl/certs/FreeIPA-CA.crt -O /etc/rsyslog.d/50-default.conf https://$URL_REPO/etc/rsyslog.d/50-default.conf | ||
export SUDO_FORCE_REMOVE=no</nowiki> | export SUDO_FORCE_REMOVE=no</nowiki> | ||
| + | == Keyboard Layout == | ||
| + | sudo dpkg-reconfigure console-data | ||
| + | If it says you don't have the package, then install console-data with: | ||
| + | sudo apt-get install console-data | ||
Latest revision as of 09:13, 23 March 2018
Install Ubuntu using Kickstart[edit]
Generate kickstart iscrypted password[edit]
openssl passwd -1
Kickstart example[edit]
#Generated by Kickstart Configurator #platform=AMD64 or Intel EM64T #System language lang en_US.UTF-8 #Language modules to install langsupport es_ES.UTF-8 --default=en_US.UTF-8 #System keyboard keyboard es #System mouse mouse #System timezone timezone Europe/Madrid #Initial user user rra --fullname "RRA User" --iscrypted --password $1$pJDvPfus$7Pc.fWyqWME.1gjcOXG/20 #Root password rootpw --disabled #Reboot after installation # -- reboot #Use text mode install text #Use interactive kickstart installation method interactive #Install OS instead of upgrade install #Use Web installation url --url http://repos.rra.lan/ubuntu #System bootloader configuration bootloader --location=mbr #Clear the Master Boot Record zerombr yes #Partition clearing information clearpart --all --initlabel #System authorization infomation auth --useshadow --enablemd5 #Network information network --bootproto=dhcp --device=eth0 #Firewall configuration firewall --disabled #Do not configure the X Window System skipx #Paquetes que se van a instalar %packages server^ openssh-server^ %pre --interpreter=/bin/sh # %post --interpreter=/bin/sh dpkg --remove-architecture i386 cp /etc/ldap/ldap.conf /etc/ldap/ldap.conf.bak cp /etc/ldap.conf /etc/ldap.conf.bak cp /etc/sudo-ldap.conf /etc/sudo-ldap.conf.bak cp /etc/apt/sources.list /etc/apt/sources.list.backup export URL_REPO=repos.rra.lan export SUDO_FORCE_REMOVE=yes wget http://freeipa.rra.lan/ipa/config/ca.crt -O /etc/ssl/certs/FreeIPA-CA.crt wget --ca-certificate=/etc/ssl/certs/FreeIPA-CA.crt -O /etc/apt/sources.list https://$URL_REPO/etc/apt/sources.list mv /etc/apt/sources.list.d/* /home/rra apt-get update apt-get --yes install sudo-ldap apt-get install --yes ldap-auth-client nscd libnss-ldapd ldap-utils nslcd wget --ca-certificate=/etc/ssl/certs/FreeIPA-CA.crt -O /etc/ldap.conf https://$URL_REPO/etc/ldap.conf wget --ca-certificate=/etc/ssl/certs/FreeIPA-CA.crt -O /etc/nsswitch.conf https://$URL_REPO/etc/nsswitch.conf wget --ca-certificate=/etc/ssl/certs/FreeIPA-CA.crt -O /etc/systemd/timesyncd.conf https://$URL_REPO/etc/systemd/timesyncd.conf wget --ca-certificate=/etc/ssl/certs/FreeIPA-CA.crt -O /etc/security/group.conf https://$URL_REPO/etc/security/group.conf wget --ca-certificate=/etc/ssl/certs/FreeIPA-CA.crt -O /etc/sudo-ldap.conf https://$URL_REPO/etc/sudo-ldap.conf wget --ca-certificate=/etc/ssl/certs/FreeIPA-CA.crt -O /etc/pam.d/common-auth https://$URL_REPO/etc/pam.d/common-auth wget --ca-certificate=/etc/ssl/certs/FreeIPA-CA.crt -O /etc/pam.d/common-session https://$URL_REPO/etc/pam.d/common-session wget --ca-certificate=/etc/ssl/certs/FreeIPA-CA.crt -O /etc/pam.d/common-password https://$URL_REPO/etc/pam.d/common-password wget --ca-certificate=/etc/ssl/certs/FreeIPA-CA.crt -O /etc/pam.d/common-account https://$URL_REPO/etc/pam.d/common-account wget --ca-certificate=/etc/ssl/certs/FreeIPA-CA.crt -O /etc/nslcd.conf https://$URL_REPO/etc/nslcd.conf wget --ca-certificate=/etc/ssl/certs/FreeIPA-CA.crt -O /etc/rsyslog.d/50-default.conf https://$URL_REPO/etc/rsyslog.d/50-default.conf export SUDO_FORCE_REMOVE=no
Keyboard Layout[edit]
sudo dpkg-reconfigure console-data
If it says you don't have the package, then install console-data with:
sudo apt-get install console-data