-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathkickstart_ubuntu.cfg
49 lines (47 loc) · 1.13 KB
/
kickstart_ubuntu.cfg
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
#Generated by Kickstart Configurator
#platform=AMD64 or Intel EM64T
#System language
lang en_US
#Language modules to install
langsupport es_ES
#System keyboard
keyboard es
#System mouse
#mouse
#System timezone
timezone Europe/Madrid
#Root password
rootpw _passwd
#Initial user
user --disabled
#Reboot after installation
reboot
#Use text mode install
text
#Install OS instead of upgrade
install
#Use CDROM installation media
cdrom
#System bootloader configuration
bootloader --location=mbr
#Clear the Master Boot Record
zerombr yes
#Partition clearing information
clearpart --all --initlabel
#Disk partitioning information
part / --fstype ext4 --size 1 --grow --asprimary
part /boot --fstype ext4 --size 256 --asprimary
part swap --recommended
#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
%post
apt-get update
apt-get upgrade -y
apt-get install -y openssh-server
/bin/sed -i 's/PermitRootLogin/#PermitRootLogin/g' /etc/ssh/sshd_config