My own Arch Linux install

Guide to install base Arch Linux and More!

Basic System:

  • Boot into the installer and establish network access, loadkeys adn ntp
1
2
3
dhcpd eth0
loadkeys fi
timedatectl set-ntp true
  • Partition the drive with parted
1
2
3
4
5
parted /dev/sda
mklabel msdos
mkpart primary ext4 1MiB 1GiB
mkpart primary ext4 1GiB 100GiB
mkpart primary linux-swap 100GiB 100%
  • Format the partitions with mkfs.ext4
1
2
mkfs.ext4 /dev/sda1
mkfs.ext4 /dev/sda2
  • If using swap, use mkswap and swapon to format and enable the swap paritions
1
2
mkswap /dev/sda3
swapon /dev/sda3
  • Mount the root partion to /mnt
1
mount /dev/sda2 /mnt
  • Create mount points under /mnt and mount partitions as necessary.
1
2
mkdir -p /mnt/boot
mount /dev/sda1 /mnt/boot
  • Select mirrors in /etc/pacman.d/mirrorlist

  • Start the install process

1
pacstrap -i /mnt base base-devel sudo vim curl rsync openssh git ifplugd ntp reflector 
  • Generate an fstab
1
genfstab -U /mnt > /mnt/etc/fstab
  • Chroot in
1
arch-chroot /mnt /bin/bash
  • Set the hostname in /etc/hostname
1
echo hostname > /etc/hostname
  • Symlink the correct timezone, Set the hardware clock to store UTC time
1
2
3
tzselect
ln -s /usr/share/zoneinfo/zone/subzone /etc/localtime
hwclock --systohc --utc
  • Uncomment en_US.UTF-8 in /etc/locale.gen, run locale-gen and create /etc/locale.conf with content LANG=en_US.UTF-8

  • Set keyboard layout in /etc/vconsole.conf

1
2
KEYMAP=fi-latin1
FONT=lat9w-16
  • Write netctl profiles in /etc/netctl and enable netctl-ifplugd@interface and netctl-auto@interface services as appropriate
1
systemctl enable [email protected]
  • Enable the ntpd service 1. Set the root password with passwd
1
2
timedatectl
passwd
  • Install a boot loader.
1
2
3
pacman -S grub os-prober
grub-install /dev/sda
grub-mkconfig -o /boot/grub/grub.cfg
  • Exit the chroot and recursively unmount the partitions. Reboot into the new install
1
2
3
exit or pressing Ctrl+D
umount -R /mnt
reboot
  • Create a personal account
1
useradd -m -s /bin/bash -g users -G wheel myusername and passwd username 
  • Set up sudo with visudo

  • Log into the personal account and set up the home folder

  • Generate a mirrorlist with reflector

##Desktop or Laptop

  • Install sounds:
1
pacman -S alsa-utils  
  • Install GUI packages:
1
pacman -S xorg-server xorg-server-utils xorg-xinit 
  • Install a video driver:
1
pacman -S xf86-video-intel, xf86-video-nouveau, nvidia, or xf86-video-ati
1
Xorg :0 -configure
  • Install user packages:
1
pacman -S chromium conky docky gedit gparted mixxx remmina terminator terminus-font unrar unzip wireshark-gtk steam nmap deluge nemo tmux gimp libreoffice-still-fi mumble vim python vlc xterm darktable teampspeak3 shutter thunderbird midori
Built with Hugo
Theme Stack designed by Jimmy