BlueArch/chscript.sh
2021-01-09 00:39:49 +02:00

51 lines
792 B
Bash
Executable File

timedatectl set-timezone Europe/Vilnius
locale-gen
echo LANG=en_US.UTF-8 > /etc/locale.conf
export LANG=en_US.UTF-8
echo blue > /etc/hostname
echo "127.0.0.1 localhost" >> /etc/hosts
echo "::1 localhost" >> /etc/hosts
echo "127.0.1.1 blue" >> /etc/hosts
useradd -m blue
echo "Root password"
passwd
echo "Blue password"
passwd blue
# mkdir /boot/efi
# mount /dev/sda1 /boot/efi
# grub-install --target=x86_64-efi --bootloader-id=GRUB --efi-directory=/boot/efi
# grub-mkconfig -o /boot/grub/grub.cfg
grub-install /dev/sda
grub-mkconfig -o /boot/grub/grub.cfg
systemctl enable lightdm
cd /opt
git clone https://aur.archlinux.org/yay-git.git
chown -R blue:blue ./yay-git
cd ./yay-git
echo "blue ALL=(ALL) NOPASSWD:ALL" >> /etc/sudoers
sudo -u blue makepkg -si
exit
reboot