Wednesday, December 17, 2025

Gentoo: Please select pinentry-gnome3 as default pinentry provider

Create `/run/host/etc/portage/package.use/gcr` with the content of: app-crypt/gcr gtk
app-crypt/pinentry gtk

Then rebuild: `sudo emerge -avuDN @world`. Now `eselect pinentry list` should also list `pinentry-gnome3`. To select it:
sudo eselect pinentry set pinentry-gnome3

Tuesday, December 16, 2025

gentoo: install xdg-open

sudo emerge -av x11-misc/xdg-utils

gentoo: distrobox-host-exec on gentoo host does not do notthing

Have to install flatpak on gentoo host:
sudo emerve -av flatpak


https://github.com/89luca89/distrobox/issues/1198#issuecomment-1951056599

Oklular: Doesn't open epub files

yay -S ebook-tools kdegraphics-mobipocket

Monday, December 15, 2025

lsblk: list model name of hard drive

lsblk -o NAME,FSTYPE,LABEL,MOUNTPOINT,SIZE,MODEL

gentoo: VirtualBox can't operate in VMX root mode

sudo modprobe -r kvm_amd
sudo modprobe -r kvm_intel

Arch: Install matlab

mpm install --release=R2024b --destination=/mnt/b/opt/matlab MATLAB Parallel_Computing_Toolbox
https://wiki.archlinux.org/title/MATLAB

X forwarding from a distrobox on a remote host

X11 connection rejected because of wrong authentication.

Assuming ssh is set to allow X11Forwarding, on a remote host .Xauthority will be created. But if you enter a distrobox on the remote host, the file can't be found. So in distrobox, export `XAUTHORITY` to point to the host's .Xauthority
distrobox-enter archbox
export XAUTHORITY=/run/host/home/username-on-host/.Xauthority
xeyes
It also works same when waypipe is used.

tigervnc: Service deactivets immedietly after start

cd /etc/X11/Sessions
mv Xsession Xsession.backup
ln -s fluxbox Xsession

from: https://forums.gentoo.org/viewtopic-t-1150142.html

tigervnc: logs location

are in `~/.local/state/tigervnc`

Tuesday, December 09, 2025

waypipe: "Error: Can't open display:" when using waypipe in Fedora distrobox

In ssh inside distrobox enable ForwardX11:
sudo vim /etc/ssh/ssh_config

Enable ForwardX11
ForwardX11 yes

Sunday, December 07, 2025

Monday, December 01, 2025

wayvnc: WAYLAND_DISPLAY is not set in the environment

Run it with set WAYLAND_DISPLAY:


env WAYLAND_DISPLAY=wayland-1 wayvnc


Check in `/run/user/$UID` the number of active walyand session, e.g. 1 in `niri.wayland-1.1846.sock= `