The officially official Devuan Forum!

You are not logged in.

#1 Re: Documentation » How to use the Init system? » 2025-11-29 23:21:21

if ya miss the systemctl heuristics there's this script i call initctl which wraps update-rc.d(8) and service(8) in a familiar way while ya learn the ropes of using those commands.

https://github.com/eylles/devuan-script … er/initctl

#2 Re: DIY » easydeb deb packager » 2025-11-29 23:09:24

well this thread if anything vindicates my refusal to create packages for anything i develop, less alone packaging for debian as it is an unnecesarely complicated crapshow or at least everything i've read so far has painted the creation of a new deb package from an upstream source that has not been previously packaged, admitedly i have not read the guide in the link shared by golinux but by this point i don't got high hopes.

#3 Re: DIY » SHED init independient/agnostic user services » 2025-11-27 03:19:51

hope it works in your setup, anyway i go back to my usual unemployed activities, play videogames while pretending i'm working on this one business idea thing that idk if will even work.

#4 Re: DIY » SHED init independient/agnostic user services » 2025-11-27 02:05:00

ah yes, sorry it took me until today but it should be sorta kinda solved-ish in master as of now.

by mistake i was using the hardcoded path of the XDG_RUNTIME_DIR instead of using the env var.... shedc should use the env var now

as for the env var, i added the option to have a shed.rc file inside ${XDG_CONFIG_HOME:-${HOME}/.config}/shed/conf, that file is just loaded as a script file so use with care, there you can set the variable SHED_ENV_EXPORT_LOC to a filepath that your user can write to, say if you are already setting and exporting the GUI_SESSION_PID var inside your .xsession then you should be able to define the var like so:

# this is just a suggestion that hopefully ought to work if you startx in multiple ttys
SHED_ENV_EXPORT_LOC="/tmp/shed_session_${GUI_SESSION_PID}/shed.env"

the shed.rc being a loaded "script" the variable substitution should just work with dash, yes the variable definition should end in a filename at the end of a path, no you cannot just give a path as it will break how it works, no there is no checking of werether the variable definition ends in a path or a file since this is THAT cobbled together.

as for the contents of the export file it would look something akin to this:

export XDG_RUNTIME_DIR="/tmp/1000-runtime-dir"
export XDG_SESSION_ID="67"
export GUI_SESSION_PID="42069"

this ought to let ya just load that file inside your .xsession right after starting shed and before launching the window manager, or at least i hope, otherwise you'll have to use an until waiter loop like this

until [ -f "/tmp/shed_session_${GUI_SESSION_PID}/shed.env" ]; do
    # 50 miliseconds
    sleep 0.050
done

. /tmp/shed_session_${GUI_SESSION_PID}/shed.env"

anyways sorry for shed being such a hacked together thing that works all the time like 60% of the time outside of my setup, the whole thing started as a pair of scripts i cobbled for myself to be part of my dotfiles until i broke it "free" from my dotfiles into it's own script that has only continued to grow at a snailpace cuz i'm the only moron working on it and i mean MORON cuz i don't see anyone else stupid enough to write such a piece of software in posix(-ish) compliant shell...

#5 Re: Hardware & System Configuration » [SOLVED] fstrim and HDDs » 2025-11-26 05:23:04

technically the logs are correct, fstrim sends the trim operation to every mounted partition with a filesystem that supports it, the discard is calculated and then passed from the filesystem (through the kernel i'd assume) onto the drive's firmware, the firmware accepts the trim operation with the provided discard parameters, reports back that the proposed operation was accepted but then ignores it internally as the firmware does it's own handling of empty/unused space, the kernel gets the success status back to fstrim and fstrim reports back that the operation was a success and prints out the output that as far as the process is concerned was correct, fstrim simply has no way to know that the drive's firmware is lying while ignoring the trim and discard so the log output is "correct"

#6 Re: Hardware & System Configuration » [SOLVED] fstrim and HDDs » 2025-11-25 14:58:07

it all depends on the specific hard drive, yours has a firmware scheme that accepts trim but ignores it, others may actively make use of the trim instruction but handle it differently at the firmware/hardware level

#7 Re: DIY » A Survey of User-made Content » 2025-11-25 08:42:41

so i put out a new release of systemact that adds support for consolekit and custom user override functions, say if you rawdog sudo by adding your user to the sudoers list or use doas or something else.

https://github.com/eylles/systemact/releases/tag/0.2.0

#8 Re: DIY » SHED init independient/agnostic user services » 2025-11-22 23:28:03

Of course shed can't export the value, I should have realized a script can't export to its invoking script unless it's sourced. However, in this case, even sourcing doesn't work, probably because shed runs in the background and doesn't exit.

yes i know that, hence why shed is currently flawed and needs to become the session process and be a compliant x-session-manager, to give an example think of say xfce, if you start x11 from a display manager like lightdm and select xfce it will run an x11 session with the program xfce-session as the session "leader" program, xfce-session exports all env vars, starts all session components (window manager, panel program, wallpaper setter, desktop manager (program that provides desktop icons)), starts the settings manager and then runs the xdg-autostart programs, then finally waits and stays running until you logout, reboot or poweroff, in the logout process xfce-session acts as a middleman and cleans after itself killing every process it started (or at least those it knows about), kills every one of it's child processes and then terminates, once the session leader is terminated x11 terminates and you get sent back to the display manager.

when starting from a tty and running startx, the last program specified in your .xinitrc (or .xsession in debian based distros) as exec will become the session process leader, an .xsession can export environment variables before execking the last program, but again say we use xfce, the last line of the .xsession wold be exec xfce-session and then again xfce-session will have all the responsability.

the flaw of shed is that it is not currently the program that starts the window manager, ie the window manager and every GUI program is not a child of shed and thus won't properly inherit it's environment, only the programs started by shed inherit shed's environment, the window manager runs as a sibling of shed, so programs started from within the environment of the window manager have the window manager's environment.

a dirty hack would be to have shed first export all it's environment to a plain text file, then have the .xsession load shed's environment file... but the real solution is still to implement session components so the window manager can be started by shed...

I noticed I was accumulating multiple GUISessionXXXX directories on repeated login/logout cycles, since shed was creating a new directory each time from the new PID. It all gets cleaned out on reboot, but the XDG spec says we're supposed to delete these directories between login sessions.

how do you log out? by all means shedc logout should take care of cleaning after itself, if it doesn't then i gotta fix that.

#9 Re: DIY » SHED init independient/agnostic user services » 2025-11-20 04:30:42

ah thanks coder-hase that is indeed a neat idea, but after some digging turns out that it can be done in a much, much shorter way...

get_shed_cgroup() {
  sed 's@.*::/@@' /proc/"${shed_pid}"/cgroup
}

also it doesn't matter that using /proc/ is a linux only thing since cgroups are also a linux only concept... so if anyone on the bsd world or in other unices like illumos wants to port shed over there will be the need to use another process property to set the XDG_SESSION_ID, the BSD jails seem to be the closest thing to cgroups in BSD but i dunno if that would be the correct property to use, nor i know if the BSD world or other unices would have interest in something like shed as it seems linux is the only unix-like stuck in the absolute obscurantism of obtuse software like systemd and the lack of a generic session process even when the x-session-manager has been a concept in debian for ages...

#10 Re: DIY » SHED init independient/agnostic user services » 2025-11-19 00:45:49

yes, the last release tag (0.2.0) expects you to have elogind OR something else that did define the XDG_RUNTIME_DIR, master since commit cc6d537 will define the XDG_RUNTIME_DIR and since commit 95d95c4 it will fallback to create an XDG_RUNTIME_DIR in a similar manner to the one that gentoo recommends to launch sway from a tty, additionally on linux (not really targetting other unixes at the time) it can also set the XDG_SESSION_ID

but all those are features i've added on master, the warning in the readme was because at the start of the development cycle for 0.3.0 i was breaking stuff more often, while you can do use master safely for now i still have to break more things to add the concept of "sessions" and "session components"

for shed will have to receive an argument specifiying the session name or it fallbacks to default, every session name, including default would be a subdirectory of the XDG_CONFIG_HOME/shed/sessions dir (will need to add fallback dirs for sessions bundled with shed, defined by vendor, defined by admin, and have the user config sessions have priority with falling back to each subsequent dir) where the name is the name of the subdir, each session will have to contain a loadable "session.rc" file that adds configuration and information about the session and how some processes ought to be started and treated, an optional "session.d" directory for other files (scripts) to load, then the "components" subdir for the session components and finally the "services" subdir for the session specific user level services to be managed by shed

the "session components" will be a class of services apart from the "user services" already understood by shed, in that these are meant to be core components of the session like the window manager, compositor, panel, notifications daemon, keyring daemon, etc... they differ in that this class will normally only get started on shed's first run and only get terminated on shed's logout but not touched during reload (when shed execs itself) nor to be touched by the regular stop, start, status and restart operations.

also gotta add support for oneshot services as right now shed assumes every service is a daemon...

those intended changes are so that shed can be used as a proper x-session-manager instead of a very hacked together thing shoved into the .xsession

that said, use shed from master without worry for the time being, just whenever you pull your local copy of the repo to update check the git log to see what (if any) has changed in order to adapt your setup as i continue to develop shed on the road for 0.3.0

#11 Re: Documentation » How to: Devuan 5 Daedalus an pipewire » 2025-11-18 00:25:27

yeh, why do we even bother writing software right?

#12 Re: Documentation » How to: Devuan 5 Daedalus an pipewire » 2025-11-17 18:10:51

it really warms my heart to see the joke fly over everyone's head thanks to my posts being ignored unless i join the whining...

still interesting to see how simple the approach of the start_user_pipewire script is when i went ahead like an idiot and engineered a whole crappy process manager + incomplete session process in shell (not even bash because arrays are the devil) all to have pipewire "just work" with 3 files that barely classify as config files...

https://dev1galaxy.org/viewtopic.php?pid=49728#p49728

#13 Re: Documentation » How to: Devuan 5 Daedalus an pipewire » 2025-11-17 01:37:33

just cancel pipewire and use alsa only + jack every so often, this is literally bloating the desktop with the bloatware of pipewire as if the poettering bloatware of pulseaudio wasn't bad enough, maybe we should all go to a real OS like OpenBSD that has a proper audio stack and system.

#14 Re: Desktop and Multimedia » [SOLVED] Can't suspend, reboot, or shut down in a WM » 2025-11-09 02:22:21

again, the repo i posted is the script i use on my machine, it works nicely for sysvinit + elogind.

#15 Re: Desktop and Multimedia » [SOLVED] Can't suspend, reboot, or shut down in a WM » 2025-11-08 16:39:07

you can always give https://github.com/eylles/systemact a try, it is a "backend" for power menus, (a wrapper for systemctl and loginctl, anyone that wants consolekit support will have to help providing the equivalent commands) that uses yad to provide a confirmation and timeout dialog for every action except lock, it does the heavy lifting and is configurable to support custom logout and lock commands

all needed for icewm would be to make a local copy of the included power menu entry and replace the systemd commands with the corresponding systemact command.

#16 Re: Off-topic » Work - or Support for project » 2025-11-08 03:58:00

open a thread in DIY and post the repo in the opening post, tho if any of my projects is an indication expect no traction nor engagement from the forum whatsoever.

#17 Re: Off-topic » Hard Rust requirements for APT from may next year » 2025-11-07 13:45:32

ah so nice to see the useful and constructive conversations are still ongoing on

#18 Re: Hardware & System Configuration » Concurrent filecopy over USB / onto NAS » 2025-11-05 08:07:29

yeh, desktop environment GUI copy tooling is not great, for large numbers of files rsync is always the way to go, mainly because you can cancel the operation and continue it later by running the same command

there is also grsync to ease things up a little

#19 Re: Off-topic » Hard Rust requirements for APT from may next year » 2025-11-05 07:27:52

man, i gotta agree with steve_v, more than half of the forum seems to be people who have never coded and whose hobby is to complain about anything and everything with the utmost learned helplessness that there is and there will never be anything they can do other than give up, really something refreshing and pleasant to read every time.

#20 Re: Freedom Hacks » Request: Can we PLEASE fork APT? » 2025-11-04 23:55:43

just to provide more context on the problems you mention:

the licensing is the licensing of the COMPILER, rustc, not the language syntax itself, and yes the license of the compiler does seems a bit in bad faith, but for that there is a project implementing a rust compiler over gcc https://github.com/Rust-GCC/gccrs , it still is a work in progress but the project is already on the stage of compiling the rust stable core library and focusing on increasing coverage of the testsuite.

the ubuntu fiasco with the rust core utilities project, uutils, stems not from the uutils project itself but rather from the ubuntu developers whom decided to ship as default a core utils package whose compatibility level is not just lower than busybox but even right now is not able to pass the gnu coreutils testsuite, so for credit where it is due and blame where it causes shame, this is fault of the ubuntu developers rushing to push a not ready for production package into a "production ready" release as a default core component

that context provided, there is the posibility that the addition of rust into apt could be a very rushed one seeing that the push does come from an ubuntu developer tho beyond that there is nothing else i can comment on a technical level at the time.

#21 Re: Installation » Latest Excalibur desktop installer forces LXQt? » 2025-11-04 18:36:23

so there is a project that implements a command line policykit auth interface intended to build custom polkit agents with scripts.

https://github.com/OmarCastro/cmd-polkit

it has examples to use rofi and zenity as GUI frontend, so it should be possible to build an auth agent with any toolkit frontend we want, will check the project out in depth later, compile and give it a try.

edit: there is an implemented polkit agent using cmd-polkit https://github.com/cobaltgit/pkmenu

i will look into compiling cmd-polkit through the week and see if i can take the idea of pkmenu into something more flexible that can support multiple graphical frontends, all i need is someone who got a good idea of how to do packaging cuz i do get confused with the myriad of helpers for deb packaging that don't work for me.

#22 Re: Installation » Latest Excalibur desktop installer forces LXQt? » 2025-11-04 06:09:12

makes sense, if anything it should install the policykit-1-gnome as that does provide the polkit-1-auth-agent that would integrate the best with gtk and the network-manager-applet, however my guess is that apt resolved the dependencies getting a list of which packages provide polkit-1-auth and choose the first available option by alphabetical order, were the lxqt agent not available it would had gone with the mate agent...

edit: i just noticed that the policykit-1-gnome agent was removed in trixie because it is unmaintained upstream as stated here https://bugs.debian.org/cgi-bin/bugrepo … bug=990271

so the real solution is to install the mate-polkit-bin package as that WILL integrate with a mainly gtk environment without pulling the lxqt session NOR the mate-session package

#23 Re: Desktop and Multimedia » excalibur/KDE non-root X11 session is broken » 2025-11-03 19:05:52

so after seeing that bunsenlabs is considering greetd i got into looking at it some, greetd is a small daemon, written in rust (for good or for bad that's not the important part here), needs greeters to display a login

about the greeters most of them target wayland and require a wayland compositor to run, however the way greeters are structured it should be possible to craft a greeter that runs on x11 it would just need to launch x11 as part of it's initialization, that aside rn there are some TUI greeters that do not require wayland AND support rootless x11 (ar at least seem to, have not tested them yet) https://github.com/apognu/tuigreet tuigreet which is written in rust and is packaged on debian 13, there also is https://github.com/Nomadcxx/sysc-greet sysc-greet which is written in go and has a fancier presentation (tho it may need a wayland compositor for such fancier stuff, not sure yet).

tho at the time bunsenlabs is still sticking with lightdm so getting the lightdm rootless x11 session working would still be useful...

#24 Re: Desktop and Multimedia » noCSD for GTK4 » 2025-11-01 23:44:56

unless someone (probably not from the forum), forks and continues the work of stlwrt to have a toolkit library compatible with gtk2 to gtk4 with whichever rendering appearance is desired all that complaining about qt6, gtk4 and the eventually upcoming qt7 and gtk5 will accomplish is to have a bunch of written complains in our corner of the internet

stlwrt: https://github.com/thesquash/stlwrt
ubuntu mate forum thread (where stlwrt repo got posted): https://ubuntu-mate.community/t/horribl … 4/22028/63

#25 Re: Desktop and Multimedia » noCSD for GTK4 » 2025-11-01 22:23:47

got it configured already, this is a new phone i got from my mobile plan earlier this week so i'm still finishing the setup

anyway, back on track i'll see later once i'm home how compiling the GTK4-NoCSD library and adding it to the LD_PRELOAD env var goes and give some feedback.

Board footer

Forum Software