Skip to content

Instantly share code, notes, and snippets.

@jsnanigans
Created August 31, 2018 09:34
Show Gist options
  • Select an option

  • Save jsnanigans/8e68d0cf25f0eb40e74063b4726d9e17 to your computer and use it in GitHub Desktop.

Select an option

Save jsnanigans/8e68d0cf25f0eb40e74063b4726d9e17 to your computer and use it in GitHub Desktop.

Revisions

  1. jsnanigans created this gist Aug 31, 2018.
    174 changes: 174 additions & 0 deletions ArchInstall.md
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,174 @@
    ## install arch

    *verify uefi*
    # efivar -l

    *check internet*
    # ping -c 4 archlinux.org

    *install vim*
    # pacman -S vim

    *clock*
    # timedatectl set-ntp true

    *partition disks*
    /dev/sda1 with 550MB, fat32 EFI
    /dev/sda2 with 2x RAM, swap
    /dev/sda3 with rest, ext4

    *check partitions*
    # lsblk

    *create partitions*
    # cfdisk
    - GPT
    - create disks
    - write
    - quit

    *format partitions*
    # mkfs.fat -F32 /dev/sda1
    # mkswap /dev/sda2
    # swapon /dev/sda2
    # mkfs.ext4 /dev/sda3

    *mount file systems*
    # mount /dev/sda3 /mnt
    # mkdir /mnt/boot
    # mount /dev/sda1 /mnt/boot

    *select mirrors*
    # vim /etc/pacman.d/mirrorlist
    put austria on top

    *install base system*
    # pacstrap /mnt base base-devel

    *fstab*
    # genfstab -U /mnt >> /mnt/etc/fstab
    there should be 3 partitions
    # more /mnt/etc/fstab


    *chroot into new system*
    # arch-chroot /mnt

    *set local time*
    # ln -sf /usr/share/zoneinfo/Europe/Vienna /etc/localtime

    *set hardware clock*
    # hwclock --systohc

    *locale - set localization*
    # vim /etc/locale.gen
    uncomment the one you want

    *generate locale*
    # locale-gen

    *set lang variable*
    enter same as selected: `LANG=en_US.UTF-8`
    # vim /etc/locale.conf
    OR
    # echo LANG=en_US.UTF-8 > /etc/locale.conf

    *hostname*
    # echo Archlinux > /etc/hostname

    *add hostname to hosts*
    # vim /etc/hosts
    add:
    ```
    127.0.0.1 localhost
    ::1 localhost
    127.0.0.1 Archlinux.localdomain Archlinux
    ```

    *network configuration*
    # pacman -S networkmanager
    # systemctl enable NetworkManager

    *root password*
    # passwd
    enter root password twice

    *install and configure bootloader*
    # pacman -S grub efibootmgr
    # grub-install --target=x86_64-efi --efi-directory=/boot
    # grub-mkconfig -o /boot/grub/grub.cfg

    *only for virtualbox - fix boot*
    # mkdir /boot/EFI/boot
    # cp /boot/EFI/arch/grubx64.efi /boot/EFI/boot/bootx64.efi


    *reboot*
    # exit
    unmount
    # umount -a
    OR
    # umount -R /mnt
    then
    # reboot

    *login with root user!*

    *update pacman*
    # pacman -Syu

    *install AUR helper*
    # vim /etc/pacman.conf
    add these lines:
    ```
    [arcolinux_repo_iso]
    SigLevel = Never
    Server = https://arcolinux.github.io/arcolinux_repo_iso/$arch
    ```
    get new packages
    # pacman -Sy
    install new packages
    # pacman -S yaourt package-query
    !! delete the lines added before
    # vim /etc/pacman.conf

    *install some nice stuff*
    # pacman -S bash-completion

    *add personal account*
    # useradd -m -g users -G wheel -s /bin/bash erik
    set password
    # passwd erik
    allow new user to use sudo
    # EDITOR=vim visudo
    uncomment `%wheel ALL=(ALL) ALL`

    log out
    # exit

    *log in with new user!*

    *check internet by updating pacman*
    # sudo pacman -Syu


    *install display server*
    # sudo pacman -S xorg-server xorg-apps xorg-xinit xterm

    *test by starting*
    # startx

    *install graphical driver*
    https://wiki.archlinux.org/index.php/Xorg#Driver_installation
    virtualbox just needs `virtualbox-guest-utils`

    *install dispaly manager*
    # sudo pacman -S lightdm
    # sudo pacman -S lightdm-gtk-greeter lightdm-gtk-greeter-settings
    # sudo systemctl enable lightdm.service


    *install KDE Plasma*
    # sudo pacman -S plasma-meta
    # reboot
    # sudo pacman -S kde-applications-meta