How to netinstall Chakra with arch-install-scripts


(tom) #1

This tutorial is going to show you how to install a minimal working Chakra.
“Minimal” means that it is your job to select & install software and set up a user account. :wink:

All the commands below should be run as root.


  1. if there was a chakra present then read before the clues on the bottom
  2. Start a live system.
  3. Partiton the disks using KDE Partition Manager or other tools.
  4. Format and mount the file systems to /mnt. For example:
mount /dev/sda1 /
mkdir /mnt/boot
mount /dev/sda1 /boot
mkdir /mnt/home
mount /dev/sda3 /home
  1. Connect to the internet and queue the mirrorlist.
cp /etc/pacman.d/mirrorlist /etc/pacman.d/mirrorlist.backup
rankmirrors -n 4 /etc/pacman.d/mirrorlist.backup > /etc/pacman.d/mirrorlist


  1. Start pacstrap from arch-install-scripts, install the essential packages.
pacstrap /mnt base base-devel
  1. Install KDE basic packages. Replace xf86-video-<driverForYourGraCa> with drivers of your need.
pacstrap /mnt plasma-desktop plasma-workspace plasma-framework xorg-server xorg-xinit xf86-video-<driverForYourGraCa>
  1. Generate an fstab file.
genfstab -U /mnt >> /mnt/etc/fstab
  1. Change root into the new system.
arch-chroot /mnt

Basic Configuration

  1. Set timezone. Replace <Region>/<City> with the correct one.
ln -sf /usr/share/zoneinfo/<Region>/<City>/etc/localtime
  1. Uncomment en_US.UTF-8 UTF-8 and other needed locales in /etc/locale.gen, and generate them with:
  1. Set locale by editing /etc/locale.conf.
LANG=en_US.UTF-8 # or something else.
  1. set a keyboard layout in /etc/vconsole.conf.
KEYMAP=de-latin1 # or something else.
  1. set a hostname in /etc/hostname. Change <yourHostname> to something you like.
echo "<yourHostname>" > /etc/hostname
  1. Set a root password.
  1. Install GRUB.
# For BIOS:
pacman -S grub
grub-install --target=i386-pc /dev/sdX  # /dev/sdX is the disk where GRUB is to be installed.

# For UEFI:
pacman -S grub efibootmgr
grub-install --target=x86_64-efi --efi-directory=/boot --bootloader-id=GRUB # change /boot to your ESP.
  1. Generate grub.cfg

Additional Configuration

  1. NetworkManager lets you manage network connection settings in so called network profiles to facilitate switching networks.
pacman -S networkmanager dhcpcd
systemctl enable NetworkManager
  1. Use the useradd command to add a new user, change <username> to something you like.
useradd -m -g users -G wheel -s /bin/bash <username>
  1. Set a password for the user.
passwd <username>
  1. Start KDE Plasma using a display manager.
pacman -S sddm
systemctl enable sddm


Exit the chroot environment by typing exit or pressing Ctrl+D .

Finally, restart the machine by typing reboot.

That’s all folks. :smile:
For further reading:

Some tips

  1. If there is a Chakra installation on your computer already, you can keep /home and /var/cache/pacman/pkg because pacstrap will use it all other directories in /var/usr/etc and /boot must be deleted because of file conflicts.

  2. You can pack /etc for future use. When you are planning to do a reinstallation, instead of configuring the new system again, you can use the “old” system configuration.

# Pack /etc:
arch-chroot /mnt
cd /ect
bsdar cpf /home/etc.tar.gz *
# Unpack /etc when the new system is running:
cd /etc
bsdtar xpf /home/etc.tar.gz *