Last active
July 4, 2022 07:44
-
-
Save dahse89/adb7eab80c28b3749d4e3179777816a7 to your computer and use it in GitHub Desktop.
Install Arch (German)
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/zsh | |
# keyboard | |
loadkeys de-latin1 | |
# list network cards | |
ip link | |
# connect to LAN | |
dhcpcd <name like 'enp4s0'> | |
# or connect to wifi | |
iwctl | |
station wlan0 connect <SSID> | |
# list partitions | |
sfdisk -l | |
# partitioning | |
cfdisk # select label type 'dos' | |
# create 3 partitions | |
# 1 XXGB primary Bootable | |
# 2 2048M primary | |
# 2 8GB primary | |
# format partitions | |
mkfs.ext4 /dev/sda1 | |
mkfs.ext4 /dev/sda3 | |
mkswap /dev/sda2 | |
# enable swap | |
swapon /dev/sda2 | |
# mount partitions | |
mount /dev/sda1 /mnt | |
mkdir /mnt/home | |
mount /dev/sda3 /mnt/home | |
# install base system and important components | |
pacstrap /mnt base base-devel grub linux linux-firmware nano vi dhcpcd bash-completion intel-ucode | |
# create FSTAB | |
genfstab -Up /mnt >> /mnt/etc/fstab | |
cat /mnt/etc/fstab | |
# switch to new system | |
arch-chroot /mnt | |
# hostname | |
echo pdahse > /etc/hostname | |
# locale generate and settings | |
nano /etc/locale.gen # uncomment de_DE.UTF-8 UTF-8 | |
locale-gen | |
echo LANG=de_DE.UTF-8 > /etc/locale.conf | |
echo LANGUAGE=de_DE >> /etc/locale.conf | |
echo KEYMAP=de-latin1 > /etc/vconsole.conf | |
ln -s /usr/share/zoneinfo/Europe/Berlin /etc/localtime | |
hwclock --systohc --utc | |
# root pw | |
passwd | |
# install | |
pacman –S grub os-prober dhcpcd | |
# endable dhcp | |
systemctl enable dhcpcd | |
# install boot loader | |
grub-install /dev/sda | |
grub-mkconfig -o /boot/grub/grub.cfg | |
# leave new system and reboot | |
exit | |
reboot |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment