Re: debian 11 vs ubuntu 22

2023-03-28 Thread Byung-Hee HWANG
Tom Furie  writes:

> On Wed, Mar 29, 2023 at 10:05:28AM +0900, Byung-Hee HWANG wrote:
>  
>> I have experience both Ubuntu and Debian. Google cloud vm is running
>> Ubuntu 18.04 LTS (+ESM). Then my desktop is Debian 11 under Chromebook.
>> 
>> Ubuntu's advantage is 10 years.
>
> I can't interpret what this 10 year advantage refers to. Could you expand on
> what you mean here, please?
>

Hellow Tom!

I did mean that 10 years of security updates.
Most Ubuntu users know this news, i think.

Sincerely,

-- 
^고맙습니다 _地平天成_ 감사합니다_^))//



Re: What's the correct procedure for replacing a DKMS module when it's upstreamed?

2023-03-28 Thread Kushal Kumaran
On Tue, Mar 28 2023 at 03:07:10 PM, Andy Smith  wrote:
> Hi Kushal,
>
> On Sun, Mar 26, 2023 at 08:13:33PM -0700, Kushal Kumaran wrote:
>> If you installed a -dkms package to get the kernel module (there are
>> several such packages in the debian repositories),
>
> Yep, that's what I did. The git repository I linked to builds an
> rt89-dkms .deb package.
>
>> uninstalling it will remove it.
>
> But will that remove the module from the currently running kernel?
> That would be undesirable since I would still be relying upon it to
> make the wifi work until I rebooted!
>

You can remove the dkms-built modules for specific kernel versions.  See
the dkms manpage.

-- 
regards,
kushal



Re: debian 11 vs ubuntu 22

2023-03-28 Thread Tom Furie
On Wed, Mar 29, 2023 at 10:05:28AM +0900, Byung-Hee HWANG wrote:
 
> I have experience both Ubuntu and Debian. Google cloud vm is running
> Ubuntu 18.04 LTS (+ESM). Then my desktop is Debian 11 under Chromebook.
> 
> Ubuntu's advantage is 10 years.

I can't interpret what this 10 year advantage refers to. Could you expand on
what you mean here, please?

Cheers,
Tom

-- 
I believe in getting into hot water; it keeps you clean.
-- G. K. Chesterton


signature.asc
Description: PGP signature


Re: debian 11 vs ubuntu 22

2023-03-28 Thread tomas
On Wed, Mar 29, 2023 at 10:05:28AM +0900, Byung-Hee HWANG wrote:
> cor...@free.fr writes:
> 
> > Dear list,
> >
> > Though I have been using debian 11 for long days, I want to give a try
> > on ubuntu 22.04.
> > Do you know what's the main difference for these two systems on
> > dev/ops environment?
> 
> I have experience both Ubuntu and Debian. Google cloud vm is running
> Ubuntu 18.04 LTS (+ESM). Then my desktop is Debian 11 under Chromebook.
> 
> Ubuntu's advantage is 10 years.

Aha. Just a random test (Debian Bullseye here, so not the newest):

  tomas@trotzki:~$ bash --version
  GNU bash, version 5.1.4(1)-release (x86_64-pc-linux-gnu)
  Copyright (C) 2020 Free Software Foundation, Inc.
  License GPLv3+: GNU GPL version 3 or later 

  This is free software; you are free to change and redistribute it.
  There is NO WARRANTY, to the extent permitted by law.

This page says that bash 5.1 is 2020-12-07. So Ubuntu 22.10 would be
from... 2030? Operating system from the future! Must be the Flatpaks
or how they are called.

Cheers

[1] https://en.wikipedia.org/wiki/Bash_(Unix_shell)
-- 
t


signature.asc
Description: PGP signature


Re: Unable to open Thunderbird as default calendar app

2023-03-28 Thread Max Nikulin

On 29/03/2023 05:01, John Boxall wrote:
I am trying to launch Thunderbird as my calendar application when 
opening a webcal link.


Your description is too general, it lacks details. E.g. you did not 
provide exact commands and their output that you use to check that 
defaults are set properly.



This happens in both Chrome and Firefox.


Open web development tools, switch to the network tab, click on the 
link, check MIME type in server response headers.


In Firefox check application associations in preferences (settings).

If you save link target to disk, can you open the downloaded file by 
thunderbird directly and by xdg-open? What is MIME type reported by the 
"file" utility?



I am running Debian 10/Buster with all of the latest updates.


Behavior might depend on your desktop environment.


The following files have been updated to point to Thunderbird:

~/.config/mimeapps.list


It is hard to reason whether it should work without details what you 
have added to this file.


Check entries related to evolution in this file and MIME types specified 
in its .desktop file.




Re: debian 11 vs ubuntu 22

2023-03-28 Thread Stanislav Vlasov
2023-03-29 5:49 GMT+05:00, cor...@free.fr :

> Though I have been using debian 11 for long days, I want to give a try
> on ubuntu 22.04.
> Do you know what's the main difference for these two systems on dev/ops
> environment?

Ubuntu more quickly upgrades to fresh versions and have longer lts
support, in Debian i'm get more expectable results.

I tried _minimal_ installation option of ubuntu server 22.04 iso and
it not so minimal as in debian — about 6G on disk with unexpected soft
in memory. After that — use only debootstrap when installing ubuntu.
Two docker servers, debootstrapped same manner works identically.

-- 
Stanislav



Re: debian 11 vs ubuntu 22

2023-03-28 Thread Byung-Hee HWANG
cor...@free.fr writes:

> Dear list,
>
> Though I have been using debian 11 for long days, I want to give a try
> on ubuntu 22.04.
> Do you know what's the main difference for these two systems on
> dev/ops environment?

I have experience both Ubuntu and Debian. Google cloud vm is running
Ubuntu 18.04 LTS (+ESM). Then my desktop is Debian 11 under Chromebook.

Ubuntu's advantage is 10 years.

So i prefer Ubuntu LTS for cloud/server.

Just so so

Sincerely,

-- 
^고맙습니다 _地平天成_ 감사합니다_^))//



debian 11 vs ubuntu 22

2023-03-28 Thread coreyh

Dear list,

Though I have been using debian 11 for long days, I want to give a try 
on ubuntu 22.04.
Do you know what's the main difference for these two systems on dev/ops 
environment?


Thanks
Corey Hickman



Re: gradle wants openjdk-11 even if a newer version is installed? ...

2023-03-28 Thread Albretch Mueller
 OK this is what the gradle folks told me/us:

 
https://discuss.gradle.org/t/gradle-wants-as-java-version-openjdk-11-even-if-a-newer-version-is-installed/45254/6

 Gradle itself would just use the Java from your JAVA_HOME or as
fallback from PATH (given you use a version that is compatible with
your Gradle version, otherwise it will most likely fail to execute
later on).
~
 so, the installation by apt-get should have detected that I had set
JAVA_HOME and the included the JDK in my PATH.

 In case someone stumbles on the same problems, runs into the same
thread, here are the quick steps about how to install gradle on Linux
(without gregorian chanting " ... and if you use Windows, ... and if
you use MacOS, ..."):

 1) look for the installation file at: https://gradle.org/install/

 right now:
$ date
Tue 28 Mar 2023 06:14:52 PM UTC

 it was: https://services.gradle.org/distributions/gradle-8.0.2-all.zip

 2) set the directory where you want to keep the installation file

 3) download the file to §2 using wget, curl or your browser

 4) choose an 

 5) unzip -d "§4: which ever  you chose" "§2:
path to the installation file "

 6) set your: PATH="/bin"$PATH

 7) test everything is OK:

$ which gradle
/bin/gradle

$ gradle --version

ERROR: JAVA_HOME is not set and no 'java' command could be found in your PATH.

Please set the JAVA_HOME variable in your environment to match the
location of your Java installation.

$ JAVA_HOME="<...>/GraalVM/graalvm-ce-java19-22.3.0"
PATH="${JAVA_HOME}/bin:$PATH"

which javac
javac -version

which java
java -version
<...>/GraalVM/graalvm-ce-java19-22.3.0/bin/javac
javac 19.0.1

<...>/GraalVM/graalvm-ce-java19-22.3.0/bin/java
openjdk version "19.0.1" 2022-10-18
OpenJDK Runtime Environment GraalVM CE 22.3.0 (build 19.0.1+10-jvmci-22.3-b08)
OpenJDK 64-Bit Server VM GraalVM CE 22.3.0 (build
19.0.1+10-jvmci-22.3-b08, mixed mode, sharing)

$ gradle --version

Welcome to Gradle 8.0.2!

Here are the highlights of this release:
 - Improvements to the Kotlin DSL
 - Fine-grained parallelism from the first build with configuration cache
 - Configurable Gradle user home cache cleanup

For more details see https://docs.gradle.org/8.0.2/release-notes.html



Gradle 8.0.2


Build time:   2023-03-03 16:41:37 UTC
Revision: 7d6581558e226a580d91d399f7dfb9e3095c2b1d

Kotlin:   1.8.10
Groovy:   3.0.13
Ant:  Apache Ant(TM) version 1.10.11 compiled on July 10 2021
JVM:  19.0.1 (GraalVM Community 19.0.1+10-jvmci-22.3-b08)
OS:   Linux 5.10.0-18-amd64 amd64

$ gradle --help

To see help contextual to the project, use gradle help

USAGE: gradle [option...] [task...]

-?, -h, --help Shows this help message.
...

$



Re: USB discs no detectats/muntats

2023-03-28 Thread Jordi Miguel
Hola,

Fa pinta que estas utilitzant usbguard i aquest està bloquejant el
dispositiu USB.
A l'enllaç [1] que et poso trobaràs com autoritzar el dispositiu USB
que endolles i com fer aquest canvi permanent.

[1] https://askubuntu.com/a/1331639


Salutacions,
--
Para ser realmente grande, hay que estar con la gente, no por encima de ella.

El mar, 28 mar 2023 a las 23:43, Xavier Narcís () escribió:
>
> Hola ,
>
> Tinc un ordinador amb Debian.
>
> Quan inserto un llapis de memòria no me'l reconeix.
>
>
> $ sudo dmesg | grep -i usb | tail
> [ 5178.345857] usb 1-1: SerialNumber: 4C530009460109105141
> [ 5178.346732] usb 1-1: Device is not authorized for usage
> [ 5194.783328] usb 1-1: USB disconnect, device number 27
> [ 5201.880764] usb 1-1: new high-speed USB device number 28 using xhci_hcd
> [ 5202.029470] usb 1-1: New USB device found, idVendor=0781, idProduct=5572, 
> bcdDevice= 1.27
> [ 5202.029485] usb 1-1: New USB device strings: Mfr=1, Product=2, 
> SerialNumber=3
> [ 5202.029492] usb 1-1: Product: Cruzer Switch
> [ 5202.029497] usb 1-1: Manufacturer: SanDisk
> [ 5202.029502] usb 1-1: SerialNumber: 4C530009460109105141
> [ 5202.029961] usb 1-1: Device is not authorized for usage
>
>
> Només el trobo com a última instància usant:
>
>
> $ usb-devices
>
> T:  Bus=01 Lev=00 Prnt=00 Port=00 Cnt=00 Dev#=  1 Spd=480 MxCh=12
> D:  Ver= 2.00 Cls=09(hub  ) Sub=00 Prot=01 MxPS=64 #Cfgs=  1
> P:  Vendor=1d6b ProdID=0002 Rev=06.01
> S:  Manufacturer=Linux 6.1.0-7-amd64 xhci-hcd
> S:  Product=xHCI Host Controller
> S:  SerialNumber=:00:14.0
> C:  #Ifs= 1 Cfg#= 1 Atr=e0 MxPwr=0mA
> I:  If#= 0 Alt= 0 #EPs= 1 Cls=09(hub  ) Sub=00 Prot=00 Driver=hub
> E:  Ad=81(I) Atr=03(Int.) MxPS=   4 Ivl=256ms
>
> T:  Bus=01 Lev=01 Prnt=01 Port=00 Cnt=01 Dev#=  5 Spd=480 MxCh= 0
> D:  Ver= 2.00 Cls=00(>ifc ) Sub=00 Prot=00 MxPS=64 #Cfgs=  1
> P:  Vendor=0781 ProdID=5572 Rev=01.27
> S:  Manufacturer=SanDisk
> S:  Product=Cruzer Switch
> S:  SerialNumber=4C530009460109105141
> C:  #Ifs= 0 Cfg#= 0 Atr= MxPwr=
> cat: '/sys/bus/usb/devices/usb1/1-1/1-*:?.*/bInterfaceNumber': El fitxer o 
> directori no existeix
> cat: '/sys/bus/usb/devices/usb1/1-1/1-*:?.*/bAlternateSetting': El fitxer o 
> directori no existeix
> cat: '/sys/bus/usb/devices/usb1/1-1/1-*:?.*/bNumEndpoints': El fitxer o 
> directori no existeix
> cat: '/sys/bus/usb/devices/usb1/1-1/1-*:?.*/bInterfaceClass': El fitxer o 
> directori no existeix
> cat: '/sys/bus/usb/devices/usb1/1-1/1-*:?.*/bInterfaceSubClass': El fitxer o 
> directori no existeix
> cat: '/sys/bus/usb/devices/usb1/1-1/1-*:?.*/bInterfaceProtocol': El fitxer o 
> directori no existeix
> /usr/bin/usb-devices: 91: printf: 0x: not completely converted
> /usr/bin/usb-devices: 91: printf: 0x: not completely converted
> I:  If#= 0 Alt= 0 #EPs= 0 Cls=(none)() Sub= Prot= Driver=
>
> T:  Bus=02 Lev=00 Prnt=00 Port=00 Cnt=00 Dev#=  1 Spd=5000 MxCh= 6
> D:  Ver= 3.00 Cls=09(hub  ) Sub=00 Prot=03 MxPS= 9 #Cfgs=  1
> P:  Vendor=1d6b ProdID=0003 Rev=06.01
> S:  Manufacturer=Linux 6.1.0-7-amd64 xhci-hcd
> S:  Product=xHCI Host Controller
> S:  SerialNumber=:00:14.0
> C:  #Ifs= 1 Cfg#= 1 Atr=e0 MxPwr=0mA
> I:  If#= 0 Alt= 0 #EPs= 1 Cls=09(hub  ) Sub=00 Prot=00 Driver=hub
> E:  Ad=81(I) Atr=03(Int.) MxPS=   4 Ivl=256ms
>
>
>
> Em podeu donar alguna pista a partir d'aquí sobre què hauria de mirar ?
>
>
> Gràcies per avançat !
>
> Salut.
>



Unable to open Thunderbird as default calendar app

2023-03-28 Thread John Boxall
I am trying to launch Thunderbird as my calendar application when 
opening a webcal link. Though I have updated all appropriate 
gnome-mimeapps.list and mimeapps.list files and used xdg-mime to query 
and set the default calendar application, my user session wants to open 
Evolution. The GNOME defaults for mail and calendar were already set to 
Thunderbird. If I remove Evolution, the dialog opens but specifies 
xdg-open and there are no options to choose another application.


This happens in both Chrome and Firefox.

I am running Debian 10/Buster with all of the latest updates.

The following files have been updated to point to Thunderbird:

~/.config/gnome-mimeapps.list
~/.config/mimeapps.list
/etc/xdg/gnome-mimeapps.list
/etc/xdg/mimeapps.list
~/.local/share/applications/gnome-mimeapps.list
~/.local/share/applications/mimeapps.list
/usr/local/share/applications/gnome-mimeapps.list
/usr/local/share/applications/mimeapps.list
/usr/share/applications/gnome-mimeapps.list
/usr/share/applications/mimeapps.list

I would appreciate if someone could point me to the missing puzzle piece.

--
Regards,

John Boxall



USB discs no detectats/muntats

2023-03-28 Thread Xavier Narcís
Hola ,

Tinc un ordinador amb Debian.

Quan inserto un llapis de memòria no me'l reconeix.


$ sudo dmesg | grep -i usb | tail
[ 5178.345857] usb 1-1: SerialNumber: 4C530009460109105141
[ 5178.346732] usb 1-1: Device is not authorized for usage
[ 5194.783328] usb 1-1: USB disconnect, device number 27
[ 5201.880764] usb 1-1: new high-speed USB device number 28 using xhci_hcd
[ 5202.029470] usb 1-1: New USB device found, idVendor=0781, idProduct=5572, 
bcdDevice= 1.27
[ 5202.029485] usb 1-1: New USB device strings: Mfr=1, Product=2, SerialNumber=3
[ 5202.029492] usb 1-1: Product: Cruzer Switch
[ 5202.029497] usb 1-1: Manufacturer: SanDisk
[ 5202.029502] usb 1-1: SerialNumber: 4C530009460109105141
[ 5202.029961] usb 1-1: Device is not authorized for usage


Només el trobo com a última instància usant:


$ usb-devices  

T:  Bus=01 Lev=00 Prnt=00 Port=00 Cnt=00 Dev#=  1 Spd=480 MxCh=12
D:  Ver= 2.00 Cls=09(hub  ) Sub=00 Prot=01 MxPS=64 #Cfgs=  1
P:  Vendor=1d6b ProdID=0002 Rev=06.01
S:  Manufacturer=Linux 6.1.0-7-amd64 xhci-hcd
S:  Product=xHCI Host Controller
S:  SerialNumber=:00:14.0
C:  #Ifs= 1 Cfg#= 1 Atr=e0 MxPwr=0mA
I:  If#= 0 Alt= 0 #EPs= 1 Cls=09(hub  ) Sub=00 Prot=00 Driver=hub
E:  Ad=81(I) Atr=03(Int.) MxPS=   4 Ivl=256ms

T:  Bus=01 Lev=01 Prnt=01 Port=00 Cnt=01 Dev#=  5 Spd=480 MxCh= 0
D:  Ver= 2.00 Cls=00(>ifc ) Sub=00 Prot=00 MxPS=64 #Cfgs=  1
P:  Vendor=0781 ProdID=5572 Rev=01.27
S:  Manufacturer=SanDisk
S:  Product=Cruzer Switch
S:  SerialNumber=4C530009460109105141
C:  #Ifs= 0 Cfg#= 0 Atr= MxPwr=
cat: '/sys/bus/usb/devices/usb1/1-1/1-*:?.*/bInterfaceNumber': El fitxer o 
directori no existeix
cat: '/sys/bus/usb/devices/usb1/1-1/1-*:?.*/bAlternateSetting': El fitxer o 
directori no existeix
cat: '/sys/bus/usb/devices/usb1/1-1/1-*:?.*/bNumEndpoints': El fitxer o 
directori no existeix
cat: '/sys/bus/usb/devices/usb1/1-1/1-*:?.*/bInterfaceClass': El fitxer o 
directori no existeix
cat: '/sys/bus/usb/devices/usb1/1-1/1-*:?.*/bInterfaceSubClass': El fitxer o 
directori no existeix
cat: '/sys/bus/usb/devices/usb1/1-1/1-*:?.*/bInterfaceProtocol': El fitxer o 
directori no existeix
/usr/bin/usb-devices: 91: printf: 0x: not completely converted
/usr/bin/usb-devices: 91: printf: 0x: not completely converted
I:  If#= 0 Alt= 0 #EPs= 0 Cls=(none)() Sub= Prot= Driver=

T:  Bus=02 Lev=00 Prnt=00 Port=00 Cnt=00 Dev#=  1 Spd=5000 MxCh= 6
D:  Ver= 3.00 Cls=09(hub  ) Sub=00 Prot=03 MxPS= 9 #Cfgs=  1
P:  Vendor=1d6b ProdID=0003 Rev=06.01
S:  Manufacturer=Linux 6.1.0-7-amd64 xhci-hcd
S:  Product=xHCI Host Controller
S:  SerialNumber=:00:14.0
C:  #Ifs= 1 Cfg#= 1 Atr=e0 MxPwr=0mA
I:  If#= 0 Alt= 0 #EPs= 1 Cls=09(hub  ) Sub=00 Prot=00 Driver=hub
E:  Ad=81(I) Atr=03(Int.) MxPS=   4 Ivl=256ms



Em podeu donar alguna pista a partir d'aquí sobre què hauria de mirar ?


Gràcies per avançat !

Salut.



Re: ssh -N en alleen maar ssh -N toestaan (succes)

2023-03-28 Thread Paul van der Vlis

Hoi Geert,

Op 27-03-2023 om 23:22 schreef Geert Stappers:

On Mon, Mar 27, 2023 at 12:07:38AM +0200, Paul van der Vlis wrote:

Op 26-03-2023 om 23:51 schreef Paul van der Vlis:

Hoi Geert en anderen,

Op 26-03-2023 om 12:50 schreef Geert Stappers:

Hoi,

Uit `man 1 ssh`

    -N  Do not execute a remote command.
    This is useful for just forward ports.


Nu is `ssh -N` een client kant ding.

Hoe aan server kant borgen dat alleen maar port forwarding gebeurd?



Ik had gedacht om het dicht te timmeren door aan authorized_keys
op de server wat toe te voegen aan de regel met de pubkey voor
het account dat de `ssh -N` moet gaan doen.

Er is "no-port-forwarding"
https://www.ssh.com/academy/ssh/authorized-keys-openssh#no-port-forwarding
maar niet iets als "only-port-forwarding"
    https://www.ssh.com/academy/ssh/authorized-keys-openssh

Wat zien jullie zoal aan mogelijkheden om aan server kant
er voor te zorgen dat SSH client alleen maar een verbinding
voor de portforward maakt, dat shell access niet kan?


Wat ik doe aan de server-kant is /usr/sbin/nologin als shell gebruiken.


Oh, en ik zie dat ik ook dit nog doe in sshd_config:
-
UsePAM no
Match User een,twee
   AllowTcpForwarding remote
   AllowStreamLocalForwarding no
   X11Forwarding no
   PermitTTY no
   PermitEmptyPasswords yes
   PasswordAuthentication yes
-

Kritiek is welkom ;-)
  
Stukje zelfkritiek:

er voor te zorgen dat SSH client alleen maar een verbinding
voor de portforward maakt, dat shell access niet kan?

had

er voor te zorgen dat SSH client alleen maar een verbinding
voor de portforward maakt.

zullen zijn.
Dat aandacht op "alleen maar een verbinding voor portforward" blijft.


Oorspronkelijke vraag heb ik kunnen oplossen door


command="echo Don\'t do that"

voor de pubkey in ~/.ssh/authorized_keys te zetten. Dat is aan server
kant.

Als ik `ssh -N -R :127.0.0.1:22 server` doe, krijg ik de gewenste
portforward. Als ik iets zonder `-N` doe, komt er "Don't do that" terug.


Waarom geen shell die alles weigert?


Ik heb trouwens nog een kleine extra beveiliging in de firewall, mensen
moeten zich eerst ergens aanmelden, dan pas krijgt hun IP toegang.


Met behulp van   from="hun IP"   voor de pubkey in authorized_keys?


Ze moeten eerst ergens naar een webpagina gaan, die triggert een script 
wat de firewall openzet voor hun IP voor een dag. Normaal staat die 
firewall dicht.


Ze kunnen "inloggen" zonder key en zonder paswoord, maar krijgen dus 
"nologin" als prompt. Het is alleen bedoeld voor portforward, via die 
portforward kan ik op hun machine komen voor support.


Groet,
Paul


--
Paul van der Vlis Linux systeembeheer Groningen
https://vandervlis.nl/



Re: Playing Card Symbols

2023-03-28 Thread debian-user
Richmond  wrote:
> debian-u...@howorth.org.uk writes:
> 
> 
> >> I tried this in rxvt(-unicode), xterm, and lxterm (which is
> >> apparently part of the xterm package -- never heard of it
> >> before!).  
> >
> > It's lxterminal, not lxterm, and it's part of LXDE so I'm surprised
> > if it's bundled with xterm.
> >  
> 
> lxterm and lxterminal are two different things.
> 
> lxterm, and uxterm, are wrappers for xterm.

Ah, good to know. That explains why Greg couldn't reproduce my result
by using the wrong program :)



Re: gradle wants openjdk-11 even if a newer version is installed? ...

2023-03-28 Thread Albretch Mueller
 Let me try to disabuse myself somewhat with a bit of humor. Some of
you have been telling me for a long time about how "visually
upsetting" and "procedurally obnoxious" I am and as they say:
"misunderstanding is as mutual as love should be". I can't really make
sense of what you are telling me, nor do I understand why you would
even take the time, energy to do so. Becoming a teacher, taught me to
be a better person and notice a lot of other things about "people" (as
a teacher you must entertain the functional illusion that people can,
do learn, have free will, ... in the same way that when you are a
doctor you must understand that there is an essential difference
between biological beings, rocks and the rain). Now, do you know that
more than a generation ago handwriting was basically written off
curricula in the U.S.!

 
https://www.theatlantic.com/magazine/archive/2022/10/gen-z-handwriting-teaching-cursive-history/671246/

 I have a hard time even trying to figured out what my students' name
(let alone what they had written), but I would not really care about
the visual aspects of it I would just try to decypher it. The same
problem I have had with the truly crappy code that I have had to debug
and here when I say "crappy" I am not referring to the visual
impression of it (some people tend to make a big deal about the number
of spaces you use for indentation and other people speaking with an
accent), but the logic behind it. Let me not go into why I think that
the new normal being taught is keyboarding.
~
 Partially due to habituation, the neurobiology of our perception,
evolutive adaptations, culture, ... we all have our own ways of doing,
liking and disliking things. I am not a visual person, nor is my
brother and mother (both excellent, creative musicians) and there is
"something it is like" not being a visual person. I asked once my
supervisor: "why she was talking in a bossy way to me and why she was
talking like (with the timbre, voice and accent of) my supervisor?".
You walk into a crowded elevator and you overhear two people talking,
your mind goes "I know these 'voices'" and when you turn in an
inadvertent way they happily go like: "Hi, Mr. López! How are you?"
and I put on a smirk while "my mind" goes like: "and who the eff are
you guys?" As girlfriend has told me "I can't just sit and watch a
movie with her". I don't even own a TV set. The idea of "'just'
sitting to watch a movie" I find so out of it all stupid that when
girlfriend has forced me to go to the movies with her (and who am I to
think that I don't have to do what my lady says?!) I invariably go
with my books and almost always have stepped out to the lobby to read
as I wait for her to come out. There are only like five (5) movies I
can watch, have kept watching. I was shocked, very confused when I
have heard Žižek using movies for his elucidations. I had put up with
his philosophical bitchiness because we both love grandpa Hegel, but
that started to give me serious doubts about his smarts and the depths
his mind could reach.

 I keep three languages (all of them shamefully enough European), but
even the white space doesn't feel the same in German, English or
Spanish, not even within the same paragraph in the same language (I
have heard other people saying similar things). They somehow feel like
tones within their melodies. Racism (another "visual thing", mind you)
I can't make sense of (I have a very hard time visually telling people
apart, which the police know, so they use it against me). I take it as
"a necessary social, 'functional illusion'", that people choose, need
to believe in to make sense of, "justify" other social needs; kind of
the crazy obsession Nazis/Adolf Hitler had with people's ears. He sent
his "personal photographer" to a meeting some Nazi officers had with
the Soviet nomenclature with the special job to get a good picture of
Stalin's ear, to see "if he was really human", which based on his ear
lobes he was! (what a disappointment!; now, that story is not totally
stupid and hopelessly so, at least there was a falsifiable way to
check your assertions. To gringos Russian people are "un-'American'"
anyway (and in addition to that they are pro Russian?!) and that is
all they need to know, they wouldn't have to prove anything to
themselves). I once read from a scientific report from the times
before the wide spread adoption of the Internet, computers and cell
phones that on average gringos spent (1/4) of the waking time of their
life watching TV! How is that even possible, even Mathematically! and
the funny thing about it is that they make fun of Muslim people going
for their relatively brief prayer calls three times during the day. Do
the Math! I would rather pray to "Vladimir Putin" if it came to that,
than spending (1/4) of my waking life watching TV!

 The best story I have heard so far about how we are different is
about a person I know. His wife was dressing as a nun for Halloween
with a large ruler hanging on 

[Bookworm] installer stops due to missing wifi firmware

2023-03-28 Thread Ismael Farfán
Hello

I'm trying to install Bookworm on a G513QY laptop with MT7921 wifi adapter.

As soon as the installer (Net or DVD) tries to detect the HW, the installer
stops blank.

The last thing I see in dmesg is something like
Detected ethernet HW, renamed to eth0 (succeed)
then... :
Failed to load mt7821 firmware (lots of this)
hardware init failed
[ loaded modules]
[ stack trace ]

rfkill
wiphy
ieee802


Any ideas or workaround for this?

I also tried with the advanced installer from the DVD but it always wants
to try detecting the network HW and stops there.


-- 
Do not let me induce you to satisfy my curiosity, from an expectation, that
I shall gratify yours. What I may judge proper to conceal, does not concern
myself alone.


Re: How to install virtual keyboard for KDE

2023-03-28 Thread Yvan Masson
For those interested in KDE's own virtual keyboard status, Nate Graham 
gave an explanation here:


https://discuss.kde.org/t/how-to-enable-virtual-keyboard-included-in-kde/264/2

Regards,
Yvan


OpenPGP_signature
Description: OpenPGP digital signature


Re: Playing Card Symbols

2023-03-28 Thread Richmond
debian-u...@howorth.org.uk writes:


>> I tried this in rxvt(-unicode), xterm, and lxterm (which is apparently
>> part of the xterm package -- never heard of it before!).
>
> It's lxterminal, not lxterm, and it's part of LXDE so I'm surprised if
> it's bundled with xterm.
>

lxterm and lxterminal are two different things.

lxterm, and uxterm, are wrappers for xterm.



Re: alternative views of PNG (was Re: Buster => Bullseye: packages keptback)

2023-03-28 Thread tomas
On Tue, Mar 28, 2023 at 07:54:07PM +0200, tomas wrote:

> [...] It has an extensive man page. Here [1] [2] you might
> draw some inspiration on what you can do.

Gah. Forgot the links:

[1] https://www.imagemagick.org/Usage/color_mods/#level-colors
[2] https://www.imagemagick.org/Usage/color_basics/#replace

Cheers
-- 
t


signature.asc
Description: PGP signature


Re: alternative views of PNG (was Re: Buster => Bullseye: packages keptback)

2023-03-28 Thread tomas
On Tue, Mar 28, 2023 at 12:48:48PM -0400, gene heskett wrote:

[...]

> gimp could probably do it, but I get lost in endless menu's.

You can batch gimp and then use one of its embedded languages
(script-fu, python, there might be more). But I never tried.
> 
> imagemagick won't run from the cli, from the pulldowns, its file selector is
> not controllable to navigate to the file [...]

The CLI image "transformer" of the ImageMagick suite is called
"convert". It has an extensive man page. Here [1] [2] you might
draw some inspiration on what you can do.

> libreoffice loaded it, replaced the putrid yellow with black, and then
> printed me a copy on photo paper, a copy I can actually read!
> 
> Mark it problem solved.

Nice if it floats your boat. The upside of Magick is that once
you've figured out the magic (heh) incantation, it's hands-off.

I'm kinda a lazy guy.

Cheers
-- 
t


signature.asc
Description: PGP signature


Re: Playing Card Symbols

2023-03-28 Thread Greg Wooledge
On Tue, Mar 28, 2023 at 05:19:09PM +0100, debian-u...@howorth.org.uk wrote:
> Greg Wooledge  wrote:
> > Interstingly, though, in rxvt-unicode, if I only press Ctrl-Shift and
> > skip the U, a small region of the terminal window (lower left corner,
> > which is annoyingly right where the cursor is) is colored yellow and
> > says "ISO 14755 mode".  If I keep holding Ctrl-Shift and type 2660
> > then the yellow region gets bigger and shows lots of text, including
> > a spade character.  When I release the Ctrl and Shift keys, the
> > yellow goes away, and I'm left with just a spade character typed into
> > the shell.

> The mechanism is specified by the standard ISO 41755, but it doesn't
> specify the introducer sequence. I have no idea how it is enabled or
> disabled.

I believe you've mistyped the number, and actually mean 14755, unless
my Google-fu is extremely bad.

In any case, this is clearly implemented at the terminal (or other GUI
app) level, not at the text editor level.  So it "works" in vim for
you, because you're running vim in a terminal which supports this
feature.  And it "doesn't work" in vim for me in xterm, because xterm
doesn't support it.

 also suggests Ctrl+Shift
as the "beginning key sequence", but this is clearly just meant as one
possible implementation choice.



Re: alternative views of PNG (was Re: Buster => Bullseye: packages keptback)

2023-03-28 Thread gene heskett

On 3/28/23 06:53, davidson wrote:

On Mon, 27 Mar 2023 gene heskett wrote:

On 3/27/23 09:18, Nicolas George wrote:

Dan Ritter (12023-03-27):

changing 33 to 30 will get you black. ANSI color escapes are on
the web in many places.


Also, decent terminal emulators let users tweak the colors, and making
sure all main colors are readable on the default background would
probably be a good use of that ability.

Regards,

This is a sore point with something I'm fighting with. Chinese 
electronics makers are in the habit of publishing .pngs of their 
products, with the most valuable info one needs to properly hook it 
up, in a putrid yellow on a white background.


Would it be practical to put a filter in the path cups put things 
headed to a printer thru, to change just that esc sequence to make 
those boxes and their text content into something more readable.


For an example of such an unhelpful document, find a copy of 
"MKS-Robin-Nano-V3.X-main.zip", unpack it, cd to Image-V3, and look at 
"MKS_Robin_Nano_V3_PIN.png" on-screen or better yet print it.


Like this?

  
https://raw.githubusercontent.com/makerbase-mks/MKS-Robin-Nano-V3.X/main/hardware/Image-V3/MKS_Robin_Nano_V3_PIN.png

I can't help you with the printing.

I installed xli, works great, and is fast, but apparently has no output 
redirection ability. I made several 0 length files trying.


gimp could probably do it, but I get lost in endless menu's.

imagemagick won't run from the cli, from the pulldowns, its file 
selector is not controllable to navigate to the file.  Trying to wade 
thru home/src/MKS_nano_v3_main/hardware/Images-V3/ to that file was a 
hopeless waste of time.  Any attempt to scroll thru the presented very 
busy file list with the mouse wheel was always interpreted as load the 
first file.  IOW its file selector is busted afaiac.


libreoffice loaded it, replaced the putrid yellow with black, and then 
printed me a copy on photo paper, a copy I can actually read!


Mark it problem solved.

Thanks to all who responded.

Cheers, Gene Heskett.
--
"There are four boxes to be used in defense of liberty:
 soap, ballot, jury, and ammo. Please use in that order."
-Ed Howdershelt (Author, 1940)
If we desire respect for the law, we must first make the law respectable.
 - Louis D. Brandeis
Genes Web page 



Re: Playing Card Symbols

2023-03-28 Thread debian-user
Greg Wooledge  wrote:
> On Mon, Mar 27, 2023 at 08:45:18PM +0100, debian-u...@howorth.org.uk
> wrote:
> > Greg Wooledge  wrote:  
> > > Just to be clear, are you using some kind of Desktop Environment
> > > specific means of entering these Unicode characters?  I don't know
> > > what CTRL-SHIFT-Uunicode means.  If I try it here, it just gets
> > > interpreted as Ctrl-U which kills the line I'm typing in vim.  
> > 
> > No, he's using a standard keyboard mechanism which works well inside
> > gvim here for example, or in a normal terminal (lxterminal to be
> > precise). You hold down CTRL and SHIFT and then press U. You should
> > see an underlined lower case letter U. Now type the four digit
> > code, e.g. 2660. You will see the digits be echoed, also underlined
> > and perhaps with a coloured background. Now press ENTER and the
> > whole lot is magically replaced with a 'black spade suit' glyph.  
> 
> I tried this in rxvt(-unicode), xterm, and lxterm (which is apparently
> part of the xterm package -- never heard of it before!).

It's lxterminal, not lxterm, and it's part of LXDE so I'm surprised if
it's bundled with xterm.

> In all 3 terminals, Ctrl-Shift-U simply acts like Ctrl-U.  If there's
> already text typed at the bash prompt, it's all erased.  If there's no
> text typed at the bash prompt, it beeps.

It seems to be a somewhat complex thing. It might be invoked by ibus,
apparently, but I don't have that installed. I don't know what all the
possibilities are for enabling or disabling the facility. You can see
it described at
https://en.wikipedia.org/wiki/Table_of_keyboard_shortcuts under the
heading of Insert Unicode for linux. There's no qualification there,
unfortunately.

> Interstingly, though, in rxvt-unicode, if I only press Ctrl-Shift and
> skip the U, a small region of the terminal window (lower left corner,
> which is annoyingly right where the cursor is) is colored yellow and
> says "ISO 14755 mode".  If I keep holding Ctrl-Shift and type 2660
> then the yellow region gets bigger and shows lots of text, including
> a spade character.  When I release the Ctrl and Shift keys, the
> yellow goes away, and I'm left with just a spade character typed into
> the shell.
> 
> This is a feature I was not previously aware of.  It also doesn't work
> in xterm or lxterm.
> 
> You spoke of gvim, which I don't have installed, but which I'm fairly
> sure is a GUI program.  So, I tried a GUI program -- Google Chrome.  I
> opened a new tab and went to google.com which I know has a text entry
> widget.  In the text entry widget, I tried this Ctrl-Shift-U thing,
> and there, it works as you claimed it should.  Space and Enter both
> seem to terminate the Unicode entry.  "x" does not.

It works here in both vim (the terminal-based editor) and gvim (the
identically-functioned separate window-based version). Hitting space
instead of enter causes it to erase everything back to and including
the CTRL-SHIFT-U.

> It also works in Firefox.
> 
> So it looks like this "standard keyboard mechanism" is part of some
> GUI toolkit, either X11, or GTK+, or something along those lines.
> It definitely doesn't work in a regular X terminal, nor would I expect
> it to.

The mechanism is specified by the standard ISO 41755, but it doesn't
specify the introducer sequence. I have no idea how it is enabled or
disabled.



Re: alternative views of PNG (was Re: Buster => Bullseye: packages keptback)

2023-03-28 Thread gene heskett

On 3/28/23 06:53, davidson wrote:

On Mon, 27 Mar 2023 gene heskett wrote:

On 3/27/23 09:18, Nicolas George wrote:

Dan Ritter (12023-03-27):

changing 33 to 30 will get you black. ANSI color escapes are on
the web in many places.


Also, decent terminal emulators let users tweak the colors, and making
sure all main colors are readable on the default background would
probably be a good use of that ability.

Regards,

This is a sore point with something I'm fighting with. Chinese 
electronics makers are in the habit of publishing .pngs of their 
products, with the most valuable info one needs to properly hook it 
up, in a putrid yellow on a white background.


Would it be practical to put a filter in the path cups put things 
headed to a printer thru, to change just that esc sequence to make 
those boxes and their text content into something more readable.


For an example of such an unhelpful document, find a copy of 
"MKS-Robin-Nano-V3.X-main.zip", unpack it, cd to Image-V3, and look at 
"MKS_Robin_Nano_V3_PIN.png" on-screen or better yet print it.


Like this?

  
https://raw.githubusercontent.com/makerbase-mks/MKS-Robin-Nano-V3.X/main/hardware/Image-V3/MKS_Robin_Nano_V3_PIN.png

I can't help you with the printing.

I use xli to view images. I like it primarily because it requires no mouse.

It also has a lot of command line options that I don't understand, but
they are fun to play with.

  $ xli MKS_Robin_Nano_V3_PIN.png # I see what Gene complains about

  $ xli -gamma 7 MKS_Robin_Nano_V3_PIN.png # Colors appear much darker

  $ xli -gray  MKS_Robin_Nano_V3_PIN.png # Yellow is now gray. Lighter 
content is too light


  $ xli -gray -gamma 5  MKS_Robin_Nano_V3_PIN.png # Yellow is still 
gray. But\
    Lighter content is 
more legible


  $ xli -colors 2 MKS_Robin_Nano_V3_PIN.png # Only ONE shade of gray 
(obscures some info)


xli -gamma 5  MKS_Robin_Nano_V3_PIN.png shows me a much more readable 
image, how do I make it save that version? Can it pipe to a new, 
modified file?


Thanks.

Cheers, Gene Heskett.
--
"There are four boxes to be used in defense of liberty:
 soap, ballot, jury, and ammo. Please use in that order."
-Ed Howdershelt (Author, 1940)
If we desire respect for the law, we must first make the law respectable.
 - Louis D. Brandeis
Genes Web page 



Re: Which takes priority, ipv4, or ipv6?

2023-03-28 Thread Andy Smith
On Mon, Mar 27, 2023 at 12:48:13PM +0100, Richmond wrote:
> So how is the preference determined? It seems to be determined by the
> DNS, but why or how do I tell for example with host -v?

I'm not adding anything new here, only pulling together what has
already been said in several different replies.

There are three main places where this can be affected.

Firstly the DNS servers you use can decide on their own what to
return to you. Normally it's expected that a resolver is going to
return everything that is in the DNS zone for the query you made,
but some DNS servers (both authoritative and resolver) do decide to
give you filtered results which may for example exclude 
records. No  records, no possibility of an IPv6 connection.

Secondly, your application that gets a list of answers (A and 
records) might do something special. It is after all free to do
whatever it is programmed to do. The most common example of this is
"Happy Eyeballs", where (simply put) web browsers connect to BOTH A
and  and use whichever works first.

Thirdly, if no special handling is in use then your operating
system chooses which address to use. There's an RFC for that, and
all of that is configured in /etc/gai.conf on Debian. The default
behaviour is to try IPv6 first.

So, DNS tools like "host" will not answer this question for you
because that is only showing you the first part. That's enough to
show you what your options are, but your app might use those options
in a way you weren't expecting. Some apps might not even support
IPv6. For most apps /etc/gai.conf controls this.

You mentioned in another email that you had to alter gai.conf to
make IPv6 be preferred. That is unusual as it is not the expected
default behaviour.

Cheers,
Andy

-- 
https://bitfolk.com/ -- No-nonsense VPS hosting



Re: gradle wants openjdk-11 even if a newer version is installed? ...

2023-03-28 Thread Albretch Mueller
On 3/28/23, Nicolas George  wrote:
> Cindy Sue Causey (12023-03-28):
>> Has "diff" come up in this thread yet?
> The thread is in the archives.

 Yes, pleeze! Thank you very much!
 lbrtchx



Re: gradle wants openjdk-11 even if a newer version is installed? ...

2023-03-28 Thread Albretch Mueller
 Even though I think it is not a problem with gradle per se, I was
trying to make sense of things by also raising those issues with them:

 
https://discuss.gradle.org/t/gradle-wants-as-java-version-openjdk-11-even-if-a-newer-version-is-installed/45254

 those gradle folks should avail jar files with the latest version of
their thing.

On 3/28/23, Nicolas George  wrote:
> So what? You expect apt to check the random things installed in your
> path? That is not how a package manager works.

 "random things" you said?

 Since we are talking here about gradle which is based of groovy,
which is just a DSL implementation in java exploiting its reflection
API, ... you are not making much sense. Notice that on their
installation page:

 https://gradle.org/install/

 they are not telling you that you must have exactly jdk-11. They do
state that it must be greater than java version "1.8.0_121" which you
check in exactly the way I did; so, it seems that during installation
they do check for a java installation in the standard "java -version"
way.

 What I am talking about doesn't exactly relate to what "package
managers" do, or so I thought.



Re: What's the correct procedure for replacing a DKMS module when it's upstreamed?

2023-03-28 Thread Andy Smith
Hi Kushal,

On Sun, Mar 26, 2023 at 08:13:33PM -0700, Kushal Kumaran wrote:
> If you installed a -dkms package to get the kernel module (there are
> several such packages in the debian repositories),

Yep, that's what I did. The git repository I linked to builds an
rt89-dkms .deb package.

> uninstalling it will remove it.

But will that remove the module from the currently running kernel?
That would be undesirable since I would still be relying upon it to
make the wifi work until I rebooted!

Cheers,
Andy



Re: Buster => Bullseye: packages kept back

2023-03-28 Thread gene heskett

On 3/28/23 01:02, to...@tuxteam.de wrote:

On Mon, Mar 27, 2023 at 02:02:43PM -0400, gene heskett wrote:

On 3/27/23 11:31, to...@tuxteam.de wrote:

On Mon, Mar 27, 2023 at 10:00:48AM -0400, gene heskett wrote:

[...]


Would it be practical to put a filter in the path cups put things headed to
a printer thru, to change just that esc sequence to make those boxes and
their text content into something more readable.


If they are actually PNGs you'll be out of luck with esc sequences.
You might get away by fumbling the image's palette (if it has one)
or postprocessing it with your favourite image manipulation program
(with enough dedication you even might come up with some ImageMagick
script to automate this).


Begs the question, do we have a gfx editor that can do that? Fix it once, at
the src. I'd be in hog heaven!


You mean at Alibaba? Or in your copies of the images?

In my copies stored here, alibaba likely has a reason for their choice, 
made no doubt by the 7 figure legal people.  Cheating on the gpl while 
appearing to meet the terms.



In the second case, I'd recommend Gimp if you are more
the clickey type or the ImageMagick suite (specifically
convert) if you are up to figuring out a script which
might do it automatically for you henceforth.

That would be a likeable, usable solution.  As for gimp, I use it mainly 
to squeeze pix, making a 20 meg pix out of my canon camera into 
something I can email at sub 300k.  Expert, not in your wildest dreams...


Take care and stay well Tomas.

Cheers, Gene Heskett.
--
"There are four boxes to be used in defense of liberty:
 soap, ballot, jury, and ammo. Please use in that order."
-Ed Howdershelt (Author, 1940)
If we desire respect for the law, we must first make the law respectable.
 - Louis D. Brandeis
Genes Web page 



Re: gradle wants openjdk-11 even if a newer version is installed? ...

2023-03-28 Thread Nicolas George
Cindy Sue Causey (12023-03-28):
> Has "diff" come up in this thread yet?

The thread is in the archives.

-- 
  Nicolas George


signature.asc
Description: PGP signature


Re: gradle wants openjdk-11 even if a newer version is installed? ...

2023-03-28 Thread Cindy Sue Causey
On 3/28/23, Albretch Mueller  wrote:
> On 3/28/23, Nicolas George  wrote:
>> I suggest you show the contents of this file instead ...
>
>  Did you mean you would rather have me post both 348 line files
> instead of showing that they are the same? (I had eyeballed them, BTW)


Has "diff" come up in this thread yet? That might catch a show stopper
that appears visually normal otherwise..

Just thinking out loud. :)

Cindy :)
-- 
Talking Rock, Pickens County, Georgia, USA
* runs with birdseed *



Dovecot error invalid service_fd

2023-03-28 Thread Michel Verdier
Hi all

I set postfix sending mails to dovecot for mailbox storage:

mailbox_transport = lmtp:unix:private/dovecot-lmtp

dovecot listen with lmtp:

service lmtp {
  unix_listener /var/spool/postfix/private/dovecot-lmtp {
mode = 0666
user = postfix
group = postfix
  }
}
passdb {
  driver = pam
  args = session=yes cache_key=%u%r%l dovecot
}
userdb {
  driver = passwd
}

# ls -l /var/spool/postfix/private/dovecot-lmtp
srw-rw-rw- 1 postfix postfix 0 27 mars  11:24 
/var/spool/postfix/private/dovecot-lmtp

I get logs like this:

postfix/lmtp[271076]: 6DB551008B3C1: to=..., relay=...[private/dovecot-lmtp], 
delay=0.7, delays=0.29/0.04/0.11/0.26, dsn=2.0.0, status=sent (250 2.0.0 ...
postfix/qmgr[197419]: 6DB551008B3C1: removed
dovecot: lmtp(271077): Disconnect from local: Client has quit the connection 
(state=READY)
dovecot: log(253615): Error: Received master input for invalid service_fd 27: 
27 271079 BYE

I identify 271079 as the pid for dovecot auth worker process. If I add a
timeout in dovecot:

service auth-worker {
  idle_kill = 10s
}

Then I see error log coming 10 seconds after the end of every lmtp
connexion from postfix. There is no other log messages around even with
debug enable in dovecot. And mails are correctly delivered.

What am I missing ?

Cheers



Re: gradle wants openjdk-11 even if a newer version is installed? ...

2023-03-28 Thread Nicolas George
Albretch Mueller (12023-03-28):
>  Did you mean you would rather have me post both 348 line files
> instead of showing that they are the same?

That would have been less useless. But…

> (I had eyeballed them, BTW)

… you already knew how to make it even less useless.

>  as I showed by running "which ..." and "... -version" on the command
> line, I did set up JAVA_HOME and included the corresponding version in
> the PATH variable.

So what? You expect apt to check the random things installed in your
path? That is not how a package manager works.

-- 
  Nicolas George



Re: gradle wants openjdk-11 even if a newer version is installed? ...

2023-03-28 Thread Albretch Mueller
On 3/28/23, Nicolas George  wrote:
> I suggest you show the contents of this file instead ...

 Did you mean you would rather have me post both 348 line files
instead of showing that they are the same? (I had eyeballed them, BTW)

 as I showed by running "which ..." and "... -version" on the command
line, I did set up JAVA_HOME and included the corresponding version in
the PATH variable.
 lbrtchx



Re: gradle wants openjdk-11 even if a newer version is installed? ...

2023-03-28 Thread Nicolas George
Albretch Mueller (12023-03-28):
> $ sudo apt-get install gradle --dry-run > jdk-19.txt

I suggest you show the contents of this file instead of showing us five
times it is identical to the previous one. But the explanation is quite
obvious:

> $ JAVA_HOME="/media/user/078TG3336/graalvm-ce-java19-22.3.0"
> PATH="${JAVA_HOME}/bin:$PATH"

How do you expect apt to take into account the fact that you installed
Java on a removable device?

Regards,

-- 
  Nicolas George



gradle wants openjdk-11 even if a newer version is installed? ...

2023-03-28 Thread Albretch Mueller
I was having issues with the installation of gradle (the groovy DSL
based compilation tool) and I think it relates to gradle assuming you
have version 11 of the jdk installed:

$ sudo apt-get install gradle --dry-run > jdk-11.txt

$ JAVA_HOME="/media/user/078TG3336/graalvm-ce-java19-22.3.0"
PATH="${JAVA_HOME}/bin:$PATH"

which javac
javac -version

which java
java -version
/media/user/078TG3336/graalvm-ce-java19-22.3.0/bin/javac
javac 19.0.1
/media/user/078TG3336/graalvm-ce-java19-22.3.0/bin/java
openjdk version "19.0.1" 2022-10-18
OpenJDK Runtime Environment GraalVM CE 22.3.0 (build 19.0.1+10-jvmci-22.3-b08)
OpenJDK 64-Bit Server VM GraalVM CE 22.3.0 (build
19.0.1+10-jvmci-22.3-b08, mixed mode, sharing)

$ sudo apt-get install gradle --dry-run > jdk-19.txt

$ diff jdk-11.txt jdk-19.txt
$

$ file jdk-11.txt jdk-19.txt
jdk-11.txt: ASCII text
jdk-19.txt: ASCII text

$ wc -l jdk-11.txt jdk-19.txt
  348 jdk-11.txt
  348 jdk-19.txt
  696 total

$ ls -l jdk-11.txt jdk-19.txt
-rw-r--r-- 1 user user 21405 Mar 28 07:58 jdk-11.txt
-rw-r--r-- 1 user user 21405 Mar 28 07:59 jdk-19.txt

$ sha256sum jdk-11.txt jdk-19.txt
a9f91225693514bfdf4a1079d4a22f9f8086959bd8939b0b592cba042aff689e  jdk-11.txt
a9f91225693514bfdf4a1079d4a22f9f8086959bd8939b0b592cba042aff689e  jdk-19.txt
$

Is there a way to fix that? I am asking the gradle folks as well, but
I am not sure if it is a Debian package maintenance issue.
lbrtchx



Re: Which takes priority, ipv4, or ipv6?

2023-03-28 Thread davenull

On 2023-03-27 13:48, Richmond wrote:

I have configured an ipv6 tunnel. If I visit this site:

http://ip6.me/

The "normal" test shows my ipv4 address, and the:

http://ip6only.me/

shows the ipv6 address.

However if I switch my DNS from opendns to the one provided by my ISP
and then run the "normal" test it shows the ipv6.

The note says:

(preference depends on your OS/client)

So how is the preference determined? It seems to be determined by the
DNS, but why or how do I tell for example with host -v?


That's weird… It should not be reslover-dependant unless your default 
resolver either don't support IPv6 which seems not to be the case, or 
(wrongfully) prioritize IPv4 unless the resolved name has IPv6 only?


In "normal" context, it's not determined by the DNS resolver, but it can 
be limited by the DNS resolver, of course if the resolver answers for 
IPv4 only (A record).


If the resolver can return both IPv4 and IPv6 records, and both your OS 
and application supports it, which debian does and most half-decent web 
browser do, then the OS or application config decides whether enable 
IPv6 or not.  If IPv6 is enabled, it should be prioritized and IPv4 is 
used as fallback if IPv6 fails (e.g, when connecting to an IPv4 only 
server, or using IPv4 only resolvers, if those still exist).


For debian and multiple other distros, it depends on systemd settings. 
On debian, IPv6 can be disabled in /etc/sysctl.conf, as far as I know it 
is enabled by default, unless need to add line(s) like


net.ipv6.conf.all.disable_ipv6 = 1

To /etc/sysctl.conf, then reload the file with sysctl command, or 
reboot. Note that "=1" mean disable, NOT enable, since the option names 
are in the negative form.


PS: For Non-debian-like systemd-based distros, espcially RHEL, Fedora 
and so on have a different path for these options. I don't remember the 
exact but there's no /etc/sysctl.conf
And For non-systemd distros, it is usually a bootloader option. for 
GRUB, it's the "ipv6.disable=1" parameter to the 
"GRUB_CMDLINE_LINUX_DEFAULT" in "/etc/default/grub" file




alternative views of PNG (was Re: Buster => Bullseye: packages kept back)

2023-03-28 Thread davidson

On Mon, 27 Mar 2023 gene heskett wrote:

On 3/27/23 09:18, Nicolas George wrote:

Dan Ritter (12023-03-27):

changing 33 to 30 will get you black. ANSI color escapes are on
the web in many places.


Also, decent terminal emulators let users tweak the colors, and making
sure all main colors are readable on the default background would
probably be a good use of that ability.

Regards,

This is a sore point with something I'm fighting with. Chinese electronics 
makers are in the habit of publishing .pngs of their products, with the most 
valuable info one needs to properly hook it up, in a putrid yellow on a white 
background.


Would it be practical to put a filter in the path cups put things headed to a 
printer thru, to change just that esc sequence to make those boxes and their 
text content into something more readable.


For an example of such an unhelpful document, find a copy of 
"MKS-Robin-Nano-V3.X-main.zip", unpack it, cd to Image-V3, and look at 
"MKS_Robin_Nano_V3_PIN.png" on-screen or better yet print it.


Like this?

 
https://raw.githubusercontent.com/makerbase-mks/MKS-Robin-Nano-V3.X/main/hardware/Image-V3/MKS_Robin_Nano_V3_PIN.png

I can't help you with the printing.

I use xli to view images. I like it primarily because it requires no mouse.

It also has a lot of command line options that I don't understand, but
they are fun to play with.

 $ xli MKS_Robin_Nano_V3_PIN.png # I see what Gene complains about

 $ xli -gamma 7 MKS_Robin_Nano_V3_PIN.png # Colors appear much darker

 $ xli -gray  MKS_Robin_Nano_V3_PIN.png # Yellow is now gray. Lighter content 
is too light

 $ xli -gray -gamma 5  MKS_Robin_Nano_V3_PIN.png # Yellow is still gray. But\
   Lighter content is more 
legible

 $ xli -colors 2 MKS_Robin_Nano_V3_PIN.png # Only ONE shade of gray (obscures 
some info)

--
We might not find the sun, but I don't mind
We've got to look for things that we may never find
-- The Bats, Just for the Ride



Re: Buster => Bullseye: packages kept back

2023-03-28 Thread Jesper Dybdal

On 2023-03-28 10:56, davidson wrote:

On Mon, 27 Mar 2023 Jesper Dybdal wrote:

On 2023-03-27 10:59, davidson wrote:

It baffles me that the number of packages suggested for autoremoval is
different, between guile-2.2-libs and w3m.

Me too.


The two packages depend on different collections of supporting
packages.

And so, depending on which package you remove --- guile-2.2-libs or
w3m --- a different set of automatically-installed packages will be
left installed for no apparent purpose (because the package they were
installed to support is now gone), and eligible for autoremoval.

This mostly obvious fact (which wasn't obvious to me yesterday) is
obscured by the sheer number of packages *already* eligible for
autoremoval on the system, before removing either of the two packages
in question.

The large number is probably primarily packages that roundcube depends 
upon - but roundcube disappeared during the upgrade.  When I've seen the 
system being stable for a while, I'll reinstall roundcube - and it that 
goes well, do an autoremove.


Thanks,
Jesper

--
Jesper Dybdal
https://www.dybdal.dk



Re: Buster => Bullseye: doveadm now requires root privileges

2023-03-28 Thread Jesper Dybdal

On 2023-03-28 11:16, Sven Hartge wrote:

Jesper Dybdal  wrote:

I have a cron job that cleans up all old mail from the mailbox that I
use for my mobile phone by running "doveadm expunge" every night.

[snip]

Solution is to move the contents of /etc/dovecot/conf.d/10-ssl.conf to
another file in /etc/dovecot, like /etc/dovecot/ssl-keys.conf and then
replace conf.d/10-ssl.conf with this:

,/etc/dovecot/conf.d/10-ssl.conf
| ##
| ## SSL settings
| ##
|
| ssl = no
|
| !include_try /etc/dovecot/ssl-keys.conf
`

That way it will not fail anymore for processes not having the correct
permissions, like when being invoked by a normal user on the CLI.

S°
Many thanks.  I have actually also got that workaround  from the Dovecot 
mailing list, but forgotten to mention it here :-(


--
Jesper Dybdal
https://www.dybdal.dk



Re: [HEALED] Re: Something tweaked my Firefox appearance

2023-03-28 Thread Brad Rogers
On Mon, 27 Mar 2023 16:45:11 -0400
"hobie of RMN"  wrote:

Hello hobie,

>Thanks, Dan and Brad. :)  I rebooted the machine (not just the desktop)

YW.

>and everything returned to normal.  Go figure. :)

Sometimes, sh* err, "stuff 'appens"   :-)

-- 
 Regards  _   "Valid sig separator is {dash}{dash}{space}"
 / )  "The blindingly obvious is never immediately apparent"
/ _)rad   "Is it only me that has a working delete key?"
If we're working class, why ain't we got jobs?
Insane Society - Menace


pgpm3I9w65R3v.pgp
Description: OpenPGP digital signature


Re: How do I specify a custom apt dependency between kernel image and its headers?

2023-03-28 Thread Tom Furie
On Tue, Mar 28, 2023 at 12:19:05PM +0300, Anssi Saari wrote:
> Ram Ramesh  writes:
> 
> > How do I tie the install of linux-image to linux-header so that I cannot
> > install image without the headers.
> 
> In my experience it's been enough to install linux-image-amd64 and
> linux-headers-amd64. When I run apt upgrade both are updated if new
> versions are available.

Backports doesn't always track that relationship very consistently. It can
be frustrating.

Cheers,
Tom

-- 
"When the going gets weird, the weird turn pro..."
-- Hunter S. Thompson


signature.asc
Description: PGP signature


Re: Buster => Bullseye: packages kept back

2023-03-28 Thread Anssi Saari
Jesper Dybdal  writes:

> On 2023-03-26 23:12, Jeffrey Walton wrote:
>> On Sun, Mar 26, 2023 at 5:16 AM Jesper Dybdal  
>> wrote:
>>> Yesterday, I upgraded Buster => Bullseye.
>> For completeness, here is the Debian procedure for a release upgrade:
>> https://wiki.debian.org/DebianUpgrade .
> Thanks.  Interesting that the Wiki recommends using apt-get, while the
> Bullseye release notes recommend apt.

The wiki actually says "Upgrading from one stable release to the next
(e.g. buster to bullseye) is done by following the release notes for
your architecture." You did the right thing if you followed those.

For sure, many ways work for upgrading Debian. The best tested way is
the one in the release notes.



Re: How do I specify a custom apt dependency between kernel image and its headers?

2023-03-28 Thread Anssi Saari
Ram Ramesh  writes:

> I have nvdia card that requires binary driver to work in my system. Xorg is 
> unable display anything with free driver. Since nvidia-driver has to be
> built for each kernel install, I need to install headers also. This seem to 
> work automatically for any standard kernel release in bullseye. However
> when I install newer kernel from backport, apt does not install headers 
> automatically. How do I tie the install of linux-image to linux-header so that
> I cannot install image without the headers.

In my experience it's been enough to install linux-image-amd64 and
linux-headers-amd64. When I run apt upgrade both are updated if new
versions are available.



Re: Buster => Bullseye: doveadm now requires root privileges

2023-03-28 Thread Sven Hartge
Jesper Dybdal  wrote:
> Yesterday, I upgraded Buster => Bullseye.

> I have a cron job that cleans up all old mail from the mailbox that I 
> use for my mobile phone by running "doveadm expunge" every night.

> That worked fine in Buster, but now it fails:
>> jdmobile@nuser:~$ doveadm expunge  mailbox '*' before 25d
>> doveconf: Fatal: Error in configuration file 
>> /etc/dovecot/conf.d/10-ssl.conf line 23: ssl_cert: Can't open file 
>> /etc/letsencrypt/live/nuser.dybdal.dk/fullchain.pem: Permission denied

> Of course, doveadm cannot access the TLS key when running as a normal 
> user.  But why should it try to access that key at all when I have just 
> asked it to clean up my own files in my own Maildir?  Is there a way to 
> make it not try to access that key and do its job anyway?  Or another 
> way to delete old mail?

Solution is to move the contents of /etc/dovecot/conf.d/10-ssl.conf to
another file in /etc/dovecot, like /etc/dovecot/ssl-keys.conf and then
replace conf.d/10-ssl.conf with this:

,/etc/dovecot/conf.d/10-ssl.conf
| ##
| ## SSL settings
| ##
|
| ssl = no
|
| !include_try /etc/dovecot/ssl-keys.conf
`

That way it will not fail anymore for processes not having the correct
permissions, like when being invoked by a normal user on the CLI.

S°

-- 
Sigmentation fault. Core dumped.



Re: Playing Card Symbols

2023-03-28 Thread Siard
Charles Curley:
> Siard:
> 
> > To type ♠ , for example:
> > 
> > - hold Ctrl+Shift
> > - type U2660
> > - release Ctrl+Shift
> 
> Nice to know about, but it requires knowing the UTF code for the
> characters you want. That's a bit like trying to navigate the Internet
> with IP addresses instead of fully qualified domain names.
> 
> I think for day-to-day use I'll stick to using the compose key.

Yes, the compose key is the preferred method, but for symbols that are not
available for it, the above method remains.

Example: 
'black heart' ♥  = compose key + <3
'white heart' ♡  = the above method with U2661

gucharmap may be used to find the codes, and I also found
https://unicode-explorer.com to be very useful.

And if you use a symbol like ♡ more often, you can turn it into a
character to be used with the compose key yourself, like David Wright
described.



Re: Buster => Bullseye: packages kept back

2023-03-28 Thread davidson

On Mon, 27 Mar 2023 Jesper Dybdal wrote:

On 2023-03-27 10:59, davidson wrote:

It baffles me that the number of packages suggested for autoremoval is
different, between guile-2.2-libs and w3m.

Me too.


The two packages depend on different collections of supporting
packages.

And so, depending on which package you remove --- guile-2.2-libs or
w3m --- a different set of automatically-installed packages will be
left installed for no apparent purpose (because the package they were
installed to support is now gone), and eligible for autoremoval.

This mostly obvious fact (which wasn't obvious to me yesterday) is
obscured by the sheer number of packages *already* eligible for
autoremoval on the system, before removing either of the two packages
in question.

--
MS CLINTON: If you google up what the Chinese claim is, it's the entire South 
China sea.
MR BLANKFEIN: An unfortunate name.
MS CLINTON: Which one?
MR BLANKFEIN: The South China sea.



Re: Bookworm system randomly not responding (was Re: Bookworm system not responding on high memory usage)

2023-03-28 Thread Xiyue Deng


Xiyue Deng  writes:

> So after some more tries it looks like this issue is not directly memory
> usage related.  I've tried the following:
>
> * Using older kernel version when I was on Bullseye.
> * Have a cronjob to drop memory caches every minutes.
> * Using Gnome on Wayland by default or Xorg.
>
> And this can still happen when I was running a qemu-based Win11 VM using
> virtual manager.  So this rules out the possibility of a kernel issue
> and OOM killer issue.  All that is certain is that this issue can be
> reproduced when running my qemu-based Win11 VM and in a few hours it
> will trigger this lockup.
>
> As this system has been running Bullseye for a few years with zero
> problem, I'm hopeful this should work for Bookworm as well.  If you have
> anything in mind that may worth a try please feel free to share.  The
> more ideas the better.
>
> Thanks in advance!

So, to rule out possible software issues, I've done a clean install of
Bookworm and Bullseye, and this issue still happens.  I guess this
largely lowers the possibility of a software cause.  I've also done a
10-hour memtest session and it passed so I guess it was proven to be
clean as well.

For the next step, I'll go with the hardware aspect.  I want to thank
for the helps, suggestions, and brainstorming from various people from
#debian{,-next} IRC channels!  Will try to get to the bottom of this.

>
> (Replies to Timothy below inline.)
>
> Timothy M Butterworth  writes:
>
>> On Sat, Mar 11, 2023 at 3:30 AM Xiyue Deng  wrote:
>>
>>  Timothy M Butterworth  writes:
>>
>>  > On Fri, Mar 10, 2023 at 7:57 PM Xiyue Deng  wrote:
>>  >
>>  >  Hi,
>>  >
>>  >  I have an AMD64 system[1] that has been running fine on Bullseye for a
>>  >  few years, and recently following the soft freeze on Bookworm I upgraded
>>  >  my system to try it out, and the system has been frequently losing
>>  >  response.  Initially I thought it was because of some issue of my
>>  >  qemu-based Win11 virtual machine as it happens most frequently when it
>>  >  was running and filed a bug report[2].  But then it happened again
>>  >  without it running because some other program had slowly used up most of
>>  >  the memory again, though not as frequently as the VM was running.
>>  >
>>  >  Now in retrospect, when I was using Bullseye the total memory was also
>>  >  mostly used up most of the time, with a few hundreds of megabytes
>>  >  reported as free and a few Gigs reported as cache, and it has been
>>  >  running fine.  I'm not sure what has changed in Bookworm and having to
>>  >  manually restart the machine is a pretty annoying and unpleasant
>>  >  experience.
>>  >
>>  >  Does anyone seeing a similar problem as well?  What can I do to avoid
>>  >  this?  Any suggest is welcome.
>>  >
>>  >  Thanks in advance.
>>  >
>>  > Open the command prompt and run `su` to switch user to root. Then run 
>> `sync && echo 1 > /proc/sys/vm/drop_caches`
>>  as
>>  > root. This will write RAM caches to the hard drive to free up memory. You 
>> have to run this as root as sudo, my
>>  preferred
>>  > method, returns a permission disabled error.
>>
>>  Thanks for the tip!  I'll try it out.
>
> So unfortunately this doesn't help either, as it happens again with very
> low cache usage.
>
> `free -h`:
>
>totalusedfree  shared  buff/cache   
> available
> Mem:30Gi13Gi16Gi   206Mi   1.4Gi
> 17Gi
> Swap:  979Mi  0B   979Mi
>
> `top` excerpt:
>
> top - 14:55:05 up 18 min, 11 users,  load average: 1.77, 1.65, 1.09
> Tasks: 504 total,   1 running, 503 sleeping,   0 stopped,   0 zombie
> %Cpu(s): 12.5 us,  0.0 sy,  0.0 ni, 68.8 id,  0.0 wa,  0.0 hi,  6.2 si,  0.0 
> st 
> MiB Mem :  31519.9 total,  16972.6 free,  13759.0 used,   1447.6 buff/cache   
>   
> MiB Swap:980.0 total,980.0 free,  0.0 used.  17760.8 avail Mem 
>
> PID USER  PR  NIVIRTRESSHR S  %CPU  %MEM TIME+ COMMAND
>8886 libvirt+  20   0   11.1g   8.1g  26580 S  87.5  26.4  17:38.47 
> qemu-sy+
>5434 xiyueden  20   0 4047004   1.2g 170036 S   0.0   4.0   0:41.00 
> thunder+
>5143 xiyueden  20   0 7056664 526296 191152 S   0.0   1.6   2:19.65 
> gnome-s+
> ...
>
>>
>>  >  
>>  >  
>>  >  [1] System info from inxi:
>>  >  CPU: 8-core AMD Ryzen 9 5900HX with Radeon Graphics (-MT MCP-)
>>  >  speed/min/max: 1199/1200/4679 MHz Kernel: 6.1.0-5-amd64 x86_64 Up: 7m
>>  >  Mem: 4844.4/31521.3 MiB (15.4%) Storage: 476.94 GiB (54.5% used) Procs: 
>> 535
>>  >  Shell: Bash inxi: 3.3.25
>>  >
>>  > Your system has 32 GB of RAM, it should not be getting used up. Run `free 
>> -h` What desktop are you using: KDE,
>>  GNOME,
>>  > LXQT etc? Are you using Wayland or X11? It looks like you have a memory 
>> leak in one of your applications. Try
>>  running
>>  > `top` and press `m` to sort by memory utilization.
>>
>>  I actually have a cronjob that runs every 5 minutes and collects memory
>>  

Re: Buster => Bullseye: packages kept back

2023-03-28 Thread davidson

On Mon, 27 Mar 2023 Greg Wooledge wrote:

On Mon, Mar 27, 2023 at 08:52:10AM -0400, Dan Ritter wrote:

Greg Wooledge wrote:

3) apt uses a horrible yellow color that is nigh-unreadable on a white
   background.  (This is not configurable.)


I use exclusively apt-hyphenated commands (apt-{get,cache,etc}), and
don't plan to change.

I have

 $ cat /etc/apt/apt.conf.d/90no_color
 APT::Color "false";

So I am surprised to learn that the newfangled bare "apt" ignores that
preference. Not a pleasant surprise.

Like I said though, I don't plan to start using it.


It appears that it is, just badly documented.

In /etc/apt/apt.conf, you can specify the escape sequences for
colors like this:

APT::Color::Yellow "ESC[33m";


This seems less general a solution than warranted. If the user can't
see yellow, they don't only want *apt* to use an alternate color for
yellow.

I would instead want to tweak the whole console color scheme along
these lines,

  https://nethackwiki.com/wiki/Colors#Linux_console

so that the colors were more sensible across all applications.


unicorn:~$ man apt.conf | grep -i -e color -e colour
unicorn:~$ man apt-config | grep -i -e color -e colour
unicorn:~$

Yeah, that's "badly documented" i.e. "not documented at all".

Here are some other things one might find by poking around the web or
various commands:

apt-config(8)
   dump
   Just show the contents of the configuration space.

unicorn:~$ apt-config dump | grep -i -e color -e colour
Binary::apt::APT::Color "1";

So, there's a quasi-visible configuration element that lets you turn off
apt's use of colors completely.  Undocumented, obviously.


Doesn't work for me.

 # apt -o "Binary::apt::APT::Color=0" update

"N% [Working]" etc output is still colorised.


Your APT::Color::Yellow is not even visible in the dump of all the
configuration elements.


contains:

   apt::moo::color "";

   apt::color::highlight "";
   apt::color::neutral "";

   APT::Color "";

I have no idea how out of date or inaccurate these may be.

It's also incredibly difficult to TEST any changes to apt's color
configuration, because the parts I care about are circumstantial.
The yellow color is used on the progress/status line while apt
is downloading stuff -- and if you've already run "apt update" earlier
today, chances are there won't be any new data to download when you run
it a second time.

If I use "apt search google-chrome-stable" I get the following text:

unicorn:~$ apt search google-chrome-stable
Sorting... Done
Full Text Search... Done
google-chrome-stable/stable,now 111.0.5563.110-1 amd64 [installed]
 The web browser from Google

where the package name (google-chrome-stable) appears green.  So...
can I test using that?  It appears I cannot.

If I put Binary::apt::APT::Color "0"; in my /etc/apt/apt.conf.d/99local
file, and re-run the apt search command, it's still green.

[rest trimmed]

Would you like blinking text instead? (Or whatever your terminal does
instead of blinking text.)

 # apt -o "APT::Color::Highlight=^[[5m" search nethack
 ^^
 (raw escape)
   (entered with Ctrl-V followed by hitting Esc key)
 (explained for benefit of readers as clueless as myself)

I got the blinking text thing from console_codes(4), under section
"ECMA-48 Set Graphics Rendition".

According to that same section, replacing "5" with "25" sets "blink
off"

 # apt -o "APT::Color::Highlight=^[[25m" search nethack

For me, this produces text in the default style (no highlights, no
colors).

--
Believe you do in the church, not infront of the computer, when we see
the output we can conclude ourself. -- deloptes