-
Notifications
You must be signed in to change notification settings - Fork 0
/
anaconda-ks.cfg
138 lines (111 loc) · 2.91 KB
/
anaconda-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
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
# Configure Installation Method
install
url --mirrorlist="https://mirrors.fedoraproject.org/mirrorlist?repo=fedora-32&arch=x86_64&country=CN" --noverifyssl
# Configure Boot Loader
bootloader --location=none --driveorder=nvme0n1
# Configure Disks
ignoredisk --only-use=nvme0n1
# Remove all existing partitions
clearpart --drives=nvme0n1 --all
# Create Physical Partitions
part /boot/efi --fstype="efi" --ondisk=nvme0n1 --size=1024 --fsoptions="umask=0077,shortname=winnt"
part /boot --fstype="xfs" --ondisk=nvme0n1 --size=2048
part swap --fstype="swap" --ondisk=nvme0n1 --size=16384
part / --fstype="xfs" --ondisk=nvme0n1 --size=71680
part /home --fstype="xfs" --ondisk=nvme0n1 --size=30720
### Network information
firewall --enabled
network --bootproto=dhcp --device=enp2s0 --hostname=miy4mori.dev --nameserver=114.114.114.114,114.114.115.115 --noipv6 --activate
# Keyboard layouts
keyboard --xlayouts='us'
# System language
lang en_US.UTF-8 --addsupport=zh_CN.UTF-8
# System services
services --disabled=dnf-makecache.timer,mlocate-updatedb.timer
# System timezone
timezone Asia/Shanghai --ntpservers=0.cn.pool.ntp.org,1.cn.pool.ntp.org,2.cn.pool.ntp.org,3.cn.pool.ntp.org
# Do Not Configure X Window System
skipx
### Configure Users, Groups and Authentication
# Configure User Group
# group --name=wireshark
# Configure Root
rootpw --lock
# Configure User
user --groups=wheel,wireshark --name=miy4mori --password=123.com --plaintext --uid=1000 --gid=1000 --gecos="miy4mori"
# Configure SELinux
selinux --permissive
### Installation Environment
# Perform Installation in Text Mode
text
# Configure kdump
%addon com_redhat_kdump --disable
%end
### Package Selection
%packages
# Base
@^workstation-product-environment --nodefaults
-@libreoffice
@c-development --nodefaults
@container-management --nodefaults
@development-tools --nodefaults
@editors --nodefaults
@rpm-development-tools --nodefaults
@text-internet --nodefaults
# Fortinet
NetworkManager-fortisslvpn
NetworkManager-fortisslvpn-gnome
# Chromium
chromium*
-chromium-bsu
# Fonts
google-noto-sans-cjk-jp-fonts
google-noto-sans-cjk-sc-fonts
google-noto-sans-cjk-tc-fonts
adobe-source-han-mono-fonts
adobe-source-han-sans-cn-fonts
adobe-source-han-sans-jp-fonts
adobe-source-han-sans-tw-fonts
adobe-source-han-serif-cn-fonts
adobe-source-han-serif-jp-fonts
adobe-source-han-serif-tw-fonts
# Node
nodejs
# NPM
npm
# Java
-java-1.8.0*
java-11*
# Go
golang
# Zsh
zsh
# GIMP
gimp
# Wireshark
wireshark
# Git
git-review
# Others
pykickstart
# Proxychains NG
proxychains-ng
%end
# Post-installation Script
%post --log=/root/ks-post.log
# Disable IPv6
cat <<EOF >> /etc/sysctl.d/80-sysctl.conf
net.ipv6.conf.default.disable_ipv6 = 1
EOF
# Configure sysctl
cat <<EOF >> /etc/sysctl.d/70-sysctl.conf
fs.file-max = 1048576
EOF
# Configure limits
cat <<EOF >> /etc/security/limits.conf
* soft nofile 1048576
* hard nofile 1048576
EOF
%end
# Power Off After Installation
poweroff