Arch Linux

From The World according to Vissie
Jump to navigation Jump to search

Automated Arch install

Install Yaourt

sudo vim /etc/pacman.conf

Add the following repository at the bottom:

SigLevel = Never
Server =$arch

Save and close the file.

sudo pacman -Sy yaourt

Speed settings

There is a variable in /etc/makepkg.conf which does exactly that for every package: MAKEFLAGS="-j4"

Use "-j$(nproc)" to give you the number of cores available to the system. This allows for portability between machines

Or something like "-j$(nproc) +1" or -1


yaourt perl-linux-desktopfiles
yaourt gt2-perl
yaourt perl-data-dump
yaourt obmenu-generator
obmenu-generator -d -i



To enable button icons, run:

gsettings set org.gnome.desktop.interface menus-have-icons true
gsettings set org.gnome.desktop.interface buttons-have-icons true


pacman -S mugshot


After a edit of the /etcdefault/grub file, you have to re-generate grub config file:

grub-mkconfig -o /boot/grub/grub.cfg

Power Management

Time format

%a %d %b %R

Manual install


Before you start, make sure that your clock in the bios is set to UTC time (GMT, Greenwich time).

hwclock --show
timedatectl set-timezone Africa/Johannesburg
timedatectl set-ntp true
timedatectl status

loadkeys fr_CH
loadkeys us

Verify the boot mode If UEFI mode is enabled on an UEFI motherboard, Archiso will boot Arch Linux accordingly via systemd-boot. To verify this, list the efivars directory:

ls /sys/firmware/efi/efivars

If no connection is available, stop the dhcpcd service with systemctl stop dhcpcd@interface where the interface name can be tab-completed. Proceed to configure the network as described in Network configuration.

cfdisk (create 2 partions. Main and swap.
mkfs.ext4 /dev/sda1
mkswap /dev/sda5
swapon /dev/sda5
mount /dev/sda1 /mnt/
mkdir /mnt/boot/
mkdir /mnt/home/
vim /etc/pacman.d/mirrorlist
pacstrap /mnt base base-devel
genfstab -U /mnt >> /mnt/etc/fstab
vim /mnt/etc/fstab
arch-chroot /mnt
ln -sf /usr/share/zoneinfo/Africa/Johannesburg /etc/localtime
hwclock --systohc
vi /etc/locale.gen

Uncomment en_US.UTF-8 UTF-8, as well as other needed localisations.


Create /etc/locale.conf file,

vi /etc/locale.conf

Add the following line:


Create the hostname(5) file:

vi /etc/hostname

Consider adding a matching entry to hosts(5):

/etc/hosts	localhost.localdomain	localhost
::1		localhost.localdomain	localhost	myhostname.localdomain	myhostname
systemctl enable dhcpcd
pacman -S grub # not needed I think : os-prober
grub-install /dev/sda
returned `error: cannot find EFI directory'. What is an EFI directory???
But with --target=i386-pc, it worked:
grub-install --target=i386-pc /dev/sda

if Intel CPU:

pacman -S intel-ucode
grub-mkconfig -o /boot/grub/grub.cfg

if you need to add proxy settings, make a executeble file in /etc/profiles.d/

pacman -S zsh grml-zsh-config
useradd -m -s /usr/bin/zsh usertoadd
passwd usertoadd
umount /mnt

installing with keys

This works for me...

gpg --keyserver "<AUTHORITY>" --recv-keys "<KEY_CODE>"
gpg --lsign <KEY_CODE>


gpg --keyserver "" --recv-keys "702353E0F7E48EDB"
gpg --lsign 702353E0F7E48EDB


pacaur vte3
pacaur gnome-terminal

Old notes

  1. Installing the base system
  2. Add new users
  3. Install apps