Skip to content

Instantly share code, notes, and snippets.

@kshcherban
Created March 9, 2016 17:50
Show Gist options
  • Star 2 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save kshcherban/1f586afc089a49acb594 to your computer and use it in GitHub Desktop.
Save kshcherban/1f586afc089a49acb594 to your computer and use it in GitHub Desktop.
# System language
lang en_US
# Language modules to install
langsupport en_US
# System keyboard
keyboard us
# System mouse
mouse
# System timezone
timezone America/New_York
# Root password
rootpw --disabled
# Initial user (will have sudo so no need for root)
user ubuntu --fullname "Ubuntu User" --password ubuntu
# Reboot after installation
reboot
# Use text mode install
text
# Install OS instead of upgrade
install
# Installation media
cdrom
# System bootloader configuration
bootloader --location=mbr
# Clear the Master Boot Record
zerombr yes
# Partition clearing information
clearpart --all --initlabel
# Basic disk partition
part / --fstype ext4 --size 1 --grow --asprimary
# Don't install recommended items by default
preseed base-installer/install-recommends boolean false
# System authorization infomation
# The enablemd5 has to be there although it will still use salted sha256
auth --useshadow --enablemd5
# Network information
network --bootproto=dhcp --device=eth0
# Firewall configuration
firewall --disabled --trust=eth0 --ssh
# Policy for applying updates. May be "none" (no automatic updates),
# "unattended-upgrades" (install security updates automatically), or
# "landscape" (manage system with Landscape).
preseed pkgsel/update-policy select unattended-upgrades
# Do not configure the X Window System
skipx
%packages
# Since I don't install recommended it leaves out some things that should
# probably be installed like openssl and python 2.7
ca-certificates
openssl
python
wget
openssh-server
curl
vim
%post
# Clean up
apt-get -qq -y autoremove
apt-get clean
rm -f /var/cache/apt/*cache.bin
rm -f /var/lib/apt/lists/*
@rodrigorras
Copy link

hi friend, the current ks.cfg pauses for 2 times:

  • first time -> at the password complexity
  • second time -> no swap defined
    thank you so much !!! it's working fine 👍

@Praveenmail2him
Copy link

How to run this Kickstarter files for Ubuntu 18.04? Kindly help.

@kshcherban
Copy link
Author

How to run this Kickstarter files for Ubuntu 18.04? Kindly help.

You need to append to kernel parameters: ks=http://pastebin.com/raw/eY5ybGfc, where http://pastebin.com/raw/eY5ybGfc is a path to kickstart file, https didn't work for me.

@Praveenmail2him
Copy link

Praveenmail2him commented Sep 27, 2021 via email

@kshcherban
Copy link
Author

Thanks a lot. But I'm using non-graphical ubuntu version and MacBook Pro is my host machine. How can I run this ks command from my host machine? Kindly help. Regards, Praveen

On Mon, 27 Sep, 2021, 2:24 pm Konstantin Shcherban, < @.> wrote: @.* commented on this gist. ------------------------------ How to run this Kickstarter files for Ubuntu 18.04? Kindly help. You need to append to kernel parameters: ks= http://pastebin.com/raw/eY5ybGfc, where http://pastebin.com/raw/eY5ybGfc is a path to kickstart file, https didn't work for me. — You are receiving this because you commented. Reply to this email directly, view it on GitHub https://gist.github.com/1f586afc089a49acb594#gistcomment-3906238, or unsubscribe https://github.com/notifications/unsubscribe-auth/AEVRXOR6I3427A4Q3SXV6P3UEAWOBANCNFSM4JS3BF2A . Triage notifications on the go with GitHub Mobile for iOS https://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675 or Android https://play.google.com/store/apps/details?id=com.github.android&referrer=utm_campaign%3Dnotification-email%26utm_medium%3Demail%26utm_source%3Dgithub.

Check https://help.ubuntu.com/lts/installation-guide/powerpc/ch04s05.html, I can't help more.

@Praveenmail2him
Copy link

Praveenmail2him commented Sep 28, 2021 via email

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment