The officially official Devuan Forum!

You are not logged in.

#1 Re: Hardware & System Configuration » open rc "reboot" event logs » Today 13:31:29

Hello:

Can someone help?

Hard to say ...  8^°

You are not explaining much here.
Please bear in mind that an incomplete question will only get you incomplete answers.

For starters:

- Is this on a desktop or laptop/netbook, etc.?
- If a laptop/netbook, under AC or battery power?

- At what point does this (sudden reboot) happen?
ie: right after it boots?, after a while using the machine?

- Can you reproduce the problem if you boot from the current Devuan 5 Live-iso?

- Under what ambient conditions?
ie: hot summer / AC turned on?, any machinery running nearby or on the same circuit?

- Exactly what are you doing with the system when this happens?
- Do you see a pattern?
- Any peripherals connected to the system's hardware?

- When did this start to happen?
eg: Any changes in OS (updates/upgrades) hardware / ambient conditions?

... Devuan 5 open-rc is suddenly once autorestart ...

... check why os rebooted?

Start by checking the last (previous) dmesg output for any warnings.
ie: /var/log/dmesg.0 file

Also check:

/var/log/syslog and /var/log/messages -> stores all global system activity data, including startup messages.
/var/log/auth.log stores all security-related events such as logins, root user actions.
/var/log/kern.log stores kernel events, errors, and warning logs.

Best,

A.

#2 Re: Hardware & System Configuration » Brightness module? » 2025-03-17 07:46:44

Hello:

ralph.ronnquist wrote:

... a boot action aimed at restoring the brightness ...

Quite so.
That's exactly what it is.

[rant]
And why would that need to be so?
I have never needed any of that.

My three monitors have always had the same brightness values at boot.
One of the SyncMasters 940n has over 70K hours uptime so had to recap it last week but the tubes are a bit dim so a cold environment will make it bit dimmer at boot time, but it only takes a minute or so to get right.

ralph.ronnquist wrote:

... a comfort utility.

Sure, I guess you could call it that.
But when it is needlessly foisted on the user and root cannot removed it by the usual means, it immediately turns into a nuisance.

As you know, the list of crap like that in today's Linux distributions is endless.
[/rant]

Thanks for your comment.

Best,

A.

#3 Re: Hardware & System Configuration » Brightness module? » 2025-03-16 16:53:03

Hello:

fsmithred wrote:

... don't think you can get rid of it.

I looked all over and found nothing, just links to fiddling around with power management settings.  8^/

But not on how to remove the %&$# brightness service.
Which probably exists because of crappy and unreliable PM applications.

All I can say with absolute a high degree of certainty is that I had nothing to do with the brightness service not running in my Devuan Daedalus box.

Had I been aware of it, I would have tried to get rid of the damn thing ipso facto.

Like I said, monitor controls have always worked well enough for me.
As far as I am concerned, this brightness service is just another solution looking for a problem.
No wonder it is enabled by default and it will not respond to any of the the usual service commands.
ie: start|stop|restart|reload|force-reload|status which (BTW) are specified in the script. 

In any case, some update/upgrade in the long list that have worked on my file system from Jesse to Daedalus had the common sense of doing away* with /etc/init.d/brightness and leaving /etc/init.d/brightness.dpkg-dist in its place and in doing so, kept the brightness service from being loaded.

I concluded that it was probably just a name change, so I did the same thing on my headless Devuan Chimaera VM.
And achieved the same result.  8^)

Now, the service --status-all request does not include brightness.

~# service --status-all
 [ - ]  bootlogd
 [ - ]  bootlogs
 [ - ]  bootmisc.sh
 [ - ]  checkfs.sh
--- snip ---
~#

I have looked over the logs and found no error.
Is there any special place I should look?

I think we can chalk one up for basic common sense.
Because ...
Wthf does the brightness service have to do running in a headless VM?

Better yet ...
Wthf does the brightness service have to do running in any Linux by default?

Please let me know if I have overlooked something.

Best,

A.

#4 Re: Other Issues » Audio over HDMI not working » 2025-03-16 13:24:39

Hello:

... (sometimes is the silly things, right?).

It is much more frequent than one would think.

In another life, I lost countless hours looking for complex solutions to problems with simple solutions.
eg: bad/cheap cables, dirty contacts, apparently compatible hardware, etc.

I learned long ago to always check the basics first.

... has been working fine until fine up until now ...

Is this with the same hardware?
ie: same laptop, same cable, same external monitor

... noticed that the monitor has a VGA port ...

Does the monitor have two ports ie: VGA and HDMI?

A monitor I use (Dell P1914S) does, it detects which port is being accessed and flashes it on the screen* when I switch on the box and before the system is up.
* after the cable has been disconnected and reconnected, even if the monitor is not connected to mains. 

Let's see: please boot your laptop without the HDMI cable / monitor connected and then run this in a terminal:

~$ xrandr

And then repeat the operation after rebooting with the HDMI cable / monitor connected.

Please post the terminal printout of each.

Edit:

With the monitor not connected you should see something akin to this ...

~$ xrandr
Screen 0: minimum 320 x 200, current 1024 x 600,
maximum 4096 x 4096
LVDS1 connected primary 1024x600+0+0 (normal left inverted right x axis y axis) 220mm x 129mm
1024x600      60.00*+  65.00
1024x576      59.90    59.82
--- snip ---
VGA1 disconnected (normal left inverted right x axis y axis)
~$

... and with the monitor connected something akin to this ...

~$ xrandr
Screen 0: minimum 320 x 200, current 1024 x 600, maximum 4096 x 4096 
LVDS1 connected primary 1024x600+0+0 (normal left inverted right x axis y axis) 220mm x 129mm
1024x600      60.00*+  65.00
1024x576      59.90    59.82
--- snip ---
VGA1 connected (normal left inverted right x axis y axis)  # <- external VGA monitor on
1024x768      60.00 +  75.03    70.07                           VGA port of a netbook
832x624       74.55
--- snip ---
~$

Best,

A.

#5 Re: Other Issues » Audio over HDMI not working » 2025-03-15 23:17:04

Hello:

... haven't found a way to fix this.
... just the external display ...

Have you tried using another cable or that same cable/external display combination with another source.
ie: not your laptop.

Best,

A.

#6 Re: Hardware & System Configuration » hama usb 2.0 Card Reader 35 in 1 is not recognized » 2025-03-12 14:24:53

Hello:

... written to Hama and will inform ...

Good.
It will serve as a precedent to other users.

Before we continue:
When posting a quoted text, for easier reading, the text must be placed between quote blocks.
Just like when posting a printout or code but with a different block.

eg:

quote
quoted text goes here
/quote

That way what the reader sees is this:

quoted text goes here

You can generate a pair of quote blocks by clicking on [ quote ] while editing / replying.

---

... an xD card, and it's hard to find a compatible card reader.

Indeed ...

This is because on one hand, xD cards (xD-Picture Card) is a proprietary format developed by Olympus / Fujifilm and on the other, that format is now obsolete.

Proprietary is also a suitable synonym for expensive. See here: https://en.wikipedia.org/wiki/XD-Picture_Card
Same goes for the proprietary memory sticks used by Sony cameras.
Such is life ...  8^°

Direct access to the camera ...

No cable connection to a PC?
ie: serial to proprietary connector, USB to proprietary connector, USB A to USB Mini B?

I recall most if not all camera vendors either included a cable to connect to a PC.
But others had the cheek to offer you one as a very expensive accesory.

I still have a crappy Konica Minolta Dimage X31 that actually came with a cable.
But the power supply to use it without batteries and the protective pouch / case sold separately were accessories.

Edit:
I forgot to add this link: https://www.linuxquestions.org/question … ost3606104
If you have a cable for your camera it may work, this chap basically uses the camera itself as an xD card reader to unload the photos.
Clumsy but effective.

... need a different/specific driver module ...

It would be nice if that were so, but apparently not.
At least I have not found a solution on-line.

... reload the old driver module?

In an ideal world, maybe.

I will try to explain why with this example, please bear with me:

My Devuan Daedalus box runs three monitors connected to a pair of matching PCIe NVidia Quadro FX 580 cards.
It has been that way since ~2015.

I always used the proprietary NVidia drivers made available to the Linux community by NVidia, albeit with quite a few caveats as to what capabilities they would enable. Corporations such as Nvida* are never that generous.
* not the only one, the list is a very long one.

In spite of that, the cards and the drivers worked well enough with every distributon I tried till I settled on Devuan.
At first, there were no native Linux drivers to speak of until nouveau came to light.
But it was difficult / a bit buggy and lagged way behind, so the NVidia drivers were preferred choice.

Then the time came for NVidia to phase out the Quadro FX580 line (have to sell more hardware, you understand) and as a result stopped making the drivers available to the Linux community.

The driver modules used up to that point could not be used with the newer kernels because these had evolved in various ways and that brought along the need to rewrite / update the modules so as to work with the upgraded kernels, which was not possible / feasible without support from NVidia.

And that was it.

Many years ago, I had to retire a pair of very (very) expensive and prefectly working Matrox G450 PCI cards for that very same reason. 
I still shed a tear when I remember ...

I hope my explanation is undertsandable.

That said, I understand that some digital cameras with xD card slots will accept adapters to SD cards.
You wilol have to check your camera's manual or ask the OEM.

Check this video: https://www.youtube.com/watch?v=U9lNxOKAPoo

Thanks again ...

You're welcome.

Do let us know if you solved your problem.

Best,

A.

#7 Re: Hardware & System Configuration » hama usb 2.0 Card Reader 35 in 1 is not recognized » 2025-03-12 10:40:08

Hello:

Thank you ...

You're welcome.

Q1: No, I use a PC.

Laptops sometimes have power issues with card readers.

Q3: No, I inserted the reader without a card

Right.

Unfortunately, I don't have good news for you.

I was looking around this morning and it seems that your hardware, while it may work properly with MS OSs, may now need a different/specific driver module with the newer Linux kernels, it seems it did have issues with 2.6.x kernels.
Not unheard of and as we have seen, this reader does not have Linux support.

You can download the manual here: https://at.hama.com/webresources/articl … en_300.pdf

Although it does not state that Linux OSs are not supported, it clearly states:

Supported OS:
Windows 8/7Vista/VP/MAC OS 10.X.

That said, I found the official Hama site and the german language support page:  https://support.hama.com/

You will need the eight digit item number to search for the driver to download, if it is available.
It is probably on a sticker or printed somewhere in the case.

There is also a service and contact web page here: https://www.hama.com/de/de/service/kontakt-hotline
Maybe they can give you precise information with respect to your reader and Linux support.

I'm sorry I have not been able to help you further.

Let us know what you find out.

Best,

A.

#8 Re: Desktop and Multimedia » X11 recently failing to start the first time after boot » 2025-03-12 01:21:12

Hello:

fsmithred wrote:

1101HAB  Atom Z520 @1.33GHz  2G RAM and 128GB SSD

I see.
Seashell (?), larger screen (?) than mine.

fsmithred wrote:

Every new release gets bigger.

Yes.
I've noticed that.

Like I wrote in another non-related thread:

altoid wrote:

--- snip ---
Devuan Chimaera netinstall *.iso: 372.00 MB - UEFI installer: 00.754 MB
Devuan Daedalus netinstall *.iso: 477.80 MB - UEFI installer:  23.00  MB

30X more code has been added to the UEFI partition on the road between Chimaera and Daedalus.

Does anyone really know exactly what all that added code does?
--- snip ---

I'll stay with Chimaera then, maybe go for a backported kernel if I can find a justification for doing so.
The hardware will certainly not change so at some point in the future it may well be a good idea to roll a custom kernel for it and leave it at that.

The 1000HE is the best piece of portable hardware I ever purchased (used in 2011).

Thanks for the data.

Best,

A.

#9 Re: Desktop and Multimedia » X11 recently failing to start the first time after boot » 2025-03-11 20:40:55

Hello:

fsmithred wrote:

... daedalus on asus EEE with 686-pae kernel ...

An OT question, if I may: what Asus EEE model would that be?

I have been running my 1000HE (Intel N280 Atom / 2.0Gb) on Chimaera (5.10.0-0.deb10.16-686-pae) for a long while now and was wondering if it would make sense to move on to Daedalus.

Best,

A.

#10 Re: Hardware & System Configuration » hama usb 2.0 Card Reader 35 in 1 is not recognized » 2025-03-11 20:12:42

Hello:

Winnetou wrote:

Thanks ...

You're welcome.

Before we continue:
When posting a terminal printout, for easier reading, the text must be placed between code blocks.
eg:

code
printout text goes here
/code

That way what the reader sees is this:

printout text goes here

You can generate a pair of code blocks by clicking on [ code ] while editing / replying.

---

Now, with respect to your reader:

--- snip ---
[ 1755.552055] usb 1-3: new high-speed USB device number 5 using xhci_hcd
[ 1755.803573] usb 1-3: New USB device found, idVendor=0dda, idProduct=2005, bcdDevice= 1.9c      ### <----
[ 1755.803584] usb 1-3: New USB device strings: Mfr=1, Product=2, SerialNumber=3
[ 1755.803588] usb 1-3: Product: Hama Card Reader
[ 1755.803592] usb 1-3: Manufacturer: Hama Card Reader
[ 1755.803595] usb 1-3: SerialNumber: ABCD12345683
--- snip ---

1.
dmesg informs that your reader is id'd as idVendor=0dda, idProduct=2005, 0dda being the id of the OEM, Integrated Circuit Solution, Inc. and 2005 the id of their Datalux DLX-1611 16in1 Card Reader. In your case, it has been rebadged as a Hama Card Reader.

This means that you are not lacking a driver as it is recognised by the system and that the problem is (most probably) not the hardware.

--- snip ---
[ 1756.845648] scsi 9:0:0:0: Direct-Access     Hama     Card Reader   CF 1.9C PQ: 0 ANSI: 0 CCS
[ 1756.847337] scsi 9:0:0:1: Direct-Access     Hama     Card Reader   MS 1.9C PQ: 0 ANSI: 0 CCS
[ 1756.849084] scsi 9:0:0:2: Direct-Access     Hama     CardReaderMMC/SD 1.9C PQ: 0 ANSI: 0 CCS
[ 1756.850885] scsi 9:0:0:3: Direct-Access     Hama     Card Reader   SM 1.9C PQ: 0 ANSI: 0 CCS
--- snip ---

Here you see the different slots where the "35" are plugged in.
ie: CF, MMC/SD, MS, SM, etc.

Up to that point it seems that everything is as expected.

Q1: are you using a laptop/portable machine?
Q2: if so, were you running on main or battery power?
Q3: was there any card in the reader when you plugged it in?

If there was a card in the reader, please remove the card and repeat 2. without any cards in the reader.

ie:
sudo dmesg -w

... then plug in the reader and post the terminal printout as indicated.

Best,

A.

#11 Re: Hardware & System Configuration » hama usb 2.0 Card Reader 35 in 1 is not recognized » 2025-03-10 18:50:47

Hello:

Welcome to Devuan.

... USB 2.0 card reader 35 in 1.

Right.

I seem to recall that the Hama branded card readers did not play too well with Linux.
BTW: is it this one?

amazon wrote:

ALWAYS COMPATIBLE: Operating systems compatible with Windows 11/10/8/7/Vista/XP card reader if applicable. with update and Mac OS from 9.x or later. A USB cable for connecting to a PC/laptop/laptop is included.

Note that there's no mention of Linux support.

That said, let's see that we can do.

Please follow these instructions:

1.
With the reader unplugged from the box, please open a terminal and post the screen output of:

~$ uname -a 

and

~$ lsusb

This will tell us what version of Devuan* you are using and what USB devices are installed in your box/laptop.
* important information you should always post.

2.
Once you have done that, without closing the teminal do ...

~$ sudo dmesg -w

... making a note of the last line of the printout for reference.

Once you have done that, plug in your USB card reader and post the output of the printout after the last line you made a note of.

That will tell us what is happening in the system when you plug in the reader.
ie: if it is recognised or not and if so, the idVendor idProduct numbers.

We'll continue once you have done all that.

Best,

A.

#12 Re: Hardware & System Configuration » Brightness module? » 2025-03-10 18:23:08

Hello:

fsmithred wrote:

brightness.dpkg-dist is the saved copy of a new config file when the old one was kept in place

Starts to make sense.

/etc/init.d/brightness.dpkg-dist belongs to what is today a Daedalus installation.

But (IIRC) started as Jessie (!) and was dist-upgraded to ASCII and eventually Beowulf.
Then to a backported kernel and when Beowulf was about to be archived, almost directly to Daedalus via Chimaera.
This because the XFCE upgrade in Chimaera generated a totally unusable desktop environment.

I have to say that compared to anything MS branded I have had to deal with, it was smooth as silk.  8^ )

... if you have brightness.dpkg-dist but not brightness, then something is wrong.

I don't recall ever seeing brightness in the list of services printed out by service --status-all, much less messing with debconf which I don't have a clue about.

I checked my Asus 1000HE netbook (runs on a 32bit Chimaera) and service brightness status properly reports current and saved brightness and intel brightness levels and just like in my Chimaera VM, it cannot be stopped or started. But then it is only one LCD monitor, my Daedalus box runs three monitors with two NVidia cards with brightness levels controlled individually via the monitors' screen controls

My guess is that it does not report anything with service brightness status because it is a headless VM.
ie: no monitor.

So the problem (if one at all) would be the lack of a brightness service in my Daedalus installation, situation I cannot account for.
That said, besides the curiosity it generates, I have not experienced any issues.

fsmithred wrote:

Sorry, I have no other answers.

No problem, I look around and see if I catch something worth reporting.
If not, I'll may well leave it at that.

Edit:
I just realised that Daedalus is the first version of Devuan in which I installed the nouveau drivers for my NVidia cards.
Had no choice as there was no clear way to get the OEM drivers working in Linux.

Maybe that has something to do with the module not being present?

Thanks for your input.

Best,

A.

#13 Re: Hardware & System Configuration » Brightness module? » 2025-03-10 12:06:47

Hello:

fsmithred wrote:
$ apt-file find init.d/brightness

Yes, I had already found it there.

My Daedalus installation also has it:

~$ locate brightness
/etc/init.d/brightness.dpkg-dist
/etc/systemd/system/brightness.service
--- snip --- 
~$

But it is not a in the service status printout:

~$ sudo service --status-all | grep brightness
 [ ? ]  alsa-utils
 [ ? ]  binfmt-support
 [ ? ]  hwclock.sh
 [ ? ]  kmod
 [ ? ]  lpd
 [ ? ]  mount-configfs
 [ ? ]  networking
 [ ? ]  vboxautostart-service
~$ 

Q1: why do all these other services show up when I am not asking grep to find them?

Then this is the script I find in /etc/init.d:

~$ ls /etc/init.d/ | grep brightness
brightness.dpkg-dist
~$ 

Q2: why it is being started in my Chimaera headless VM but not in my Daedalus desktop installation?

The Chimaera VM does not have the same name for the /etc/init.d/brightness.dpkg-dist script.

root@chimaera:~# ls /etc/init.d | grep brightness
brightness
root@chimaera:~# 

 

The script in the Chimaera VM indicates the usage:

root@chimaera:~# cat /etc/init.d/brightness
#!/bin/sh
### BEGIN INIT INFO
# Provides:          brightness
# Required-Start:    $local_fs
# Required-Stop:     $local_fs
# Default-Start:     S
# Default-Stop:      0 6
# Short-Description: Save and restore brightness level between restarts.
# Description:       This script saves the brightness level between restarts.
#                    It is called from the boot, halt and reboot scripts.
### END INIT INFO

readonly SAVEFILE_PREFIX=/var/lib/initscripts/brightness

. /lib/init/vars.sh
. /lib/lsb/init-functions

do_invoke() {
	local rv=0 rc
	# ACPI (without explicit label)
	do_$1 '' \
	    /sys/class/backlight/acpi_video0/brightness \
	    /sys/class/backlight/acpi_video0/max_brightness
	rc=$?
	test $rc -lt $rv || rv=$rc
	# Intel
	do_$1 intel \
	    /sys/class/backlight/intel_backlight/brightness \
	    /sys/class/backlight/intel_backlight/max_brightness
	rc=$?
	test $rc -lt $rv || rv=$rc
	# could insert others using the same scheme here
	return $rv
}

do_status() {
	local label=$1 knob=$2 max=$3 file=$SAVEFILE_PREFIX${1:+.$1}
	test -e "$knob" || return 0

	MSG="Current${label:+ $label} brightness level is $(cat "$knob")"
	if test -f "$file"; then
		log_success_msg "${MSG}, saved value is $(cat "$file")"
		return 0
	fi
	log_failure_msg "${MSG}, there is no saved value"
	return 4
}

do_start() {
	local label=$1 knob=$2 max=$3 file=$SAVEFILE_PREFIX${1:+.$1}
	test -e "$knob" || return 0

	test x"$VERBOSE" = x"no" || \
	    log_action_begin_msg Initialising $label brightness level

	if test -f "$file"; then
		cat "$file" >"$knob"
	else
		cat "$max" >"$knob"
	fi
	local rv=$?
	test x"$VERBOSE" = x"no" || log_action_end_msg $rv
	return $rv
}

do_stop() {
	local label=$1 knob=$2 max=$3 file=$SAVEFILE_PREFIX${1:+.$1}
	test -e "$knob" || return 0

	test x"$VERBOSE" = x"no" || \
	    log_action_begin_msg Saving $label brightness level
	cat "$knob" >"$file"
	local rv=$?
	test x"$VERBOSE" = x"no" || log_action_end_msg $rv
	return $rv
}

case $1 in
(start|restart|reload|force-reload)
	do_invoke start
	;;
(stop)
	do_invoke stop
	;;
(status)
	do_invoke status
	;;
(*)
	echo >&2 "Usage: $0 {start|stop|restart|reload|force-reload|status}"   ##########   <----
	exit 3
	;;
esac
root@chimaera:~#

What is going on?

Best,

A.

#14 Hardware & System Configuration » Brightness module? » 2025-03-10 09:05:32

Altoid
Replies: 9

Hello:

I run Pi-hole in a headless Devuan Chimaera VM in my box:

root@chimaera:~# uname -a
Linux chimaera 5.10.0-9-amd64 #1 SMP Debian 5.10.70-1 (2021-09-30) x86_64 GNU/Linux
root@chimaera:~# 

The last Pi-hole upgrade (to 6.0.4) had a small issue and I had to remove the apparmor service (which was not running) for the upgrade to complete properly. Jury is still out there as to what was going on so it is a matter to be dealt with in another thread.

The thing is that while going over the service status list I found one which I did not know about and had never seen before:

root@chimaera:~# service --status-all
--- snip ---
 [ - ]  brightness
--- snip ---
root@chimaera:~# 

I have no idea how it got there.

I see it is all over:

root@chimaera:~# locate brightness
/etc/init.d/brightness
/etc/rc0.d/K01brightness
/etc/rc6.d/K01brightness
/etc/rcS.d/S12brightness
/etc/systemd/system/brightness.service
/usr/src/linux-headers-5.10.0-9-amd64/include/config/leds/brightness
/usr/src/linux-headers-5.10.0-9-amd64/include/config/leds/brightness/hw
/usr/src/linux-headers-5.10.0-9-amd64/include/config/leds/brightness/hw/changed.h
root@chimaera:~# 

But this is a headless VM installation and I never installed a desktop.
And it is certainly not a laptop.

The problem is that I cannot get rid of it.
Or do anything with it:

root@chimaera:~# service brightness status
root@chimaera:~# 
root@chimaera:~# service brightness start
root@chimaera:~# 
root@chimaera:~# service brightness stop
root@chimaera:~# 

Where did this come from?
How can I get rid of it?

Best,

A.

#15 Re: Forum Feedback » I can't believe you closed the Joke thread. » 2025-02-28 10:55:11

Hello:

golinux wrote:

Temporarily closing that thread ...

If you were to ask me (which you did not) I'd say it can stay that way.

Camtaf wrote:

No loss ...
... only once looked in to see ...

Yes, same here.
Just once.

I get my dose of humour here.

As always, YMMV.

Best,

A.

#16 News & Announcements » Chrome based browsers and uBlock Origin » 2025-02-24 18:44:28

Altoid
Replies: 8

Hello:

From today's edition of The Register:

Richard Speed @theregister.com wrote:

uBlock Origin dead for many as Google purges Manifest v2 extensions
Chrome ad blocker stopped working? Time to look elsewhere

Best,

A.

#17 Re: Hardware & System Configuration » ddr3 sdram upgrade » 2025-02-24 12:58:39

Hello:

... ddr3 sdram for my old lenovo w530 pc ...

Check the manual, specifically pages 13 and 82.

Edit:
You may also want to read this post at one of the better known thinkpad forums.

Best,

A.

#18 Re: Hardware & System Configuration » [SOLVED] sudoers.d file for ifup / ifdown » 2025-02-20 16:56:25

Hello:

fsmithred wrote:

... log out and log in ...

Of course ...  8^)

fsmithred wrote:

I use commas ...

You and everyone else knowing how to do this properly.

Solved.
It was the lack of a comma between the commands.

# cat /etc/sudoers.d/user_eth0
groucho ALL=(ALL) NOPASSWD: /sbin/ifup eth0, /sbin/ifdown eth0
# 
~$ sudo ifdown eth0
Killed old client process
Internet Systems Consortium DHCP Client 4.4.3-P1
Copyright 2004-2022 Internet Systems Consortium.
All rights reserved.
For info, please visit https://www.isc.org/software/dhcp/

Listening on LPF/eth0/00:14:4f:4a:a2:81
Sending on   LPF/eth0/00:14:4f:4a:a2:81
Sending on   Socket/fallback
DHCPRELEASE of 192.168.1.10 on eth0 to 192.168.1.1 port 67
~$ sudo ifup eth0
Internet Systems Consortium DHCP Client 4.4.3-P1
Copyright 2004-2022 Internet Systems Consortium.
All rights reserved.
For info, please visit https://www.isc.org/software/dhcp/

Listening on LPF/eth0/00:14:4f:4a:a2:81
Sending on   LPF/eth0/00:14:4f:4a:a2:81
Sending on   Socket/fallback
DHCPDISCOVER on eth0 to 255.255.255.255 port 67 interval 5
DHCPDISCOVER on eth0 to 255.255.255.255 port 67 interval 5
DHCPOFFER of 192.168.1.10 from 192.168.1.1
DHCPREQUEST for 192.168.1.10 on eth0 to 255.255.255.255 port 67
DHCPACK of 192.168.1.10 from 192.168.1.1
/sbin/dhclient-script: 88: cannot create /etc/resolv.conf: Operation not permitted
bound to 192.168.1.10 -- renewal in 13983 seconds.
~$ 

So much then for visudo -c ...  8^°
After all, it is a syntax error.

Thank you very much for your input.

Best,

A.

#19 Re: Hardware & System Configuration » [SOLVED] sudoers.d file for ifup / ifdown » 2025-02-20 16:41:28

Hello:

rolfie wrote:

Give that ...

Nope, no dice.

# cat /etc/sudoers.d/user_eth0
groucho ALL=(root) NOPASSWD: /sbin/ifup eth0  /sbin/ifdown eth0
# 
~$ sudo ifdown eth0
--- snip ---
Sorry, user groucho is not allowed to execute '/sbin/ifdown eth0' as root on localhost.
~$ 
~$ sudo ifup eth0
--- snip ---
Sorry, user groucho is not allowed to execute '/sbin/ifup eth0' as root on localhost.
~$ 

BTW: found this -> https://hackliza.gal/en/posts/cambiar_dns_linux/ to chew on
Never saw it before, probably because I was looking for /etc/resolv.conf in relation to connman or network-manager.

Thanks for your input.

Best,

A.

#20 Hardware & System Configuration » [SOLVED] sudoers.d file for ifup / ifdown » 2025-02-20 13:31:15

Altoid
Replies: 4

Hello:

Finally got fed up and decided to ditch connman and as there is no WiCD for the foreseable future (if there is such a thing), went for the time proven ifup / ifdown solution.

One less layer of abstraction or so it is said, can't be a bad thing.

To test things out, I disabled connman, checked all settings and verified that ifup eth0 and ifdown eth0 (as root) worked properly.
My cable connection comes up at boot time as expected.

But at one point I realised that, in spite of what my /etc/resolv.conf file read, I was back at my ISPs cable provider's DNS, so I ran chattr +i /etc/resolv.conf and that was it. Evidently ditching connman was not the solution.

And (by chance) I was actually able to verify it:

1. take down the connection:

# /sbin/ifdown eth0
Killed old client process
Internet Systems Consortium DHCP Client 4.4.3-P1
Copyright 2004-2022 Internet Systems Consortium.
All rights reserved.
For info, please visit https://www.isc.org/software/dhcp/

Listening on LPF/eth0/00:14:4f:4a:a2:81
Sending on   LPF/eth0/00:14:4f:4a:a2:81
Sending on   Socket/fallback
DHCPRELEASE of 192.168.1.10 on eth0 to 192.168.1.1 port 67
# 
[code]

2. bring up the connection:

[/code]
# /sbin/ifup eth0
Internet Systems Consortium DHCP Client 4.4.3-P1
Copyright 2004-2022 Internet Systems Consortium.
All rights reserved.
For info, please visit https://www.isc.org/software/dhcp/

Listening on LPF/eth0/00:14:4f:4a:a2:81
Sending on   LPF/eth0/00:14:4f:4a:a2:81
Sending on   Socket/fallback
DHCPDISCOVER on eth0 to 255.255.255.255 port 67 interval 3
DHCPDISCOVER on eth0 to 255.255.255.255 port 67 interval 6
DHCPOFFER of 192.168.1.10 from 192.168.1.1
DHCPREQUEST for 192.168.1.10 on eth0 to 255.255.255.255 port 67
DHCPACK of 192.168.1.10 from 192.168.1.1

/sbin/dhclient-script: 88: cannot create /etc/resolv.conf: Operation not permitted  ### WTHF is *this*?

bound to 192.168.1.10 -- renewal in 12402 seconds.
# 

Obviously, chattr +i /etc/resolv.conf was working properly.

I then opened up /sbin/dhclient-script to have a look.
Not in any way script savvy but this part of it immediately called my attention:

--- snip ---
# update /etc/resolv.conf based on received values     <---- #######?
  make_resolv_conf() {
      local new_resolv_conf
--- snip ---

According to jed, the whole snippet would be from line 39 to line 125 and it would seem (?) to be the routine that constantly overwrites /etc/resolv.conf.

Anyone have an idea on this?
I thought that disabling the connman service would be a solution but ...

But I digress ...
In order to avoid having to bring down the connection without being root, I made a file in /etc/sudoers.d:

# cat /etc/sudoers.d/user_eth0
groucho ALL=(ALL) NOPASSWD: /sbin/ifup eth0  /sbin/ifdown eth0
#

But it does not work and I don't understand why.

~$ sudo ifup
--- snip ---
Sorry, user groucho is not allowed to execute '/sbin/ifup' as root on localhost.
~$
~$ sudo ifdown
--- snip ---
Sorry, user groucho is not allowed to execute '/sbin/ifdown' as root on localhost.
~$

The file syntax is correct:

# visudo -c
--- snip ---
/etc/sudoers.d/user_eth0: parsed OK
--- snip ---
#

I then checked and saw that /sbin/ifup is a (dynamically linked) executable and that /sbin/ifdown is a symbolic link to /sbin/ifup but I have no idea how to get around that.

That said, I'd appreciate pointers on how to get the /etc/sudoers.d file working.

Best,

A.

#21 Re: Hardware & System Configuration » Devuan Daedalus: /i386-pc/normal.mod not found » 2025-02-19 18:48:04

Hello:

Update:

Altoid wrote:

... no way of knowing what caused the sudden death ...

Before opening it up, I decided to have a forensic look at the failed USB stick.

Always reported in dmesg as a Kingston DataTraveler 2.0 device, after going south it was reported as a GENERIC USB Mass Storage device, but there was also idVendor and idProduct data which I had not had a close look at.

--- snip ---
[12061.088773] usb 2-1.3: new high-speed USB device number 18 using xhci_hcd
[12061.216524] usb 2-1.3: New USB device found, idVendor=0c76, idProduct=0005, bcdDevice= 1.00
[12061.216531] usb 2-1.3: New USB device strings: Mfr=1, Product=2, SerialNumber=0
[12061.216535] usb 2-1.3: Product: USB Mass Storage
[12061.216538] usb 2-1.3: Manufacturer: GENERIC
[12061.221201] usb-storage 2-1.3:1.0: USB Mass Storage device detected
[12061.221381] scsi host8: usb-storage 2-1.3:1.0
[12062.249584] scsi 8:0:0:0: Direct-Access     GENERIC  USB Mass Storage 1.00 PQ: 0 ANSI: 4 CCS
[12062.249852] scsi 8:0:0:0: Attached scsi generic sg6 type 0
[12062.250232] sd 8:0:0:0: [sdg] Media removed, stopped polling
[12062.250651] sd 8:0:0:0: [sdg] Attached SCSI removable disk
--- snip ---

According to devicehunt.com:

idVendor=0c76    -> JMTek, LLC.
idProduct=0005    -> Transcend Flash disk

Not Kingston hardware.
Or so it would seem.

Unfortunately I don't have a complete dmesg printout for the USB stick before it failed, so I cannot say if it was reported with the proper id* codes but I am absolutely sure that it was reported as a Kingston DataTraveler 2.0 device and these should have been idVendor=0951, idProduct=1665.

So there may be a good chance that the dead USB stick may have not been a genuine Kingston device, hence its early? demise.
All I can say for it is that it worked perfectly well for many years.

Best,

A.

#22 Re: Hardware & System Configuration » Loading unneeded modules? » 2025-02-11 16:57:40

Hello:

stopAI wrote:

... read Debian wiki ...

No need, I know how to blacklist a kernel module.
My question was not "how to blacklist a module" but how to I could find out why these modules are being loaded.

Because whatever EEPROM resides in my box* is ID'd as read-only and I have never had  a joystick attached/installed.
* same box since ~ 2015, running on Devuan since ~ 2017

Thanks for your input.

Best,

A.

#23 Hardware & System Configuration » Loading unneeded modules? » 2025-02-11 15:35:59

Altoid
Replies: 2

Hello:

Running on Devuan Daedalus:

~$ uname -a
Linux devuan 6.1.0-31-amd64 #1 SMP PREEMPT_DYNAMIC Debian 6.1.128-1 (2025-02-07) x86_64 GNU/Linux
~$ 

At boot, dmesg prints out this:

~$ sudo dmesg
--- snip ---
[   24.257488] at24 0-0050: supply vcc not found, using dummy regulator
[   24.260227] at24 0-0050: 256 byte spd EEPROM, read-only
[   24.260817] at24 0-0051: supply vcc not found, using dummy regulator
--- snip ---
[   24.263031] at24 0-0051: 256 byte spd EEPROM, read-only
[   24.263475] at24 0-0052: supply vcc not found, using dummy regulator
[   24.264991] at24 0-0052: 256 byte spd EEPROM, read-only
[   24.265389] at24 0-0053: supply vcc not found, using dummy regulator
[   24.266865] at24 0-0053: 256 byte spd EEPROM, read-only
~$ 

And lsmod prints out this:

~$ lsmod
--- snip ---
joydev                 28672  0
--- snip ---
at24                   28672  0
--- snip ---
~$ lsmod

From what I understand (?) the at24 cannot be used in my system.
ie: 256 byte spd EEPROM, read-only

The kernel config file says ...

~$ cat /boot/config-6.1.0-31-amd64 | grep -i at24
CONFIG_EEPROM_AT24=m
~$ 

... that it is loaded as a module.

Same as joydev:

~$ cat /boot/config-6.1.0-31-amd64 | grep -i joydev
CONFIG_INPUT_JOYDEV=m
~$ 

The MB surely has an EEPROM, albeit read-only which the installer probably cannot ID as such.

With respect to joydev, I looked it up and it seems to be for joystick support which I don't need.
How can I find out if something in my box uses it?

If possible, I would like to keep those unused modules from loading.

Best,

A.

#24 Off-topic » Microcode » 2025-02-10 18:31:55

Altoid
Replies: 1

Hello:

A very interesting opinion article from The Register.

Rupert Goodwins @The Register wrote:

The biggest microcode attack in our history is underway
When your state machines are vulnerable, all bets are off

Best,

A.

#25 Re: Installation » Unable to install from the Excalibur netinstall ISO » 2025-02-05 11:50:40

Hello:

Lauwenmark wrote:

... result of using the ISO netinstall image ...

I recently had a very hard time with a couple of netinstall *.iso images, devuan_chimaera_4.0.0_amd64_netinstall.iso and daedalus/devuan_daedalus_5.0.1_amd64_netinstall.iso while attempting to install a basic Devuan to a small capacity USB stick.

Have a read here to see how I finally managed to get it done.
Dev1 admin's help was crucial, no way I would have found a way out of the problem I was having.

The thing is that (IMO) the Debian installer (not forked by Devuan) definitely has something wrong with it.
I seriously doubt the Debian devs will do anything about it.

I assume that you have already tried basic dd'ing the *.iso to a USB stick (no Ventoy, etc.), with the usual precautions.
ie: *.iso file SHA256SUM prior to burning to USB and installation media check before proceding with the installation.

I so, check here to see the process which allowed me to get the installer to start working.
And even so, it refused to write GRUB to the indicated location so I had to reboot the installer, drop to rescue mode and install it by hand.

While my box is a standard BIOS boot / non-UEFI workstation, it may solve your problem.

Please keep us posted on how you fare with this.

Best,

A.

Board footer

Forum Software