Skip to content

Instantly share code, notes, and snippets.

@MaFeLP
Last active February 2, 2024 11:46
Show Gist options
  • Save MaFeLP/3bd2484299a71ec967630c1155ad8d1f to your computer and use it in GitHub Desktop.
Save MaFeLP/3bd2484299a71ec967630c1155ad8d1f to your computer and use it in GitHub Desktop.
A Guide to install ArchLinux very fast (speedrun) with or without a desktop environment (KDE Plasma).

Arch Linux Installation commands

Principles

You install archlinux from their latest ISO-Image with or without a graphical user interface. If you choose to install it with a GUI, you should go on a browser of your choise and open the archlinux.org website and run a neofetch. If you chose to go with a non-gui installation I'm fine with a login prompt on the actual machine.

This gist is a help to go through this speedrun, pretty fast.


Table of contents

  1. Install without GUI
    1. Start
    2. Commands
    3. Format disk
    4. Make the file system
    5. Mount the newly created filesystem
    6. Enable parrallel downloads in pacman (optional)
    7. Install Packages
    8. Make bootable
  2. Install with GUI
    1. Start
    2. Commands
    3. Format disk
    4. Make the file system
    5. Mount the newly created filesystem
    6. Enable parrallel downloads in pacman
    7. Install Packages
    8. Make bootable and configure the system
    9. Rebooted

Without GUI

Start

Spam Enter to boot.

Commands

Format disk

gdisk /dev/sda

n + 3 * Enter + +1M + Enter + ef02 + Enter

n + 5 * Enter

w + Enter + y + Enter

Make the file system

mkfs.ext4 /dev/sda2

Mount the newly created filesystem

mount /dev/sda2 /mnt

Enable parrallel downloads in pacman (optional)

vim /etc/pacman.conf

/Para + Enter + 0x:wq

Install Packages

pacstrap /mnt base linux linux-firmware grub

Make bootable

Type while pacstrap is running:

genfstab -U /mnt > /mnt/etc/fstab; arch-chroot /mnt bash -c 'grub-install --target=i386-pc /dev/sda; grub-mkconfig -o /boot/grub/grub.cfg'; reboot

With GUI

Start

Spam Enter to boot.

Commands

Format disk

gdisk /dev/sda

n + 3 * Enter + +1M + Enter + ef02 + Enter

n + 5 * Enter

w + Enter + y + Enter

Make the file system

mkfs.ext4 /dev/sda2

Mount the newly created filesystem

mount /dev/sda2 /mnt

Enable parrallel downloads in pacman

vim /etc/pacman.conf

/Para + Enter + 0x:wq

Install Packages

pacstrap /mnt base linux linux-firmware grub

While this command is running, type the following command and press enter:

pacstrap /mnt xorg-server sddm plasma-meta sudo konsole firefox vim neofetch

Make bootable and configure the system

While the above command is running, type the following command and press enter:

genfstab -U /mnt > /mnt/etc/fstab; arch-chroot /mnt bash -c 'grub-install --target=i386-pc /dev/sda; grub-mkconfig -o /boot/grub/grub.cfg;systemctl enable NetworkManager.service;EDITOR=vim visudo;systemctl enable sddm.service; useradd -mG wheel user;passwd user';reboot

In visudo use: /wheel + Enter + j0xx:wq

When asked for a password use asdf and asdf.

Rebooted:

Type asdf in the login window.

Open firefox from the task bar.

While its loading, open konsole by clicking on the start menu and then typing konsole.

`-> Maximise konsole and then type neofetch to proove the new installation

Then go to firefox and open archlinux.org to proove internet connectivity.

@eoussama
Copy link

eoussama commented May 4, 2023

I needed this.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment