Skip to content

Commit ee37de3

Browse files
committed
apply custom config
1 parent c5f3577 commit ee37de3

File tree

15 files changed

+80
-2
lines changed

15 files changed

+80
-2
lines changed

airootfs/etc/environment

+10
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
#
2+
# This file is parsed by pam_env module
3+
#
4+
# Syntax: simple "KEY=VAL" pairs on separate lines
5+
#
6+
EDITOR=nano
7+
GTK_IM_MODULE=fcitx
8+
QT_IM_MODULE=fcitx
9+
SDL_IM_MODULE=fcitx
10+
XMODIFIERS=@im=fcitx

airootfs/etc/group

+5
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
root:x:0:root
2+
sudo:x:4:live
3+
wheel:x:10:live
4+
autologin:x:960:live
5+
live:x:1000:

airootfs/etc/gshadow

+2
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
root:!*::root
2+
live:!*::

airootfs/etc/locale.gen

+5
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
#
2+
# SPDX-License-Identifier: GPL-3.0-or-later
3+
4+
en_US.UTF-8 UTF-8
5+
zh_CN.UTF-8 UTF-8

airootfs/etc/passwd

+1
Original file line numberDiff line numberDiff line change
@@ -1 +1,2 @@
11
root:x:0:0:root:/root:/usr/bin/zsh
2+
live:x:1000:1000::/home/live:/usr/bin/zsh

airootfs/etc/profile

+4
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
if [ -z "${DISPLAY}" ] && [ "${XDG_VTNR}" -eq 1 ]; then
2+
export LANG=zh_CN.UTF-8
3+
exec startxfce4
4+
fi

airootfs/etc/shadow

+2-1
Original file line numberDiff line numberDiff line change
@@ -1 +1,2 @@
1-
root::14871::::::
1+
root:$6$ADcEsqLgjK9cj36j$9S9MhtDXaT1irxrkGn73tbO.zX66lq9oEG3/6aRkfjmyDKb9/6vQtAO2rLu7W.6yIWoqT2BCY1RvgC4KAsW750:14871::::::
2+
live:$6$W8pK543L1.Mlv3rp$oFHiXtFtBvVYz44w4M4CVxWqyald4DrrZOKEn5s.PkTq7udbgcIQCQUyN2TzdU7RX6v9T84NM4oSH65nl3g1q1:14871::::::
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
<?xml version="1.0"?>
2+
<!DOCTYPE fontconfig SYSTEM "fonts.dtd">
3+
<fontconfig>
4+
<match>
5+
<test name="family"><string>serif</string></test>
6+
<edit name="family" mode="assign" binding="strong">
7+
<string>思源黑体 CN</string>
8+
</edit>
9+
</match>
10+
<match>
11+
<test name="family"><string>sans-serif</string></test>
12+
<edit name="family" mode="assign" binding="strong">
13+
<string>思源黑体 CN</string>
14+
</edit>
15+
</match>
16+
<match>
17+
<test name="family"><string>monospace</string></test>
18+
<edit name="family" mode="assign" binding="strong">
19+
<string>Source Code Pro</string>
20+
</edit>
21+
</match>
22+
</fontconfig>

airootfs/etc/sudoers.d/live

+1
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
live ALL=(ALL) NOPASSWD: ALL
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
/usr/lib/systemd/system/NetworkManager-dispatcher.service

airootfs/etc/systemd/system/getty@tty1.service.d/autologin.conf

+1-1
Original file line numberDiff line numberDiff line change
@@ -3,4 +3,4 @@
33

44
[Service]
55
ExecStart=
6-
ExecStart=-/sbin/agetty --autologin root --noclear %I 38400 linux
6+
ExecStart=-/sbin/agetty --autologin live --noclear %I 38400 linux
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
/usr/lib/systemd/system/NetworkManager.service
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
/usr/lib/systemd/system/NetworkManager-wait-online.service

packages.x86_64

+23
Original file line numberDiff line numberDiff line change
@@ -108,3 +108,26 @@ wvdial
108108
xfsprogs
109109
xl2tpd
110110
zsh
111+
112+
113+
xfce4
114+
xorg-server
115+
xorg-xinit
116+
fcitx5-im
117+
fcitx5-chinese-addons
118+
xdg-user-dirs
119+
git
120+
firefox-i18n-zh-cn
121+
adobe-source-han-sans-cn-fonts
122+
adobe-source-code-pro-fonts
123+
ttf-liberation
124+
xorg-drivers
125+
xed
126+
network-manager-applet
127+
gparted
128+
gpart
129+
base-devel
130+
base
131+
gvfs
132+
xfce4-screenshooter
133+
wget

profiledef.sh

+1
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@ airootfs_image_type="squashfs"
1414
airootfs_image_tool_options=('-comp' 'xz' '-Xbcj' 'x86' '-b' '1M' '-Xdict-size' '1M')
1515
file_permissions=(
1616
["/etc/shadow"]="0:0:400"
17+
["/etc/gshadow"]="0:0:400"
1718
["/root"]="0:0:750"
1819
["/root/.automated_script.sh"]="0:0:755"
1920
["/usr/local/bin/choose-mirror"]="0:0:755"

0 commit comments

Comments
 (0)