The officially official Devuan Forum!

You are not logged in.

#501 Re: Off-topic » I'm Back » 2023-12-13 12:01:27

Welcome back.

Just to note, I run daedalus with pure ALSA and firefox-esr but I have to run it under apulse for working audio. I do this by moving the binary /usr/lib/firefox-esr/firefox-esr to the filename firefox-esr.orig and then set it as a link to my start script (named firefox-esr.apulse). Here's that script:

#!/bin/sh
exec /usr/bin/apulse /usr/lib/firefox-esr/firefox-esr.orig "$@"

The only "problem" with it is that firefox-esr updates replaces the link with its new binary, so I need to repeat moving it and restoring the link after update.

#502 Re: Other Issues » [SOLVED] Problem with ca-certificates-java » 2023-12-13 03:04:23

Possibly you can installl openjdk-8-jdk-headless from ceres first ?

#503 Re: Desktop and Multimedia » [SOLVED] Firefox no sound. » 2023-12-09 23:19:11

Perhaps it gets better if you change "hw" to "plughw"... or maybe just remove that asound.conf (since it doesn't disagree with the default about which the default card is)

EDIT: note that the difference between "hw" and "plughw" is the absence/presence of audio format translations. "hw" tells ALSA to channel audio direclty to the card without translations while "plughw" tells it to insert audio format conversions as needed.

#504 Re: Installation » Will the netinstall (daedalus) install nonfree wifi drivers for me? » 2023-12-08 11:36:08

All installer ISO include (on the ISO) all firmware available in the repositories.

Choose the "1 Install" method.

#505 Re: Off-topic » Programs that live their own lives. » 2023-11-30 09:58:20

"ManSpeed" ?

That looks like a "portmonnaie" word of MinSpeed and MaxSpeed.

There is a "man synaptics" to read.

#506 Re: Installation » all the new kernel disturb some old PC's! » 2023-11-27 01:32:19

And of course Debain bookworm, which underpins Devuan daedalus, had that major repository change of moving all firmware into the new non-free-firmware section. That change still causes confusion for everyone who whould expect only the traditional repository point changes at an upgrade.

In other words, there need to be a sources.list line naming the non-free-firmware section, e.g. by itself, like:

deb http://deb.devuan.org/merged daedalus non-free-firmware

or together with other sections, for example like

deb http://deb.devuan.org/merged daedalus main contrib non-free-firmware

All Devuan derivatives are likely to have the same issue.

#507 Re: Freedom Hacks » Anyone know how to make a usb mouse work? » 2023-11-20 05:45:42

Unplug the mouse, run "tail -f /var/log/syslog > capture.log", then plug in the mouse and then type ctrl-C to stop the tail. Then drop in the log into a code box here.

#508 Re: Desktop and Multimedia » are you happy with all the old and new wm's for simple small distros? » 2023-11-15 19:29:00

"file manager"?
That's quite a useless piece of software.
It's so much easier to just type commands in a terminal (window).

#509 Re: Desktop and Multimedia » Strategies to deal with .xsession-errors » 2023-11-11 03:46:57

1. Yes: sudo umount $HOME/.xsession-errors un-does the mount and brings back the old $HOME/.xsession-errors file... (you may want to remove it and then "touch the pathname" before you mount so it comes back without any random old log lines)

2. For this option, you'd need to create that $HOME/bin/logrot.sh script, make it executable, and then edit crontab to have that line (or your preferred variant thereof). This option only keeps a single backup named $HOME/.xsession-errors.1 as it reuses that pathname each time.

3. For this option you'd need to install logrotate and then configure that.. as per its "man" pages. I don't know exactly.

#510 Re: Desktop and Multimedia » Strategies to deal with .xsession-errors » 2023-11-10 22:49:37

1. One option is to mount /dev/null onto it, like

sudo mount -obind /dev/null $HOME/.xsession-errors

Though doing this will discard all errors as they occur and that might be too forceful.

2. Another option is to drop a small script into $HOME/bin/logrot.sh, like

#!/bin/sh
#
# This script limits a file to a given number of lines, by moving it
# to a backup name when longer.
#
# $1=filename
# $2=max number of lines (defaults to 1000)

[ -r "$1" ] || exit 1 # The pathname is not readable
[ $(wc -l < $1) -lt ${2:-1000} ] && return 0 # The file is short enough
mv $1 $1.1 && touch $1 # Back it up and leave an empty

and then also add a crontab -e entry like this

37 5 * * * $HOME/bin/logrot.sh $HOME/.xsession-errors 2000

so as to run that script once a day (at 5:37) and then "rotate" the file if it is longer than 2000 lines.

3. Another option is to use something like logrotate and configure that to bother about your $HOME/.xsession-errors

#511 Re: Desktop and Multimedia » [SOLVED] Firefox no sound. » 2023-11-05 20:43:08

"Firefox" needs to be run by "apulse" so as to direct its audio through pure ALSA.
E.g. insert "apulse" first on the "Exec" line of the ".desktop" file(s) in use for starting "firefox".

#512 Re: Installation » Install from Ventoy » 2023-11-05 20:33:43

Yeah, the core problem is that the ISO is not available as a mountable partition to the installer, but instead the installer would need to search for it as an image file among the available drives and partitions. It's a whole new use case collective that the installer is (was) not prepared for.

Otoh it's not terribly complicated to add such a search to it; possibly something coming out sooninsh.

#513 Re: Installation » Install from Ventoy » 2023-11-03 01:19:27

Having had a sniff at Ventoy I see that it uses an exfat filsystem, which is not included in preamble.gz. Perhaps it's sufficient to add that ...

EDIT: no it's not sufficient.

#514 Re: Installation » Install from Ventoy » 2023-11-02 23:13:46

Camtaf wrote:

.. each distro is added to the Ventoy start menu, from which you start the desired distro..

The daedalus ISO offers a menu of alternative boot methods; does "start the desired distro" start with presenting that menu?

The ISO is further a hybrid ISO with 3 separate boot equipments that cater for different use cases: whether the media is presented as a harddisk or a cdrom and whether the boot loading is by legacy or UEFI bios. Which use case does Ventoy present?

Evidently Ventoy is able to start a kernel (which kernel?) and unpack the preamble.gz of the daedalus ISO. Then the init script of that fails to find the partition.

For sure, that init script could be improved to scan for image files and loop-back mount that for loading the actual installer (initrd.gz) and also for again, later presenting the ISO as block device for that installer. Is anyone up for assisting with making such script improvement?

E.g. at the emergency shell, install the loopback module with max_part=16, then mount the partition containing ISOs, then loopback mount daedalus as isofs (might need to load the module first), then unpack its /boot/isolinux/initrd.gz onto /target. After that it's just a matter of switching to /target as root filesystem (though with certain environment passed on)... You can inspect the current /init script of preamble.gz or at the emergency shell prompt to get an idea.

#515 Re: Hardware & System Configuration » no sound on gnuinos » 2023-11-02 00:13:26

Just for the wider audience: it' not a good idea to redefine the "hw" PCM. (If it works for you then you should keep it)

The most common way to set the default card is by an ~/.asoundrc or ~/.config/alsa/asoundrc with content

defaults.pcm.card 1
defaults.ctl.card 1

Of course, that applies for that user only. A system-wide setting would be to add the same in /etc/asound.conf (or any of the other places that ALSA configuration loader looks in).

#516 Re: Hardware & System Configuration » no sound on gnuinos » 2023-11-01 11:10:37

I guess you mistakenly copied his ".asoundrc" and replaced "hw" with "plughw"... that's not what to do.
Rather you should use my (last) suggested ".asoundrc" to make sure the right card is selected for audio output. Then use "aplay -D plughw ..." for playing, because that PCM has audio format translations to map any input format into the format "hw" needs. ("plughw" channels audio to/from "hw" as its slave PCM)

EDIT: I'm not good at guessing and confused myself about "amixer" vs "aplay". There is no "plughw" CTL, and one would rather use amixer with the "hw" CTL. I.e., playback to "plughw" with mixer controls for "hw"

#517 Re: Hardware & System Configuration » no sound on gnuinos » 2023-11-01 08:08:26

You'd probably be better off playing on "plughw" rather than "hw" as it includes audio format translations.

But, when the card selection is done, the next is to look at the amixer settings.

#518 Re: Hardware & System Configuration » no sound on gnuinos » 2023-10-31 20:33:42

I was wrong and too sloppy to actually test my suggestion.
It should really say

defaults.pcm.card 1
defaults.ctl.card 1

There is the tool qasconfig that presents the raw current ALSA configuration. I find it somewhat useful on occation (even if I don't fully understand it), but it in particular tells the configuration effect  of changes to ~/.asoundrc.

EDIT: corrected to say qasconfig as it should have been.

#519 Re: Hardware & System Configuration » no sound on gnuinos » 2023-10-31 11:07:48

The "problem" is that the machine has 2 cards and the ALSA default setup uses card 0 for playback.
The remedy is to change that to use card 1.
One way to do that (when there is a single user involved) is to make a file ~/.asoundrc that contains such reassignments, e.g.:

pcm.!default card 1
ctl.!default card 1

Note that the file allows comments as lines starting with '#'.

Read more about it at https://www.alsa-project.org/wiki/Asoundrc

EDIT: "pcm" refers to the audio channels (playback and recording) whereas "ctl" refers to "control knobs". ALSA is hugely configurable with an overly flexible configuration language and I believe anyone trying to delve into it very quickly enters into a state of deep confusion. Unfortunately.

#520 Re: Installation » [SOLVED] Fujitsu Lifebook U728 + Devuan 4 » 2023-10-29 09:03:14

That'd raise the firewall regardless of the administration command, i.e. both "start" and "stop", which might not be ideal.

And, for dnsmasq, remember youl'll need to configure its upstream as it otherwise would want to use /etc/resolv.conf.

#521 Re: Installation » Systemd-boot(it's actually not tied to systemd) possible in devuan? » 2023-10-26 01:42:56

The first "point of call" for packages could be like:
  https://pkginfo.devuan.org/systemd-boot
  https://pkginfo.devuan.org/systemd-boot-efi
Those packages are in the repo without forking since chimaera.

#522 Re: Installation » Systemd-boot(it's actually not tied to systemd) possible in devuan? » 2023-10-23 22:38:39

Why the hell do you all insist on filling the forum with repetitions of previous posts.. in full or in parts. Are you all pre-schoolers? Do you think people can't read and remeber for a few seconds?

#523 Re: Off-topic » Is systemd still bad in 2023? » 2023-10-23 22:26:18

Fair enough; though that storyline that "systemd fixed something unsustainable for developers" is and was just plain marketing speech, and it's far off any reality. But the proponents sure filled the web with that thought so it's voiced failry commonly.

#524 Re: Installation » Install from Ventoy » 2023-10-21 23:29:27

I don't know whether ventoy keeps the ISO as a partition, and if not, you have more thorny path ahead of you. Basically you'll need to ensure the ISO partition is appropriately labelled DEVUAN501.

Technically it would be possible to patch a ventoy ISO copy (as file image) to be legacy bios bootable without the preamble stage, but UEFI boot requires the preamble and the ISO as a duly labelled partition.

#525 Re: Other Issues » video not waking up after suspend » 2023-10-21 01:37:43

Yes Xorg has gone through a couple of steps through partially defunct versions. This originates in the sudden fork need when debian tied Xorg to systemd as way of supporting the use case of "non-root process owner without direct access to input device nodes". The solution was to interact over dbus with logind for mediating input access  and thereby draw Xorg into the systemd  web of entanglement.

The immediate fork remedy was to instead use libseat and offer the alternatives of using seatd as well as logind (over dbus) for input mediation, as well as including a "built-in" variant for system cases where the non-root user does have direct input access.. This forking task has taken a couple of iterations to stabilize. Supposedly it's now in good working condition.

Board footer

Forum Software