- Shell 100%
Boot test confirmed 'starting container...' hung forever. Root cause:
The llama-rocm-7.2.4 container is a toolbox-managed container (label
com.github.containers.toolbox=true, entrypoint toolbox ... init-container),
not a distrobox-managed one. distrobox-enter waits for the magic log
string 'container_setup_done' to know container init is done. That
string is only printed by distrobox init — toolbox init prints different
strings ('Finished initializing container', 'Listening to file system
and ticker events'). distrobox-enter sits in its 'podman logs -f' wait
loop forever on toolbox containers.
Fix: pre-start the container with 'podman start' before calling
distrobox enter. When the container is already running, distrobox-enter
short-circuits and skips its broken wait loop entirely — it goes
straight to exec'ing the inner command. The container's toolbox init
has already finished by the time podman reports 'running'.
Verified end-to-end:
- Cold start: stopped container, ran wrapper, saw 'starting container
llama-rocm-7.2.4 (status was: exited)', then llama-server loaded
successfully and listened on :8080
- Warm start: container already running, wrapper skipped pre-start,
distrobox enter found it running and exec'd llama-server
Also documents the full diagnosis in bin/README.md (Part 1 = container
init timing, Part 2 = distrobox-enter hang).
|
||
|---|---|---|
| apps.d | ||
| autostart | ||
| bin | ||
| lib | ||
| profiles | ||
| .gitignore | ||
| install.sh | ||
| README.md | ||
| startup.sh | ||
| uninstall.sh | ||
startup-script
Personal post-boot session bootstrap. Opens the terminals and applications the way I want them, every time I log in.
Runs once at the end of every KDE Plasma session login, via a .desktop entry
in ~/.config/autostart/. Window placement is left to KWin's "remember window
positions" — the script only opens the apps, KDE decides where.
Layout
startup-script/
├── startup.sh # main entry — sourced by the autostart .desktop
├── autostart/
│ └── startup-script.desktop # the KDE autostart entry
├── apps.d/ # ONE FILE PER APP, sourced in numeric order
│ ├── README.md
│ └── NN-name.sh
├── profiles/ # Konsole .profile files (one per persistent tab)
│ ├── README.md
│ └── NAME.profile
├── lib/ # helpers (launch, log)
├── install.sh # one-shot installer (autostart + profiles)
└── uninstall.sh # one-shot uninstaller
Install
cd ~/startup-script
./install.sh
That drops autostart/startup-script.desktop into ~/.config/autostart/,
copies any profiles/*.profile into ~/.local/share/konsole/, makes the
entry scripts executable, and logs the install. Next login fires the script.
Uninstall
cd ~/startup-script
./uninstall.sh
Removes only the .desktop autostart entry. The repo, apps.d/, and logs
stay put.
Add / remove an app
Drop a file into apps.d/ named NN-name.sh where NN controls load order
(10, 20, 30, ...). Make it executable. Example:
#!/usr/bin/env bash
# apps.d/20-konsole-main.sh
launch_konsole --workdir "$HOME/V2V-beta" --hold "tail -f /tmp/v2v.log"
launch_firefox https://github.com/og_arist0tle
launch_discord
The launch_* helpers are defined in lib/launch.sh. Available today:
| Helper | Purpose |
|---|---|
launch_konsole [--workdir DIR] [--title TITLE] [--hold CMD] [--exec CMD] |
New Konsole. --hold keeps window open after CMD exits; --exec closes it. --title sets the window title. |
launch_firefox [URL] |
Firefox with optional URL argument |
launch_discord |
Discord desktop client |
launch_app <cmd> … |
Generic launcher for anything else |
apps.d/README.md has more.
Run manually (debug)
~/startup-script/startup.sh # actually open the apps
~/startup-script/startup.sh --dry-run # print what would happen, open nothing
Multi-tab Konsole (persistent shells)
apps.d/15-workspace.sh opens a single Konsole window with 3 tabs — one
for claude, one for llama-server, one for hermes. Each tab runs
tmux new-session -A -s NAME so re-running the script attaches to the
existing tmux session rather than spawning a duplicate.
The 3 tabs are backed by Konsole profiles in profiles/ (one .profile
file per tab). Profiles are installed into ~/.local/share/konsole/ by
install.sh. Each profile's Command= holds the full command (binary +
args) — Konsole parses it via KShell::splitArgs so multi-word commands
survive intact, and every tab opens independently.
Logs
~/.local/share/startup-script/startup.log # timestamped run log
Why a script and not systemd --user?
systemd --user has no access to the graphical session — no $DISPLAY / no
KWin. Terminals and apps launched from systemd land in a void. A KDE
autostart .desktop runs after the desktop is ready and works.