Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- Install Arch Linux
- ==================
- Check the system is using EFI:
- ls /sys/firmware/efi
- Update the system clock:
- timedatectl set-ntp true
- Check the internet connection is working:
- ping -c 3 archlinux.org
- Setup the Partitions
- --------------------
- Lookup the drive to partition:
- fdisk -l
- Create the partitions:
- gdisk /dev/sda
- The partitions to create are:
- 1. `512MiB`, `EF00` EFI boot partition.
- 2. `16GiB`, `8200` SWAP partition.
- 3. Use the remaining space for the root partition.
- Format the partitions:
- mkfs.vfat /dev/sda1
- mkswap /dev/sda2
- mkfs.ext4 /dev/sda3
- Mount the partitions:
- mount /dev/sda3 /mnt
- mkdir /mnt/boot
- mount /dev/sda1 /mnt/boot
- Install the Base System
- -----------------------
- Modify the mirror list to download from UK servers:
- vim /etc/pacman.d/mirrorlist
- Install the base system:
- pacstrap -i /mnt
- Configure the System
- --------------------
- Generate the fstab:
- genfstab -U /mnt >> /mnt/etc/fstab
- Add `discard` to the root partition for trim support:
- vim /mnt/etc/fstab
- Change root into the new system:
- arch-chroot /mnt
- Install vim:
- pacman -S vim
- Set the system locale in `/etc/locale.gen` to:
- en_GB.UTF-8 UTF-8
- en_US.UTF-8 UTF-8
- Generate the locales:
- locale-gen
- Make English GB the default locale:
- echo LANG=en_GB.UTF-8 > /etc/locale.conf
- Set the timezone and sync the clock:
- ln -sf /usr/share/zoneinfo/Europe/London /etc/localtime
- hwclock --systohc --utc
- Set the hostname:
- echo arch > /etc/hostname
- Add the hostname to `/etc/hosts` (add the hostname to the end of each entry):
- vim /etc/hosts
- Set the root password:
- passwd
- Setup the Boot Loader
- ---------------------
- Install the boot loader:
- bootctl install
- Set the `/boot/loader/loader.conf` to:
- default arch
- timeout 3
- Set the `/boot/loader/entries/arch.conf` to:
- title Arch Linux
- linux /vmlinuz-linux
- initrd /initramfs-linux.img
- options root=PARTUUID=(you can find the PARTUUID for the root partition from blkid) rw
- Exit and restart the system and _hope_ it boots up okay:
- exit
- umount -R /mnt
- reboot
- Post Installation
- =================
- Setup a new user:
- useradd -m -G wheel -s /bin/bash matt
- passwd matt
- Install sudo:
- pacman -S sudo
- Add user to sudoers:
- vim /etc/sudoers
- Install Drivers and Setup Hardware
- ----------------------------------
- ?
- Install i3 Window Manager
- -------------------------
- pacman -S i3 xorg-server xorg-xinit
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement