rofi -combi-modi window,drun -show combi
Short IT recipes
i.e. some stuff and junk about Python, Perl, Matlab, Ruby, Mac X, Linux, Solaris, ...
Sunday, November 22, 2026
rifi: rofi command for fluxbox in vnc
Add the following to ~.fluxbox/keys.
Monday, November 02, 2026
FoxitReader: permanently hide the left Navigation/Bookmarks panel
Disable the following in ~/.config/Foxit Software/Foxit Reader.conf:
ShowHideBookmarks\Active=0 — hides the Bookmarks panel.
LeftWidth=0 — sets the left panel width to zero.
ShowHideBookmarks\Active=0 — hides the Bookmarks panel.
LeftWidth=0 — sets the left panel width to zero.
sed -i 's/ShowHideBookmarks\\Active=1/ShowHideBookmarks\\Active=0/g' "$HOME/.config/Foxit Software/Foxit Reader.conf"
sed -i 's/LeftWidth=305/LeftWidth=0/g' "$HOME/.config/Foxit Software/Foxit Reader.conf"
Labels:
foxitreader
Sunday, November 01, 2026
Saturday, October 10, 2026
Flameshot gui does not start in xfce4: Screenshot portal timed out after 30 seconds
flameshot: error: Screenshot portal timed out after 30 seconds
flameshot: error: Unable to capture screen
flameshot: info: Screenshot aborted.
Make its config file:
mkdir -p ~/.config/flameshot
nano ~/.config/flameshot/flameshot.ini
with content of:
[General]
useX11LegacyScreenshot=true
Wednesday, September 30, 2026
sudo: locked out ofter three failed password attempts
As a root (su -):
faillock --user unser_name --reset
Saturday, September 26, 2026
xfce4: autologin does not work
It autologin does not work despite setting in /etc/lightdm/lightdm.conf:
Check if your your_user_name is added to autologin group or even if the group exist:
autologin-user=your_user_name
autologin-user-timeout=0
Check if your your_user_name is added to autologin group or even if the group exist:
sudo groupadd autologin
sudo usermod -aG autologin your_user_name
Wednesday, September 23, 2026
mounting ntfs drive: wrong fs type, bad option, bad superblock on /dev/sdh2, missing codepage or helper program, or other error.
sudo mount -o ro /dev/sdh2 /tmp/a
Friday, August 28, 2026
pi-intercom over SSH: the 30-second guide
pi-intercom is same-machine only — it talks via a Unix socket at ~/.pi/agent/intercom/broker.sock. sshfs won't forward
it (sockets aren't regular files). Forward the socket itself.
1. Keep the broker alive on host A
2. Forward it to host B — don't use ~ after :
3. Use it
Troubleshooting channel 1: open failed: remote socket missing (broker died after 5s idle), ssh -v, or AllowStreamLocalForwarding no on hostA (sudo sshd -T | grep allowstreamlocalforwarding).
1. Keep the broker alive on host A
pi
ls -l ~/.pi/agent/intercom/broker.sock # must exist
2. Forward it to host B — don't use ~ after :
rm -f ~/.pi/agent/intercom/broker.sock
REMOTE=$(ssh user@hostA 'echo $HOME/.pi/agent/intercom/broker.sock')
ssh -nNT -o StreamLocalBindUnlink=yes -L $HOME/.pi/agent/intercom/broker.sock:$REMOTE user@hostA
3. Use it
pi
intercom list # shows sessions from both hosts
Troubleshooting channel 1: open failed: remote socket missing (broker died after 5s idle), ssh -v, or AllowStreamLocalForwarding no on hostA (sudo sshd -T | grep allowstreamlocalforwarding).
Labels:
ai,
coding agent,
pi
gentoo: Fixing Flameshot's Wrong-Monitor Bug on XFCE
If Flameshot's screenshot selector on Linux keeps popping up on the wrong monitor — even one that's turned off — check your primary display setting before anything else.
On my Gentoo + XFCE4 + X11 setup, Flameshot (Flatpak) kept opening its capture overlay on my second monitor, no matter what I did. Compositor tweaks, permissions, config resets — nothing worked.
The actual cause: my main monitor wasn't set as primary in XFCE's display settings. Flameshot just follows whatever XRandR reports as primary, regardless of which screen is actually active.
One change in Settings → Display, and it's been working perfectly since.
On my Gentoo + XFCE4 + X11 setup, Flameshot (Flatpak) kept opening its capture overlay on my second monitor, no matter what I did. Compositor tweaks, permissions, config resets — nothing worked.
The actual cause: my main monitor wasn't set as primary in XFCE's display settings. Flameshot just follows whatever XRandR reports as primary, regardless of which screen is actually active.
One change in Settings → Display, and it's been working perfectly since.
Wednesday, August 12, 2026
xpra: insufficient permissions to use socket path '/var/run/xpra/tux-5'
On the remote host, you have to be added to xpra group, e.g:
sudo gpasswd -a user_name xpra
Labels:
xpra
Subscribe to:
Posts (Atom)