How to install LARBS on a VM

For this tutorial, we'll be using VirtualBox on which we'll be installing Arch Linux. On top of that, we'll install LARBS.

Launch a new virtual machine with the last Arch Linux's ISO. I recommend using basic settings except for storage where I recommend to change it to 50GB.

Set the keyboard layout

If you keyboard layout is QWERTY, you won't have to do this first step.

Otherwise, load your keyboard layout

loadkeys fr

If you have another keyboards than an AZERTY's one, you can change "fr" by the "keyboard layout's code" shown when running:

ls /usr/share/kbd/keymaps/**/*.map.gz

Partition the disk

It's something that'd be harder on a physical machine but for a virtual one it's easier.

Change disk partitions

fdisk /dev/sda

Make a first partition (boot partition)

Command (m for help): n Partition type p primary (0 primary, 0 extended, 4 free) e extended (container for logical partitions) Select (default p): Using default response p. Partition number (1-4, default 1): First sector(2048-104857599, default 2048): Last sector, +/-sectors or +/-size{K,M,G,T,P} (2048-104857599, default: 104857599): +500M

Make the second partition (the root parition)

Command (m for help): n Partition type p primary (1 primary, 0 extended, 3 free) e extended (container for logical partitions) Select (default p): Using default response p. Partition number (2-4, default 2): First sector(1026048-104857599, default 1026048): Last sector, +/-sectors or +/-size{K,M,G,T,P} (1026048-104857599, default: 104857599):

After having pressed "n", you just have to press enter until the prompt is about another command.

Write the partitions and exit

Command (m for help): w

Format the boot partition

mkfs.ext4 /dev/sda1

Format the root partition

mkfs.ext4 /dev/sda2

Mount

Mount the root partition

mount /dev/sda2 /mnt

Make the boot directory

mkdir /mnt/boot

Mount the boot partition

mount /dev/sda1 /mnt/boot

Installation itself

Install the essential packages (might take a some minutes):

pacstrap /mnt base linux linux-firmware dhcpcd

Generate fstab file

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

Chroot

Change chroot into the new system

arch-chroot /mnt

Set the time zone.

For Paris:

ln -sf /usr/share/zoneinfo/Europe/Paris /etc/localtime

In general it's:

ln -sf /usr/share/zoneinfo/Region/City /etc/localtime

Change keyboard layout at startup: (as well change "fr" to your keyboard layout code if it's different)

echo "KEYMAP=fr" > /etc/vsconsole.conf

Set up a password

passwd

GRUB

Install grub

pacman -S grub

Launch grub

grub-install --target=i386-pc /dev/sda

Make grub config:

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

Exit of chroot:

exit

Reboot the machine

reboot

Connect with the user "root" and the password you just wrote.

Installing LARBS

Get internet back

dhcpcd

Make it start at startup

systemctl enable dhcpcd

Install LARBS script

curl -LO larbs.xyz/larbs.sh

Launch LARBS script

sh larbs.sh

Follow the instructions and wait around 14 minutes.

Reboot

reboot

Enter as the new user you registered as.

Basic configuration

Launch a new terminal

Mod+Enter

("Mod" is also called windows key or super key)

Change the screen resolution

Remark: your keyboard is still in QWERTY

xrandr -s 1920x1080

Zoom

alt+shift+k

Change your keyboard in the graphical interface with: (warning: the required password is the root one and will use the QWERTY keyboard)

localectl set-x11-keymap --no-convert fr

Reboot with:

reboot

Launch a terminal, resize the screen and zoom as before.

Edit xprofile

nano .config/x11/xprofile

Add to this file: (just before "setbg")

xrandr -s 1920x1080

Reboot (the screen is already resized but the background is fucked up)

reboot

Put sound on

Mod+F4

Then unmute the computer by pressing "m" (it should become colored).

You can also press on the sound icon and do the same thing.

Launch the manual

Mod+F1

Launch video tutorials

Mod+F2