The officially official Devuan Forum!

You are not logged in.

#1 Re: Hardware & System Configuration » [SOLVED] OpenSMTP starting too soon » 2025-06-24 02:50:28

I have learned a bunch today!  Most important is that the ifupdown package contains some important scripts that can cause headaches if they aren't there, even if you have no use for ifupdown to manage your interfaces.  settle-dad.sh and wait-for-ll6.sh in /usr/lib/ifupdown/, for example, wait for an ipv6 interface to leave the tentative state and get a link-local address so any following processes have a usable interface.  Eureka!

Edit #1: In fact, even if ifupdown's interfaces file is empty, it will still go all the way to configuring and "ifup-ing" the loopback.  The scripts mentioned above are probably part of the ifup process.  Setting CONFIGURE_INTERFACES=no in /etc/default/networking skips this (but then you might as well purge the package).

#2 Re: Hardware & System Configuration » [SOLVED] OpenSMTP starting too soon » 2025-06-23 13:02:14

As a side issue I will add that when I first started researching this I had, in /etc/rc?.d/, links for S03opensmtpd & S04network-manager, which is why openstmpd was starting before network manager despite openstmpd being dependent on network manager.  I disabled and enabled network manager and then had S04network-manager & S14opensmtpd - which is the expected order.  cron & rsync also changed from S03 to S14.

I think this points to a problem somewhere with the way the init links are maintained.  Perhaps there should be a process that resets their order anytime a script is added/changed/deleted during an upgrade (while preserving the state of manually disabled services).

#3 Hardware & System Configuration » [SOLVED] OpenSMTP starting too soon » 2025-06-22 14:23:44

User479
Replies: 2

The system here is on Excalibur with SysV init.  I've run into a situation where OpenSMTP fails during system startup.  The logged messages are:

smtpd[4364]: info: OpenSMTPD 7.6.0-portable starting
smtpd[4369]: dispatcher: smtpd: bind: Cannot assign requested address
smtpd[4365]: smtpd: process dispatcher socket closed

If I start the service after booting is complete it works fine.  I think the problem must stem from the fact that opensmtp (which listens on localhost) is started before NetworkManager can initialize the loopback interface.  Ifupdown is not currently installed but had been.

The init script includes $network in the Required-Start list so this condition is apparently being satisfied even before NM has been started.  I have tried changing Required-Start to $all and that does delay the start of opensmtp until just after network-manager has started but the loopback interface has still not been initialized at that point so opensmtp still fails.

What is kinda weird is that this behavior started after I purged the ifupdown package.  The interfaces files was empty so ifupdown should not have been doing anything but it's almost like it was initializing loopback anyway.  I have syslogs from that period and they show opensmtp happily starting before network-manager with about 0.25 seconds elapsing before loopback is initialzed!

Is there a way to make the init wait until NM has completed initializing all interfaces before starting the dependent scripts?  As a temporary? workaround, I have added a "sleep 5" in the start code of opensmtp's init script.

Edit #1: I found that if I have opensmtpd listen on 127.0.0.1 instead of localhost then it will start (without Network Manager).  If I have it listen on ::1 then it still fails with the error above.  Listening on localhost caused it to try to listen on both those addresses - apparently it is ok at that point with ipv4 but not ipv6.

Edit #2: On another system I found that after purging ifupdown, dovecot won't start either (until after network manager inits the interfaces).  It can no longer bind to ::1,443 and ::1,993.  It seems like I am zeroing-in on the root cause.

#4 Re: Installation » how restore default permissions root folder after copy OS to SSD? » 2024-08-21 02:55:56

Even better: rsync -aHX

The "X" will preserve extended attributes and capabilities - kinda important for OS files.

#5 Re: Other Issues » [SOLVED] /.config and /.cache with Daedalus » 2023-09-16 03:37:54

I had given up on this issue so that's a good find.  I don't have a pulse user so my issue is something different but that does indeed shine some light in a direction I hadn't looked.  FWIW, /.config isn't being created anymore here but /.cache still is.

#6 Re: Devuan » Can anyone fill me in on why and how exactly systemd took over Linux? » 2023-08-23 02:34:41

Perhaps another factor is that systemd started as an init system and was rather innocuous.  Later it started taking over so much other functionality - DNS, NTP, booting, etc, kinda like the proverbial camel getting its nose in the tent.

#7 Re: Hardware & System Configuration » Logrotate on Daedalus » 2023-06-27 20:13:28

You could try "logrotate -dv /etc/logrotate.conf" to see what it says about syslog.  I rotate that group monthly so my output is

rotating pattern: /var/log/syslog
/var/log/mail.log
/var/log/kern.log
/var/log/auth.log
/var/log/user.log
/var/log/cron.log
 monthly (12 rotations)
empty log files are rotated, old logs are removed
considering log /var/log/syslog
  Now: 2023-06-27 15:08
  Last rotated at 2023-06-01 03:13
  log does not need rotating (log has been rotated at 2023-06-01 03:13, which is less than a month ago)
. . .

#8 Re: Hardware & System Configuration » Logrotate on Daedalus » 2023-06-27 14:21:48

Do you at least have cron installed?  Do you have /etc/cron.daily/logrotate?

#9 Re: DIY » [SOLVED] Anyone know how to use privoxy? » 2023-05-08 22:52:31

I found this https://www.privoxy.org/gitweb/appendix … 68ace1f2df

that suggests match-all.action has the default settings.  The actions defined in my match-all.action look the same as the standard.Medium definition in default.action so maybe you're already using medium.

#10 Re: DIY » [SOLVED] Anyone know how to use privoxy? » 2023-05-07 15:06:14

I've been using privoxy and its IJB ancestor for close to 25 years yet I don't know if I can be of much help.  I've never gotten real deep in its capabilities and much/all of the HTML-rewriting features are of little use now that most traffic is going over HTTPS.  I can tell you that I've never modified default.action - only user.action.

I haven't tried it but I suspect you would put something like this in user.action:

{+standard.Cautious}
.dev1galaxy.org
.devuan.org

to apply that set of rules to this domain & sub-domains, and the devuan domain & sub-domains as well.  Note that once an action is switched on in the config, it is active for all entries below it until switched off (with {-standard.Cautious} in this case).

My usage is just to limit access to only specific domains.  I block all access via HTTP and HTTPS and then unblock HTTPS to specified domains:

{+block}
.*:80
.*:443

{-block}
.dev1galaxy.org:443
.devuan.org:443

#11 Re: Desktop and Multimedia » [SOLVED] Remote X session - what works? » 2023-05-01 22:22:49

Xpra?  I don't know about using it with Windows.

#12 Re: Other Issues » [SOLVED] /.config and /.cache with Daedalus » 2023-03-16 19:56:52

boughtonp wrote:

So what is result of...

That returns "home=/root;config=;cache=;"

boughtonp wrote:

...use stat to get the precise time

Good idea.  During two boots the messages preceeding creation of /.cache were coming from smartd, but I don't know why it would need a cache file.  I deleted /.cache and restarted that service, and several others (chrony, opensmtpd, dovecot, rsyslog, cron, dbus), without a new /.cache being created.  I'll keep digging.  Or maybe not.  It's not hurting anything, it's just annoying now that I know about it.

#13 Re: Other Issues » [SOLVED] /.config and /.cache with Daedalus » 2023-03-15 20:15:18

For what it's worth, even with pulseaudio purged, an empty /.cache/ is getting created at each boot.

#14 Re: Freedom Hacks » Is it safe to encrypt only the home directory? » 2023-03-06 14:50:58

Something to consider is that the more of your system that is encrypted, the less there is that can be tampered with.  Encrypting only the home dir leaves you vulnerable to keyloggers etc being installed in the system.

#15 Re: Other Issues » [SOLVED] /.config and /.cache with Daedalus » 2023-03-05 21:05:58

Altoid wrote:

No matter, quite easy to fix.

First this:

# apt purge pulseaudio && apt autoclean && apt autoremove

Very good point.  I'm using pipewire & wireplumber on my phone & tablet (with mobian bookworm) and it seems to work so I can now just ditch pulseaudio on my destop.

Edit 1: Except the phone and tablet have systemd, of course, and setting up pipewire without that is a bit more complicated.

Edit 2: Actually, the "Alpine solution" turned out to be pretty simple.  pipewire-launcher.sh worked without modifications.   I use XFCE so it needed the desktop file in ~/.config/autostart/ (with Exec= adapted).  I killed pulseaudio, started pipewire, reset the volume control, and it's done.

#16 Other Issues » [SOLVED] /.config and /.cache with Daedalus » 2023-03-05 16:43:43

User479
Replies: 19

Since upgrading from Chimaera to Daedalus I am seeing /.config and /.cache directories.

/.config seems to be used by pulseaudio and will be re-created at boot if it's been removed.

# ls -lR /.config
/.config:
total 4
drwx------ 2 root root 4096 Mar  5 10:02 pulse

/.config/pulse:
total 0
lrwxrwxrwx 1 root root 23 Mar  5 10:02 f3270dcda2b340e98a9808d3dcb611c5-runtime -> /tmp/pulse-PKdhtXMmr18n

/.cache always seems to be empty and gets created at boot (by pulseaudio?) if it's been removed.

# ls -lR /.cache
/.cache:
total 8
drwx------  2 root root 4096 Mar  5 10:02 .
drwxr-xr-x 23 root root 4096 Mar  5 10:02 ..

Is this a Devuan issue or Debian?

#18 Re: Off-topic » Beware of the Zeitgeist... and a reminder to inspect packages/source. » 2022-12-16 04:06:20

The tracker service can be disabled and masked.  Whether it gets surreptitiously enabled again is a question. Changing the directory where it stores its data to read-only might also hinder it.

#19 Re: Devuan » [SOLVED] The Devuan Ethos » 2022-11-01 20:48:01

andyp67 wrote:

Where is the virtual console shift, alt f1 f6.

Try ctrl-alt-[f1-f6]

#20 Re: Off-topic » Google in trouble again » 2022-10-30 13:02:22

LU344928 wrote:

A search engine should not decide what we see. It should display everything and let us decide.

But the whole point of the search engine is to rank the results in some way, isn't it?

Of course, there are some wingnuts that actually want their sites omitted from search engines so they have something to scream about.
https://www.techdirt.com/2022/10/07/ari … e-indexed/

#21 Re: Off-topic » Google in trouble again » 2022-10-29 15:25:17

LU344928 wrote:

Requires javascript.  No thanks!

#22 Re: Off-topic » Lennart Poettering (Systemd) Lands at Microsoft After Leaving Red Hat » 2022-10-16 02:45:54

yeti wrote:

Maybe someday they'll flip it upside down.

...and call it Wine++ or Wine#

#23 Re: Off-topic » Your thoughts on: TheCaseForTheUsrMerge » 2022-10-06 02:42:40

golinux wrote:

...Debian may close the door to the freedom to choose.

They are indeed doing that.  https://lists.debian.org/debian-devel/2022/09/msg00092.html

#24 Re: Off-topic » Your thoughts on: TheCaseForTheUsrMerge » 2022-10-05 21:19:24

@hunter0one: The option has been here for a long time.

#25 Re: Off-topic » Your thoughts on: TheCaseForTheUsrMerge » 2022-06-09 20:21:10

I did the usrmerge Feb 26 2021 when still on Debian Buster and have since been through an upgrande to Debian Bullseye and then a move to Devuan Chimaera, and have seen no problems.  The change seems inevitable given the momentum.

Apt and/or dpkg do seem to have obscure issues related to this and I think stuff can happen when installing a package built on a merged system on a non-merged system.

Edit 1: Read this when you've got a few hours to kill: https://lwn.net/SubscriberLink/890219/12423853bab9657d/

Board footer

Forum Software