87 lines
1.8 KiB
Bash
87 lines
1.8 KiB
Bash
#!/bin/bash
|
|
|
|
# Partitioning
|
|
# - how to get a device name
|
|
# - how to format disk in cli
|
|
# - I will need
|
|
# - Boot partition 1G linux = BOOTPART
|
|
# - Swap partition 8G swap = SWAPPART
|
|
# - btrf partiton * linux = BTRFSPART
|
|
|
|
# Making file systems
|
|
mkfs.ext4 BOOTPART
|
|
mkfs.btrfs BTRFSPART
|
|
mkswap SWAPPART
|
|
|
|
# Creating btrfs subvolumes
|
|
mount BTRFSPART /mnt
|
|
|
|
btrfs subvolume create /mnt/root
|
|
btrfs subvolume create /mnt/home
|
|
|
|
umount /mnt
|
|
|
|
# Mounting volumes
|
|
mount -o subvolume=root BTRFSPART /mnt
|
|
|
|
mkdir /mnt/home
|
|
mount -o subvolume=home BTRFSPART /mnt/home
|
|
|
|
mkdir /mnt/boot
|
|
mount BOOTPART /mnt/boot
|
|
|
|
# Base install
|
|
pacstrap -K /mnt base base-devel linux linux-firmware git btrfs-progs grub grub-btrfs inotify-tools timeshift networkmanager ''' pipewire pipewire-alsa pipewire-pulse pipewire-jack wireplumber reflactor ''' openssh sudo
|
|
|
|
# Gen fstab
|
|
genfstab -U /mnt >> /mnt/etc/fstab
|
|
|
|
# Chroot
|
|
arch-chroot /mnt
|
|
|
|
# Corect the time and zone info
|
|
ln -sf /usr/share/zoneinfo/Europe/Prague /etc/localtime
|
|
hhwclock --systohc
|
|
|
|
# !TODO
|
|
# Gen locals
|
|
# Uncoment lines cs_CZ.UTF-8 a en_US.UTF-8 + ty dve pod nima
|
|
# What about to just paste my lines at the end of the file
|
|
|
|
# !TODO
|
|
# Gen /etc/locale.conf > LANG=en_US.UTF-8
|
|
|
|
# !TODO
|
|
# /etc/hostname paste in a MACHINENAME
|
|
|
|
# !TODO
|
|
# /etc/hosts
|
|
# echo 127.0.0.1 localhost > /etc/hosts
|
|
# echo ::1 localhost > /etc/hosts
|
|
# 127.0.0.1 MACHINENAME
|
|
|
|
# !TODO passwd
|
|
|
|
useradd -mG wheel godot
|
|
# passwd godot
|
|
|
|
# !TODO
|
|
# EDITOR=vim visudo
|
|
# uncoment line with groupe wheel can use sudo
|
|
|
|
# !TODO
|
|
# grub-install --target=i386-pc BTRFSPART
|
|
# grub-mkconfig -o /boot/grub/grub.cfg
|
|
|
|
# !TODO
|
|
# systemctl enable NetworkManager
|
|
|
|
# !TODO
|
|
# umount -R /mnt
|
|
# reboot
|
|
|
|
# !TODO
|
|
# install yay
|
|
# sudo pacman -S --needed git base-devel && git clone https://aur.archlinux.org/yay.git && cd yay && makepkg -si
|
|
|