Skip to content

Instantly share code, notes, and snippets.

@RafalSladek
Created May 10, 2016 19:21
Show Gist options
  • Save RafalSladek/3e12aeabf51231823d49df7b51a13fcb to your computer and use it in GitHub Desktop.
Save RafalSladek/3e12aeabf51231823d49df7b51a13fcb to your computer and use it in GitHub Desktop.

Revisions

  1. srs1978 revised this gist Dec 2, 2015. 1 changed file with 28 additions and 32 deletions.
    60 changes: 28 additions & 32 deletions arch-install-laptop.md
    Original file line number Diff line number Diff line change
    @@ -4,34 +4,37 @@ Boot from Archlinux ISO on USB

    1. **IF** Wireless # wifi-menu
    2. timedatectl set-ntp true
    3. ``gdisk /dev/sda``
    1. sda1 - 1G ef00 EFI System Partition (/boot)
    2. sda2 - 30G 8300 "root" partition (/)
    3. sda3 - Rest 8300 "home" partition (/home)
    3. ``parted /dev/sda``
    1. mklabel gpt - YES
    2. mkpart efi fat32 1MiB 1025MiB
    3. mkpart root ext4 1025MiB 31GiB
    4. mkpart home ext4 31GiB 100%
    4. Format partitions
    1. ``mkfs.vfat -F32 /dev/sda1``
    2. ``mkfs.ext4 /dev/sda2``
    3. ``mkfs.xfs /dev/sda3``
    3. ``mkfs.ext4 /dev/sda3``
    5. Mount partitions
    1. ``mount /dev/sda2 /mnt``
    2. ``cd /mnt; mkdir boot home``
    3. ``mount /dev/sda1 /mnt/boot``
    4. ``mount /dev/sda3 /mnt/home``
    6. ``vim /etc/pacman.d/mirrorlist``
    7. ``pacstrap /mnt base base-devel vim dosfstools``
    8. ``genfstab -U -p /mnt >> /mnt/etc/fstab``
    9. ``arch-chroot /mnt /bin/bash``
    10. ``echo "en_US.UTF-8 UTF-8" >> /etc/locale.gen``
    11. ``locale-gen``
    11. ``echo LANG=en_US.UTF-8 > /etc/locale.conf``
    12. ``echo KEYMAP=us >> /etc/vconsole.conf``
    14. ``ln -s /usr/share/zoneinfo/America/Chicago /etc/localtime``
    15. ``hwclock --systohc --utc``
    13. ``echo "oire.ironnomi.com" > /etc/hostname``
    15. ``vim /etc/hosts``
    17. ``passwd``
    19. ``bootctl --path=/boot install``
    20. ``vim /boot/loader/entries/arch.conf`` - Fix UUID from fstab
    6. ``vim /etc/pacman.d/mirrorlist`` # I normally use the Berkley mirror, most of the other mirrors are dog slow in the US.
    7. ``pacstrap /mnt base base-devel vim zsh dialog efibootmgr wpa_supplicant iw``
    8. ``genfstab -pU /mnt >> /mnt/etc/fstab``
    9. ``cat /mnt/etc/fstab`` # Make sure it's actually not broken.
    10. ``arch-chroot /mnt /bin/bash``
    11. ``echo "en_US.UTF-8 UTF-8" >> /etc/locale.gen``
    12. ``locale-gen``
    13. ``echo LANG=en_US.UTF-8 > /etc/locale.conf``
    14. ``echo KEYMAP=us >> /etc/vconsole.conf``
    15. ``ln -s /usr/share/zoneinfo/America/Chicago /etc/localtime``
    16. ``hwclock --systohc --utc``
    17. ``echo "oire.home.local" > /etc/hostname``
    18. ``vim /etc/hosts``
    19. ``passwd``
    20. ``bootctl --path=/boot install``
    21. ``pacman -S intel-ucode
    22. ``vim /boot/loader/entries/arch.conf`` - Fix UUID from fstab

    ```
    title Archlinux
    @@ -40,15 +43,8 @@ Boot from Archlinux ISO on USB
    initrd /initramfs-linux.img
    options root=UUID=XXXXDRFSDFDFSDFSDFXXXX rw
    ```
    16. ``nano /boot/loader/entries/archfallback.conf`` - Fix UUID from fstab
    ```
    title Archlinux
    linux /vmlinuz-linux
    initrd /initramfs-linux.img
    options root=UUID=XJDFKSDJFKSDJFSDJFJSDF rw
    ```
    17. ``systemctl enable systemd-networkd.service; systemctl enable systemd-resolved.service; systemctl enable systemd-timesyncd.service``
    18. ``nano /etc/systemd/network/mydhcp.network``
    23. ``systemctl enable systemd-networkd.service; systemctl enable systemd-resolved.service; systemctl enable systemd-timesyncd.service; systemctl enable gpm``
    24. ``vim /etc/systemd/network/mydhcp.network``

    ```
    [Match]
    @@ -57,16 +53,16 @@ Boot from Archlinux ISO on USB
    [Network]
    DHCP=v4
    ```
    19. ``nano /etc/systemd/timesyncd.conf``
    25. ``nano /etc/systemd/timesyncd.conf``

    ```
    [Time]
    NTP=tick.greyware.com tock.greyware.com
    ```
    20. ``nano /etc/systemd/resolved.conf``
    26. ``nano /etc/systemd/resolved.conf``

    ```
    [Resolve]
    DNS=205.171.2.65 68.238.96.12 206.124.64.253
    ```
    21. ``ln -sf /run/systemd/resolve/resolv.conf /etc/resolv.conf``
    27. ``ln -sf /run/systemd/resolve/resolv.conf /etc/resolv.conf``
  2. srs1978 created this gist Dec 2, 2015.
    72 changes: 72 additions & 0 deletions arch-install-laptop.md
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,72 @@
    ## Arch Install

    Boot from Archlinux ISO on USB

    1. **IF** Wireless # wifi-menu
    2. timedatectl set-ntp true
    3. ``gdisk /dev/sda``
    1. sda1 - 1G ef00 EFI System Partition (/boot)
    2. sda2 - 30G 8300 "root" partition (/)
    3. sda3 - Rest 8300 "home" partition (/home)
    4. Format partitions
    1. ``mkfs.vfat -F32 /dev/sda1``
    2. ``mkfs.ext4 /dev/sda2``
    3. ``mkfs.xfs /dev/sda3``
    5. Mount partitions
    1. ``mount /dev/sda2 /mnt``
    2. ``cd /mnt; mkdir boot home``
    3. ``mount /dev/sda1 /mnt/boot``
    4. ``mount /dev/sda3 /mnt/home``
    6. ``vim /etc/pacman.d/mirrorlist``
    7. ``pacstrap /mnt base base-devel vim dosfstools``
    8. ``genfstab -U -p /mnt >> /mnt/etc/fstab``
    9. ``arch-chroot /mnt /bin/bash``
    10. ``echo "en_US.UTF-8 UTF-8" >> /etc/locale.gen``
    11. ``locale-gen``
    11. ``echo LANG=en_US.UTF-8 > /etc/locale.conf``
    12. ``echo KEYMAP=us >> /etc/vconsole.conf``
    14. ``ln -s /usr/share/zoneinfo/America/Chicago /etc/localtime``
    15. ``hwclock --systohc --utc``
    13. ``echo "oire.ironnomi.com" > /etc/hostname``
    15. ``vim /etc/hosts``
    17. ``passwd``
    19. ``bootctl --path=/boot install``
    20. ``vim /boot/loader/entries/arch.conf`` - Fix UUID from fstab

    ```
    title Archlinux
    linux /vmlinuz-linux
    initrd /intel-ucode.img
    initrd /initramfs-linux.img
    options root=UUID=XXXXDRFSDFDFSDFSDFXXXX rw
    ```
    16. ``nano /boot/loader/entries/archfallback.conf`` - Fix UUID from fstab
    ```
    title Archlinux
    linux /vmlinuz-linux
    initrd /initramfs-linux.img
    options root=UUID=XJDFKSDJFKSDJFSDJFJSDF rw
    ```
    17. ``systemctl enable systemd-networkd.service; systemctl enable systemd-resolved.service; systemctl enable systemd-timesyncd.service``
    18. ``nano /etc/systemd/network/mydhcp.network``

    ```
    [Match]
    Name=en*
    [Network]
    DHCP=v4
    ```
    19. ``nano /etc/systemd/timesyncd.conf``

    ```
    [Time]
    NTP=tick.greyware.com tock.greyware.com
    ```
    20. ``nano /etc/systemd/resolved.conf``

    ```
    [Resolve]
    DNS=205.171.2.65 68.238.96.12 206.124.64.253
    ```
    21. ``ln -sf /run/systemd/resolve/resolv.conf /etc/resolv.conf``