Switching my shell to zsh
First, zsh usually does not come pre-installed.
sudo pacman -S zsh
chsh -l
chsh -s /usr/bin/zsh
Then after re-logging, I go with “do nothing”:
This is the Z Shell configuration function for new users,
zsh-newuser-install.
You are seeing this message because you have no zsh startup files
(the files .zshenv, .zprofile, .zshrc, .zlogin in the directory
~). This function can help you with a few settings that should
make your use of the shell easier.
You can:
(q) Quit and do nothing. The function will be run again next time.
(0) Exit, creating the file ~/.zshrc containing just a comment.
That will prevent this function being run again.
(1) Continue to the main menu.
--- Type one of the keys in parentheses ---
And, I finally install Oh My Zsh.
sh -c "$(curl -fsSL https://raw.githubusercontent.com/ohmyzsh/ohmyzsh/master/tools/install.sh)"
Synchronize time on startup
Server was down when I was on holidays and CMOS battery is dead. It is 14th August today…
# date
Thu 2 Jun 19:44:00 BST 2022
# timedatectl set-ntp true
# timedatectl status
Local time: Sun 2022-08-14 14:04:18 BST
Universal time: Sun 2022-08-14 13:04:18 UTC
RTC time: Sun 2022-08-14 13:04:18
Time zone: GB (BST, +0100)
System clock synchronized: yes
NTP service: active
RTC in local TZ: no
Fix GPG package signature errors
When not upgrading system for long time you can see errors like:
...
error: libcap: signature from "David Runge <[email protected]>" is marginal trust
:: File /var/cache/pacman/pkg/libcap-2.65-1-x86_64.pkg.tar.zst is corrupted (invalid or corrupted package (PGP signature)).
Do you want to delete it? [Y/n]
error: libtiff: signature from "David Runge <[email protected]>" is marginal trust
:: File /var/cache/pacman/pkg/libtiff-4.4.0-3-x86_64.pkg.tar.zst is corrupted (invalid or corrupted package (PGP signature)).
Do you want to delete it? [Y/n]
error: failed to commit transaction (invalid or corrupted package)
Errors occurred, no packages were upgraded.
Fit it simply with this:
# pacman -Sy archlinux-keyring