Last active
May 31, 2017 10:53
-
-
Save nogo/ed003ca8f73a93ed8081 to your computer and use it in GitHub Desktop.
Arch linux setup
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
loadkeys de | |
setfont lat9w-16 | |
systemctl start dhcpcd | |
timedatectl set-ntp true | |
parted /dev/nvme0n1 | |
(parted) mklabel gpt | |
(parted) mkpart ESP fat32 1MiB 513MiB | |
(parted) set 1 boot on | |
(parted) mkpart primary btrfs 513MiB 100% | |
(parted) quit | |
mkfs.fat -F32 /dev/nvme0n1p1 | |
cryptsetup -c aes-xts-plain64 -y --hash sha512 -s 512 -i 5000 luksFormat /dev/nvme0n1p2 | |
cryptsetup open /dev/nvme0n1p2 system | |
mkfs.btrfs /dev/mapper/system | |
mount -o noatime /dev/mapper/system /mnt | |
cd /mnt | |
mkdir snapshot | |
btrfs subvolume create root | |
btrfs subvolume create home | |
cd / | |
umount /mnt | |
mkdir -p /mnt/{boot,home} | |
mount -o noatime,compress=lzo,ssd,space_cache,subvol=root /dev/mapper/system /mnt | |
mount /dev/nvme0n1p1 /mnt/boot | |
mount -o noatime,compress=lzo,ssd,space_cache,subvol=home /dev/mapper/system /mnt/home | |
pacstrap /mnt base base-devel btrfs-progs vim zsh | |
genfstab -U /mnt >> /mnt/etc/fstab | |
arch-chroot /mnt /bin/bash | |
vim /etc/locale.gen | |
locale-gen | |
localectl set-locale LANG=de_DE.UTF-8 | |
echo KEYMAP=de-latin1-nodeadkeys > /etc/vconsole.conf | |
ln -fs /usr/share/zoneinfo/Europe/Berlin /etc/localtime | |
#Hostname ändern | |
vim /etc/hostname | |
pacman -S gnome budgie-desktop networkmanager networkmanager-applet intel-ucode | |
# Root password | |
passwd | |
# systemd-boot | |
bootctl install | |
# Arch entry | |
vim /boot/loader/entries/arch.conf | |
title Arch Linux | |
linux /vmlinuz-linux | |
initrd /intel-ucode.img | |
initrd /initramfs-linux.img | |
options cryptdevice=UUID=U-U-ID:system root=/dev/mapper/system rw rootflags=subvol=root elevator=noop intel_idle.max_cstate=1 enable_fbc=1 | |
~ |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment