Can not pre-configure KDE Plasma bottom panel nor Dolphin with Kiosk

2023-04-04 Thread Yvan Masson

Hi list,

I am trying to configure some default settings to be able to deploy KDE. 
I am doing my tests with Debian “hopefully-soon-stable” 12 (Plasma 
5.27.2). I follow the kiosk mode documentation [1], and it works 
properly for some settings (night color, baloo search, power management, 
Discover).


However, I have very strange results when trying to configure the bottom 
panel:


- From a new user with default settings, I customized the panel manually 
(changing some applications shortcuts, disabling clipboard)
- Using `fswatch`, I could determine that the relevant configuration 
file is `~/.config/plasma-org.kde.plasma.desktop-appletsrc`
- If I copy this file to `/etc/xdg/`, my settings are not applied to new 
users (while it works for other files like `kscreenlockerrc`)
- As a workaround, if I copy this file to `/etc/skel/.config/`, settings 
are applied to new users BUT the panel gets a height of 30 instead of 44 
(the default).


Also, a somewhat similar issue is for configuring Dolphin (toolbar, left 
panel, right panel, detailed view by default):


- I found that the relevant files is 
`~/.local/share/kxmlgui5/dolphin/dolphinui.rc` (strangely 
`/etc/dolphinrc` does not seem to contain the settings I am interested in)
- If I copy this file to `/etc/xdg/dolphinui.rc`, my settings are not 
applied for new users
- After copying this file to 
`/etc/skel/.local/share/kxmlgui5/dolphin/dolphinui.rc`, settings are 
indeed applied to new users except “overview in right panel” and 
“detailed view by default”


What am I doing wrong? I suppose I missed something from the 
documentation, but could not find what. Any help would be greatly 
appreciated!


Regards,
Yvan

1. https://develop.kde.org/docs/administration/kiosk/introduction/


OpenPGP_signature
Description: OpenPGP digital signature


Re: vtty & X terminal color scourge

2023-04-04 Thread David
On Wed, 5 Apr 2023 at 02:47, Greg Wooledge  wrote:
> On Tue, Apr 04, 2023 at 10:33:26PM -0400, Felix Miata wrote:

> > What bothers me more than anything is that dead symlinks haven't been red, 
> > or
> > anything else to distinguish them, in a long time.

> So... you're talking about the colors used by "ls", yes?
>
> If you don't want ls colors at all, you can use "ls --color=never".
> You can set that up as an alias/function.
>
> If you DO want colors, just not the ones you're currently getting, then
> you need to look at the LS_COLORS environment variable.
>
> According to ls(1), you're supposed to use dircolors(1) to generate
> this variable.  According to dircolors(1), you're supposed to run
> "dircolors --print-database" and read its output to learn how to set
> it up.

According to adduser(1):
  adduser will copy files from SKEL into the home directory

According to adduser.conf(5):
  SKEL is the directory from which skeletal user configuration files are copied.
  Defaults to /etc/skel

/etc/skel/.bashrc contains:
  # enable color support of ls and also add handy aliases
  if [ -x /usr/bin/dircolors ]; then
test -r ~/.dircolors && eval "$(dircolors -b ~/.dircolors)" ||
eval "$(dircolors -b)"

The output of 'dircolors -b' looks like:
  LS_COLORS=''; export LS_COLORS

The above is how Debian sets up the default value of LS_COLORS.

The values in use, if any, can be seen by
  echo $LS_COLORS

Personally I dislike the preconfigured values because they try
to color the output according to BOTH the type of file AND the
filename suffix, which creates a mess. Because the coloring
depends on whether or not the filename is matched.

I create a simpler ~/.dircolors which detects only the type of the file,
and use the above method to control the colors shown by 'ls'. I find it is
very useful for recognising hardlinks as well as good or bad symlinks
in the output of 'ls' command. It's not hard and gives a useful result.

I also configure 'mc' to use the same colors.



Re: vtty & X terminal color scourge

2023-04-04 Thread Greg Wooledge
On Tue, Apr 04, 2023 at 10:33:26PM -0400, Felix Miata wrote:
> What bothers me more than anything is that dead symlinks haven't been red, or
> anything else to distinguish them, in a long time.

So... you're talking about the colors used by "ls", yes?

If you don't want ls colors at all, you can use "ls --color=never".
You can set that up as an alias/function.

If you DO want colors, just not the ones you're currently getting, then
you need to look at the LS_COLORS environment variable.

According to ls(1), you're supposed to use dircolors(1) to generate
this variable.  According to dircolors(1), you're supposed to run
"dircolors --print-database" and read its output to learn how to set
it up.

Looks pretty tedious.  Have fun.



vtty & X terminal color scourge

2023-04-04 Thread Felix Miata
Once upon a time, I could count on minimal coloring on vttys and X terminals. 
This
was unaffected by my inclusion of

  setterm -foreground white -bold -background blue -blank 59 -store

in .bashrc, which after some years needed to be changed to

  tty=$(tty); [ "$tty" != "${tty#/dev/tty[0-9]}" ] && setterm --background blue
--foreground white --bold on --store

NC in DOS around 1985 or so gave me an affection for blue backgrounds instead of
black that has stuck for full screen modes, and for plain text apps whether in
text mode framebuffer or GUI window.

Mostly what I remember from my early Linux days was dead/broken symlinks would 
be
red and black or red and yellow or white. Otherwise it would be black on yellow 
or
white in X terminals, and "gray" on black normally on vttys, with an occasional
smattering of white in place of gray or inversion of normal colors when
highlighting was appropriate. I was content.

Now it seems nearly everything has adopted varied foreground colors that are
inadequately contrasty. I noticed https://no-color.org/ via another thread here
today, but have found NO_COLOR=1 exported to have little impact. I tried 
removing
everything from .bashrc affecting color, but that impacted nothing I tested 
with.

What bothers me more than anything is that dead symlinks haven't been red, or
anything else to distinguish them, in a long time. With Bookworm on a short path
to release, I'd like to find out if it's possible to get some semblance of old
limited colors behavior back, along with dead symlinks standing out. Apparently
the places to start are bash and dash. Where do these shells get their default
colors globally defined? /etc/dash* doesn't seem to exist. /etc/bash.bashrc 
seems
only to contain whether colors are enabled or not. Colors don't seem to be under
the purview of console-setup either. Is there any strategy available to limit
coloring of plain text I/O globally that I've missed? Can framebuffers or GUI X
terminals be forced into a 4 color mode that apps cannot ignore? Surely due to
accessibility considerations there must be some way to ensure adequate contrast.
-- 
Evolution as taught in public schools is, like religion,
based on faith, not based on science.

 Team OS/2 ** Reg. Linux User #211409 ** a11y rocks!

Felix Miata



Re: Is perl still the No.1 language for sysadmin?

2023-04-04 Thread Celejar
On Mon, 03 Apr 2023 02:15:10 +0200
Emanuel Berg  wrote:

...

> I agree but I think maybe the success of Python, and its
> development speed, is actually because of some of that
> rigidness, yes, including the whitespace lack of freedom.

I'm no great programmer, and many posters in this thread are certainly
far more proficient than I, but one of the things that ultimately drove
me from Perl to Python is the striking contrast between Perl's
TIMTOWTDI with Python's "There should be one -- and preferably only one
-- obvious way to do it." Maybe good programmers like TIMTOWTDI, but
for me, the paradox of choice is strong; programming is hard enough as
it is, and I vastly prefer not having to exert mental energy to decide
on the best way to do something when that's unnecessary.

-- 
Celejar



Bullseye and hplip install

2023-04-04 Thread tony mollica
Here's the deal!  I've upgraded from buster to bullseye with no real issues, 
overall, with the exception of only one app so far.  hplip didn't run after the 
upgrade and I've uninstalled and re-installed hplip from the bullseye repo and 
it does install but doesn't work.  No warnings on the install but it won't run 
from the gui and launching from a terminal gives numerous errors.  I won't post 
those yet but a couple questions to start:

Has anyone installed hplip successfully and had it run properly?  and

Other than a normal install, what did you do to get it up and running?

On my system, CUPS printing works perfectly and I also have python 2 and 3 
installed but configured to use python3, 3.9 to be exact.  It appears that hplip 
is centered around python2.x and it's possible this is the problem.


Any info would be appreciated. I only use hplip to clean the printheads  and to 
check the ink levels.


thanks,
Tony



Re: |Inquiry regarding fixing the error light display manager

2023-04-04 Thread songbird
Bala personal wrote:
> Hello Team,
>
> Greetings. When i tried to install Debian xfce in my new computer Acer 
> Aspire5, NVIDIA hardware pre installed support, i faced an issue after 
> reboot the system as "failed to start light display manager. So how to 
> fix this? I tried the button to access termial as Alt + ctrl + f2, but 
> it does not have any effect on screen. Kindly do help me to fix it. Thanks.
>
>
> Warm regards, Bala.

  in the past i've had broken lightdm issues fixed by
reinstalling it.


  songbird



Re: package libxnvctrl0 installed by xfce, but nouveau is installed

2023-04-04 Thread Vincent Lefevre
On 2023-04-04 18:27:59 +0200, zithro wrote:
> Unfortunately, "libxnvctrl0" is a dependency for "xfce4-sensors-plugin" :
> 
> apt show xfce4-sensors-plugin
> Depends: libxnvctrl0
> 
> So marking the packages provides the exact same output as above.
> 
> Should I report a bug in the "xfce4-sensors-plugin" package ?

No, the dependency is normal. If you look at the source, there's
a file lib/nvidia.cc that uses libxnvctrl0:

if (XNVCTRLQueryTargetAttribute (nvidia_sensors_display.display,
 NV_CTRL_TARGET_TYPE_GPU,
 idx_gpu,
 0,
 NV_CTRL_GPU_CORE_TEMPERATURE,
 &temperature)) {
result = temperature;
}
[...]
if (XNVCTRLQueryExtension (nvidia_sensors_display.display, &event, 
&error)) {
XNVCTRLQueryTargetCount (nvidia_sensors_display.display,
NV_CTRL_TARGET_TYPE_GPU,
&num_gpus);
}
[...]
if (XNVCTRLQueryTargetStringAttribute (nvidia_sensors_display.display,
   NV_CTRL_TARGET_TYPE_GPU,
   idx_gpu,
   0,
   NV_CTRL_STRING_PRODUCT_NAME,
   &gpuname)) {
g_assert (gpuname != NULL);
feature->devicename = gpuname;  /* "it is the caller's 
responsibility to free ..." */
}

Hence the dependency.

-- 
Vincent Lefèvre  - Web: 
100% accessible validated (X)HTML - Blog: 
Work: CR INRIA - computer arithmetic / AriC project (LIP, ENS-Lyon)



Re: Is perl still the No.1 language for sysadmin?

2023-04-04 Thread local10
Apr 4, 2023, 13:40 by a...@strugglers.net:

>  Turns out though ChatGPT is--as virtually all ML code--written
>  in Python, that's at least according to Wikipedia and not too
>  surprising. There you go. Depending on what you make of it,
>  there may not come much after Python
>


I see, thanks.

Regards,



Re: |Inquiry regarding fixing the error light display manager

2023-04-04 Thread Bret Busby

On 5/4/23 03:43, davidson wrote:

It is said that if you wash a cat it will never again wash itself.
This may or may not be true: what is certain is that if you teach a
man anything he will never learn it. -- George Bernard Shaw

The "Bernard Shaw" is quite appropriate - it is BS.

I have been taught many things, that I have learnt (but, there is so 
much to learn, and, so little time - life is short).


If you are cranking an internal combustion engine, you should not form a 
circle around the crank handle, with your thumb and fingers. If you do, 
and the engine backfires, your thumb (and, if you are using both hands, 
then, both your thumbs) will likely be broken.


That is one lesson worth being taught, rather than learning from experience.

Whether shooting a bow and arrow, or, shooting a rifle, it is unwise to 
shoot vertically upward, lest the projectile punishes you for your 
stupidity.


That is another lesson worth being taught, rather than learning from 
experience.


There are so many more, that are too many to include here.

..
Bret Busby
Armadale
West Australia
(UTC+0800)
..



Re: Re: package libxnvctrl0 installed by xfce, but nouveau is installed

2023-04-04 Thread zithro

Thanks, I'll report the bug in BTS then



Re: Debian 11 installer crashed and reboot

2023-04-04 Thread zithro

Hello,

sorry to necro, but did you get ANY news from ANYwhere ?

I also wanted to say thank you very much for your instructions.
You were the only one on which we could rely, in TWO YEARS ! ^^

Have a nice evening !

References (none solved, everyone saying "not me") :

https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=983357
https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=1005308
https://github.com/systemd/systemd/issues/15784
https://bugzilla.kernel.org/show_bug.cgi?id=207695
(I've lost the link to the report on Xen bugtracker)



Re: |Inquiry regarding fixing the error light display manager

2023-04-04 Thread davidson

On Mon, 3 Apr 2023 Bala personal wrote:

Hello Team,


Hello, Sailor.

No team here. Just users like us. Hence "debian-user".


Greetings. When i tried to install Debian xfce in my new computer
Acer Aspire5, NVIDIA hardware pre installed support, i faced an
issue after reboot the system as "failed to start light display
manager. So how to fix this?


Hopefully someone who knows something about display managers will turn
up and interrogate you.


I tried the button to access termial as Alt + ctrl + f2, but it does
not have any effect on screen. Kindly do help me to fix it. Thanks.


When the GRUB menu shows up, hit 'e' for edit. Then use the arrow keys
to navigate down to the line that begins with "linux" and probably
ends with something like "ro quiet".

Leave the "ro" alone, but you can delete "quiet" if it's there, and
add

  systemd.unit=multi-user.target

and then hit either Ctrl-x or the F10 key to boot into multi-user
mode, which won't try to start your display manager, but ought to give
you a tty where you can login.

In multi-user mode you can cycle through all the ttys with
Alt-leftarrow or Alt-rightarrow. Or if you have a favorite one then
Alt-F1 through Alt-F6 will take you to tty1 through tty6.

--
It is said that if you wash a cat it will never again wash itself.
This may or may not be true: what is certain is that if you teach a
man anything he will never learn it. -- George Bernard Shaw



Re: Is perl still the No.1 language for sysadmin?

2023-04-04 Thread Jeffrey Walton
On Tue, Apr 4, 2023 at 1:37 PM Greg Wooledge  wrote:
>
> On Tue, Apr 04, 2023 at 06:29:50PM +0100, debian-u...@howorth.org.uk wrote:
> > But cropping and ignoring the actual point of Stefan's mail rather
> > misses the point and insults him. For example, three CVEs chosen at
> > random from the 'vim' list:
> >
> > CVE-2010-3481 Multiple SQL injection vulnerabilities in
> > login.php in ApPHP PHP MicroCMS 1.0.1, when magic_quotes_gpc is
> > disabled, allow remote attackers to execute arbitrary SQL commands via
> > the (1) user_name and (2) password variables, possibly related to
> > include/classes/Login.php. NOTE: some of these details are obtained
> > from third party information. NOTE: the password vector might not be
> > vulnerable.
> >
> > CVE-2010-2704 Buffer overflow in HP OpenView
> > Network Node Manager (OV NNM) 7.51 and 7.53 allows remote attackers to
> > execute arbitrary code via a long HTTP request to nnmrptconfig.exe.
> >
> > CVE-2010-2703 Stack-based buffer overflow in the execvp_nc
> > function in the ov.dll module in HP OpenView Network Node Manager (OV
> > NNM) 7.51 and 7.53, when running on Windows, allows remote attackers to
> > execute arbitrary code via a long HTTP request to webappmon.exe.
> >
> > FWIW, the word SQL appears 127 times in the 'vim' CVEs, and the word
> > 'vim' doesn't appear in most so I'm not sure how helpful these numbers
> > actually are.
>
> The word "via" appears in all three of your selections.  That makes me
> think that the web site is using some kind of a "close-enough match"
> heuristic, and is (unhelpfully) matching "via" as close enough to "vim".

Oh, that would not be good.

The Vim folks had a bad week this week:
https://ubuntu.com/security/notices/USN-5995-1 . There were 30 CVEs
fixed this week.

Jeff



Re: Is perl still the No.1 language for sysadmin?

2023-04-04 Thread David Wright
On Tue 04 Apr 2023 at 13:37:27 (-0400), Greg Wooledge wrote:
> On Tue, Apr 04, 2023 at 06:29:50PM +0100, debian-u...@howorth.org.uk wrote:
> > But cropping and ignoring the actual point of Stefan's mail rather
> > misses the point and insults him. For example, three CVEs chosen at
> > random from the 'vim' list:
> > 
> > CVE-2010-3481   Multiple SQL injection vulnerabilities in
> > login.php in ApPHP PHP MicroCMS 1.0.1, when magic_quotes_gpc is
> > disabled, allow remote attackers to execute arbitrary SQL commands via
> > the (1) user_name and (2) password variables, possibly related to
> > include/classes/Login.php. NOTE: some of these details are obtained
> > from third party information. NOTE: the password vector might not be
> > vulnerable.
> > 
> > CVE-2010-2704   Buffer overflow in HP OpenView
> > Network Node Manager (OV NNM) 7.51 and 7.53 allows remote attackers to
> > execute arbitrary code via a long HTTP request to nnmrptconfig.exe.
> > 
> > CVE-2010-2703   Stack-based buffer overflow in the execvp_nc
> > function in the ov.dll module in HP OpenView Network Node Manager (OV
> > NNM) 7.51 and 7.53, when running on Windows, allows remote attackers to
> > execute arbitrary code via a long HTTP request to webappmon.exe. 
> > 
> > FWIW, the word SQL appears 127 times in the 'vim' CVEs, and the word
> > 'vim' doesn't appear in most so I'm not sure how helpful these numbers
> > actually are.
> 
> The word "via" appears in all three of your selections.  That makes me
> think that the web site is using some kind of a "close-enough match"
> heuristic, and is (unhelpfully) matching "via" as close enough to "vim".

I don't think the connection is even as incidental as that.
There apparently exists a VIM list that raises and discusses
bugs, among which are vulnerabilities. References in the CVE
list are given to help distinguish between vulnerabilities, and
these references contain the name of that VIM list, and others.
So it's just a case of shooting the messenger.

Cheers,
David.



Re: Is perl still the No.1 language for sysadmin?

2023-04-04 Thread Greg Wooledge
On Tue, Apr 04, 2023 at 06:29:50PM +0100, debian-u...@howorth.org.uk wrote:
> But cropping and ignoring the actual point of Stefan's mail rather
> misses the point and insults him. For example, three CVEs chosen at
> random from the 'vim' list:
> 
> CVE-2010-3481 Multiple SQL injection vulnerabilities in
> login.php in ApPHP PHP MicroCMS 1.0.1, when magic_quotes_gpc is
> disabled, allow remote attackers to execute arbitrary SQL commands via
> the (1) user_name and (2) password variables, possibly related to
> include/classes/Login.php. NOTE: some of these details are obtained
> from third party information. NOTE: the password vector might not be
> vulnerable.
> 
> CVE-2010-2704 Buffer overflow in HP OpenView
> Network Node Manager (OV NNM) 7.51 and 7.53 allows remote attackers to
> execute arbitrary code via a long HTTP request to nnmrptconfig.exe.
> 
> CVE-2010-2703 Stack-based buffer overflow in the execvp_nc
> function in the ov.dll module in HP OpenView Network Node Manager (OV
> NNM) 7.51 and 7.53, when running on Windows, allows remote attackers to
> execute arbitrary code via a long HTTP request to webappmon.exe. 
> 
> FWIW, the word SQL appears 127 times in the 'vim' CVEs, and the word
> 'vim' doesn't appear in most so I'm not sure how helpful these numbers
> actually are.

The word "via" appears in all three of your selections.  That makes me
think that the web site is using some kind of a "close-enough match"
heuristic, and is (unhelpfully) matching "via" as close enough to "vim".



Re: Which Diff tool could I use for visually comparing two text files where Word Wrap is possible?

2023-04-04 Thread Susmita/Rajib
To: debian-user@lists.debian.org
Subject: Re: Which Diff tool could I use for visually comparing
two text files where Word Wrap is possible?
From: david...@freevolt.org
Date: Tue, 4 Apr 2023 11:39:59 + (UTC)
Message-id: <[🔎] alpine.deb.2.21.2304041139540.12...@azone.org>
In-reply-to: <[🔎] alpine.deb.2.21.2304041109440.12...@azone.org>
References:


<[🔎] caeg4czus4dyt02pvm5byvrpxtxvdeybthfgwhrhi80upoy9...@mail.gmail.com>
<[🔎] CAEG4cZVrPz=aZN6C0V0J3EPYMrH=UGkWcbVCc8xY=31ff_p...@mail.gmail.com>
<[🔎] CAEG4cZUXaUAxG=0zlwpxuy44x9rtf7tnewvgfuddmzq7ile...@mail.gmail.com>
<[🔎] caeg4czvce+49-mkwgw7le3l1t6ztsak7jd3kchkevfgh303...@mail.gmail.com>
<[🔎] CAEG4cZWKu1LVJY_Js+VtXA00tVEDPR_JuPaCJ=jrqerae44...@mail.gmail.com>
<[🔎] caeg4czu4zccbkc9fff66nwwr2ubd_1p_z1bdnhrh_sjp3ik...@mail.gmail.com>
<[🔎] CAEG4cZXvzBMjbsRRih6Ku1wSJN0oWP_=y_tlfbuoobgplio...@mail.gmail.com>
<[🔎] caeg4czubt-mfzn4rn1odmyema0tmufauwzch1s3pbc+z7w2...@mail.gmail.com>
<[🔎] alpine.deb.2.21.2304041106390.12...@azone.org> <[🔎]
alpine.deb.2.21.2304041109440.12...@azone.org>

On Tue, 4 Apr 2023 david...@freevolt.org wrote:
[   ...   ]

I will try to comprehend, then try and get back. But I had to admire
you for the efforts you have put in to solve my issue.

My files are around 40k, so shouldn't pose much of a problem,
$wc -m book1.txt
41466 book1.txt

$wc -m book2.txt
32798 book2.txt

Rest feedback, after I have been able to implement your ideas, will follow.

Best wishes,
Rajib
Etc.



Re: Is perl still the No.1 language for sysadmin?

2023-04-04 Thread debian-user
Jeffrey Walton  wrote:
> On Tue, Apr 4, 2023 at 9:46 AM Stefan Monnier
>  wrote:
> >  
> > > Here are three more data points.
> > >
> > >* Emacs - 41 CVEs since 2000 [1]
> > >* Vi - 61 CVEs since 1999 [2]
> > >* Vim - 656 CVEs since 2001 [3]
> > >
> > > I'm not sure how many CVEs overlap for Vim due to Vi.  
> >
> > I don't know what the number of CVEs tells us about a project...  
> 
> I'm a big fan of, past performance is an indicator of future
> expectations. Whatever is happening, it is probably going to continue
> to happen, and more frequently to Vim.

But cropping and ignoring the actual point of Stefan's mail rather
misses the point and insults him. For example, three CVEs chosen at
random from the 'vim' list:

CVE-2010-3481   Multiple SQL injection vulnerabilities in
login.php in ApPHP PHP MicroCMS 1.0.1, when magic_quotes_gpc is
disabled, allow remote attackers to execute arbitrary SQL commands via
the (1) user_name and (2) password variables, possibly related to
include/classes/Login.php. NOTE: some of these details are obtained
from third party information. NOTE: the password vector might not be
vulnerable.

CVE-2010-2704   Buffer overflow in HP OpenView
Network Node Manager (OV NNM) 7.51 and 7.53 allows remote attackers to
execute arbitrary code via a long HTTP request to nnmrptconfig.exe.

CVE-2010-2703   Stack-based buffer overflow in the execvp_nc
function in the ov.dll module in HP OpenView Network Node Manager (OV
NNM) 7.51 and 7.53, when running on Windows, allows remote attackers to
execute arbitrary code via a long HTTP request to webappmon.exe. 

FWIW, the word SQL appears 127 times in the 'vim' CVEs, and the word
'vim' doesn't appear in most so I'm not sure how helpful these numbers
actually are.

> Jeff



Re: package libxnvctrl0 installed by xfce, but nouveau is installed

2023-04-04 Thread zithro



On 04 Apr 2023 16:56, Jeffrey Walton wrote:

On Tue, Apr 4, 2023 at 9:18 AM zithro  wrote:

I have a bug with the nouveau driver shown in dmesg, so I looked up for
solutions.
On freedesktop.org, they say to remove everything concerning nvidia
first, and only installing/using "nouveau" packages.
On my system, I found the package "libxnvctrl0" (by nvidia) which was
installed by xfce.
If I try to remove "libxnvctrl0", it wants to remove "xfce4-goodies" and
"xfce4-sensors-plugin".
Then, many packages are marked as "autoremove" (xfce-*, ristretto, ...).
Is that normal that xfce packages rely on an official nvidia library,
even when using nouveau ?

What should I do ?

Thanks, have a nice day !

PS:
I'm using an up-to-date Debian stable (uname: Linux debian
5.10.0-21-amd64 #1 SMP Debian 5.10.162-1 (2023-01-21) x86_64 GNU/Linux).

Output of "apt purge libxnvctrl0 --dry-run" :

The following packages were automatically installed and are no longer
required:
libqrencode4 ristretto xfce4-battery-plugin xfce4-clipman
xfce4-clipman-plugin xfce4-cpufreq-plugin xfce4-cpugraph-plugin
xfce4-datetime-plugin xfce4-dict xfce4-diskperf-plugin
xfce4-fsguard-plugin xfce4-genmon-plugin xfce4-mailwatch-plugin
xfce4-netload-plugin xfce4-places-plugin xfce4-screenshooter
xfce4-smartbookmark-plugin xfce4-systemload-plugin
xfce4-taskmanager xfce4-timer-plugin xfce4-verve-plugin
xfce4-wavelan-plugin xfce4-weather-plugin
xfce4-whiskermenu-plugin xfce4-xkb-plugin
Use 'apt autoremove' to remove them.
The following packages will be REMOVED:
libxnvctrl0* xfce4-goodies* xfce4-sensors-plugin*
0 upgraded, 0 newly installed, 3 to remove and 0 not upgraded.
Purg xfce4-goodies [4.14.0]
Purg xfce4-sensors-plugin [1.3.0-3]
Purg libxnvctrl0 [470.141.03-1~deb11u1]

I think you can take one of two actions.

First, if you have not removed the recommended packages that are no
longer needed, then use apt-mark to change them from auto to manual.
Something like:

 apt-mark manual xfce4-goodies xfce4-sensors-plugin libxnvctrl0

Second, if you have removed them, then manually install them. Apt
should leave them alone after that. Something like:

 apt-get install xfce4-goodies xfce4-sensors-plugin libxnvctrl0



Thank you for your quick answer !
Unfortunately, "libxnvctrl0" is a dependency for "xfce4-sensors-plugin" :

apt show xfce4-sensors-plugin
Depends: libxnvctrl0

So marking the packages provides the exact same output as above.

Should I report a bug in the "xfce4-sensors-plugin" package ?



Re: How to enable the audio on the Kinect 1 so that I can talk without having the microphone attached to my mouth...on Debian.

2023-04-04 Thread Mario Marietto
I have even compiled it from source :

root@Z390-AORUS-PRO-DEST:/mnt/zroot2/zroot2/kinect-1-audio# git clone git://
git.ao2.it/kinect-audio-setup.git

Clone in 'kinect-audio-setup' in corso...
remote: Counting objects: 651, done.
remote: Compressing objects: 100% (641/641), done.
remote: Total 651 (delta 401), reused 0 (delta 0)
Ricezione degli oggetti: 100% (651/651), 92.48 KiB | 635.00 KiB/s, fatto.
Risoluzione dei delta: 100% (401/401), fatto.

root@Z390-AORUS-PRO-DEST:/mnt/zroot2/zroot2/kinect-1-audio/kinect-audio-setup#
make install

make -C kinect_upload_fw install
make[1]: ingresso nella directory
«/mnt/zroot2/zroot2/kinect-1-audio/kinect-audio-setup/kinect_upload_fw»
cc -std=c99 -pedantic -Wall -Wextra -O2 -fno-common -Wall -Wextra
-Wformat=2 -Winit-self -Winline -Wpacked -Wp,-D_FORTIFY_SOURCE=2
-Wpointer-arith
-Wlarger-than-65500 -Wmissing-declarations -Wmissing-format-attribute
-Wmissing-noreturn -Wmissing-prototypes -Wnested-externs -Wold-style-defini
tion -Wredundant-decls -Wsign-compare -Wstrict-aliasing=2
-Wstrict-prototypes -Wswitch-enum -Wundef -Wunreachable-code
-Wwrite-strings -Wunsafe-lo
op-optimizations -I/usr/include/libusb-1.0   -c -o endian.o endian.c
cc   endian.o  -lusb-1.0 -o endian
rm -f endian.h
./endian > endian.h
cc -std=c99 -pedantic -Wall -Wextra -O2 -fno-common -Wall -Wextra
-Wformat=2 -Winit-self -Winline -Wpacked -Wp,-D_FORTIFY_SOURCE=2
-Wpointer-arith
-Wlarger-than-65500 -Wmissing-declarations -Wmissing-format-attribute
-Wmissing-noreturn -Wmissing-prototypes -Wnested-externs -Wold-style-defini
tion -Wredundant-decls -Wsign-compare -Wstrict-aliasing=2
-Wstrict-prototypes -Wswitch-enum -Wundef -Wunreachable-code
-Wwrite-strings -Wunsafe-lo
op-optimizations -I/usr/include/libusb-1.0   -c -o kinect_upload_fw.o
kinect_upload_fw.c
In file included from kinect_upload_fw.c:38:
/usr/include/libusb-1.0/libusb.h:937:1: warning: packed attribute is
unnecessary for ‘libusb_control_setup’ [-Wpacked]
 937 | } LIBUSB_PACKED;
 | ^
kinect_upload_fw.c: In function ‘main’:
kinect_upload_fw.c:270:9: warning: ‘libusb_set_debug’ is deprecated: Use
libusb_set_option instead [-Wdeprecated-declarations]
 270 | libusb_set_debug(NULL, 3);
 | ^~~~
In file included from kinect_upload_fw.c:38:
/usr/include/libusb-1.0/libusb.h:1362:18: note: declared here
1362 | void LIBUSB_CALL libusb_set_debug(libusb_context *ctx, int level);
 |  ^~~~
cc   kinect_upload_fw.o  -lusb-1.0 -o kinect_upload_fw
install -d /usr/local/sbin
install -m 755 kinect_upload_fw /usr/local/sbin
make[1]: uscita dalla directory
«/mnt/zroot2/zroot2/kinect-1-audio/kinect-audio-setup/kinect_upload_fw»

root@Z390-AORUS-PRO-DEST:/mnt/zroot2/zroot2/kinect-1-audio/kinect-audio-setup#
make install_udev_rules FIRMWARE_PATH=/lib/firmware/kinect/UACFirmware
LOADER_PATH=/usr/local/sbin/kinect_upload_fw

install -d /lib/udev/rules.d
install -m 644 contrib/55-kinect_audio.rules.in
/lib/udev/rules.d/55-kinect_audio.rules
./kinect_patch_udev_rules \
 "/lib/firmware/kinect/UACFirmware" \
 "/usr/local/sbin/kinect_upload_fw" \
 "/lib/udev/rules.d/55-kinect_audio.rules"

root@Z390-AORUS-PRO-DEST:/mnt/zroot2/zroot2/kinect-1-audio/kinect-audio-setup#
./kinect_fetch_fw /lib/firmware/kinect

This script is going to download the UAC Firmware for the Microsoft
Kinect Sensor device from the Microsoft Kinect for Windows SDK:
http://kinectforwindows.org/

The full license of the SDK can be found at:
http://research.microsoft.com/en-us/um/legal/kinectsdk-tou_noncommercial.htm

--2023-04-04 17:04:23--
http://download.microsoft.com/download/F/9/9/F99791F2-D5BE-478A-B77A-830AD14950C3/KinectSDK-v1.0-beta2-x86.msi
Risoluzione di download.microsoft.com (download.microsoft.com)...
23.59.69.117, 2a02:26f0:1d00:29b::317f, 2a02:26f0:1d00:2ad::317f
Connessione a download.microsoft.com
(download.microsoft.com)|23.59.69.117|:80...
connesso.
Richiesta HTTP inviata, in attesa di risposta... 302 Moved Temporarily
Posizione:
https://download.microsoft.com/download/F/9/9/F99791F2-D5BE-478A-B77A-830AD14950C3/KinectSDK-v1.0-beta2-x86.msi
[segue]
--2023-04-04 17:04:23--
https://download.microsoft.com/download/F/9/9/F99791F2-D5BE-478A-B77A-830AD14950C3/KinectSDK-v1.0-beta2-x86.msi
Connessione a download.microsoft.com
(download.microsoft.com)|23.59.69.117|:443...
connesso.
Richiesta HTTP inviata, in attesa di risposta... 200 OK
Lunghezza: 21823488 (21M) [application/octet-stream]
Salvataggio in: ‘KinectSDK-v1.0-beta2-x86.msi’

KinectSDK-v1.0-beta2-x86.msi

100%[>]
 20.81M  8.51MB/sin 2.4s

2023-04-04 17:04:25 (8.51 MB/s) - ‘KinectSDK-v1.0-beta2-x86.msi’ salvato
[21823488/21823488]

Extracting the UAC firmware... done.

root@Z390-AORUS-PRO-DEST:/mnt/zroot2/zroot2/kinect-1-audio/kinect-audio-setup#
udevadm control --reload-rules

root@Z390-AORUS-PRO-DEST:/mnt/zroot2/zroot2/kinect-1-audio/kinect-audio-setup#
cat /proc/asound/cards

0 [PCH 

Re: package libxnvctrl0 installed by xfce, but nouveau is installed

2023-04-04 Thread Vincent Lefevre
On 2023-04-04 15:00:11 +0200, zithro wrote:
> I have a bug with the nouveau driver shown in dmesg, so I looked up for
> solutions.
> On freedesktop.org, they say to remove everything concerning nvidia first,
> and only installing/using "nouveau" packages.
> On my system, I found the package "libxnvctrl0" (by nvidia) which was
> installed by xfce.
> If I try to remove "libxnvctrl0", it wants to remove "xfce4-goodies" and
> "xfce4-sensors-plugin".
> Then, many packages are marked as "autoremove" (xfce-*, ristretto, ...).
> Is that normal that xfce packages rely on an official nvidia library, even
> when using nouveau ?

Perhaps. It is possible that some tools provided by these xfce
packages are linked against this library, so that a dependency
is required (otherwise, these tools would not be able to run,
even if they will not have to call functions from this library
in your case, e.g. when using nouveau).

> What should I do ?

Just keep this package installed. Since this is just a library
package (as you can check with "dpkg -L libxnvctrl0"), it should
not hurt.

IMHO, when they say to remove everything concerning nvidia first,
they probably mean packages that contain drivers and/or daemons
(and possibly some binaries), as they could be loaded/executed by
default.

-- 
Vincent Lefèvre  - Web: 
100% accessible validated (X)HTML - Blog: 
Work: CR INRIA - computer arithmetic / AriC project (LIP, ENS-Lyon)



Re: package libxnvctrl0 installed by xfce, but nouveau is installed

2023-04-04 Thread Jeffrey Walton
On Tue, Apr 4, 2023 at 9:18 AM zithro  wrote:
>
> I have a bug with the nouveau driver shown in dmesg, so I looked up for
> solutions.
> On freedesktop.org, they say to remove everything concerning nvidia
> first, and only installing/using "nouveau" packages.
> On my system, I found the package "libxnvctrl0" (by nvidia) which was
> installed by xfce.
> If I try to remove "libxnvctrl0", it wants to remove "xfce4-goodies" and
> "xfce4-sensors-plugin".
> Then, many packages are marked as "autoremove" (xfce-*, ristretto, ...).
> Is that normal that xfce packages rely on an official nvidia library,
> even when using nouveau ?
>
> What should I do ?
>
> Thanks, have a nice day !
>
> PS:
> I'm using an up-to-date Debian stable (uname: Linux debian
> 5.10.0-21-amd64 #1 SMP Debian 5.10.162-1 (2023-01-21) x86_64 GNU/Linux).
>
> Output of "apt purge libxnvctrl0 --dry-run" :
>
> The following packages were automatically installed and are no longer
> required:
>libqrencode4 ristretto xfce4-battery-plugin xfce4-clipman
> xfce4-clipman-plugin xfce4-cpufreq-plugin xfce4-cpugraph-plugin
>xfce4-datetime-plugin xfce4-dict xfce4-diskperf-plugin
> xfce4-fsguard-plugin xfce4-genmon-plugin xfce4-mailwatch-plugin
>xfce4-netload-plugin xfce4-places-plugin xfce4-screenshooter
> xfce4-smartbookmark-plugin xfce4-systemload-plugin
>xfce4-taskmanager xfce4-timer-plugin xfce4-verve-plugin
> xfce4-wavelan-plugin xfce4-weather-plugin
>xfce4-whiskermenu-plugin xfce4-xkb-plugin
> Use 'apt autoremove' to remove them.
> The following packages will be REMOVED:
>libxnvctrl0* xfce4-goodies* xfce4-sensors-plugin*
> 0 upgraded, 0 newly installed, 3 to remove and 0 not upgraded.
> Purg xfce4-goodies [4.14.0]
> Purg xfce4-sensors-plugin [1.3.0-3]
> Purg libxnvctrl0 [470.141.03-1~deb11u1]

I think you can take one of two actions.

First, if you have not removed the recommended packages that are no
longer needed, then use apt-mark to change them from auto to manual.
Something like:

apt-mark manual xfce4-goodies xfce4-sensors-plugin libxnvctrl0

Second, if you have removed them, then manually install them. Apt
should leave them alone after that. Something like:

apt-get install xfce4-goodies xfce4-sensors-plugin libxnvctrl0

Also see the apt-mark(8) man page:

APT-MARK(8)   APT  APT-MARK(8)

NAME
   apt-mark - show, set and unset various settings for a package

SYNOPSIS
   apt-mark {-f=filename | {auto | manual} pkg...  |
{showauto | showmanual} [pkg...] } | {-v | --version} |
{-h | --help}

   apt-mark {hold | unhold | install | remove | purge} pkg...  |
{showhold | showinstall | showremove | showpurge} [pkg...]

DESCRIPTION
   apt-mark can be used as a unified front-end to set various settings for
   a package, such as marking a package as being automatically/manually
   installed or changing dpkg selections such as hold, install, deinstall
   and purge which are respected e.g. by apt-get dselect-upgrade or
   aptitude.

Jeff



Re: How to enable the audio on the Kinect 1 so that I can talk without having the microphone attached to my mouth...on Debian.

2023-04-04 Thread Mario Marietto
I have installed the package on Ubuntu 22.04. Same situation that I have on
Debian 11. It is not recognized as sound device :

root@Z390-AORUS-PRO-DEST:/mnt/zroot2/zroot2/kinect-1-audio# lsb_release -a

LSB Version:core-11.1.0ubuntu4-noarch:security-11.1.0ubuntu4-noarch
Distributor ID: Ubuntu
Description:Ubuntu 22.04.2 LTS
Release:22.04
Codename:   jammy

root@Z390-AORUS-PRO-DEST:/mnt/zroot2/zroot2/kinect-1-audio# cat
/proc/asound/cards

0 [PCH]: HDA-Intel - HDA Intel PCH
 HDA Intel PCH at 0x8933 irq 159
1 [Device ]: USB-Audio - USB Audio Device
 C-Media Electronics Inc. USB Audio Device at
usb-:00:14.0-3.1.2, full speed
4 [Device_1   ]: USB-Audio - USB Audio Device
 C-Media Electronics Inc. USB Audio Device at
usb-:00:14.0-3.1.3, full speed

On Tue, Apr 4, 2023 at 4:43 PM Mario Marietto 
wrote:

> I've fixed the issue and I have installed the deb package :
>
> root@marietto:/mnt/zroot2/zroot2/kinect-1-audio# dpkg -i
> hark-kinect_1.2.0.4440_amd64.deb
>
> (Lettura del database... 347122 file e directory attualmente installati.)
> Preparativi per estrarre hark-kinect_1.2.0.4440_amd64.deb...
> Estrazione di hark-kinect (1.2.0.4440) su (1.2.0.4440)...
> Configurazione di hark-kinect (1.2.0.4440)...
>
> This script is going to download the UAC Firmware for the Microsoft
> Kinect Sensor device from the Microsoft Kinect for Windows SDK:
> http://kinectforwindows.org/
>
> The full license of the SDK can be found at:
> http://www.kinectforwindows.org/download/EULA.htm
>
> --2023-04-04 16:22:19--
> http://download.microsoft.com/download/F/9/9/F99791F2-D5BE-478A-B77A-830AD14950C3/KinectSDK-v1.0-beta2-x86.msi
> Risoluzione di download.microsoft.com (download.microsoft.com)...
> 23.59.69.117, 2a02:26f0:8d00:686::317f, 2a02:26f0:8d00:691::317f
> Connessione a download.microsoft.com 
> (download.microsoft.com)|23.59.69.117|:80...
> connesso.
> Richiesta HTTP inviata, in attesa di risposta... 302 Moved Temporarily
> Posizione:
> https://download.microsoft.com/download/F/9/9/F99791F2-D5BE-478A-B77A-830AD14950C3/KinectSDK-v1.0-beta2-x86.msi
> [segue]
> --2023-04-04 16:22:19--
> https://download.microsoft.com/download/F/9/9/F99791F2-D5BE-478A-B77A-830AD14950C3/KinectSDK-v1.0-beta2-x86.msi
> Connessione a download.microsoft.com 
> (download.microsoft.com)|23.59.69.117|:443...
> connesso.
> Richiesta HTTP inviata, in attesa di risposta... 200 OK
> Lunghezza: 21823488 (21M) [application/octet-stream]
> Salvataggio in: «KinectSDK-v1.0-beta2-x86.msi»
>
> KinectSDK-v1.0-beta2-x86 100%[==>]  20,81M
>  8,58MB/sin 2,4s
>
> 2023-04-04 16:22:21 (8,58 MB/s) - «KinectSDK-v1.0-beta2-x86.msi» salvato
> [21823488/21823488]
>
> 945806927702b2c47c32125ab9a80344
> 945806927702b2c47c32125ab9a80344
> Extracting the UAC firmware...
> 7-Zip [64] 16.02 : Copyright (c) 1999-2016 Igor Pavlov : 2016-05-21
> p7zip Version 16.02 (locale=it_IT.UTF-8,Utf16=on,HugeFiles=on,64 bits,16
> CPUs Intel(R) Core(TM) i9-9900K CPU @ 3.60GHz (906ED),ASM,AES-NI)
>
> Scanning the drive for archives:
> 1 file, 21823488 bytes (21 MiB)
>
> Extracting archive: KinectSDK-v1.0-beta2-x86.msi
> --
> Path = KinectSDK-v1.0-beta2-x86.msi
> Type = Compound
> Physical Size = 21823488
> Extension = msi
> Cluster Size = 4096
> Sector Size = 64
> 
> Path = media1.cab
> Size = 20488022
> Packed Size = 20488192
> --
> Path = media1.cab
> Type = Cab
> Physical Size = 20488022
> Method = MSZip
> Blocks = 10
> Volumes = 1
> Volume Index = 0
> ID = 0
>
> Everything is Ok
>
> Files: 4
> Size:   434176
> Compressed: 21823488
>  done.
> Elaborazione dei trigger per man-db (2.9.4-2)...
>
> I don't see errors,but I still don't see the kinect between the sounds
> cards :
>
> root@marietto:/mnt/zroot2/zroot2/kinect-1-audio# cat /proc/asound/cards
>
>  0 [Device_1   ]: USB-Audio - USB Audio Device
>   C-Media Electronics Inc. USB Audio Device at
> usb-:00:14.0-3.1.3, full speed
>  1 [Device ]: USB-Audio - USB Audio Device
>   C-Media Electronics Inc. USB Audio Device at
> usb-:00:14.0-3.1.2, full speed
>  2 [PCH]: HDA-Intel - HDA Intel PCH
>   HDA Intel PCH at 0x8933 irq 160
>  3 [NVidia ]: HDA-Intel - HDA NVidia
>   HDA NVidia at 0x8708 irq 17
>  4 [NVidia_1   ]: HDA-Intel - HDA NVidia
>   HDA NVidia at 0x8308 irq 18
>
> What should I do now ?
>
> On Tue, Apr 4, 2023 at 2:13 PM Mario Marietto 
> wrote:
>
>> Seems like they moved them, I found the devs here:
>>
>> http://archive.hark.jp/harkoldrepos/dists/precise/non-free/binary-amd64/
>>
>> but It does not work :
>>
>> marietto@marietto:/mnt/zroot2/zroot2/AlexaChatGPT$ sudo dpkg -i
>> hark-kinect_1.2.0.4440_amd64.deb
>>
>> Selezionato il pacchetto hark-kinect non precedentemente selezionato.
>> (Lettura del database... 347111 file e dir

Re: How to enable the audio on the Kinect 1 so that I can talk without having the microphone attached to my mouth...on Debian.

2023-04-04 Thread Mario Marietto
I've fixed the issue and I have installed the deb package :

root@marietto:/mnt/zroot2/zroot2/kinect-1-audio# dpkg -i
hark-kinect_1.2.0.4440_amd64.deb

(Lettura del database... 347122 file e directory attualmente installati.)
Preparativi per estrarre hark-kinect_1.2.0.4440_amd64.deb...
Estrazione di hark-kinect (1.2.0.4440) su (1.2.0.4440)...
Configurazione di hark-kinect (1.2.0.4440)...

This script is going to download the UAC Firmware for the Microsoft
Kinect Sensor device from the Microsoft Kinect for Windows SDK:
http://kinectforwindows.org/

The full license of the SDK can be found at:
http://www.kinectforwindows.org/download/EULA.htm

--2023-04-04 16:22:19--
http://download.microsoft.com/download/F/9/9/F99791F2-D5BE-478A-B77A-830AD14950C3/KinectSDK-v1.0-beta2-x86.msi
Risoluzione di download.microsoft.com (download.microsoft.com)...
23.59.69.117, 2a02:26f0:8d00:686::317f, 2a02:26f0:8d00:691::317f
Connessione a download.microsoft.com
(download.microsoft.com)|23.59.69.117|:80...
connesso.
Richiesta HTTP inviata, in attesa di risposta... 302 Moved Temporarily
Posizione:
https://download.microsoft.com/download/F/9/9/F99791F2-D5BE-478A-B77A-830AD14950C3/KinectSDK-v1.0-beta2-x86.msi
[segue]
--2023-04-04 16:22:19--
https://download.microsoft.com/download/F/9/9/F99791F2-D5BE-478A-B77A-830AD14950C3/KinectSDK-v1.0-beta2-x86.msi
Connessione a download.microsoft.com
(download.microsoft.com)|23.59.69.117|:443...
connesso.
Richiesta HTTP inviata, in attesa di risposta... 200 OK
Lunghezza: 21823488 (21M) [application/octet-stream]
Salvataggio in: «KinectSDK-v1.0-beta2-x86.msi»

KinectSDK-v1.0-beta2-x86 100%[==>]  20,81M
 8,58MB/sin 2,4s

2023-04-04 16:22:21 (8,58 MB/s) - «KinectSDK-v1.0-beta2-x86.msi» salvato
[21823488/21823488]

945806927702b2c47c32125ab9a80344
945806927702b2c47c32125ab9a80344
Extracting the UAC firmware...
7-Zip [64] 16.02 : Copyright (c) 1999-2016 Igor Pavlov : 2016-05-21
p7zip Version 16.02 (locale=it_IT.UTF-8,Utf16=on,HugeFiles=on,64 bits,16
CPUs Intel(R) Core(TM) i9-9900K CPU @ 3.60GHz (906ED),ASM,AES-NI)

Scanning the drive for archives:
1 file, 21823488 bytes (21 MiB)

Extracting archive: KinectSDK-v1.0-beta2-x86.msi
--
Path = KinectSDK-v1.0-beta2-x86.msi
Type = Compound
Physical Size = 21823488
Extension = msi
Cluster Size = 4096
Sector Size = 64

Path = media1.cab
Size = 20488022
Packed Size = 20488192
--
Path = media1.cab
Type = Cab
Physical Size = 20488022
Method = MSZip
Blocks = 10
Volumes = 1
Volume Index = 0
ID = 0

Everything is Ok

Files: 4
Size:   434176
Compressed: 21823488
 done.
Elaborazione dei trigger per man-db (2.9.4-2)...

I don't see errors,but I still don't see the kinect between the sounds
cards :

root@marietto:/mnt/zroot2/zroot2/kinect-1-audio# cat /proc/asound/cards

 0 [Device_1   ]: USB-Audio - USB Audio Device
  C-Media Electronics Inc. USB Audio Device at
usb-:00:14.0-3.1.3, full speed
 1 [Device ]: USB-Audio - USB Audio Device
  C-Media Electronics Inc. USB Audio Device at
usb-:00:14.0-3.1.2, full speed
 2 [PCH]: HDA-Intel - HDA Intel PCH
  HDA Intel PCH at 0x8933 irq 160
 3 [NVidia ]: HDA-Intel - HDA NVidia
  HDA NVidia at 0x8708 irq 17
 4 [NVidia_1   ]: HDA-Intel - HDA NVidia
  HDA NVidia at 0x8308 irq 18

What should I do now ?

On Tue, Apr 4, 2023 at 2:13 PM Mario Marietto 
wrote:

> Seems like they moved them, I found the devs here:
>
> http://archive.hark.jp/harkoldrepos/dists/precise/non-free/binary-amd64/
>
> but It does not work :
>
> marietto@marietto:/mnt/zroot2/zroot2/AlexaChatGPT$ sudo dpkg -i
> hark-kinect_1.2.0.4440_amd64.deb
>
> Selezionato il pacchetto hark-kinect non precedentemente selezionato.
> (Lettura del database... 347111 file e directory attualmente installati.)
> Preparativi per estrarre hark-kinect_1.2.0.4440_amd64.deb...
> Estrazione di hark-kinect (1.2.0.4440)...
> Configurazione di hark-kinect (1.2.0.4440)...
>
> This script is going to download the UAC Firmware for the Microsoft
> Kinect Sensor device from the Microsoft Kinect for Windows SDK:
> http://kinectforwindows.org/
>
> The full license of the SDK can be found at:
> http://www.kinectforwindows.org/download/EULA.htm
>
> --2023-04-04 14:10:22--
> http://download.microsoft.com/download/F/9/9/F99791F2-D5BE-478A-B77A-830AD14950C3/KinectSDK-v1.0-beta2-x86.msi
> Risoluzione di download.microsoft.com (download.microsoft.com)...
> 92.122.248.205, 2a02:26f0:8d00:691::317f, 2a02:26f0:8d00:686::317f
> Connessione a download.microsoft.com 
> (download.microsoft.com)|92.122.248.205|:80...
> connesso.
> Richiesta HTTP inviata, in attesa di risposta... 302 Moved Temporarily
> Posizione:
> https://download.microsoft.com/download/F/9/9/F99791F2-D5BE-478A-B77A-830AD14950C3/KinectSDK-v1.0-beta2-x86.msi
> [segue]
> --2023-04-04 14:10:22--
> https://download.microsoft.com/download/F/9/9/F99791F2-D5

Re: Is perl still the No.1 language for sysadmin?

2023-04-04 Thread Jeffrey Walton
On Tue, Apr 4, 2023 at 9:46 AM Stefan Monnier  wrote:
>
> > Here are three more data points.
> >
> >* Emacs - 41 CVEs since 2000 [1]
> >* Vi - 61 CVEs since 1999 [2]
> >* Vim - 656 CVEs since 2001 [3]
> >
> > I'm not sure how many CVEs overlap for Vim due to Vi.
>
> I don't know what the number of CVEs tells us about a project...

I'm a big fan of, past performance is an indicator of future
expectations. Whatever is happening, it is probably going to continue
to happen, and more frequently to Vim.

Jeff



Re: Is perl still the No.1 language for sysadmin?

2023-04-04 Thread Stefan Monnier
> Here are three more data points.
>
>* Emacs - 41 CVEs since 2000 [1]
>* Vi - 61 CVEs since 1999 [2]
>* Vim - 656 CVEs since 2001 [3]
>
> I'm not sure how many CVEs overlap for Vim due to Vi.

I don't know what the number of CVEs tells us about a project, but the
above additionally suffers from the fact that it's just searching for
a keyword, so for `vi` most(all?) matches are unrelated to the
famous editor.


Stefan



Re: my immature thoughts on perl

2023-04-04 Thread Andy Smith
Hello,

On Tue, Apr 04, 2023 at 10:35:39AM +0800, cor...@free.fr wrote:
> How do you think of it?

I think you should use Ruby if you like Ruby better!

Honestly, we aren't the "I'd Like An Argument Please" sketch; if we
were then you'd have to be paying. As it stands I am only doing this
in my spare time.

That is, why are you asking people to convince you to like Perl?
There are lots of languages and you appear to have found one you
like better.

Cheers,
Andy

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



Re: Is perl still the No.1 language for sysadmin?

2023-04-04 Thread Andy Smith
Hello,

On Tue, Apr 04, 2023 at 05:35:04AM +0200, local10 wrote:
> Apr 4, 2023, 00:16 by in...@dataswamp.org:
> > Andy Smith wrote:
> >
> >> The argument being responded to is roughly that "a popular
> >> AI coding assistant is written in Python, and Python is
> >> a Turing-complete language, therefore there doesn't need to
> >> be any programming language other than Python."
> 
> What "AI coding assistant is written in Python" are you referring to? Just 
> curious.

Whichever one Oliver Schoede was referring to in
<20230402233616.2...@online.de> when they said:

Turns out though ChatGPT is--as virtually all ML code--written
in Python, that's at least according to Wikipedia and not too
surprising. There you go. Depending on what you make of it,
there may not come much after Python

I neither know nor care if that assertion is true, because my point
was that the above is a thought experiment in no way applicable to
what started this thread, which was someone asking about what
language a sysadmin of today should learn!

Cheers,
Andy

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



Re: Is perl still the No.1 language for sysadmin?

2023-04-04 Thread Jeffrey Walton
On Mon, Apr 3, 2023 at 1:31 PM Emanuel Berg  wrote:
>
> Jeffrey Walton wrote:
>
> >> I saw many commands in /bin and /usr/bin are written by
> >> perl. is perl still the first choice for sysadmin on linux?
> >
> > I am surprised this thread has not started a mini-flame war.
>
> We are working on it ...
>
> > About the best you can say is, Perl is one of the more
> > popular scripting languages. Trying to pin down the "best"
> > will fail because it is opinion based.
>
> I think the true professional should be able to read/edit both
> and be pretty fluent in at least one. (Here, by professional
> I mean in terms of skills and dedication, not necessarily
> making a living doing it.) Perl is cooler and more old-school,
> maybe ultimately more powerful and creative from what you guys
> say about it, but if you don't know either I think the ease of
> learning it, development speed, the volume of people doing it
> and available resources to help you with that online, that
> favors Python as the 1st choice.
>
> > Next, you might ask which is the best editor to use on Unix
> > & Linux. That should really stir the pot :) Emacs for
> > the win!
>
> You better believe it. It is based on Lisp!
>
> But I have respect for the Vi(m) people as well, for sure, not
> sure exactly what the currently prefered Vim-style editor
> implementation is? neovim?
>
> Here are the most popular channels on Libera right now.
> See arrows for editors, unless I missed someone.
>
> Emacs (position 16) has 854, Vim (22) has 705 and neovim (41)
> 490. However combined Vim has 1195 which would be position 6 -
> overlap not considered ...
>
> I you like that table (the enumeration), I made it with this:
>
>   https://dataswamp.org/~incal/emacs-init/enum.el [yanked last]
>
> Note the `cl-loop' at line 27 - I mentioned it earlier, CL
> functionality implemented in Elisp - and note especially the
> "unlispy" syntax - this as someone touched upon, that in Perl
> you can do the same thing in different ways - here we see
> a miniature language (the unlispy syntax, which is
> imperative/procedural in style, only better), replicating the
> behavior of another language CL, implemented by and used
> in Elisp!
>
> Still not convinced? Okay, use Vim, really, it's cool ...
>
>  1. #linux   2184
>  2. #fedora  1696
>  3. #python  1688
>  4. #libera  1577
>  5. #archlinux   1474
>  6. #ubuntu  1146
>  7. #networking  1035
>  8. ##rust968
>  9. #ansible  894
> 10. #security 884
> 11. #gentoo   875
> 12. #bash 867
> 13. #git  857
> 14. #c857
> 15. #postgresql   856
> 16. #emacs854  <-- Emacs
> 17. #debian   843
> 18. ##programming 760
> 19. #go-nuts  718
> 20. #openbsd  717
> 21. #freebsd  714
> 22. #vim  705  <-- Vim
> 23. #thelounge705
> 24. #hardware 702
> 25. #haskell  680
> 26. #wireguard668
> 27. #weechat  649
> 28. #lobsters 623
> 29. #plasma-bigscreen 613
> 30. ##math609
> 31. #matrix   608
> 32. #raspberrypi  580
> 33. #znc  578
> 34. #C++  573
> 35. #docker   556
> 36. #monero   530
> 37. #systemd  525
> 38. ##electronics 510
> 39. #podman   499
> 40. ##chat495
> 41. #neovim   490  <-- neovim
> 42. #hamradio 485

Here are three more data points.

   * Emacs - 41 CVEs since 2000 [1]
   * Vi - 61 CVEs since 1999 [2]
   * Vim - 656 CVEs since 2001 [3]

I'm not sure how many CVEs overlap for Vim due to Vi.

Jeff

[1] https://cve.mitre.org/cgi-bin/cvekey.cgi?keyword=emacs
[2] https://cve.mitre.org/cgi-bin/cvekey.cgi?keyword=vi
[3] https://cve.mitre.org/cgi-bin/cvekey.cgi?keyword=vim



package libxnvctrl0 installed by xfce, but nouveau is installed

2023-04-04 Thread zithro

Hello,

I have a bug with the nouveau driver shown in dmesg, so I looked up for 
solutions.
On freedesktop.org, they say to remove everything concerning nvidia 
first, and only installing/using "nouveau" packages.
On my system, I found the package "libxnvctrl0" (by nvidia) which was 
installed by xfce.
If I try to remove "libxnvctrl0", it wants to remove "xfce4-goodies" and 
"xfce4-sensors-plugin".

Then, many packages are marked as "autoremove" (xfce-*, ristretto, ...).
Is that normal that xfce packages rely on an official nvidia library, 
even when using nouveau ?


What should I do ?

Thanks, have a nice day !

PS:
I'm using an up-to-date Debian stable (uname: Linux debian 
5.10.0-21-amd64 #1 SMP Debian 5.10.162-1 (2023-01-21) x86_64 GNU/Linux).


Output of "apt purge libxnvctrl0 --dry-run" :

The following packages were automatically installed and are no longer 
required:
  libqrencode4 ristretto xfce4-battery-plugin xfce4-clipman 
xfce4-clipman-plugin xfce4-cpufreq-plugin xfce4-cpugraph-plugin
  xfce4-datetime-plugin xfce4-dict xfce4-diskperf-plugin 
xfce4-fsguard-plugin xfce4-genmon-plugin xfce4-mailwatch-plugin
  xfce4-netload-plugin xfce4-places-plugin xfce4-screenshooter 
xfce4-smartbookmark-plugin xfce4-systemload-plugin
  xfce4-taskmanager xfce4-timer-plugin xfce4-verve-plugin 
xfce4-wavelan-plugin xfce4-weather-plugin

  xfce4-whiskermenu-plugin xfce4-xkb-plugin
Use 'apt autoremove' to remove them.
The following packages will be REMOVED:
  libxnvctrl0* xfce4-goodies* xfce4-sensors-plugin*
0 upgraded, 0 newly installed, 3 to remove and 0 not upgraded.
Purg xfce4-goodies [4.14.0]
Purg xfce4-sensors-plugin [1.3.0-3]
Purg libxnvctrl0 [470.141.03-1~deb11u1]

This is the nouveau bug in dmesg :

[ cut here ]
WARNING: CPU: 0 PID: 2205 at drivers/gpu/drm/nouveau/nvif/vmm.c:68 
nvif_vmm_put+0x6e/0x80 [nouveau]
Modules linked in: nfnetlink xen_acpi_processor xen_gntdev xen_evtchn 
xenfs xen_privcmd bridge stp llc crc32_pclmul ghash_clmulni_intel 
snd_hda_codec_realtek snd_hda_codec_generic ledtrig_audio aesni_intel 
libaes crypto_simd snd_hda_codec_hdmi snd_hda_intel cryptd 
snd_intel_dspcfg glue_helper soundwire_intel 
soundwire_generic_allocation snd_soc_core wmi_bmof snd_compress 
soundwire_cadence pcspkr k10temp snd_hda_codec uas joydev snd_hda_core 
usb_storage sp5100_tco ccp snd_hwdep watchdog soundwire_bus i2c_piix4 
rng_core snd_pcm snd_timer snd soundcore cxgb3 r8169 mdio realtek 3c59x 
mdio_devres libphy mii sg nvme nvme_core drivetemp fuse sunrpc configfs 
ip_tables x_tables autofs4 ext4 crc16 mbcache jbd2 raid10 raid456 
libcrc32c crc32c_generic async_raid6_recov async_memcpy async_pq 
async_xor xor async_tx raid6_pq raid1 raid0 multipath linear md_mod 
xen_pciback hid_generic nouveau usbhid hid sd_mod t10_pi crc_t10dif 
crct10dif_generic video mxm_wmi i2c_algo_bit drm_kms_helper cec
 ahci xhci_pci libahci ttm xhci_hcd crct10dif_pclmul crct10dif_common 
drm libata crc32c_intel scsi_mod usbcore usb_common wmi evdev gpio_amdpt 
gpio_generic button
CPU: 0 PID: 2205 Comm: kworker/0:3 Not tainted 5.10.0-21-amd64 #1 Debian 
5.10.162-1
Hardware name: Micro-Star International Co., Ltd. MS-7A34/B350 PC 
MATE(MS-7A34), BIOS A.E0 05/02/2018

Workqueue: events nouveau_cli_work [nouveau]
RIP: e030:nvif_vmm_put+0x6e/0x80 [nouveau]
Code: 00 00 48 89 e2 be 02 00 00 00 48 c7 04 24 00 00 00 00 48 89 44 24 
08 e8 b0 e2 ff ff 85 c0 75 0a 48 c7 43 08 00 00 00 00 eb b3 <0f> 0b eb 
f2 e8 e9 19 4d c1 66 0f 1f 84 00 00 00 00 00 0f 1f 44 00

RSP: e02b:c90043187de0 EFLAGS: 00010282
RAX: fffe RBX: c90043187e08 RCX: 
RDX:  RSI: c90043187d50 RDI: c90043187df0
RBP: 88801066e7c0 R08: fffe R09: 
R10: 0030 R11: 0018 R12: 8880085262a0
R13: dead0100 R14: 888008526540 R15: 888008526430
FS:  () GS:88808000() knlGS:
CS:  e030 DS:  ES:  CR0: 80050033
CR2: 55f047765200 CR3: 084c2000 CR4: 00050660
Call Trace:
 nouveau_vma_del+0x7c/0xc0 [nouveau]
 nouveau_gem_object_delete_work+0x36/0x60 [nouveau]
 nouveau_cli_work+0xcc/0x120 [nouveau]
 process_one_work+0x1b6/0x350
 worker_thread+0x53/0x3e0
 ? process_one_work+0x350/0x350
 kthread+0x11b/0x140
 ? __kthread_bind_mask+0x60/0x60
 ret_from_fork+0x22/0x30
---[ end trace 08a2448b87ab436b ]---



Re: How to enable the audio on the Kinect 1 so that I can talk without having the microphone attached to my mouth...on Debian.

2023-04-04 Thread Dan Ritter
Mario Marietto wrote: 
> Seems like they moved them, I found the devs here:
> 
> http://archive.hark.jp/harkoldrepos/dists/precise/non-free/binary-amd64/
> 
> but It does not work :
> 
> marietto@marietto:/mnt/zroot2/zroot2/AlexaChatGPT$ sudo dpkg -i
> hark-kinect_1.2.0.4440_amd64.deb


That repository is for a version of Ubuntu, not Debian.

You probably want to talk to the author, and try compiling it
yourself.

-dsr-



Re: How to enable the audio on the Kinect 1 so that I can talk without having the microphone attached to my mouth...on Debian.

2023-04-04 Thread Mario Marietto
Seems like they moved them, I found the devs here:

http://archive.hark.jp/harkoldrepos/dists/precise/non-free/binary-amd64/

but It does not work :

marietto@marietto:/mnt/zroot2/zroot2/AlexaChatGPT$ sudo dpkg -i
hark-kinect_1.2.0.4440_amd64.deb

Selezionato il pacchetto hark-kinect non precedentemente selezionato.
(Lettura del database... 347111 file e directory attualmente installati.)
Preparativi per estrarre hark-kinect_1.2.0.4440_amd64.deb...
Estrazione di hark-kinect (1.2.0.4440)...
Configurazione di hark-kinect (1.2.0.4440)...

This script is going to download the UAC Firmware for the Microsoft
Kinect Sensor device from the Microsoft Kinect for Windows SDK:
http://kinectforwindows.org/

The full license of the SDK can be found at:
http://www.kinectforwindows.org/download/EULA.htm

--2023-04-04 14:10:22--
http://download.microsoft.com/download/F/9/9/F99791F2-D5BE-478A-B77A-830AD14950C3/KinectSDK-v1.0-beta2-x86.msi
Risoluzione di download.microsoft.com (download.microsoft.com)...
92.122.248.205, 2a02:26f0:8d00:691::317f, 2a02:26f0:8d00:686::317f
Connessione a download.microsoft.com
(download.microsoft.com)|92.122.248.205|:80...
connesso.
Richiesta HTTP inviata, in attesa di risposta... 302 Moved Temporarily
Posizione:
https://download.microsoft.com/download/F/9/9/F99791F2-D5BE-478A-B77A-830AD14950C3/KinectSDK-v1.0-beta2-x86.msi
[segue]
--2023-04-04 14:10:22--
https://download.microsoft.com/download/F/9/9/F99791F2-D5BE-478A-B77A-830AD14950C3/KinectSDK-v1.0-beta2-x86.msi
Connessione a download.microsoft.com
(download.microsoft.com)|92.122.248.205|:443...
connesso.
Richiesta HTTP inviata, in attesa di risposta... 200 OK
Lunghezza: 21823488 (21M) [application/octet-stream]
Salvataggio in: «KinectSDK-v1.0-beta2-x86.msi»

KinectSDK-v1.0-beta2-x86 100%[==>]  20,81M
 8,57MB/sin 2,4s

2023-04-04 14:10:25 (8,57 MB/s) - «KinectSDK-v1.0-beta2-x86.msi» salvato
[21823488/21823488]

kinect_fetch_fw: Invalid hash for file 'KinectSDK-v1.0-beta2-x86.msi'.

==
  Error : Non Download File
  Please Remove & Re-install hark-kinect
  Remove  Command : sudo apt-get remove hark-kinect
  Insatll Command : sudo apt-get hark-kinect
==

dpkg: errore nell'elaborare il pacchetto hark-kinect (--install):
 il sottoprocesso installato pacchetto hark-kinect script post-installation
ha restituito lo stato di errore 1
Elaborazione dei trigger per man-db (2.9.4-2)...
Si sono verificati degli errori nell'elaborazione:
 hark-kinect

On Tue, Apr 4, 2023 at 1:33 PM Mario Marietto 
wrote:

> Hello to everyone,
>
> I would like to enable the audio on my old kinect 1 so that I can talk
> without having the microphone attached to my mouth. I see that in the past
> this could be done installing the package called "hark-kinect",as explained
> here :
>
>
> https://gist.github.com/awesomebytes/924493bcdb358f5e71fdff93c2896730
>
>
> https://github.com/uts-magic-lab/hark_sound_localization/blob/master/pr2_kinect_audio.md
>
>
> I'm using Debian 11 at the moment. The problem is that it seems that it
> does not exist anymore. The repo is the following :
>
>
> deb [arch=amd64 signed-by=/usr/share/keyrings/hark-archive-keyring.asc] 
> http://archive.hark.jp/harkrepos precise non-free
> deb-src [arch=amd64 signed-by=/usr/share/keyrings/hark-archive-keyring.asc] 
> http://archive.hark.jp/harkrepos precise non-free
>
>
> but it does not exists :
>
>
> marietto@marietto:/mnt/zroot2/zroot2/AlexaChatGPT$ sudo apt update
>
> Found:1 http://security.debian.org/debian-security bullseye-security InRelease
> Found:2 http://deb.debian.org/debian bullseye InRelease
> Getting of:3 http://deb.debian.org/debian bullseye-updates InRelease [44,1 kB]
> Found:4 https://linux.teamviewer.com/deb stable InRelease
> Found:5 https://dl.google.com /linux/chrome/deb stable InRelease
> Found:6 https://packages.microsoft.com/repos/edge stable InRelease
> Found:7 https://packages.microsoft.com/debian/11/prod bullseye InRelease
> Ignored:8 http://archive.hark.jp/harkrepos precise InRelease
> Getting of:9 http://archive.hark.jp/harkrepos precise Release [8.157 B]
> Getting of:10 http://archive.hark.jp/harkrepos precise Release.gpg [473 B]
> Getting of:11 http://archive.hark.jp/harkrepos precise/non-free Sources 
> [9.117 B]
> Getting of:12 http://archive.hark.jp/harkrepos precise/non-free amd64 
> Packages [7.427 B]
> Downloaded 69,2 kB in 3s (26,0 kB/s)
> All the packages are updated.
>
>
> marietto@marietto:/mnt/zroot2/zroot2/AlexaChatGPT$ sudo apt-get install 
> hark-kinect
> E: can't find package hark-kinect
>
>
> Just in case I can't use this hack,do you know about any alternative
> method ? thanks.
>
> --
> Mario.
>


-- 
Mario.


Re: my immature thoughts on perl

2023-04-04 Thread Ken Peng




to...@tuxteam.de wrote:

I think watching carefully Tcl's evolution teaches a lot about
languages, the type of design decisions going into them and their
(changing) context.


I was surprised to see many people here still use TCL.
Many years ago I used this language for sysadmin jobs.
It was working just fine.


--
https://kenpeng.pages.dev/



Re: Which Diff tool could I use for visually comparing two text files where Word Wrap is possible?

2023-04-04 Thread davidson

On Tue, 4 Apr 2023 david...@freevolt.org wrote:

On Tue, 4 Apr 2023 davidson wrote:
[trim]

icdiff will not do that. icdiff is faithful to its sources. I have
determined this by trying it out a little myself, and by examining the
command line options documented in its manual page ("man icdiff").

You could give it different sources:

$ icdiff <( tr '\n' ' ' 

Typos ahead:


True.


$ icdiff-flowed () { <( tr '\n' ' ' 

Correction:

$ icdiff-flowed () { <( tr '\n' ' ' <"$1" ) <( tr '\n' ' ' <"$2" ) ; }


Yet another correction:

 $ icdiff-flowed () { icdiff <( tr '\n' ' ' <"$1" ) <( tr '\n' ' ' <"$2" ) ; }


and then use it like so

$ icdiff-flowed file1 file2 | less -R


And a caveat:

I recall that the files you are comparing are quite large.

The above worked on okay on about 1000 line files with about 50,000
characters.

But I would not use it with significantly larger files.

  $ wc -l vinge_1981_true_names.*html # how many lines
  3688 vinge_1981_true_names.html
  4152 vinge_1981_true_names.parafix.html

  $ du -h vinge_1981_true_names.*html
  176Kvinge_1981_true_names.html
  176Kvinge_1981_true_names.parafix.html

I think those were too big:

  $ icdiff-flowed vinge_1981_true_names.html vinge_1981_true_names.parafix.html 
>vinge_1981_true_names.icdiff_flowed
 Traceback (most recent call last):
  File "/usr/bin/icdiff", line 11, in 
load_entry_point('icdiff==1.9.5', 'console_scripts', 'icdiff')()
  File "/usr/lib/python3/dist-packages/icdiff.py", line 598, in start
diff(options, *args)
  File "/usr/lib/python3/dist-packages/icdiff.py", line 635, in diff
diff_files(options, a, b)
  File "/usr/lib/python3/dist-packages/icdiff.py", line 764, in diff_files
for line in cd.make_table(
  File "/usr/lib/python3/dist-packages/icdiff.py", line 350, in make_table
for left, right in self._generate_table(fromdesc, todesc, diffs):
  File "/usr/lib/python3/dist-packages/icdiff.py", line 360, in _generate_table
for i, line in enumerate(diffs):
  File "/usr/lib/python3/dist-packages/icdiff.py", line 255, in _collect_lines
for fromdata, todata, flag in diffs:
  File "/usr/lib/python3/dist-packages/icdiff.py", line 232, in _line_wrapper
self._split_line(fromlist, fromline, fromtext)
  File "/usr/lib/python3/dist-packages/icdiff.py", line 217, in _split_line
self._split_line(data_list, '>', line2)
  File "/usr/lib/python3/dist-packages/icdiff.py", line 217, in _split_line
self._split_line(data_list, '>', line2)
  File "/usr/lib/python3/dist-packages/icdiff.py", line 217, in _split_line
self._split_line(data_list, '>', line2)
  [Previous line repeated 984 more times]
  File "/usr/lib/python3/dist-packages/icdiff.py", line 180, in _split_line
if ((self._display_len(text) - (text.count('\0') * 3) <=
  File "/usr/lib/python3/dist-packages/icdiff.py", line 163, in _display_len
return sum(width(c) for c in s)
  File "/usr/lib/python3/dist-packages/icdiff.py", line 163, in 
return sum(width(c) for c in s)
  File "/usr/lib/python3/dist-packages/icdiff.py", line 156, in width
if ((isinstance(c, type(u"")) and
RecursionError: maximum recursion depth exceeded while calling a Python object

--
Sometimes it pays to have squirrels in your head running around making
you question everything.  -- Clive Robinson



How to enable the audio on the Kinect 1 so that I can talk without having the microphone attached to my mouth...on Debian.

2023-04-04 Thread Mario Marietto
Hello to everyone,

I would like to enable the audio on my old kinect 1 so that I can talk
without having the microphone attached to my mouth. I see that in the past
this could be done installing the package called "hark-kinect",as explained
here :


https://gist.github.com/awesomebytes/924493bcdb358f5e71fdff93c2896730

https://github.com/uts-magic-lab/hark_sound_localization/blob/master/pr2_kinect_audio.md


I'm using Debian 11 at the moment. The problem is that it seems that it
does not exist anymore. The repo is the following :


deb [arch=amd64
signed-by=/usr/share/keyrings/hark-archive-keyring.asc]
http://archive.hark.jp/harkrepos precise non-free
deb-src [arch=amd64
signed-by=/usr/share/keyrings/hark-archive-keyring.asc]
http://archive.hark.jp/harkrepos precise non-free


but it does not exists :


marietto@marietto:/mnt/zroot2/zroot2/AlexaChatGPT$ sudo apt update

Found:1 http://security.debian.org/debian-security bullseye-security InRelease
Found:2 http://deb.debian.org/debian bullseye InRelease
Getting of:3 http://deb.debian.org/debian bullseye-updates InRelease [44,1 kB]
Found:4 https://linux.teamviewer.com/deb stable InRelease
Found:5 https://dl.google.com /linux/chrome/deb stable InRelease
Found:6 https://packages.microsoft.com/repos/edge stable InRelease
Found:7 https://packages.microsoft.com/debian/11/prod bullseye InRelease
Ignored:8 http://archive.hark.jp/harkrepos precise InRelease
Getting of:9 http://archive.hark.jp/harkrepos precise Release [8.157 B]
Getting of:10 http://archive.hark.jp/harkrepos precise Release.gpg [473 B]
Getting of:11 http://archive.hark.jp/harkrepos precise/non-free
Sources [9.117 B]
Getting of:12 http://archive.hark.jp/harkrepos precise/non-free amd64
Packages [7.427 B]
Downloaded 69,2 kB in 3s (26,0 kB/s)
All the packages are updated.


marietto@marietto:/mnt/zroot2/zroot2/AlexaChatGPT$ sudo apt-get
install hark-kinect
E: can't find package hark-kinect


Just in case I can't use this hack,do you know about any alternative method
? thanks.

-- 
Mario.


Re: my immature thoughts on perl

2023-04-04 Thread tomas
On Tue, Apr 04, 2023 at 07:12:05AM -0400, Greg Wooledge wrote:
> On Tue, Apr 04, 2023 at 06:50:02AM +0200, to...@tuxteam.de wrote:
> > In Tcl, OTOH, EIAS [...]

> The introduction of the {*} operator eliminated a lot of the need for
> eval.  Instead of

[...]

Thanks for the reminder :)

I think watching carefully Tcl's evolution teaches a lot about
languages, the type of design decisions going into them and their
(changing) context.

Cheers
-- 
t


signature.asc
Description: PGP signature


Re: Which Diff tool could I use for visually comparing two text files where Word Wrap is possible?

2023-04-04 Thread davidson

On Tue, 4 Apr 2023 davidson wrote:
[trim]

icdiff will not do that. icdiff is faithful to its sources. I have
determined this by trying it out a little myself, and by examining the
command line options documented in its manual page ("man icdiff").

You could give it different sources:

$ icdiff <( tr '\n' ' ' 

Typos ahead:


$ icdiff-flowed () { <( tr '\n' ' ' 

Correction:

 $ icdiff-flowed () { <( tr '\n' ' ' <"$1" ) <( tr '\n' ' ' <"$2" ) ; }


and then use it like so

$ icdiff-flowed file1 file2 | less -R


--
Sometimes it pays to have squirrels in your head running around making
you question everything.  -- Clive Robinson



Re: my immature thoughts on perl

2023-04-04 Thread Greg Wooledge
On Tue, Apr 04, 2023 at 06:50:02AM +0200, to...@tuxteam.de wrote:
> In Tcl, OTOH, EIAS (Everything Is A String), so you've got
> to eval strings (don't take me too seriously: modern Tcl
> cheats, and it's more "Everything looks like a string",
> but I disgress).

The introduction of the {*} operator eliminated a lot of the need for
eval.  Instead of

eval myfunc $listvar

now, you can do

myfunc {*}$listvar

which "expands" the list variable and passes each element as a separate
argument.  This is much cleaner, because it lets you decide where and
when you want to perform that expansion.  eval forces you to expand
everything in the command where it's used.

In the context of this thread, you can do things like:

% namespace import ::tcl::mathop::+
% + 1 2 3 4
10
% set nums {1 2 3 4}
1 2 3 4
% + {*}$nums
10
% + {*}[lmap x $nums {+ $x 1}]
14

Which is the most elegant way to express the desired piece of code in Tcl,
as far as I'm aware.  lmap returns a list, and {*} expands it for the
mathop + command to use.



Re: Which Diff tool could I use for visually comparing two text files where Word Wrap is possible?

2023-04-04 Thread davidson

On Mon, 3 Apr 2023 Susmita/Rajib wrote:
[trimmed headers]

[   ...   ]
You have reported that redirecting icdiff output to a file, in your
words, "drops all colors".

And so I have three questions:

[trimmed davidson's questions]

$ icdiff file1 file2 > pretty_diff
$ less -R pretty_diff
[   ...   ]

Yes, thank you. From your indications it became apparent to me the
idiocy that I was engaged in.


No mistakes means no learning. Learning how to make mistakes, to dare
the facts to expose one's false beliefs, is a great art.

Children tend to be adept at this. But grown-ups can do it too with
practice.


I failed to look into what was really meant by your two lines of
codes. I was redirecting the output to a file with a .txt
extension. So when the default application for my Debian
installation, mousepad, opened the file it dropped all colours.
with a lot of extended chars.


The output contains, in addition to the characters that comprise your
document's text, embedded character sequences which you can display
literally with (for example),

 $ cat -v pretty_diff.txt # the digraph '^[' is the ESC character

and these instruct a terminal which implements them to do various
things.

As I understand it, the semantics of these sequences were defined for
terminals. They implement many functions --not just color-- useful for
any teletype-descendant like a unix terminal emulator. Expecting other
applications to implement them too will probably lead to
disappointment. But do prove me wrong if you like.

[trimmed]

This leads me to the next automatic questions:

Would it be possible to increase the column length for the either of
the two files being compared,


I take this to mean that you would like to increase the length of
lines displayed...


so that I could let the terminal window frame occupy the entire
screen space?


...in order to maximise the use of screen real estate.

That is, you'd like to be shown as many characters on one screen as
possible, without a lot of wastefully empty margins.

(I expect I have overstated your intent here. Do correct me.)

It looks to me like icdiff tries to remain faithful to the source
comparands, to the files you request it to compare.

More concretely: Let's say the source files have newlines at a
position no greater than column 55 (say). This means a side-by-side
comparison will require about 113 columns.

Since you have a giant display that can accomodate far more than that,
icdiff displays sizeable righthand margins on each half of a maximised
terminal window.

So you would like icdiff to "flow" the text when it displays each
source on its half of the terminal. You would like icdiff to replace
newlines with spaces, and then wrap them (ie, inserting new newlines)
as appropriate to fill up the right margins on each half.

icdiff will not do that. icdiff is faithful to its sources. I have
determined this by trying it out a little myself, and by examining the
command line options documented in its manual page ("man icdiff").

You could give it different sources:

 $ icdiff <( tr '\n' ' ' 
If that is not possible


I expect it is, but I may not yet fully understand what you are
looking for.


then which application should I use in GUI to have all colours
faithfully represented?


You will have far more experience with the range of GUI applications
that might serve your needs than I ever will. Control by keyboard is a
hard requirement of mine. GUIs, naturally enough, rarely meet it.


This might help me overcome the column restrictions.


Do correct or extend my understanding of what you seek.

--
Hackers are free people. They are like artists. If they are in a good
mood, they get up in the morning and begin painting their pictures.
-- Vladimir Putin



Re: my immature thoughts on perl

2023-04-04 Thread Vincent Lefevre
On 2023-04-03 20:50:22 -0700, Will Mengarini wrote:
> * cor...@free.fr  [23-04/04=Tu 10:35 +0800]:
> > For instance, in ruby (irb) this is quite smooth:
> > irb(main):001:0> [1,2,3,4].map{|x|x+1}.reduce{|x,y|x+y}
> > => 14
> >
> > And in scala (shell):
> > scala> List(1,2,3,4).map{ _+1 }.reduce{_+_}
> > res1: Int = 14
> 
> > In perl there is no interactive shell [...]
> 
> perl -le 'print eval $_ while <>'

https://metacpan.org/pod/Shell::Perl

https://stackoverflow.com/questions/73667/how-can-i-start-an-interactive-console-for-perl

TIMTOWTDI :-)

> > In perl [...] the block statement seems strange:
> > $ perl -le '@x=(1,2,3,4); $sum+=$_ for( map {$_+1} @x );print $sum'
> > 14
> 
> perl -le '@x=(1..4); print eval join "+", map $_+1, @x'

Though I have already used the eval+join trick a few years ago, this
is rather ugly. Using List::Util with "reduce" is probably better:

https://metacpan.org/pod/List::Util

-- 
Vincent Lefèvre  - Web: 
100% accessible validated (X)HTML - Blog: 
Work: CR INRIA - computer arithmetic / AriC project (LIP, ENS-Lyon)



Re: my immature thoughts on perl

2023-04-04 Thread john doe

On 4/4/23 04:35, cor...@free.fr wrote:

Hello list,



Would it be possible to refrain from using the list for OT stuff.
Your Perl threads are generating traffic that are not useful.

--
John Doe