Miscellaneous
Profile-sync-daemon
To generate the configuration file and check the current status:
psd preview
To edit the sudoers adding the necessary rights
sudo visudo
<username> ALL=(ALL) NOPASSWD: /usr/bin/psd-overlay-helper
To edit the psd.conf configuration file:
sudo nvim .config/psd/psd.conf
# Uncomment and set to "yes" to use overlayfs instead of a full copy to reduce
# the memory costs and to improve sync/unsync operations. Note that your kernel
# MUST have this module available in order to use this mode.
#
USE_OVERLAYFS="yes"
#
BROWSERS=(firefox)
To enable the psd service:
systemctl --user enable psd.service
NetworkManager
Wi-Fi Connection
To get the list of available Wi-Fi networks
nmcli device wifi list
To connect to a Wi-Fi
nmcli device wifi connect <SSID_or_BSSID> password <password>
Update the DNS
To get the list of the current active profiles:
nmcli connection show --active
To check the current DNS values
nmcli connection show 'NAME' | rg dns
To update the DNS:
nmcli connection modify 'NAME' ipv4.dns "8.8.8.8 1.1.1.1"
To reconnect:
nmcli connection down 'NAME'
nmcli connection up 'NAME'
Tlp
To enable the service:
systemctl enable tlp.service
To mask the rfkill:
systemctl mask systemd-rfkill.service
systemctl mask systemd-rfkill.socket
Virtual Machine
To check if virtualization is enabled:
grep -Ec '(vmx|svm)' /proc/cpuinfo
To install necessary packages:
sudo pacman -Syu virt-manager qemu-desktop dnsmasq iptables-nft
To enable libvirtd service:
sudo systemctl enable --now libvirtd.service
To add the user to the libvirt group:
sudo usermod -aG libvirt $env.USER
To restart the libvirtd service:
systemctl restart libvirtd.service