Added some stuff
This commit is contained in:
parent
6fcdd0909f
commit
db2abfcc7e
62
README.md
62
README.md
|
@ -7,29 +7,30 @@ This is meant for me as being something I can quickly reference.
|
||||||
Change localkeys to my keyboard layout
|
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:
|
You can find your keymap file by using localectl:
|
||||||
|
|
||||||
```bash
|
```bash
|
||||||
localectl list-keymaps
|
localectl list-keymaps
|
||||||
```
|
```
|
||||||
|
|
||||||
Or by simply looking inside the /usr/share/kbd/keymaps/ directory.
|
|
||||||
|
In my case I have a Serbian keyboard layout.
|
||||||
|
|
||||||
```bash
|
```bash
|
||||||
find /usr/share/kbd/keymaps/ -type f
|
loadkeys sr-latin
|
||||||
```
|
```
|
||||||
|
|
||||||
Create Partitions
|
Create Partitions
|
||||||
-----------------
|
-----------------
|
||||||
|
|
||||||
|
To list block devices :
|
||||||
```bash
|
```bash
|
||||||
cfdisk
|
lsblk
|
||||||
|
```
|
||||||
|
Now, select a device to partition
|
||||||
|
|
||||||
|
```bash
|
||||||
|
cfdisk /dev/DEVICE
|
||||||
```
|
```
|
||||||
|
|
||||||
Set up the partions, mount and use swap
|
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:
|
First we format to the file systems we want:
|
||||||
|
|
||||||
```bash
|
```bash
|
||||||
mkfs.fat -F32 /dev/sdaxY (/boot/efi)
|
mkfs.fat -F32 /dev/PART (/boot/efi)
|
||||||
mkfs.ext4 /dev/sdaxY (/, /home)
|
mkfs.ext4 /dev/PART (/, /home)
|
||||||
```
|
```
|
||||||
|
|
||||||
And then mount the file systems to /mnt:
|
And then mount the file systems to /mnt:
|
||||||
|
@ -60,22 +61,22 @@ mount /dev/sdaxY /mnt
|
||||||
Create /mnt structure, one-liner:
|
Create /mnt structure, one-liner:
|
||||||
|
|
||||||
```bash
|
```bash
|
||||||
mkdir -p /mnt/{boot,home,suckless,storage}
|
mkdir -p /mnt/{boot,home}
|
||||||
```
|
```
|
||||||
|
|
||||||
```bash
|
```bash
|
||||||
# Mount /boot, /home
|
# Mount /boot, /home
|
||||||
mount /dev/sdaxY /mnt/<point>
|
mount /dev/PART /mnt/<point>
|
||||||
```
|
```
|
||||||
|
|
||||||
|
|
||||||
Installing the actual base system and doas
|
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
|
```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)
|
Generate the fstab (so it knows how things are mounted)
|
||||||
|
@ -130,14 +131,14 @@ Timezone
|
||||||
Symlink/Set your timezone:
|
Symlink/Set your timezone:
|
||||||
|
|
||||||
```bash
|
```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
|
Set system to the Hardware Clock
|
||||||
--------------------------------
|
--------------------------------
|
||||||
|
|
||||||
```bash
|
```bash
|
||||||
hwclock --systohc --utc
|
hwclock --systohc --local
|
||||||
```
|
```
|
||||||
|
|
||||||
Hostname
|
Hostname
|
||||||
|
@ -159,7 +160,7 @@ Add matching entries to hosts:
|
||||||
|
|
||||||
```bash
|
```bash
|
||||||
127.0.0.1 localhost
|
127.0.0.1 localhost
|
||||||
::1 localhost
|
::1 localhost
|
||||||
127.0.1.1 myhostname.localdomain myhostname
|
127.0.1.1 myhostname.localdomain myhostname
|
||||||
```
|
```
|
||||||
|
|
||||||
|
@ -190,14 +191,17 @@ Grub (Bootloader)
|
||||||
Well, we need a bootloader:
|
Well, we need a bootloader:
|
||||||
|
|
||||||
```bash
|
```bash
|
||||||
pacman -S grub os-prober efibootmgr
|
pacman -S refind
|
||||||
```
|
```
|
||||||
|
It's as simple as
|
||||||
|
|
||||||
```bash
|
```bash
|
||||||
grub-install --target=x86_64-efi --efi-directory=/boot/efi --bootloader-id=GRUB
|
refind-install
|
||||||
grub-mkconfig -o /boot/grub/grub.cfg
|
|
||||||
```
|
```
|
||||||
|
|
||||||
|
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
|
Exit arch-chroot
|
||||||
----------------
|
----------------
|
||||||
|
|
||||||
|
@ -211,11 +215,10 @@ Umount /mnt and reboot
|
||||||
Unmount EVERYTHING and reboot the system.
|
Unmount EVERYTHING and reboot the system.
|
||||||
|
|
||||||
```bash
|
```bash
|
||||||
umount /dev/sdaxY
|
umount -R /mnt
|
||||||
reboot
|
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)
|
Login as Root to Arch Linux and permantly set the keymap (keyboard)
|
||||||
-------------------------------------------------------------------
|
-------------------------------------------------------------------
|
||||||
|
@ -231,7 +234,7 @@ Add User and set Password
|
||||||
-------------------------
|
-------------------------
|
||||||
|
|
||||||
```bash
|
```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
|
passwd username
|
||||||
```
|
```
|
||||||
|
|
||||||
|
@ -246,6 +249,15 @@ Uncomment wheel group.
|
||||||
|
|
||||||
`# %wheel ALL=(ALL:ALL) ALL`
|
`# %wheel ALL=(ALL:ALL) ALL`
|
||||||
|
|
||||||
|
Enable services :
|
||||||
|
-----------------
|
||||||
|
|
||||||
|
```bash
|
||||||
|
systemctl enable --now dhcpcd iwd
|
||||||
|
|
||||||
|
```
|
||||||
|
|
||||||
|
|
||||||
Logout of Root
|
Logout of Root
|
||||||
--------------
|
--------------
|
||||||
|
|
||||||
|
@ -257,5 +269,5 @@ Login as your username and test sudo with pacman
|
||||||
------------------------------------------------
|
------------------------------------------------
|
||||||
|
|
||||||
```bash
|
```bash
|
||||||
sudo pacman -Syyu xorg sx xmonad xmonad-contrib xmobar alacritty ...
|
sudo pacman -Syyu ...
|
||||||
```
|
```
|
||||||
|
|
Loading…
Reference in a new issue