Update installation guide,script,hosts file

This commit is contained in:
ItsDrike 2023-12-29 13:49:55 +01:00
parent 74b3df693c
commit 1cb455fba7
Signed by: ItsDrike
GPG key ID: FA2745890B7048C0
3 changed files with 27 additions and 35 deletions

View file

@ -30,6 +30,8 @@ pacman -S --noconfirm --needed python-rich bc lua jq bat
# Copy over system configuration data
cp root/etc/pacman.conf /etc
cp root/etc/hosts /etc
HOSTNAME="$(cat /etc/hostname)"
sed -i "s/^127.0.1.1 pc.localdomain pc/127.0.1.1 ${HOSTNAME}.localdomain ${HOSTNAME}/g" /etc/locale.gen
install -m 640 root/etc/sudoers /etc
install -m 640 root/etc/sudoers.d/* /etc/sudoers.d
cp root/etc/modprobe.d/nobeep.conf /etc/modprobe.d # disable motherboard speaker
@ -41,6 +43,10 @@ cp root/.rsync-filter /
# Sync pacman repos after /etc/pacman.conf got updated
sudo pacman -Sy
# Install zsh and make it the default shell for root
sudo pacman -S --noconfirm --needed zsh
chsh -s /usr/bin/zsh root
# Copy ZSH shell configuration
mkdir -p /etc/zsh
cp -ra root/etc/zsh /etc
@ -52,10 +58,6 @@ rm -rf ~/.config/zsh/.zgenom
git clone https://github.com/jandamm/zgenom ~/.config/zsh/.zgenom
install -m 700 -d ~/.local/share/gnupg
# Install zsh and make it the default shell for root
sudo pacman -S --noconfirm --needed zsh
chsh -s /usr/bin/zsh root
# Enable some basic services
systemctl enable systemd-resolved
systemctl enable NetworkManager