r/AlpineLinux • u/LinuxLoverLarry • Sep 15 '26
Tutorial On How To Do This?
The wiki has given inconsistent results for tutorials specifically pertaining to this.
I want a tutorial on how to install Openbox, Tint2, feh, and enabling Pipewire audio on Alpine Linux. I am not the biggest fan of traditional desktop environments, and I find them to be heavy on my PC, even with ones such as XFCE.
It would be nice if you could point me to somewhere that offers this, or if you could type something yourself. Thanks, people!
12
Upvotes
View all comments
Show parent comment
1
u/alexaandru Sep 17 '26
Generated with ChatGPT from the above:
How
/etc/profilestarts the Wayland sessionThis
/etc/profiledoes two things: it sets the normal login-shell environment, and then uses the login ontty1as the entry point for the entire Wayland desktop session.1. Basic shell environment
This:
PATHlessthe default pagerumask(644files /755directories)Then it sources all readable shell snippets from
/etc/profile.d/:2. Only
tty1is allowed to start the GUIThe rest of the script runs only when:
So an SSH login, a login on
tty2, or a shell opened inside the existing Wayland session won't accidentally start another desktop session.3. Prepare session logging
Each new graphical login gets a fresh directory for service logs:
4. Kill stale per-user services
This removes potentially stale instances from a previous session before creating the new one.
5. Set the graphical-session environment
This tells applications that the session is Wayland and that the desktop/compositor is
umbriel.The compositor can therefore be changed simply by changing:
6. Create the D-Bus session
The actual session starts here:
dbus-run-sessioncreates a fresh D-Bus session bus and runs everything inside it.The
execmeans the login shell itself is replaced by the session process.Inside that session:
So the SSH agent is started on the predefined socket, the current environment is made available to D-Bus-activated services, and the D-Bus session address is saved for anything that needs to connect to the session later.
7. Start the user services
Podman:
This starts the Podman API service indefinitely in the background.
Then the audio stack:
And removable-media handling:
All of these run in the background.
8. Finally, start the compositor
Since:
this effectively becomes:
The compositor is not backgrounded. The shell waits for it.
So the overall process hierarchy is roughly:
How is
/etc/profiletriggered?/etc/profileisn't started by OpenRC, D-Bus, Wayland, or the compositor.The chain is simply:
So in this setup, the tty1 login itself is effectively the session manager.
There is no display manager involved.
agettyprovides the login, the login shell reads/etc/profile, and/etc/profileturns that login into the complete Wayland user session.