-
Notifications
You must be signed in to change notification settings - Fork 0
/
ks.cfg
81 lines (78 loc) · 1.62 KB
/
ks.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
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
install
cdrom
# Disable login as root
rootpw --lock
lang en_US.UTF-8
timezone UTC
keyboard us
unsupported_hardware
network --bootproto=dhcp
firewall --disabled
selinux --permissive
bootloader --location=mbr
zerombr
clearpart --all
autopart
text
skipx
auth --useshadow --passalgo=sha512
firstboot --disabled
reboot
user --name=jerry --groups="sudo" --iscrypted --password $6$rounds=666666$hypertension$LxNM/PPbjauIBoXp0XPgOdYmr/jXvPwei133CZfbUxWoPR6U.JLAKyCFCln33ikGUWIQBEOPVCvLm.7hoHT.f1
%packages --ignoremissing
gcc
gcc-c++
git
kernel-devel
make
ntp
# Remove unnecessary firmware
-kernel-firmware
-aic94xx-firmware
-alsa-firmware
-alsa-tools-firmware
-atmel-firmware
-b43-openfwwf
-bfa-firmware
-ipw2100-firmware
-ipw2200-firmware
-ivtv-firmware
-iwl100-firmware
-iwl1000-firmware
-iwl105-firmware
-iwl135-firmware
-iwl2000-firmware
-iwl2030-firmware
-iwl3160-firmware
-iwl3945-firmware
-iwl4965-firmware
-iwl5000-firmware
-iwl5150-firmware
-iwl6000-firmware
-iwl6000g2a-firmware
-iwl6000g2b-firmware
-iwl6050-firmware
-iwl7260-firmware
-iwl7265-firmware
-libertas-sd8686-firmware
-libertas-sd8787-firmware
-libertas-usb8388-firmware
-ql2100-firmware
-ql2200-firmware
-ql23xx-firmware
-ql2400-firmware
-ql2500-firmware
-rt61pci-firmware
-rt73usb-firmware
-xorg-x11-drv-ati-firmware
-zd1211-firmware
%end
%post
mkdir -p /home/jerry/.ssh/
chmod 0700 /home/jerry/.ssh/
curl https://github.com/jerrywardlow.keys > /home/jerry/.ssh/authorized_keys
chmod 0600 /home/jerry/.ssh/authorized_keys
sed -i -e '/^PasswordAuthentication/s/^.*$/PasswordAuthentication no/' /etc/ssh/sshd_config
echo "\nAllowUsers jerry" >> /etc/ssh/sshd_config
service ssh restart
%end