This repository was archived by the owner on May 2, 2025. It is now read-only.
-
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathcustomize_airootfs.sh
More file actions
executable file
·77 lines (76 loc) · 5.14 KB
/
customize_airootfs.sh
File metadata and controls
executable file
·77 lines (76 loc) · 5.14 KB
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
#!/usr/bin/env bash
sed -i "s/#en_US.UTF-8/en_US.UTF-8/" /etc/locale.gen && locale-gen &>/dev/null # Generate the chosen locale
# ╭──────────────────────────────────────────────────────────────────────────────╮
# │ Manage service │
# ╰──────────────────────────────────────────────────────────────────────────────╯
{
enable_services=(
'ly.service'
# 'sddm.service'
'NetworkManager.service'
'systemd-resolved.service'
'systemd-networkd.service'
) # Declare local list
disable_services=(
'iwd.service'
'sshd.service'
'reflector.service'
'vboxservice.service'
'ModemManager.service'
'choose-mirror.service'
'qemu-guest-agent.service'
'livecd-talk.service'
) # Declare local list
systemctl --force enable ${enable_services[@]} 1>/dev/null # Enable services
systemctl --force disable ${disable_services[@]} 1>/dev/null # Disable services
}
# ╭──────────────────────────────────────────────────────────────────────────────╮
# │ Add chaotic-aur │
# ╰──────────────────────────────────────────────────────────────────────────────╯
# pacman-key --init # Ensure the keyring is properly initalized
# pacman-key --recv-key 3056513887B78AEB --keyserver keyserver.ubuntu.com 1>/dev/null
# pacman-key --lsign-key 3056513887B78AEB 1>/dev/null
# ╭──────────────────────────────────────────────────────────────────────────────╮
# │ Change Permisions │
# ╰──────────────────────────────────────────────────────────────────────────────╯
chmod 755 --recursive /opt
chmod 700 --recursive /root/.local
chmod 755 --recursive /root/.config
chmod 700 --recursive /home/user/.local
chmod 755 --recursive /home/user/.config
chmod 755 --recursive /etc/zsh
chmod 755 --recursive /etc/X11
chmod 755 --recursive /etc/skel
chmod 755 --recursive /etc/xdg/nvim
chmod 755 --recursive /usr/local/bin
chmod 755 --recursive /etc/sddm.conf.d /etc/ly_conf
chmod 777 --recursive /etc/zsh/**/user-alias /etc/xdg/nvim/init.vim
chmod 755 /etc/{tmux.conf,securetty,locale.*,vconsole.conf,gitconfig,nanorc}
# ╭──────────────────────────────────────────────────────────────────────────────╮
# │ Other operations │
# ╰──────────────────────────────────────────────────────────────────────────────╯
pacman-key --populate archlinux
rm -rf /root/.local/share/zinit/completions
rm -rf /home/user/.local/share/zinit/completions
ln -sf /opt/craccken-installer/craccken-installer /usr/local/bin
rm -rf /etc/ly && mv -f /etc/ly_conf /etc/ly
# ╭──────────────────────────────────────────────────────────────────────────────╮
# │ Create release file │
# ╰──────────────────────────────────────────────────────────────────────────────╯
{
echo 'NAME=Craccken Linux'
echo 'PRETTY_NAME="Craccken GNU/Linux"'
echo 'ID=Craccken'
echo 'BUILD_ID=rolling'
echo 'HOME_URL="https://github.com/Craccken/craccken-linux"'
echo 'DOCUMENTATION_URL="https://github.com/Craccken/craccken-linux"'
echo 'SUPPORT_URL="https://github.com/Craccken/craccken-linux"'
echo 'BUG_REPORT_URL="https://github.com/Craccken/craccken-linux"'
echo 'ID_LIKE=arch'
} > /usr/lib/os-release
{
echo "DISTRIB_ID=Craccken"
echo "DISTRIB_RELEASE=rolling"
echo "DISTRIB_DESCRIPTION='Craccken Linux'"
} > /etc/lsb-release
echo "Craccken Linux" > /etc/arch-release