You are not logged in.
Have you tested this method?
It works without problems.
If a problem occurs, the user can restart mpv player.
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/basicYou 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?
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.
1. If ALSA is so good, why do you need pulseaudio or pipewire?
2. Do you trust your senses and your ability to think?
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
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?
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.xzRead the Build-Deps:
cat kicad-9.0.3+dfsg/debian/controlInstall 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+dfsgAnd compile it with
dpkg-buildpackage -us -uc -bYou may also want to read the manual:
_https://wiki.debian.org/CreatePackageFromPPA
/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
Perhaps, you failed to compile something with CMake. Was it keypassXC ?
Is it about sour grapes?
_https://read.gov/aesop/005.html
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 %fLinux Mint has two different apt
/usr/bin/apt
/usr/local/bin/apt_https://github.com/linuxmint/mintsystem/blob/master/usr/local/bin/apt
Terminal=true
This is not acceptable. It should be like this:
Terminal=falseTerminal 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.
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).
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.
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.
There are "security experts", who cannot write simple scripts, and cannot compile anything.
Try "su" to root, then "apt" or "dpkg".
It seems that you do not know how to write a simple script.
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".
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?
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 isolationEngaging 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.
Why do you need GUI for apt-get?
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.
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 dependsdoes not print anythings.
$ apt rdepends wxmaxima
wxmaxima
Reverse Depends:
Suggests: education-mathematics
Recommends: science-mathematicsThe command:
man apt | grep rdependsprints nothing.
apt is "work in progress", and, therefore,
apt full-upgradeis 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.
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-gtk3man 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.
@rolfie
Could you please read the code and enlighten us?
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.