This commit is contained in:
Јован Ђокић-Шумарац 2021-07-30 21:16:11 +02:00
parent 8514863883
commit 6fcdd0909f

View file

@ -10,7 +10,7 @@ Change localkeys to my keyboard layout
In my case I have a Serbian keyboard layout. In my case I have a Serbian keyboard layout.
```bash ```bash
loadkeys loadkeys sr-latin
``` ```
You can find your keymap file by using localectl: You can find your keymap file by using localectl:
@ -40,8 +40,6 @@ Let us say you have a simple setup:
- /boot/efi partition (vfat) - /boot/efi partition (vfat)
- / partition (ext4) - / partition (ext4)
- /home partition (ext4) - /home partition (ext4)
- /suckless partition (ext4)
- /storage partition (ntfs)
NOTE: `lsblk` is a very nice tool to doublecheck your partition(s) structure. NOTE: `lsblk` is a very nice tool to doublecheck your partition(s) structure.
@ -50,13 +48,7 @@ First we format to the file systems we want:
```bash ```bash
mkfs.fat -F32 /dev/sdaxY (/boot/efi) mkfs.fat -F32 /dev/sdaxY (/boot/efi)
mkfs.ext4 /dev/sdaxY (/, /home, /suckless) mkfs.ext4 /dev/sdaxY (/, /home)
```
Create /mnt structure, one-liner:
```bash
mkdir -p /mnt/{boot,home,suckless,storage}
``` ```
And then mount the file systems to /mnt: And then mount the file systems to /mnt:
@ -64,7 +56,15 @@ And then mount the file systems to /mnt:
```bash ```bash
# Mount / (root) # Mount / (root)
mount /dev/sdaxY /mnt mount /dev/sdaxY /mnt
# Mount /boot, /home, /suckless, /storage ```
Create /mnt structure, one-liner:
```bash
mkdir -p /mnt/{boot,home,suckless,storage}
```
```bash
# Mount /boot, /home
mount /dev/sdaxY /mnt/<point> mount /dev/sdaxY /mnt/<point>
``` ```
@ -152,7 +152,7 @@ echo myhostname > /etc/hostname
Edit /etc/vconsole.conf: Edit /etc/vconsole.conf:
```bash ```bash
KEYMAP= KEYMAP=sr-latin
``` ```
Add matching entries to hosts: Add matching entries to hosts:
@ -223,7 +223,7 @@ Login as Root to Arch Linux and permantly set the keymap (keyboard)
Now we want to make our keyboard layout permanent: Now we want to make our keyboard layout permanent:
```bash ```bash
localectl set-keymap --no-convert localectl set-keymap --no-convert sr-latin
``` ```
@ -257,6 +257,5 @@ Login as your username and test sudo with pacman
------------------------------------------------ ------------------------------------------------
```bash ```bash
sudo pacman -Syy sudo pacman -Syyu xorg sx xmonad xmonad-contrib xmobar alacritty ...
sudo pacman -Syu
``` ```