# Kickstart file to create a small Fedora server install suitable # for use as e.g. an application server. # # Search for ## EDIT HERE ## lang C keyboard us timezone US/Eastern auth --useshadow --enablemd5 firewall --service=ssh bootloader --timeout=1 --append="acpi=force" network --bootproto=dhcp --device=eth0 --onboot=on services --enabled=network ## IMPORTANT ## ## EDIT HERE ## # ROOT PASSWORD: # Setting a root password is NOT RECOMMENDED, especially if your # server will be accessible to the public internet. This is # because of the rise of automated ssh password guessing attacks. # You should instead (if you don't have one already) # generate a public ssh key: # http://sial.org/howto/openssh/publickey-auth/ # # See comment below in %post for authorizing your public # key for the root account. rootpw "" # However, if you choose instead to make a password, # uncomment the next line to make the root password be "thincrust" # # If you do neither of these things, you will not be able to log # into your machine. #rootpw --iscrypted $1$uw6MV$m6VtUWPed4SqgoW6fKfTZ/ clearpart --all --initlabel part / --size=550 --grow --fstype=ext4 # You may change this if you don't want swap part swap --recommended reboot %packages @base # By default enable ssh openssh-server %end # # Add custom post scripts after the base post. # %post ## EDIT HERE ## cd /root mkdir --mode=700 .ssh cat >> .ssh/authorized_keys << PUBLIC_KEY ## EDIT HERE ## - replace this with a SSH public key PUBLIC_KEY chmod 600 .ssh/authorized_keys chcon -R -h -t home_ssh_t .ssh %end