split things into smaller components
parent
1362ebf947
commit
92e5d0a1d1
|
|
@ -0,0 +1,36 @@
|
||||||
|
#!/bin/bash
|
||||||
|
ln -sf /usr/share/zoneinfo/Europe/Vienna /etc/localtime
|
||||||
|
|
||||||
|
hwclock --systohc
|
||||||
|
|
||||||
|
echo "en_US.UTF-8 UTF-8" >> /etc/locale.gen
|
||||||
|
|
||||||
|
locale-gen
|
||||||
|
|
||||||
|
touch /etc/locale.conf
|
||||||
|
echo "\n" >> /etc/locale.conf
|
||||||
|
echo "LANG=en_US.UTF-8" >> /etc/locale.conf
|
||||||
|
|
||||||
|
echo "KEYMAP=de" > /etc/vconsole.conf
|
||||||
|
echo "XKBLAYOUT=de" >> /etc/vconsole.conf
|
||||||
|
echo "XKBMODEL=pc105" >> /etc/vconsole.conf
|
||||||
|
echo "XKBOPTIONS=terminate:ctrl_alt_bksp" >> /etc/vconsole.conf
|
||||||
|
|
||||||
|
|
||||||
|
echo -n "Hostname: "
|
||||||
|
read hostnameinput
|
||||||
|
echo "$hostnameinput" > /etc/hostname
|
||||||
|
|
||||||
|
echo "127.0.0.1 localhost \n ::1 localhost \n 127.0.1.1 $hostnameinput" > /etc/hosts
|
||||||
|
|
||||||
|
|
||||||
|
echo -n "Sudo User: "
|
||||||
|
read sudoadmin
|
||||||
|
useradd -mG wheel $sudoadmin
|
||||||
|
passwd $sudoadmin
|
||||||
|
|
||||||
|
grub-install --target=x86_64-efi --efi-directory=/boot --bootloader-id=GRUB
|
||||||
|
grub-mkconfig -o /boot/grub/grub.cfg
|
||||||
|
|
||||||
|
systemctl enable NetworkManager
|
||||||
|
exit
|
||||||
|
|
@ -143,44 +143,7 @@ genfstab -U /mnt >> /mnt/etc/fstab
|
||||||
# Check if fstab is fine ( it is if you've faithfully followed the previous steps )
|
# Check if fstab is fine ( it is if you've faithfully followed the previous steps )
|
||||||
cat /mnt/etc/fstab
|
cat /mnt/etc/fstab
|
||||||
|
|
||||||
echo '''
|
cp ~/Dotfiles/setup/chroot-install.sh /mnt/
|
||||||
ln -sf /usr/share/zoneinfo/Europe/Vienna /etc/localtime
|
|
||||||
|
|
||||||
hwclock --systohc
|
|
||||||
|
|
||||||
echo "en_US.UTF-8 UTF-8" >> /etc/locale.gen
|
|
||||||
|
|
||||||
locale-gen
|
|
||||||
|
|
||||||
touch /etc/locale.conf
|
|
||||||
echo "\n" >> /etc/locale.conf
|
|
||||||
echo "LANG=en_US.UTF-8" >> /etc/locale.conf
|
|
||||||
|
|
||||||
echo "KEYMAP=de" > /etc/vconsole.conf
|
|
||||||
echo "XKBLAYOUT=de" >> /etc/vconsole.conf
|
|
||||||
echo "XKBMODEL=pc105" >> /etc/vconsole.conf
|
|
||||||
echo "XKBOPTIONS=terminate:ctrl_alt_bksp" >> /etc/vconsole.conf
|
|
||||||
|
|
||||||
|
|
||||||
echo -n "Hostname: "
|
|
||||||
read hostnameinput
|
|
||||||
echo "$hostnameinput" > /etc/hostname
|
|
||||||
|
|
||||||
echo "127.0.0.1 localhost \n ::1 localhost \n 127.0.1.1 $hostnameinput" > /etc/hosts
|
|
||||||
|
|
||||||
|
|
||||||
echo -n "Sudo User: "
|
|
||||||
read sudoadmin
|
|
||||||
useradd -mG wheel $sudoadmin
|
|
||||||
passwd $sudoadmin
|
|
||||||
|
|
||||||
grub-install --target=x86_64-efi --efi-directory=/boot --bootloader-id=GRUB
|
|
||||||
grub-mkconfig -o /boot/grub/grub.cfg
|
|
||||||
|
|
||||||
systemctl enable NetworkManager
|
|
||||||
exit
|
|
||||||
|
|
||||||
''' > /mnt/@/chroot-install.sh
|
|
||||||
|
|
||||||
arch-chroot /mnt
|
arch-chroot /mnt
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue