Skip to content

u/Hotty_Capy

In this archive from Jun 2021 to Mar 2023

0
posts
4
comments
0
media
8
score

Top comments

Hello!

Reading ArchWiki for the first time (as well as second and even third ones) can be really confusing experience. But actually it's not because it describes some fundamentally complex things, but because at the beginning you still don't know lots of relatively simple things, names of which always mentioned on every page of the Wiki.

It's OK. Try to learn/understand concepts on page which confusing you most and only then proceed to next sections. Luckily there are always hyperlinks. You'll get used to it with time.

Let me give you some more general advice about your system.

  1. VirtualBox is great, however, graphics and network drivers installation will seriously differ on real hardware.

  2. Before clean OS installation update your UEFI/BIOS. If you have old laptop with just legacy BIOS support, perhaps there is an update to UEFI exist. Will save you from much of headache.

  3. Manually partitioning your disk from terminal gives you much more power then any GUI. Basically you need only two partitions: "efi" with just tiny bootloader image file and "root" with everything else (kernel images included). Despite what most people say, nothing stops you from setting "efi" partition as small as just 2MiB (!) FAT-12 filesystem, and giving 100% of remaining space to "root" partition. Even with some manually included ("preloaded") modules GRUB image size is around 500-600 KiB. You can place like 3 of them in such minimal partition (if you ever wish to)!

  4. If you have SSD or NVMe drive, read related Wiki article before installtion, there are some important things here. Remember that you might need to correctly enable TRIM in both mount options & LUKS encrypted container arguments. If you choose to use encryption (and I hope you do, physical security is important), note that there is patched GRUB package in AUR with LUKS2/Argon2 support. In addition to password you may need a keyfile. Partition itself and LUKS container on it have different UUIDs, read carefully which you need to mention in different config files. Most important files are /etc/crypttab, /etc/fstab, /etc/mkinitcpio.conf, /etc/default/grub.

  5. BTRFS filesystem is very stable nowdays. It provides you extremely useful backup system as well as high fault tolerance. If you get power outage, just in case restore a full system backup. Read Wiki about how to set up (create/name/mount) you BTRFS subvolumes to be fully compatible with Timeshift.

  6. In mkinicpio.conf switch from "busybox" init hooks to "systemd" ones for slightly better boot times. It will require different kernel cmdline options for LUKS in GRUB config.

  7. Everything that you need from your computer in ArchLinux must be explicitly enabled by you. Luckily most of the time it means just to install right packages, in worst cases - enable it's services and edit it's config files. Very important are graphics drivers and sound system. Learn how to enable video hardware acceleration in your web browser and movie player. Other examples are network, printing and bluetooth.

  8. Heavy mainstream frameworks like KDE or GNOME are buggy most of the time. Consider choosing lightweight desktop environment like LXQt - it't much easier to maintain, and it works really fast! For desktop VSync install Picom compositor, configure shading and fading to your liking (enable "unredir-if-possible" to not harm games performance). For theming install Kvantum, go to Pling website & download icon pack, cursor, same Kvantum and GTK theme. Set "Kvantum" as Qt theme and "System" as LXQt theme + "QT_STYLE_OVERRIDE=kvantum" environment variable to make it work. You can disable transparency using options in both Kvantum and Picom. Install XScreenSaver to make your monitor happy.

  9. As soon as you get graphical environment & AUR support, install Timeshift & grub-btrfs and make a full system backup (you can include home subvolume too). Do snapshots frequently, but not too much in number, since with new changes to disk they begin to take space. If you sure current one works fine, remove old ones. I prefer doing snapshots manually rather then automatically since only I know when I need to. Either run "# grub-mkconfig -o /boot/grub/grub.cfg" after each manipulation with snapshots (create/remove) or configure grub-btrfs package to make it automatically.

  10. Prefer native ArchLinux packages from repositories and AUR. Usually they work better & faster than solutions like Flatpak and Snap. AppImages are fine. For security isolation use virtual machines and/or Firejail with AppArmor.

  11. Octopi is cool GUI to check package versions and dependencies. You can use it to install and update them, but if changes are serious, always choose "Run in Terminal" option. It will let you decide which actions should be done in case of incompatibilities or available alternatives.

  12. If you manually install AUR packages with "git clone", use "makepkg -sri". It will remove dependencies required only at build time right after installation. If you ever forget to do so, run "# pacman -Qtdq | pacman -Rns -" and your system will always remain fresh & clean.

  13. Check PKGBUILD and dependencies: sometimes you have to manually import GPG key, or install another AUR package first. Often outdated packages can be upgraded by changing version and sha256sum accordingly in PKGBUILD. There are "bin" & "git" package types in AUR. First is ready-to-use binaries, second builds an app right on your computer. Both options have it's benefits.

If you feel afraid of terminal EndeavourOS/Manjaro are fine. However, things never work as you want unless you configure them manually. Command line gives much more choise then Calamares. But without a year on Manjaro, and then another year on EndeavourOS, I wouldn't learn Arch enough to become ready for manual installation oneday :-)

Have fun!

2 points

Hello, linunix! I will be very grateful if you can help me figure it out a little.

I have Manjaro Linux KDE Edition installed on BIOS system without UEFI support on HDD with GPT partition table. My "/dev/sda" disk has the following partitions:

  1. sda1 - 1MiB "bios" partition without filesystem with "bios_grub" flag;

  2. sda2 - 512MiB "boot" partition, it is a separate LUKS2-PBKDF2-encrypted boot partition mounted at "/boot";

  3. sda3 - 931GiB "root" partition, it is a LUKS2-argon2id-encrypted root partition mounted at "/".

Here are my encryption settings for "boot" partition:

--type luks2 --cipher serpent-xts-plain64 --hash whirlpool --key-size 512 --pbkdf pbkdf2 --iter-time 10000 --use-random

Here are my encryption settings for "root" partition:

--type luks2 --cipher serpent-xts-plain64 --hash whirlpool --key-size 512 --pbkdf argon2id --iter-time 10000 --use-random

LUKS keyfiles for both "boot" and "root" partitions are configured correctly.

I have installed GRUB with this commands:

sudo grub-install --target=i386-pc /dev/sda --modules="luks2 part_gpt part_msdos cryptodisk gcry_serpent pbkdf2 gcry_whirlpool btrfs" --recheck

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

Now I have run the following script and got GRUB "image" file in my home directory:

#!/bin/bash

CONFIG=$(mktemp /tmp/grub-config.XXXXX)

cat >"$CONFIG" <<EOF

cryptomount -u 24cf2eb3e4c64d8f89e822917f53b5d6

set prefix='(crypto0)/grub'

set root='(crypto0)'

insmod normal

normal

EOF

grub-mkimage \

-p '(crypto0)/grub' \

-O i386-pc \

-c "$CONFIG" \

-o /home/sexyowl/image \

luks2 part_gpt part_msdos cryptodisk gcry_serpent pbkdf2 gcry_whirlpool btrfs

rm "$CONFIG"

Please tell me which command I need to use to overwrite my existing boot image file with new one? So that it works on my configuration (BIOS, GPT, 1MiB bios_grub partition).

Thank you very much in advance!

P.S. Right now, I can start my system manually by executing the same commands in the "grub rescue" as indicated in the script above, but I need to do it every time when I want to turn on my computer, so I want to make it automatically.

1 points

Subreddits

Keyboard shortcuts

Move and act

jork
Next / previous post or comment
Enteroro
Open the post
f
Open the media viewer
s
Save
h
Hide (the toast has Undo)
Tab
Right after an action: the toast's Undo
x
Collapse the comment
v
Next layout: cards, compact, grid

Go to

/
Search
gthenh
Home
gthena
All
gthens
Subreddits
gthenl
Library
?
This list
Esc
Close a menu or this list

In the viewer

←or→
Previous / next file
↑or↓
Previous / next post
korj
Previous / next post
Space
Play / pause
m
Mute
z
Zoom
s
Save
o
Open the post (on its own page: back to it)
Esc
Close

Keys do nothing while you type in a box.