Re: Sunrise and Sunset from terminal

2023-09-23 Thread Greg Wooledge
On Sun, Sep 24, 2023 at 12:35:18AM +, Andy Smith wrote:
> $ curl -s 
> 'https://api.sunrise-sunset.org/json?lat=51.509865=-0.118092=0' 
> | jq .
> {
>   "results": {
> "sunrise": "2023-09-24T05:47:54+00:00",
> "sunset": "2023-09-24T17:57:14+00:00",
> "solar_noon": "2023-09-24T11:52:34+00:00",
> "day_length": 43760,
> "civil_twilight_begin": "2023-09-24T05:16:19+00:00",
> "civil_twilight_end": "2023-09-24T18:28:49+00:00",
> "nautical_twilight_begin": "2023-09-24T04:37:02+00:00",
> "nautical_twilight_end": "2023-09-24T19:08:06+00:00",
> "astronomical_twilight_begin": "2023-09-24T03:56:14+00:00",
> "astronomical_twilight_end": "2023-09-24T19:48:54+00:00"
>   },
>   "status": "OK"
> }
> 
> The documentation is here:
> 
> https://sunrise-sunset.org/api

Yes, that's pretty reasonable.  The times are given in UTC, so they
must be converted.  Fortunately, GNU date can do that for us.

As a one-liner:

unicorn:~$ curl -s 
'https://api.sunrise-sunset.org/json?lat=41.4483=-82.1689=0' | jq 
-r .results.sunrise,.results.sunset | { read -r sunrise; read -r sunset; date 
"+Sunrise: %R" -d "$sunrise"; date "+Sunset: %R" -d "$sunset"; }
Sunrise: 07:16
Sunset: 19:24

As a script:

#!/bin/sh
lat=41.4483
lng=-82.1689
curl -s "https://api.sunrise-sunset.org/json?lat=$lat=$lng=0; |
  jq -r .results.sunrise,.results.sunset | {
read -r sunrise
read -r sunset
date "+Sunrise: %R" -d "$sunrise"
date "+Sunset: %R" -d "$sunset"
  }



Re: Sunrise and Sunset from terminal

2023-09-23 Thread Charles Curley
On Sat, 23 Sep 2023 19:22:52 -0400
Felix Miata  wrote:

> It's still that idiotic AM/PM nonsense, and the : is in the wrong
> place.

Yup. I think it's locale-dependent, as you surmised.


# Optional: Insert a colon between hours and minutes. AM/PM times
# assumed.
SunriseTime="${SunriseTime:0:1}:${SunriseTime:1}"
SunsetTime="${SunsetTime:0:1}:${SunsetTime:1}"

echo "Sunrise Today:" "$SunriseTime" AM
echo "Sunset Today:" "$SunsetTime" PM

But I concur with Mr. Wooledge, this is hardly ideal.

-- 
Does anybody read signatures any more?

https://charlescurley.com
https://charlescurley.com/blog/



Re: Sunrise and Sunset from terminal

2023-09-23 Thread Nate Bargmann
If you don't want to scrape a Web page, or want this information when a
network is not available, the hdate package will do (referenced from:
https://unix.stackexchange.com/a/527031).

Here is an example for Topeka, KS:

$ hdate -l N39.034722 -L W95.695556 -s -z -5
Saturday, 23 September 2023, eve of 9 Tishrei 5784
sunrise: 07:10
sunset: 19:18
hdate: ALERT: The information displayed is for today's Hebrew date.
  Because it is now after sunset, that means the data is
  for the Gregorian day beginning at midnight.

- Nate

-- 
"The optimist proclaims that we live in the best of all
possible worlds.  The pessimist fears this is true."
Web: https://www.n0nb.us
Projects: https://github.com/N0NB
GPG fingerprint: 82D6 4F6B 0E67 CD41 F689 BBA6 FB2C 5130 D55A 8819



signature.asc
Description: PGP signature


Re: bookworm: xfce4-terminal bug?

2023-09-23 Thread Charles Curley
On Sat, 23 Sep 2023 22:53:44 +0200
Greg  wrote:

> I'm using mc in xfce4-terminal. To close mc you use F10 key. 
> Unfortunately, the xfce4-terminal option
> Edit->Preferences->Advance->Disable menu shortcut key (F10 by default)
> Does not work. Whatever I set, F10 always activates menu.

Which version of Debian and xfce4-terminal are you running?

On Bullseye and xfce4-terminal 0.8.10 (Xfce 4.16) I have the menu
shortcut key disabled, and xfce4-terminal passes the F10 key to a
program running in that terminal (emacs -nw in my case). Indeed, I can
leave the window open and toggle the setting, and the terminal will act
appropriately.

With no program running in the terminal, you should see a tilde (~),
which bash will expand properly.

> The following also does not help:
> In the Settings Editor:
>  On the left, under "Channel", scroll down and select "xsettings"
>  On the right, under "Property | Type | Locked | Value", look for 
> Gtk > MenuBarAccel
>  Double-click on the row of "MenuBarAccel" to edit this property
>  In the "Edit Property" dialog, delete the value F10 (leave it 
> blank) and click Save.

Mine still shows F10. I don't believe I've ever touched it.

-- 
Does anybody read signatures any more?

https://charlescurley.com
https://charlescurley.com/blog/



Re: Sunrise and Sunset from terminal

2023-09-23 Thread piorunz

On 24/09/2023 01:35, Andy Smith wrote:

Hello,

On Sat, Sep 23, 2023 at 07:04:17PM -0400, Greg Wooledge wrote:

So, what to do instead?  I would first look for a data source that's
not intended to be displayed by a Javascript-enabled web browser.
Something that gives you the results in plain text would be great.
I doubt such a thing can be found easily.  Something that gives the
results in, say, JSON or XML format might be easier to find.


Here's one:

$ curl -s 
'https://api.sunrise-sunset.org/json?lat=51.509865=-0.118092=0' | 
jq .
{
   "results": {
 "sunrise": "2023-09-24T05:47:54+00:00",
 "sunset": "2023-09-24T17:57:14+00:00",
 "solar_noon": "2023-09-24T11:52:34+00:00",
 "day_length": 43760,
 "civil_twilight_begin": "2023-09-24T05:16:19+00:00",
 "civil_twilight_end": "2023-09-24T18:28:49+00:00",
 "nautical_twilight_begin": "2023-09-24T04:37:02+00:00",
 "nautical_twilight_end": "2023-09-24T19:08:06+00:00",
 "astronomical_twilight_begin": "2023-09-24T03:56:14+00:00",
 "astronomical_twilight_end": "2023-09-24T19:48:54+00:00"
   },
   "status": "OK"
}

The documentation is here:

 https://sunrise-sunset.org/api

Cheers,
Andy



Nice, thanks!
Creating a script based on that was a breeze. Not that I needed it :)

--
With kindest regards, Piotr.

⢀⣴⠾⠻⢶⣦⠀
⣾⠁⢠⠒⠀⣿⡁ Debian - The universal operating system
⢿⡄⠘⠷⠚⠋⠀ https://www.debian.org/
⠈⠳⣄



Re: Sunrise and Sunset from terminal

2023-09-23 Thread Andy Smith
Hello,

On Sat, Sep 23, 2023 at 07:04:17PM -0400, Greg Wooledge wrote:
> So, what to do instead?  I would first look for a data source that's
> not intended to be displayed by a Javascript-enabled web browser.
> Something that gives you the results in plain text would be great.
> I doubt such a thing can be found easily.  Something that gives the
> results in, say, JSON or XML format might be easier to find.

Here's one:

$ curl -s 
'https://api.sunrise-sunset.org/json?lat=51.509865=-0.118092=0' | 
jq .
{
  "results": {
"sunrise": "2023-09-24T05:47:54+00:00",
"sunset": "2023-09-24T17:57:14+00:00",
"solar_noon": "2023-09-24T11:52:34+00:00",
"day_length": 43760,
"civil_twilight_begin": "2023-09-24T05:16:19+00:00",
"civil_twilight_end": "2023-09-24T18:28:49+00:00",
"nautical_twilight_begin": "2023-09-24T04:37:02+00:00",
"nautical_twilight_end": "2023-09-24T19:08:06+00:00",
"astronomical_twilight_begin": "2023-09-24T03:56:14+00:00",
"astronomical_twilight_end": "2023-09-24T19:48:54+00:00"
  },
  "status": "OK"
}

The documentation is here:

https://sunrise-sunset.org/api

Cheers,
Andy

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



Re: Sunrise and Sunset from terminal

2023-09-23 Thread piorunz

On 24/09/2023 00:04, Greg Wooledge wrote:

By the way, do you know what tool does NOT parse HTML correctly?
A mashup of grep, awk and sed.  Seriously, don't do this, ever.


I don't care, it works for me perfectly well. My own city, and every
other I tried.

Random city:
$ head -n 3 suntimes.sh | tail -n 1 && ./suntimes.sh
SunTimes=$(curl --silent
"https://www.timeanddate.com/sun/germany/berlin; 2>/dev/null)
Sunrise Today: 06:55
Sunset Today: 19:01

$ head -n 3 suntimes.sh | tail -n 1 && ./suntimes.sh
SunTimes=$(curl --silent
"https://www.timeanddate.com/sun/australia/sydney; 2>/dev/null)
Sunrise Today: 05:42
Sunset Today: 17:52

Enough for my Raspberry Pi controlled garden lights to turn on at dusk
and turn off at dawn. And it's been like that for last 2 years without a
single fail.

You want any better? Write it yourself.

--
With kindest regards, Piotr.

⢀⣴⠾⠻⢶⣦⠀
⣾⠁⢠⠒⠀⣿⡁ Debian - The universal operating system
⢿⡄⠘⠷⠚⠋⠀ https://www.debian.org/
⠈⠳⣄



Re: Sunrise and Sunset from terminal

2023-09-23 Thread piorunz

On 24/09/2023 00:22, Felix Miata wrote:


sh srss.sh

Sunrise Today: 71:8
Sunset Today: 72:4



It's still that idiotic AM/PM nonsense, and the : is in the wrong place.


Your city in my terminal is displayed correctly:
Sunrise Today: 07:18
Sunset Today: 19:24

Looks like the website has decided to display it differently for you,
based on your location. For me, it displays in 24 hours format, for you,
in AM/PM format.
You will have to modify the script, but it should be very easy, start
from disabling insert colon section and work from there.

--
With kindest regards, Piotr.

⢀⣴⠾⠻⢶⣦⠀
⣾⠁⢠⠒⠀⣿⡁ Debian - The universal operating system
⢿⡄⠘⠷⠚⠋⠀ https://www.debian.org/
⠈⠳⣄



Re: Sunrise and Sunset from terminal

2023-09-23 Thread Felix Miata
piorunz composed on 2023-09-23 23:50 (UTC+0100):

> Felix Miata wrote:
 
>>> sh srss.sh
>> Sunrise Today: 64:7889657242711361093201601361071834
>> Sunset Today: 65:7242711361093201601361071834
>

>> That sort of resembles the half day format common outside the military.
 
> Sorry, works for me.
 
> Don't forget to fix line breaks in three lines (curl and grep/awk/sed
> lines), because e-mail client splitted them.
> Also, your city may not be supported by this website, this you changed it? 

Still doesn't make sense:

> cat srss.sh
#!/bin/bash

SunTimes=$(curl --silent "https://www.timeanddate.com/sun/usa/gainesville; 
2>/dev/null)

SunriseTime=$(echo "$SunTimes" | grep -o 'Sunrise Today.*' | awk '{print $3}' | 
sed 's/[^0-9]//g')
SunsetTime=$(echo "$SunTimes" | grep -o 'Sunset Today.*' | awk '{print $3}' | 
sed 's/[^0-9]//g')

# Optional: Insert a colon between hours and minutes
SunriseTime="${SunriseTime:0:2}:${SunriseTime:2}"
SunsetTime="${SunsetTime:0:2}:${SunsetTime:2}"

echo "Sunrise Today:" $SunriseTime
echo "Sunset Today:" $SunsetTime
> sh srss.sh
Sunrise Today: 71:8
Sunset Today: 72:4
>
It's still that idiotic AM/PM nonsense, and the : is in the wrong place.
-- 
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 there a debian tool for this goal?

2023-09-23 Thread jeremy ardley



On 24/9/23 06:46, Karen Lewellen wrote:

Hi folks,
Any tool in Debian, or another Linux application that will take audio 
and translate that audio  into English?
Have a friend who wishes to translate Armenian news broadcasts into 
English, apparently not finding translations on the sites themselves.

 thanks,
Karen




While not a current linux tool as such, openAI offers a speech to text 
API that recognises Armenian and translates it to English


https://platform.openai.com/docs/guides/speech-to-text/quickstart

You can run the API  as a a simple Python program on a Linux machine.

You do need to have an API account with openAI and it costs fractions of 
a cent for each translation.


This is one python program written by GPT4 just now. I've used something 
similar before, though there may be some limitation on audio file length 
that requires chopping the input up to shorter lengths?


import openai
import sys

# Set your API key
openai.api_key = 'YOUR_API_KEY'

def translate_audio_to_english(filename):
    with open(filename, "rb") as audio_file:
    transcript = openai.Audio.translate("whisper-1", audio_file)
    return transcript

if __name__ == "__main__":
    if len(sys.argv) < 2:
    print("Usage: python script_name.py ")
    sys.exit(1)

    audio_filename = sys.argv[1]
    translated_text = translate_audio_to_english(audio_filename)
    print(translated_text)

Then run it as

python3 translate_audio.py /path/to/file/armenian.mp3



Re: Is there a debian tool for this goal?

2023-09-23 Thread David
On Sat, 2023-09-23 at 18:46 -0400, Karen Lewellen wrote:
> Hi folks,
> Any tool in Debian, or another Linux application that will take audio
> and 
> translate that audio  into English?
> Have a friend who wishes to translate Armenian news broadcasts into 
> English, apparently not finding translations on the sites themselves.

https://news.am/eng/

https://armenpress.am/eng/

https://www.panorama.am/en/

http://arka.am/en/

https://www.civilnet.am/en/

https://mirrorspectator.com/

http://www.groong.com/

The situation there is fairly clear cut, unless he/she is looking for
news on relatives, in which case the Aid organisations are the best
bet.

Cheers!

-- 
`I intend to live forever,
or die trying'.

--Groucho Marx



Re: Sunrise and Sunset from terminal

2023-09-23 Thread Greg Wooledge
On Sat, Sep 23, 2023 at 06:45:08PM -0400, Felix Miata wrote:
> piorunz composed on 2023-09-23 23:35 (UTC+0100):
> 
> > SunTimes=$(curl --silent "https://www.timeanddate.com/sun/uk/london;
> > 2>/dev/null)
[...]

> > sh srss.sh
> Sunrise Today: 64:7889657242711361093201601361071834
> Sunset Today: 65:7242711361093201601361071834
> >
> 
> That sort of resembles the half day format common outside the military.

The web site in question 
gives me a page full of HTML and Javascript and gods only know what
else.  The shell script which "parses" this is absolutely not doing
it correctly, if indeed it's even *possible* to do correctly.

Take it apart piece by piece.

unicorn:~$ curl -s https://www.timeanddate.com/sun/uk/london | grep 'Sunrise 
Today'
Sun & Moon Today Sunrise & Sunset Moonrise & Moonset 
Moon Phases Eclipses Night Sky Daylight6:47 
am  6:57 pm12 hours, 10 minutesCurrent Time: Sep 
23, 2023 at 11:51:30 pmSun Direction: ↑ 341° 
NorthSun Altitude: -37.1°Sun Distance: 93.273 
million miNext Solstice: Dec 22, 2023 3:27 am 
(Winter)Sunrise Today: 6:47 am↑ 89° EastSunset 
Today: 6:57 pm↑ 271° West

As you can see, parsing the 2100-character-long "line" of the page which
contains the substring "Sunrise Today" gives more rubbish than answer.
Simply discarding all of the non-digit characters leaves you with all
of the digit characters from the rubbish, which is not by any means a
useful piece of output.

So, what to do instead?  I would first look for a data source that's
not intended to be displayed by a Javascript-enabled web browser.
Something that gives you the results in plain text would be great.
I doubt such a thing can be found easily.  Something that gives the
results in, say, JSON or XML format might be easier to find.  Then
you "only" need to write code that parses JSON or XML (realistically
meaning you call upon a dedicated tool or library for doing so).

Failing that -- and really, this is a LAST resort, not a first resort --
you could parse the HTML here.  Find a tool that parses HTML, which
usually have names like "xpath" or "xslt" or something.  Then analyze
the HTML yourself, figure out the hierarchical structure of the elements,
and use your knowledge of this layout when applying your HTML parsing
tool.

In this specific example, I see a table with

Sunrise Today: 6:47 am

inside it.  A decent HTML parsing tool should be able to zero in on
the correct table, then iterate through rows until it finds the one
with "Sunrise Today" as a substring in its  element, and then
spit out the first  element.

Finding an alternative data source that doesn't require this level of
parsing is a far superior choice, if it's possible.

By the way, do you know what tool does NOT parse HTML correctly?
A mashup of grep, awk and sed.  Seriously, don't do this, ever.



Is there a debian tool for this goal?

2023-09-23 Thread Karen Lewellen

Hi folks,
Any tool in Debian, or another Linux application that will take audio and 
translate that audio  into English?
Have a friend who wishes to translate Armenian news broadcasts into 
English, apparently not finding translations on the sites themselves.

 thanks,
Karen




Re: Sunrise and Sunset from terminal

2023-09-23 Thread piorunz

On 23/09/2023 23:45, Felix Miata wrote:


sh srss.sh

Sunrise Today: 64:7889657242711361093201601361071834
Sunset Today: 65:7242711361093201601361071834




That sort of resembles the half day format common outside the military.


Sorry, works for me.

./suntimes.sh
Sunrise Today: 06:47
Sunset Today: 18:57

Don't forget to fix line breaks in three lines (curl and grep/awk/sed
lines), because e-mail client splitted them.
Also, your city may not be supported by this website, this you changed it?

--
With kindest regards, Piotr.

⢀⣴⠾⠻⢶⣦⠀
⣾⠁⢠⠒⠀⣿⡁ Debian - The universal operating system
⢿⡄⠘⠷⠚⠋⠀ https://www.debian.org/
⠈⠳⣄



Re: Sunrise and Sunset from terminal

2023-09-23 Thread Felix Miata
piorunz composed on 2023-09-23 23:35 (UTC+0100):

> #!/bin/bash

> SunTimes=$(curl --silent "https://www.timeanddate.com/sun/uk/london;
> 2>/dev/null)

> SunriseTime=$(echo "$SunTimes" | grep -o 'Sunrise Today.*' | awk '{print
> $3}' | sed 's/[^0-9]//g')
> SunsetTime=$(echo "$SunTimes" | grep -o 'Sunset Today.*' | awk '{print
> $3}' | sed 's/[^0-9]//g')

> # Optional: Insert a colon between hours and minutes
> SunriseTime="${SunriseTime:0:2}:${SunriseTime:2}"
> SunsetTime="${SunsetTime:0:2}:${SunsetTime:2}"

> echo "Sunrise Today:" $SunriseTime
> echo "Sunset Today:" $SunsetTime

> sh srss.sh
Sunrise Today: 64:7889657242711361093201601361071834
Sunset Today: 65:7242711361093201601361071834
>

That sort of resembles the half day format common outside the military.
-- 
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: Sunrise and Sunset from terminal

2023-09-23 Thread piorunz

On 23/09/2023 22:51, s...@gmx.com wrote:

Is there a way to get sunrise and sunset time from command interpreter?
I want to use its output for a script!


Of course.

#!/bin/bash

SunTimes=$(curl --silent "https://www.timeanddate.com/sun/uk/london;
2>/dev/null)

SunriseTime=$(echo "$SunTimes" | grep -o 'Sunrise Today.*' | awk '{print
$3}' | sed 's/[^0-9]//g')
SunsetTime=$(echo "$SunTimes" | grep -o 'Sunset Today.*' | awk '{print
$3}' | sed 's/[^0-9]//g')

# Optional: Insert a colon between hours and minutes
SunriseTime="${SunriseTime:0:2}:${SunriseTime:2}"
SunsetTime="${SunsetTime:0:2}:${SunsetTime:2}"

echo "Sunrise Today:" $SunriseTime
echo "Sunset Today:" $SunsetTime

--
With kindest regards, Piotr.

⢀⣴⠾⠻⢶⣦⠀
⣾⠁⢠⠒⠀⣿⡁ Debian - The universal operating system
⢿⡄⠘⠷⠚⠋⠀ https://www.debian.org/
⠈⠳⣄



Re: Sunrise and Sunset from terminal

2023-09-23 Thread ghe2001
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA256


--- Original Message ---
On Saturday, September 23rd, 2023 at 3:51 PM, s...@gmx.com  wrote:


> Is there a way to get sunrise and sunset time from command interpreter?

Looks like several:

https://duckduckgo.com/?t=ftsa=linux+sunrise=web

--
Glenn English
-BEGIN PGP SIGNATURE-
Version: ProtonMail

wsBzBAEBCAAnBYJlD19ECZCf14YxgqyMMhYhBCyicw9CUnAlY0ANl5/XhjGC
rIwyAABG0QgAynKIW/hSAR3yMZSdQYTjlK1tvjSHlml7tmKhTLN2CfUe2/Bv
1dhvuV4VG85UeVpDHzh59hXkbJM6PPmk366sTFM0kvUhESU/uJzcHPIPbA4r
e87vFIj9helcL9ExR5m7JYxgCBW+sg5Uzv3/hzoaUTWWpHDAzRhjWL08odel
IZv9iUYsCwZJV3ka4vsaiBUcy1yazyUMEK0sZgmGf+51Ob5hhO4EMobGDfj4
ingcbqGVbtdbQlctqauikSGU+cYVUPjZOjdaiNyvIT9oV/U9G51aMs8jjydv
F7JUnUWV1Nsi8sluJETxy1qbLC2hvE8ja4UzSVFU9GF/Eox1uMLcYw==
=c/IX
-END PGP SIGNATURE-



Sunrise and Sunset from terminal

2023-09-23 Thread s...@gmx.com
Is there a way to get sunrise and sunset time from command interpreter?
I want to use its output for a script!



Re: Letting Windows go: scanning

2023-09-23 Thread Tom Browder
On Sat, Sep 23, 2023 at 09:19 Curt  wrote:
>
> On 2023-09-22, Tom Browder  wrote:
> >
> > However, I so far have not been able to scan both sides of a document in my
> > two-side document feeder the way I could could on Windows--bummer, but this
> > is a huge win so far.
> >
>
> How and what have you tried?

I used Xsane and tried setting source to

Duplex

It scanned, but only scanned the front side

Then I set it to ADF and scanned the same document.

It scanned, but only scanned the front side.

When I use Windows, with the same steps, it scans both sides.

I have tried the VueScan, but it doesn't work, either. I sent their
trouble report to them and they said they would get back to me.

-Tom



Re: bookworm: xfce4-terminal bug?

2023-09-23 Thread Carl Fink



On 9/23/23 17:25, Greg wrote:

On 9/23/23 23:08, Michael Kjörling wrote:

On 23 Sep 2023 22:53 +0200, from p...@sojka.co (Greg):
I'm using mc in xfce4-terminal. To close mc you use F10 key. 
Unfortunately,

the xfce4-terminal option
Edit->Preferences->Advance->Disable menu shortcut key (F10 by default)
Does not work. Whatever I set, F10 always activates menu.

Is this a bug? Could someone fix? Is there any workaround?


I'm not having the problem you describe on an up-to-date Bookworm
installation. In xfce4-terminal, choosing to disable the menu shortcut
key, starting Midnight Commander and pressing F10 brings up the dialog
asking if I want to quit Midnight Commander.

Are you able to reproduce the issue under a brand new user account?


Yes, just created new user. The issue still persists.


I may have missed some messages in this thread, but when F10 doesn't
work, you can close mc with Esc, 0 (zero). That's sequential, Esc is not a
meta key.

-Carl Fink



Re: bookworm: xfce4-terminal bug?

2023-09-23 Thread Greg

On 9/23/23 23:08, Michael Kjörling wrote:

On 23 Sep 2023 22:53 +0200, from p...@sojka.co (Greg):

I'm using mc in xfce4-terminal. To close mc you use F10 key. Unfortunately,
the xfce4-terminal option
Edit->Preferences->Advance->Disable menu shortcut key (F10 by default)
Does not work. Whatever I set, F10 always activates menu.

Is this a bug? Could someone fix? Is there any workaround?


I'm not having the problem you describe on an up-to-date Bookworm
installation. In xfce4-terminal, choosing to disable the menu shortcut
key, starting Midnight Commander and pressing F10 brings up the dialog
asking if I want to quit Midnight Commander.

Are you able to reproduce the issue under a brand new user account?


Yes, just created new user. The issue still persists.

--
Greg



Re: bookworm: xfce4-terminal bug?

2023-09-23 Thread Michael Kjörling
On 23 Sep 2023 22:53 +0200, from p...@sojka.co (Greg):
> I'm using mc in xfce4-terminal. To close mc you use F10 key. Unfortunately,
> the xfce4-terminal option
> Edit->Preferences->Advance->Disable menu shortcut key (F10 by default)
> Does not work. Whatever I set, F10 always activates menu.
> 
> Is this a bug? Could someone fix? Is there any workaround?

I'm not having the problem you describe on an up-to-date Bookworm
installation. In xfce4-terminal, choosing to disable the menu shortcut
key, starting Midnight Commander and pressing F10 brings up the dialog
asking if I want to quit Midnight Commander.

Are you able to reproduce the issue under a brand new user account?

-- 
Michael Kjörling  https://michael.kjorling.se
“Remember when, on the Internet, nobody cared that you were a dog?”



bookworm: xfce4-terminal bug?

2023-09-23 Thread Greg

Hi there,

I'm using mc in xfce4-terminal. To close mc you use F10 key. 
Unfortunately, the xfce4-terminal option

Edit->Preferences->Advance->Disable menu shortcut key (F10 by default)
Does not work. Whatever I set, F10 always activates menu.

Is this a bug? Could someone fix? Is there any workaround?

The following also does not help:
In the Settings Editor:
On the left, under "Channel", scroll down and select "xsettings"
On the right, under "Property | Type | Locked | Value", look for 
Gtk > MenuBarAccel

Double-click on the row of "MenuBarAccel" to edit this property
In the "Edit Property" dialog, delete the value F10 (leave it 
blank) and click Save.


Thanks in advance for any help

Greg



Re: Samba+Kerberos inside LXC container...

2023-09-23 Thread Ulf Volmer

On 23.09.23 18:54, nimrod wrote:
The syntax is no problem, it works like a charm with another server, 
which is not in a container, just a vmWare virtual machine.



I don't think that samba and kerberos behave differnt in a lxc 
container. Both is not kernel related.


But as I said, I could not test this here.


Best regards

Ulf




Toma de contacto

2023-09-23 Thread Salva
Hola
Soy nuevo en la comunidad Debian. Me gustaría contactar con vosotros para 
ayudar de alguna manera en el proyecto.
Me gustaría saber si hace falta ayuda en la parte de arte-gráfica, diseño, 
imagen corporativa, vídeo...
No se muy bien como contactar ni con quién.
Un saludo

Salva

Re: (deb-cat) Acer Aspire XC-1660

2023-09-23 Thread Josep Lladonosa
Hola, Narcís,

M'alegro que hagis pogut fer la instal·lació.
Justament aquests dies m'he incorporat al sistema educatiu d'Andalusia on
fan servir una adaptació d'Ubuntu anomenada EducaAndOS (abans usaven
Guadalinex, del mateix estil).
La cosa és que el centre on estic ara té portàtils DELL i, en cas de
carregar-se la configuració BIOS per defecte (manca d'alimentació a la pila
BIOS, o desgastada, per exemple) el sistema queda configurat a RAID i no
inicia bé.
La solució, entrar a la BIOS i posar-li l'AHCI, també.

Cordialment,
Josep

On Sat, 23 Sept 2023 at 20:00, Narcis Garcia  wrote:

> Ahir me les vaig haver per a instal·lar una Debian GNU/Linux en aquest
> ordinador que ve amb un mòdul NVME.
>
> Després de cercar i cercar pel web, i provar combinacions, la solució ha
> estat tant senzilla com configurar la BIOS per a la modalitat de disc
> AHCI en comptes del que ve predeterminat, que no recordo les sigles.
>
> Ho comparteixo per a què li soni el tema quan algú es trobi amb el mateix.
>
> Malauradament, no he estat capaç de trobar una altra vegada el fil de
> conversa on algú va publicar el comentari en aquest sentit.
> --
>
> Narcis Garcia
>
> __
> I'm using this dedicated address because personal addresses aren't
> masked enough at this mail public archive. Public archive administrator
> should remove and omit any @, dot and mailto combinations against
> automated addresses collectors.
>
>

-- 
--
Salutacions...Josep
--


(deb-cat) Contribuir a la traduccio de Debian

2023-09-23 Thread Narcis Garcia

Bon dia,

He instal·lat Debian GNU/Linux a l'ordinador d'una persona que parla 
occità, i li he pogut posar la traducció d'un parell d'aplicacions: 
M.Firefox i LibreOffice.


Què podrien fer usuaris inexperts per a implicar-se en ampliar les 
traduccions de Debian a l'Occità?


Gràcies.
--

Narcis Garcia

__
I'm using this dedicated address because personal addresses aren't 
masked enough at this mail public archive. Public archive administrator 
should remove and omit any @, dot and mailto combinations against 
automated addresses collectors.




(deb-cat) Acer Aspire XC-1660

2023-09-23 Thread Narcis Garcia
Ahir me les vaig haver per a instal·lar una Debian GNU/Linux en aquest 
ordinador que ve amb un mòdul NVME.


Després de cercar i cercar pel web, i provar combinacions, la solució ha 
estat tant senzilla com configurar la BIOS per a la modalitat de disc 
AHCI en comptes del que ve predeterminat, que no recordo les sigles.


Ho comparteixo per a què li soni el tema quan algú es trobi amb el mateix.

Malauradament, no he estat capaç de trobar una altra vegada el fil de 
conversa on algú va publicar el comentari en aquest sentit.

--

Narcis Garcia

__
I'm using this dedicated address because personal addresses aren't 
masked enough at this mail public archive. Public archive administrator 
should remove and omit any @, dot and mailto combinations against 
automated addresses collectors.




Re: Samba+Kerberos inside LXC container...

2023-09-23 Thread nimrod
On Fri, 2023-09-22 at 00:27 +0200, Ulf Volmer wrote:
> On 19.09.23 14:50, nimrod wrote:
> > I'm running an LXC container on a Debian 12 host. The container,
> > named 
> > "samba", aims to share a directory in an Active Directory
> > environment 
> > (functional level 2016).
> 
> 
> No really help, I have no AD here.
> 
> $ smbclient -k //dl560/dati
> > WARNING: The option -k|--kerberos is deprecated!

The syntax is no problem, it works like a charm with another server,
which is not in a container, just a vmWare virtual machine.
> 
> 
> 
> Please read the smbclient man page regarding the --use-kerberos
> parameter.
> 
This new syntax avoids the warning, nothing more.

> dns names here means the FQDN of the target host.

I tried FQDN too, no help.

> 
> 
> Bet regards
> 
> Ulf
> 
> 



Re: Letting Windows go: scanning

2023-09-23 Thread Curt
On 2023-09-22, Tom Browder  wrote:
>
> However, I so far have not been able to scan both sides of a document in my
> two-side document feeder the way I could could on Windows--bummer, but this
> is a huge win so far.
>

How and what have you tried?

--