💾 Archived View for envs.net › ~pulzar › arch-notes › pre-installation.gmi captured on 2022-07-16 at 14:01:26. Gemini links have been rewritten to link to archived content

View Raw

More Information

⬅️ Previous capture (2021-12-04)

-=-=-=-=-=-=-

                -@               
               .##@              
              .####@             
              @#####@            
            . *######@           
           .##@o@#####@          Arch-notes
          /############@         Pre-Installation
         /##############@        
        @######@**%######@       
       @######`     %#####o      
      @######@       ######%     
    -@#######h       ######@.`   
   /#####h**``       `**%@####@  
  @H@*`                    `*%#@ 
 *`                            `*

Home

Installation

Connecting to the internet

List network interfaces:

ip link

For wireless connection authenticate to the network using iwctl:

iwctl

In the iwctl prompt, list all Wi-Fi devices:

[iwd]# device list

Scan for networks (replace 'device' with a device name):

[iwd]# station device scan

List available networks (replace 'device' with a device name):

[iwd]# station device get-networks

Connect to a network (replace 'device' and 'SSID' with the appropriate values):

[iwd]# station device connect SSID

To share a phone's internet connection through USB, launch dhcpcd, then connect the phone and start tethering.

dhcpcd 

Test the connection with the following command:

ping archlinux.org

Time and date

Update the system clock with timedatectl.

timedatectl set-ntp true

Partitioning the disk

Use fdisk to create partitions. Use lsblk to get the appropriate device names. (eg. /dev/sda)

fdisk /path/to/device

For UEFI:

1. g - for a new GUID Partition Table

2. n - for the efi partition, partition number: default, first sector: default, last sector: +512M

3. n - for a swap partition (optional), partition number: default, first sector: default, last sector: +8G (in my case)

4. n - for the root partition, partition number: default, first sector: default, last sector: default

5. w - to write the changes on the disk

For MBR:

1. o - for a new DOS Partition Table

2. n - for a swap partition (optional), partition number: default, first sector: default, last sector: +8G (in my case)

3. n - for the root partition, partition number: default, first sector: default, last sector: default

4. w - to write the changes on the disk

Creating filesystems

Use the partition names in the paths (eg. mkfs.ext4 /dev/sda3)

If you created an efi partition:

mkfs.fat -F32 /path/to/efi/partition

If you created a swap partition:

mkswap /path/to/swap/partition

For the root partition:

mkfs.ext4 /path/to/root/partiton

Mounting the partitons

Attach the created partitions to the existing filesystem.

First the root partition:

mount /path/to/root/partition /mnt

If you created an efi partiton:

mkdir /mnt/boot
mkdir /mnt/boot/EFI
mount /path/to/efi/partition /mnt/boot/EFI

If you created a swap partiton:

swapon /path/to/swap/partition