Skip to content

Instantly share code, notes, and snippets.

@mineiro
Last active December 16, 2015 11:59
Show Gist options
  • Save mineiro/5431336 to your computer and use it in GitHub Desktop.
Save mineiro/5431336 to your computer and use it in GitHub Desktop.
CentOS 6 - Sample Kickstart
# Install OS instead of upgrade
install
# Firewall configuration
firewall --enabled --ssh
# Keyboard layouts
keyboard 'us'# Use network installation
url --url="http://mirror.centos.org/centos/6/os/x86_64"
# Network information
network --bootproto=dhcp --device=eth0
# Reboot after installation
reboot
# Root password
rootpw --iscrypted $1$wRM7oByu$BO7DkoYRveZNgRcSX89jt.
# System timezone
timezone America/Sao_Paulo
# System authorization information
auth --useshadow --passalgo=md5
# Use text mode install
text
# System language
lang en_US
# SELinux configuration
selinux --enforcing
# Do not configure the X Window System
skipx
# System bootloader configuration
bootloader --location=mbr
# Clear the Master Boot Record
zerombr
# Partition clearing information
clearpart --all
# Auto-partition
autopart
%packages --nobase --excludedocs
@base
vim
%end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment