arch 0.1.2

A archlinux installer and manager
arch-0.1.2 is not a library.

Arch

zuu

A archlinux installer, manager for advanced arch users.

Set desired keymap

loadkeys <keymap>

Create two partitions:

  • 1 4096MB EFI partition # ef00
  • 2 100% Linux partition # 8300
cgdisk /dev/sda

Formatting

/boot

mkfs.vfat -F 32 /dev/sda1

/

mkfs.ext4 /dev/sda2

Mount partitions

mount /dev/sda2 /mnt
mkdir /mnt/boot
mount /dev/sda1 /mnt/boot

Change pacman mirror priority

reflector -c <country> --sort delay --save /etc/pacman.d/mirrorlist -p https

Update package signing keys

pacman-key --init && pacman-key --populate

Refresh package signing keys

pacman-key --refresh-keys

Install the base system

pacstrap /mnt base base-devel linux linux-firmware vim git efibootmgr rustup sudo grub networkmanager reflector <shell>

Generate fstab

genfstab -U /mnt >> /mnt/etc/fstab

Enter inside the new system

arch-chroot /mnt && cd ~

Enabled multilib repository

vim /etc/pacman.conf

Sync clock

timedatectl set-ntp true

Create your account

Create user

useradd -m -g wheel -c 'REAL NAME' -s <shell> <username>

Create root password

passwd root

Create user password

passwd <username>

Add your account to sudoers

echo '<username> ALL=(ALL) ALL' > /etc/sudoers.d/<username>

Checkout on your account

su - <username>

Configure the toolchain

rustup default stable

Install paru

git clone https://aur.archlinux.org/paru && cd paru && makepkg -si && cd .. && rm -rf paru

Install arch

From GitHub

git clone https://github.com/otechdo/arch && cd arch && cargo install --path .

From Crates.io

cargo install arch

Don't forget to add $HOME/.cargo/bin to the $PATH

From Aur

paru -Syu arch

Setup the new arch

arch setup

Desktop

Install all selected packages on arch

arch --install-packages

Install all selected packages as deps on arch

arch --install-dependencies

Remove all selected packages on arch

arch --remove-packages

Update all mirrors to the enter country

arch --update-mirrors

Update arch

arch --update

Update and reboot arch

arch --update-and-reboot
arch --update -r
arch -r --update

Cancel the reboot task

arch --cancel-reboot

Check updates

arch --check-updates

Download updates

arch --download-updates

Exit chroot

exit

Umount partitions

umount -R /mnt

Restart on the new system

reboot

Key Bindings

This file lists all of the key bindings currently registered by prompts.

All prompts

These key bindings may be used with all prompts.

command description
enter Submit answer.
esc Cancel the prompt*.
ctrl + c Interrupt the prompt*.

* Canceling and interrupting a prompt have two different meanings. Canceling is defined specially for when the end user is allowed to skip a prompt, the library user can then use prompt_skippable which wraps the return type into an Option and catches the CanceledOperation error transforming it into a Ok(None) result. Interrupted operations are closer to "stop-the-world" operations, where the library user should treat them as termination commands.

Text Input

These key bindings may be used with all prompts that ask the user for text input: Text, Select, MultiSelect, Confirm, CustomType and Password. The Editor prompt is not included because it opens a separate text editor for text input.

command description
character Insert the character into the input.
left Move the cursor back one character.
right Move the cursor forward one character.
ctrl + left Move one word to the left of the cursor.
ctrl + right Move one word to the right of the cursor.
home Move cursor to the start of the line*.
end Move cursor to the end of the line*.
backspace Delete one character to the left of the cursor.
delete Delete the character at the cursor.
ctrl + delete Delete one word to the right of the cursor.

* Key bindings not supported on Select and MultiSelect prompts.

Text Prompts

These key bindings may be used in Text prompts.

command description
enter Submit the current current text input.
up When suggestions are displayed, move cursor one row up.
down When suggestions are displayed, move cursor one row down.
page up When suggestions are displayed, move cursor one page up.
page down When suggestions are displayed, move cursor one page down.
tab Replace current input with the resulting suggestion if any.
others See Text Input and All Prompts

Select Prompts

These key bindings may be used in Select prompts.

command description
enter Submit the current highlighted option.
up Move cursor one row up.
down Move cursor one row down.
k Move cursor one row up when vim mode is enabled.
j Move cursor one row down when vim mode is enabled.
page up Move cursor one page up.
page down Move cursor one page down.
home Move cursor to the first option.
end Move cursor to the last option.
others See Text Input and All Prompts

MultiSelect Prompts

These key bindings may be used in MultiSelect prompts.

command description
enter Submit the options currently selected.
space Toggle the selection of the current highlighted option.
up Move cursor one row up.
down Move cursor one row down.
k Move cursor one row up when vim mode is enabled.
j Move cursor one row down when vim mode is enabled.
page up Move cursor one page up.
page down Move cursor one page down.
home Move cursor to the first option.
end Move cursor to the last option.
left Unselect all options.
right Select all options.
others See Text Input and All Prompts

DateSelect Prompts

These key bindings may be used in the interactive calendar of the DateSelect prompt.

command description
space bar or enter Submit the current highlighted date.
up Move cursor one row up.
down Move cursor one row down.
left Move cursor one column to the left.
right Move cursor one column to the right.
k Move cursor one row up when vim mode is enabled.
j Move cursor one row down when vim mode is enabled.
h Move cursor one column to the left when vim mode is enabled.
l Move cursor one column to the right when vim mode is enabled.
ctrl + up Move calendar back by one year.
ctrl + down Move calendar forward by one year.
ctrl + left Move calendar back by one month.
ctrl + right Move calendar forward by one month.

Editor Prompts

These key bindings may be used in Editor prompts.

command description
e Open the editor.
enter Submit the current content of the temporary file being edited.