Arch Linux

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

Automated Arch install

https://arch-anywhere.org/

Install Yaourt

sudo vim /etc/pacman.conf

Add the following repository at the bottom:

[archlinuxfr]
SigLevel = Never
Server = http://repo.archlinux.fr/$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

Menu

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

Desktop

xfdesktop

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

Profile

pacman -S mugshot

Grub

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

http://vadim-kirilchuk-linux.blogspot.co.za/2013/05/swap-file-for-hibernation.html
https://wiki.debian.org/Hibernation/Hibernate_Without_Swap_Partition

Time format

%a %d %b %R

Manual install

https://www.tecmint.com/arch-linux-installation-and-configuration-guide/

http://mirror.is.co.za/mirror/archlinux.org/iso/2018.08.01/

wget http://mirror.is.co.za/mirror/archlinux.org/iso/2018.08.01/archlinux-2018.08.01-x86_64.iso

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

ping vissie.com
hwclock --show
timedatectl
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.

locale-gen

Create /etc/locale.conf file,

vi /etc/locale.conf

Add the following line:

LANG=en_US.UTF-8

Create the hostname(5) file:

vi /etc/hostname
myhostname

Consider adding a matching entry to hosts(5):

/etc/hosts
127.0.0.1	localhost.localdomain	localhost
::1		localhost.localdomain	localhost
127.0.1.1	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
passwd

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

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

installing with keys

This works for me...

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

Eg.:

gpg --keyserver "http://pgp.mit.edu/" --recv-keys "702353E0F7E48EDB"
gpg --lsign 702353E0F7E48EDB

gnome-terminal

pacaur vte3
pacaur gnome-terminal

Old notes

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