Skip to content

Instantly share code, notes, and snippets.

@imba3r
Created November 4, 2017 11:08
Show Gist options
  • Save imba3r/1c25bf4e273b1b3b623b6933880744ab to your computer and use it in GitHub Desktop.
Save imba3r/1c25bf4e273b1b3b623b6933880744ab to your computer and use it in GitHub Desktop.
arch-install.md

Install Base System

// Prepare
loadkeys de
timedatectl set-ntp true

// Partition Disk
fdisk:
- GPT
- sda1: EFI
- sda2: Linux

// Format Disk
mkfs.ext4 /dev/sda1
mkfs.fat -F32 /dev/sda2

// Mount Disk
mount /dev/sda2 /mnt
mkdir /mnt/boot
mount /dev/sda1 /mnt/boot

// Install Base
pacstrap /mnt base base-devel intel-ucode
genfstab -U /mnt >> /mnt/etc/fstab

Change Root

arch-chroot /mnt

// Configure System Time
ln -sf /usr/share/zoneinfo/Europe/Berlin /etc/localtime
hwclock --systohc

// Configure Locales
vi /etc/locale.gen // Uncomment locales
locale-gen
vi /etc/locale.conf 
> LANG=en_US.UTF-8

// Set Keymap
vi /etc/vconsole.conf 
> KEYMAP=de

// Set Hostname
vi /etc/hostname
> bastion
vi /etc/hosts
> 127.0.0.1	localhost.localdomain	localhost
> ::1		localhost.localdomain	localhost
> 127.0.1.1	bastion.localdomain	bastion

// Configure Bootloader !!! CHANGE PARTUUID !!!
vi /boot/loader/loader.conf
> default  arch

vi  /boot/loader/entries/arch.conf
> title          Arch Linux
> linux          /vmlinuz-linux
> initrd         /intel-ucode.img
> initrd         /initramfs-linux.img
> options        root=PARTUUID=14420948-2cea-4de7-b042-40f67c618660 rw

// Leave chroot and reboot
exit
umount -R /mnt
reboot

Postinstall

// Network (cable)
systemctl enable dhcpcd@enp3s0

// Add User
useradd -m -G wheel -s /bin/bash imba3r
passwd imba3r
pacman -S sudo
visudo

// Install packages
vi /etc/pacman.conf // Enable Multilib
install cower + pacaur
install pkglist

// Configure Printer
systemctl enable avahi-daemon
systemctl start avahi-daemon
vi /etc/nsswitch.conf 
> ...
> hosts: ... mdns_minimal [NOTFOUND=return] resolve [!UNAVAIL=return] dns ...
> ...

systemctl enable org.cups.cupsd.service
systemctl start org.cups.cupsd.service

// Get SSH-Keys and restore HOME from NAS.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment