mirror of
https://github.com/ItsDrike/dotfiles.git
synced 2025-06-29 04:00:42 +00:00
Update installation guide,script,hosts file
This commit is contained in:
parent
74b3df693c
commit
1cb455fba7
3 changed files with 27 additions and 35 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue