Added some stuff

This commit is contained in:
Јован Ђокић-Шумарац 2022-07-04 22:32:12 +02:00
parent 6fcdd0909f
commit db2abfcc7e

View file

@ -7,29 +7,30 @@ This is meant for me as being something I can quickly reference.
Change localkeys to my keyboard layout
--------------------------------------
In my case I have a Serbian keyboard layout.
```bash
loadkeys sr-latin
```
You can find your keymap file by using localectl:
```bash
localectl list-keymaps
```
Or by simply looking inside the /usr/share/kbd/keymaps/ directory.
In my case I have a Serbian keyboard layout.
```bash
find /usr/share/kbd/keymaps/ -type f
loadkeys sr-latin
```
Create Partitions
-----------------
To list block devices :
```bash
cfdisk
lsblk
```
Now, select a device to partition
```bash
cfdisk /dev/DEVICE
```
Set up the partions, mount and use swap
@ -47,8 +48,8 @@ NOTE: `lsblk` is a very nice tool to doublecheck your partition(s) structure.
First we format to the file systems we want:
```bash
mkfs.fat -F32 /dev/sdaxY (/boot/efi)
mkfs.ext4 /dev/sdaxY (/, /home)
mkfs.fat -F32 /dev/PART (/boot/efi)
mkfs.ext4 /dev/PART (/, /home)
```
And then mount the file systems to /mnt:
@ -60,22 +61,22 @@ mount /dev/sdaxY /mnt
Create /mnt structure, one-liner:
```bash
mkdir -p /mnt/{boot,home,suckless,storage}
mkdir -p /mnt/{boot,home}
```
```bash
# Mount /boot, /home
mount /dev/sdaxY /mnt/<point>
mount /dev/PART /mnt/<point>
```
Installing the actual base system and doas
------------------------------------------
Install the base system, with sudo as well.
Install the base system, with some packages I like as well.
```bash
pacstrap /mnt base base-devel opendoas neovim networkmanager wpa_supplicant linux-zen linux-firmware
pacstrap /mnt base base-devel opendoas neovim iwd dhcpcd linux linux-headers linux-firmware
```
Generate the fstab (so it knows how things are mounted)
@ -130,14 +131,14 @@ Timezone
Symlink/Set your timezone:
```bash
ln -s /usr/share/zoneinfo/Europe/Belgrade /etc/localtime
ln -s /usr/share/zoneinfo/CONTINENT/CITY /etc/localtime
```
Set system to the Hardware Clock
--------------------------------
```bash
hwclock --systohc --utc
hwclock --systohc --local
```
Hostname
@ -190,14 +191,17 @@ Grub (Bootloader)
Well, we need a bootloader:
```bash
pacman -S grub os-prober efibootmgr
pacman -S refind
```
It's as simple as
```bash
grub-install --target=x86_64-efi --efi-directory=/boot/efi --bootloader-id=GRUB
grub-mkconfig -o /boot/grub/grub.cfg
refind-install
```
Also, it will break on first boot. You will have to find a way to boot without it and do refind-install again within the system.
Exit arch-chroot
----------------
@ -211,11 +215,10 @@ Umount /mnt and reboot
Unmount EVERYTHING and reboot the system.
```bash
umount /dev/sdaxY
umount -R /mnt
reboot
```
NOTE: You can use `umount -R /mnt` to recursively unmount everything in /mnt
Login as Root to Arch Linux and permantly set the keymap (keyboard)
-------------------------------------------------------------------
@ -231,7 +234,7 @@ Add User and set Password
-------------------------
```bash
useradd -m -g users -G lp,scanner,audio,video,optical,network,games,wheel -s /bin/bash username
useradd -m -g users -G audio,video,network,games,wheel -s /bin/bash username
passwd username
```
@ -246,6 +249,15 @@ Uncomment wheel group.
`# %wheel ALL=(ALL:ALL) ALL`
Enable services :
-----------------
```bash
systemctl enable --now dhcpcd iwd
```
Logout of Root
--------------
@ -257,5 +269,5 @@ Login as your username and test sudo with pacman
------------------------------------------------
```bash
sudo pacman -Syyu xorg sx xmonad xmonad-contrib xmobar alacritty ...
sudo pacman -Syyu ...
```