Thursday, January 29, 2026

tigvervnc: example vncserver config setup

vncserver-config-mandatory:

session=startfluxbox
securitytypes=none
geometry=1800x1100
localhost
alwaysshared

Monday, January 26, 2026

kde plasma: set kde theme from a command line in a distrobox

List current themes:

lookandfeeltool -list
can return

org.kde.breeze.desktop
org.kde.breezedark.desktop
org.kde.breezetwilight.desktop

then

lookandfeeltool -a org.kde.breezedark.desktop

More at: https://askubuntu.com/a/1183309

Bazzite (Fedora atomic): install virtualbox from RPM fusion

Bazzite has rpm fusion repositories added in /etc/yum.repos.d/. However, even though they are enabled, by default you can't install any packages from them. You can force the use of the RPM repo as follows:

sudo dnf --enablerepo=rpmfusion-free install virtualbox
This will still not install the virtualbox in atomic fedora as its read-only system. But can be useful for building custom atomic images which would contain the virtualbox or other packages.

distrobox: Basic programs for archlinux in distrobox

yay -S mc vim htop tmux fd zoxide fzf terminator freerdp rdekstopt bash-completion firefox firefox-developer-edition brave-bin vscodium-bin onlyoffice-bin libreoffice-fresh gwenview okular wine krusader krename kdiff3 konsole xdg-desktop-portal-kde tigervnc fluxbox rofi xterm xorg-xeyes masterpdfeditor vlc mpv vlc-plugins-all fish chromium librewolf-bin go python-uv gimp ttf-roboto otf-font-awesome rar p7zip octave ebook-tools kdegraphics-mobipocket

Saturday, January 24, 2026

Use GLM through OpenRouter in Claude Code

ANTHROPIC_AUTH_TOKEN="your-openrouter-api-key" ANTHROPIC_BASE_URL="https://openrouter.ai/api" ANTHROPIC_API_KEY="" claude --model z-ai/glm-4.7

Monday, January 12, 2026

Systemd: autostart Ansys SAM

sudo vim /etc/systemd/system/sam.service


[Unit]
Description=Ansys SAM Web Application Container
Requires=docker.service
After=docker.service

[Service]
Type=simple
User=root
Group=root
WorkingDirectory=/opt/ansys-mbse-server/mbse
ExecStartPre=/usr/bin/docker compose down
ExecStart=/usr/bin/docker compose up
ExecStop=/usr/bin/docker compose down
Restart=always
TimeoutStopSec=30

[Install]
WantedBy=multi-user.target

Saturday, January 10, 2026

SSL certificate keystore for Ansys SAM tomcat server

Getting SSL certificate for a domain using certbot (https://certbot.eff.org/) gives you four files: cert1.pem, chain1.pem, fullchain1.pem, privkey1.pem. These files can found in /etc/letsencrypt/archive/your.domain.name.

The files have to be bundled into a keystore (keystore.pfx) for use in tomcat. For this you can use:

openssl pkcs12 -export -in cert1.pem -inkey privkey1.pem -out keystore.pfx -name tomcat -CAfile chain1.pem -caname root -chain
"keystore.pfx" must be renamed to "keystore" and keystore password used when creating keystore.pfx have to be specified in server.xml.

More information at: https://hardwarehacks.org/blog/setting_up_tomcat_with_a_lets_encrypt_certificate/

Friday, January 09, 2026

ssh: LocalForward in ssh config file

Example to forward vnc 5901 port from server to client's 5903 port:
Host myserver
    HostName serverip
    User ubuntu
    IdentityFile ~/.ssh/private.pem
    LocalForward 5903 localhost:5901

tigervnc: on ubuntu example settings

/etc/tigervnc/vncserver-config-mandatory :
$session = "startfluxbox";
$SecurityTypes = "none";
$geometry = "2000x1200";
$localhost = "yes";
$AlwaysShared = "yes";


sudo systemctl enable --now tigervncserver@:1