The officially official Devuan Forum!

You are not logged in.

#51 Re: Desktop and Multimedia » (alsa) changin soundcard easily via terminal » 2025-09-22 13:49:19

Have you tested this method?

It works without problems.

If a problem occurs, the user can restart mpv player.

#52 Re: Desktop and Multimedia » (alsa) changin soundcard easily via terminal » 2025-09-22 12:29:36

If you have two ALSA configs with different default devices, you can toggle them with a mouse click. What is needed is a simple bash script and a Desktop launcher.
Example is here:
_https://dev1galaxy.org/viewtopic.php?pid=57177#p57177
It was designed for a Linux Mint user who wanted to switch from a Bluetooth headphones to Intel HDA codec (and other way round) with a mouse click.

The magic commans:

cp $HOME/.asoundrc-BT $HOME/.asoundrc 

cp $HOME/.asoundrc-HDA $HOME/.asoundrc 

cp means "copy".

$ alsamixer -h
Usage: alsamixer [options]
Useful options:
  -h, --help              this help
  -c, --card=NUMBER       sound card number or id
  -D, --device=NAME       mixer device name
  -m, --mouse             enable mouse
  -M, --no-mouse          disable mouse
  -f, --config=FILE       configuration file
  -F, --no-config         do not load configuration file
  -V, --view=MODE         starting view mode: playback/capture/all
Debugging options:
  -g, --no-color          toggle using of colors
  -a, --abstraction=NAME  mixer abstraction level: none/basic

#53 Re: Installation » Cant do upgrade Dadedalus to Ceres » 2025-09-22 11:16:56

You are avoiding to answer the question, because you are not going to take any responsibility for your statements, because you cannot trust them.

EDIT:

Would you trust a security expert who does not trust his senses and his ability to think?

#54 Re: Installation » Cant do upgrade Dadedalus to Ceres » 2025-09-22 10:49:38

If you do not trust your senses and your ability to think, your statements can be dismissed as lunatic ravings or a sort of bullshit.

#55 Re: Installation » Cant do upgrade Dadedalus to Ceres » 2025-09-22 09:25:09

1. If ALSA is so good, why do you need pulseaudio or pipewire?

2. Do you trust your senses and your ability to think?

#56 Re: Installation » Cant do upgrade Dadedalus to Ceres » 2025-09-21 20:44:56

There was no need to know that there was a sound system, because it worked out of the box. But with ALSA, one has to learn something.

Pulseaudio was created to fix problems with ALSA.
Pipewire was created to fix problems with pulseaudio.

The problems began with ALSA, because it is "advanced".

APT is also "advanced".

Advanced Package Tool (APT)

APT was originally designed as a front end for dpkg to work with Debian's .deb packages.
_https://en.wikipedia.org/wiki/APT_(software)#Variants

#57 Re: Installation » Cant do upgrade Dadedalus to Ceres » 2025-09-21 19:26:48

stultumanto wrote:

I first started using Debian in 2000

Did you have problems with sound and sound quality in 2000? Or it worked out of the box?

#58 Re: Packaging for Devuan » different versions of same package, kicad » 2025-09-18 13:34:16

If you cannot compile, you may try Ubuntu debs from PPA
_https://launchpad.net/~kicad/+archive/ubuntu/kicad-9.0-releases

DEBs:
_https://launchpad.net/~kicad/+archive/ubuntu/kicad-9.0-releases/+packages
_https://ppa.launchpadcontent.net/kicad/kicad-9.0-releases/ubuntu/pool/main/k/
_https://ppa.launchpadcontent.net/kicad/kicad-9.0-releases/ubuntu/pool/main/k/kicad/kicad_9.0.3-0~ubuntu24.10.1_amd64.deb

Deb packages can be repacked and renamed without compilation.

You may also try to compile:

$ dget --extract --allow-unauthenticated https://launchpad.net/ubuntu/+archive/primary/+sourcefiles/kicad/9.0.3+dfsg-1/kicad_9.0.3+dfsg-1.dsc
dget: retrieving https://launchpad.net/ubuntu/+archive/primary/+sourcefiles/kicad/9.0.3+dfsg-1/kicad_9.0.3+dfsg-1.dsc
...
dpkg-source: info: extracting kicad in kicad-9.0.3+dfsg
dpkg-source: info: unpacking kicad_9.0.3+dfsg.orig.tar.xz
dpkg-source: info: unpacking kicad_9.0.3+dfsg.orig-doc.tar.xz
dpkg-source: info: unpacking kicad_9.0.3+dfsg-1.debian.tar.xz
dpkg-source: info: using patch list from debian/patches/series
dpkg-source: info: applying fixes/Adjusting-content-in-the-desktop-files.patch
dpkg-source: info: applying reproducibility/doc-Add-field-revdate-to-asciidoc-files.patch
dpkg-source: info: applying debian-hacks/KiCadFullVersion-Drop-hyphen-in-the-string.patch
dpkg-source: info: applying fixes/demos-Adjust-MIME-encoding-to-UTF8-of-some-libraries.patch
dpkg-source: info: applying fixes/python-Use-raw-strings-expressions.patch
$ ls -1
kicad-9.0.3+dfsg
kicad_9.0.3+dfsg-1.debian.tar.xz
kicad_9.0.3+dfsg-1.dsc
kicad_9.0.3+dfsg.orig-doc.tar.xz
kicad_9.0.3+dfsg.orig.tar.xz

Read the Build-Deps:

cat kicad-9.0.3+dfsg/debian/control

Install the Build-Deps

Rename the package (in debian/control)

Rename the binary

$ cat kicad-9.0.3+dfsg/CMakeLists.txt | grep project\(
project( kicad )

cd to SourceDir

cd kicad-9.0.3+dfsg

And compile it with

dpkg-buildpackage -us -uc -b

You may also want to read the manual:
_https://wiki.debian.org/CreatePackageFromPPA

#59 Re: Packaging for Devuan » different versions of same package, kicad » 2025-09-17 20:27:17

/usr/local/bin is the standard solution.

cmake -D CMAKE_INSTALL_PREFIX=/usr/local  < + other options: -S (sourcedir), etc.>

However, debhelper (Devuan) does not permit /usr/local/bin (by default).
Though, there is a secret esoteric command to force debhelper to permit prefix=/usr/local
In any case, it is much easier to package it manually, or with CPack .
You may want to rename the deb package, and ProjectName

project( )  is inside CMakeLists.txt

To compile it, you need cmake and ninja

Portable CMake is available here:
_https://github.com/Kitware/CMake
Portable Ninja is available here:
_https://github.com/ninja-build/ninja

PKGBUILD:

build() {
  cmake \
    -B build \
    -S "$pkgname" \
    -G Ninja \
    -D CMAKE_BUILD_TYPE=Release \
    -D CMAKE_INSTALL_PREFIX=/usr \
    -D KICAD_USE_EGL=ON \
    -D KICAD_USE_BUNDLED_GLEW=OFF \
    -D KICAD_BUILD_I18N=ON \
    -D KICAD_I18N_UNIX_STRICT_PATH=ON \
    -D KICAD_BUILD_QA_TESTS=OFF \
    -D KICAD_USE_CMAKE_FINDPROTOBUF=0 \
    -W no-dev

  cmake --build build
}

package() {
  DESTDIR="$pkgdir" cmake --install build

  strip "$STRIP_SHARED" "${pkgdir}"/usr/lib/python*/site-packages/_pcbnew.so
}

_https://archlinux.org/packages/extra/x86_64/kicad/
_https://gitlab.archlinux.org/archlinux/packaging/packages/kicad
_https://gitlab.archlinux.org/archlinux/packaging/packages/kicad/-/blob/main/PKGBUILD?ref_type=heads

EXAMPLE for cmake+ninja
_https://dev1galaxy.org/viewtopic.php?id=7175

#60 Re: Off-topic » Opinions about keypassXC » 2025-09-16 12:35:33

Perhaps, you failed to compile something with CMake. Was it keypassXC ?

Is it about sour grapes?
_https://read.gov/aesop/005.html

#61 Re: Freedom Hacks » apt seems to be a sort of "unstable wrapper" » 2025-09-15 15:47:39

Do you think that it is the simplest solution?

You may not use your gksu.sh with file. mediainfo, and the like.

So that, one desktop launcher, and one script which can be modified for the current needs.
You can simply uncomment the command you need.
NOTE: Filenames and paths with spaces should be supported.

If it is about security, then

Exec=gksu.sh /usr/bin/apt-get install %f

Linux Mint has two different apt

/usr/bin/apt
/usr/local/bin/apt

_https://github.com/linuxmint/mintsystem/blob/master/usr/local/bin/apt

greenjeans wrote:
Terminal=true

This is not acceptable. It should be like this:

Terminal=false

Terminal should be opened by a bash script named, for example, "deb_installer".
Terminal should remain open after apt-get exits, for it might be needed to fix problems. It should be under your control.
Paths with spaces should be supported.
USAGE: Right click on a deb file and select "deb_installer". It opens a terminal, and runs sudo /usr/bin/apt-get install <path to your deb> on it.

If you do not know how to open terminal from bash script and run commands on it, you may try to think. It is not difficult, if you trust your ability to think.

The complexity level of this problem is, let us say, "Ubuntu newbie".

Hint: mate-terminal -e <command>

If you pretend to be more intelligent than AI, you may try to solve this problem.

There are many experts on security, on sound, on ALSA, and on everything else, who cannot write a simple script and cannot compile anything. Such "universal experts", as a rule, have affinity to censorship. This affinity can manifest in various ways, from individual tendencies to participate in online content moderation to governmental actions that suppress certain forms of speech.

Because of pulseaudio, systemd, and pipewire, many users left Linux. As a result, the percentage of "universal experts" on Linux forums has significantly increased. They know little about Linux, but they can censor everything.

The problem is that such "universal experts" tend to overestimate their knowledge and underestimate their ignorance. To protect their overblown ego from the reality that challenges it, they have to censor everything they do not understand. That is why, they often attempt to censor jokes. For the same reason, they hate AI and strive to abolish it. Though there might also be economic reasons for AI hate. The "universal experts" may feel that they can be replaced by AI in the same way as Luddites were replaced by machines during the Industrial Revolution. They have to fear AI, because they do not trust their ability to think. To be enslaved by fear, one must relinquish trust in his God-given ability to think.

NOTE: The ability to think is a gift from God. However, if you trust the gifts from God, the Trotskyists and pseudo-Buddhists may diagnose you with "delusional arrogance on steroids".

Pseudo-Buddhism is a religion for slaves who can be replaced by AI. In contrast, authentic Buddhism emphasizes personal responsibility, ethical conduct, critical thinking, and the pursuit of wisdom. Critical thinking, exemplified in teachings like the Kalama Sutta, encourages independent inquiry rather than blind faith, while wisdom, the ultimate goal, is developed through a combination of ethical living and mental discipline.

If you don't trust your ability to think, the gift from God, you are a slave of the Devil.

#62 Re: Freedom Hacks » apt seems to be a sort of "unstable wrapper" » 2025-09-15 15:02:32

If you do not know how to write such script (that is,  a GUI-less substitute for gdebi, a sort of timesaver), you may try to think.

The same method can be used to run media files with CLI aps, e.g., aplay, mplayer, ffplay and the like, or with scripts (e.g, to resample waves with pcm_conv).

#63 Re: Freedom Hacks » apt seems to be a sort of "unstable wrapper" » 2025-09-15 10:00:27

when packages get in a real mess it also lacks the full features of apt to unbreak things.

Since apt is a sort of "unstable wrapper", it may lacks the full features of apt-get to unbreak things.

#64 Re: Freedom Hacks » apt seems to be a sort of "unstable wrapper" » 2025-09-15 01:53:09

Why not a simple solution? A bash script with one command inside (as a substitute for gdebi).

For example:

mate-terminal -e <command>

To install a "local .deb" with dependencies, you can use apt or apt-get

A user-friendly GUI-less substitute for gdebi

1. a very simple bash script (e.g., three lines of code)

2. desktop launcher for this bash script

Right click on a deb file and select "install deb".
It opens a terminal, and runs sudo /usr/bin/apt-get install <path to your deb> on it.

It is much more user-friendly than gdebi

apt-get does not need a gui, it can be used as is.

#65 Re: Freedom Hacks » apt seems to be a sort of "unstable wrapper" » 2025-09-14 23:20:10

There are "security experts", who cannot write simple scripts, and cannot compile anything.

#66 Re: Freedom Hacks » apt seems to be a sort of "unstable wrapper" » 2025-09-14 22:45:01

Try "su" to root, then "apt" or "dpkg".

It seems that you do not know how to write a simple script.

#67 Re: Freedom Hacks » apt seems to be a sort of "unstable wrapper" » 2025-09-14 17:58:38

The standard solution:

1. bash script with one simple command inside

2. desktop launcher for it

Right click on a deb file and select "install deb".
It opens a terminal, and runs "sudo dpkg -i <your deb>" on it.

gksu is not needed.

"local .deb packages" can be installed with "dpkg" or with "apt" (together with dependencies, if available) similar to "gdebi".

#68 Re: Desktop and Multimedia » [SOLVED] devuan (fresh install) noticeably slow compared to debian » 2025-09-14 15:02:56

If your experiment cannot be reproduced it is a sort of myth.

Can you provide an exact step-by-step instruction how to reproduce your experiment?

#69 Re: Freedom Hacks » apt seems to be a sort of "unstable wrapper" » 2025-09-14 12:44:23

To create a useful GUI, one may need a secret esoteric knowledge of ergonomics.

What Are Principles of Ergonomics in UI Design?
_https://www.flowmapp.com/blog/qa/principles-of-ergonomics-in-ui-design

The interface should be designed taking into account the individual characteristics of the user, starting from their physical and cognitive abilities, and ending with their needs and goals.
_https://www.flowmapp.com/blog/qa/principles-of-ergonomics-in-ui-design

Another approach is to explain the user that Linux terminal may help against dementia.

Linux Terminal and Cognitive Health

Recent discussions have emerged regarding the potential cognitive benefits of using the Linux terminal and similar computing environments. While there isn't direct evidence linking Linux terminal usage specifically to dementia prevention, engaging with technology, including command-line interfaces, may contribute positively to cognitive health.

Cognitive Engagement and Technology Use

    Mental Stimulation: Using the Linux terminal requires problem-solving skills, critical thinking, and memory, which can help keep the brain active. Engaging in mentally stimulating activities is known to be beneficial for cognitive health.

    Learning New Skills: Mastering the Linux terminal involves learning new commands and scripting, which can enhance cognitive flexibility and adaptability. Continuous learning is associated with a lower risk of cognitive decline.

    Social Interaction: Many Linux users participate in online communities, forums, and collaborative projects. Social engagement is another factor that can help protect against dementia.

Related Research on Technology and Dementia

A study indicated that older adults who regularly used the internet had about half the risk of developing dementia compared to non-users. This suggests that regular engagement with technology, including potentially using the Linux terminal, could be beneficial for cognitive health.

Summary of Benefits

Aspect:    Potential Benefits
Mental Stimulation:     Enhances problem-solving and critical thinking
Learning Opportunities:    Promotes cognitive flexibility and adaptability
Social Engagement:    Builds connections and reduces isolation

Engaging with the Linux terminal can be a part of a broader strategy to maintain cognitive health, especially when combined with other healthy lifestyle choices. While more specific research is needed to establish a direct link between Linux terminal use and dementia prevention, the cognitive engagement it fosters is undoubtedly valuable.

One of the Seven Steps to Protect Your Cognitive Vitality is to keep learning and stimulating your brain throughout life. The internet has become a major source of information and a convenient method of communication via email, social media, and virtual meetings. In a recent study, older people who regularly used the internet had approximately half the risk of dementia compared to non-regular users of the internet.
_https://www.alzdiscovery.org/cognitive-vitality/blog/can-using-the-internet-protect-from-dementia
_https://www.alzdiscovery.org/cognitive-vitality/first-steps

The Linux terminal invokes a certain mode of thinking that helps to solve problems. The command-line interface (CLI) promotes a more structured and logical problem-solving approach by requiring users to be explicit and understand cause-and-effect relationships between commands and their outputs. This text-based interaction encourages a deep understanding of system operations, fosters skills in breaking down complex tasks, and develops a powerful efficiency in performing intricate operations that might be slower in a graphical interface.

#71 Re: Freedom Hacks » apt seems to be a sort of "unstable wrapper" » 2025-09-13 14:14:39

Do you know why cybernetics has always been hated by Trotskyists and pseudo-Buddhists?

According to cybernetics, the control mechanism must possess sufficient complexity to match or exceed the complexity (or "variety") of the system and its environment to maintain control and achieve desired outcomes. If the controller is less complex, it cannot effectively manage the system's dynamics, according to Ashby's Law of Requisite Variety
_https://en.wikipedia.org/wiki/Variety_(cybernetics)

For a similar reason, a sophisticated system requires much more sophisticated technical documentation. That is why, perhaps, Debian documentation is a body of esoteric scriptures containing secret or inner knowledge intended for a select group of initiates, rather than the general public. Debian wiki and man pages have multiple layers of meaning that can only be grasped by the initiated who can read between the lines and understand the hidden or implicit meaning in something that is not explicitly stated.

systemd, pulseaudio, pipewire, user-friendly frontends (such as apt and the like) are unnecessarily (or even harmful) complications of the system.

Have you noticed that it is much easier to create a Debian package without the help of debhelper?
Examples:
_https://dev1galaxy.org/viewtopic.php?id=7214
_https://dev1galaxy.org/viewtopic.php?id=7224
Try to read _https://manpages.debian.org/testing/debhelper/debhelper.7.en.html

The question is, therefore, What does the word "helper" mean in this context?

The Hebrew word "ezer" (עֵזֶר - pronounced "ayzer") means a strong, powerful helper, an ally, a protector, or even a rescuer, not a weak or subordinate one. Often translated as "help" or "helper," it implies a necessary, superior aid. The word emphasizes strength and support and is most frequently used in the Bible to describe God as the ultimate ezer for humanity.

It is a symbolic statement of superiority. Debian users are treated as helpless and ignorant. The invocation of the archetypal symbol is misused to exercise symbolic violence (in terms of Pierre Bourdieu).

NOTE: Invoking archetypal symbols to exercise symbolic violence means using deeply ingrained, often unconscious, symbols to legitimize and perpetuate social hierarchies and power imbalances, making them seem natural rather than a product of specific social conditions. This misuse of symbols, which are presented as universal or self-evident, serves to obscure the true power dynamics, elicit "consent" from the dominated, and ultimately maintain the existing social order without overt physical force, according to Bourdieu.
_https://en.wikipedia.org/wiki/Pierre_Bourdieu
What is special about pseudo-Buddhists is that they often engage in a form of symbolic violence that may look rather primitive and unsophisticated.

Man's achievements rest upon the use of symbols.... we must consider ourselves as a symbolic, semantic class of life, and those who rule the symbols, rule us.
Alfred Korzybski, Science and Sanity. 1933; Lancaster (Penn.) 1941.
See also: _https://en.wikipedia.org/wiki/Alfred_Korzybski#Anecdotes

It might be obvious that power operates through symbols, meanings, and social constructs to influence and shape reality. What is not obvious is that it can effectively operate through seemingly neutral symbols and shared understandings. Pierre Bourdieu argued that symbolic power, exercised through language and culture, allows dominant groups to legitimize their authority by imposing meanings and classifications that are perceived as natural and legitimate by society, a process he termed symbolic violence. Language serves as a primary vehicle for this power, as dominant linguistic norms, accents, and styles are presented as legitimate, thereby reinforcing social hierarchies and marginalizing other forms of speech and culture. This power operates not through physical coercion but by shaping people's perceptions and behaviors, leading to the misrecognition and internalisation of existing power structures as normal or just.
_https://en.wikipedia.org/wiki/Pierre_Bourdieu

In plain words: debhelper belongs to the same category of crap as systemd, pulseaudio, and pipewire. The users are forced, by means of symbolic violence, to perceive this crap as natural, legitimate, and indispensable.

#72 Re: Freedom Hacks » apt seems to be a sort of "unstable wrapper" » 2025-09-12 21:30:26

I have Devuan5

$ inxi -b | grep Host -A1
  Host: devuan Kernel: 6.1.0-39-amd64 arch: x86_64 bits: 64 Desktop: MATE
    v: 1.26.0 Distro: Devuan GNU/Linux 5 (daedalus)
$ man apt | grep devuan1
APT 2.6.1devuan1         05 April 2020             APT(8)

It seems that "man" is "outdated in-progress".

$ apt --version
apt 2.6.1devuan1 (amd64)
man apt | grep depends

does not print anythings.

$ apt rdepends wxmaxima
wxmaxima
Reverse Depends:
  Suggests: education-mathematics
  Recommends: science-mathematics

The command:

man apt | grep rdepends

prints nothing.

apt is "work in progress", and, therefore,

apt full-upgrade

is recommended to use instead of

apt-get dist-upgrade

_https://www.debian.org/releases/trixie/release-notes/upgrading.html#upgrading-the-system

4.4.6. Upgrading the system

# apt full-upgrade

Linux Mint has own apt wrapper

_https://github.com/linuxmint/mintsystem/blob/master/usr/local/bin/apt

This is the Linux Mint "apt" command.

This commands acts as a wrapper for the APT package manager and many other useful tools such as apt-get, apt-cache, apt-mark, dpkg, aptitude...etc.

It is installed in /usr/local/bin/apt. To use the upstream apt command directly type /usr/bin/apt.

#73 Re: Freedom Hacks » apt seems to be a sort of "unstable wrapper" » 2025-09-12 19:34:25

apt has undocumented options, for example: depends; build-dep; -s, --simulate

man apt | grep depends
$ apt depends wxmaxima
wxmaxima
  Depends: libc6 (>= 2.34)
  Depends: libgcc-s1 (>= 3.3.1)
  Depends: libstdc++6 (>= 11)
  Depends: libwxbase3.2-1 (>= 3.2.2+dfsg)
  Depends: libwxgtk-webview3.2-1 (>= 3.2.2+dfsg)
  Depends: libwxgtk3.2-1 (>= 3.2.1+dfsg-2)
  Recommends: maxima
    maxima-git
  Recommends: fonts-inter
  Recommends: fonts-inter-variable
  Recommends: fonts-texgyre
  Recommends: fonts-texgyre-math
  Recommends: fonts-dejavu
  Suggests: fonts-jsmath
  Suggests: texlive-latex-extra
  Suggests: ibus-gtk3
man apt | grep build-dep
$ apt build-dep wxmaxima -s
NOTE: This is only a simulation!
      apt needs root privileges for real execution.
      Keep also in mind that locking is deactivated,
      so don't depend on the relevance to the real current situation!
Reading package lists... Done
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
...

There are, perhaps, other "secret" options.

#74 Re: Freedom Hacks » apt seems to be a sort of "unstable wrapper" » 2025-09-12 18:19:33

@rolfie

Could you please read the code and enlighten us?

#75 Re: Freedom Hacks » apt seems to be a sort of "unstable wrapper" » 2025-09-12 16:00:35

If you know what it really is, you can decide how to use it.
However, the users are not supposed to know what they are using.

Board footer

Forum Software