Re: How to use /etc/adjtime

2024-06-28 Thread tomas
On Fri, Jun 28, 2024 at 02:05:48PM -0500, David Wright wrote: > On Fri 28 Jun 2024 at 11:14:34 (-0500), John Hasler wrote: > > David writes: > > > It's not clear to me which NTP (protocol) packages are set up to use > > > the util-linux stuff, assuming you're not rolling your own > > > startup/shut

Re: Need help with narroely focused use case of Emacs

2024-06-28 Thread tomas
On Fri, Jun 28, 2024 at 09:17:14PM +0200, didier gaumet wrote: > Le 28/06/2024 à 21:04, Richard Owlett a écrit : > > Pluma is my editor of choice. > > *BUT* it can NOT handle Search and Replace operations involving regular > > expressions. > [...] > > Hello Richard, > > According to the Mate wiki

Re: Need help with narroely focused use case of Emacs

2024-06-28 Thread tomas
On Fri, Jun 28, 2024 at 02:04:37PM -0500, Richard Owlett wrote: > Pluma is my editor of choice. > *BUT* it can NOT handle Search and Replace operations involving regular > expressions. I would be *very* surprised if an editor, these days and age can't do regular expressions. Really. > Emacs can.

Re: How to use /etc/adjtime

2024-06-28 Thread Charles Curley
On Thu, 27 Jun 2024 12:48:03 -0400 Stefan Monnier wrote: > I have a machine whose RTC clock is drifting significantly and it is > often suspended for several days. I run NTP so the drift I see when > I wake the machine up gets fixed by "stepping" the clock after a > while, but that can take a wh

Re: Need help with narroely focused use case of Emacs

2024-06-28 Thread Charles Curley
On Fri, 28 Jun 2024 20:53:50 + Michael Kjörling wrote: > $ for v in $(seq 1 119); do sed -i 's, id="V'$v'">,,g' ./*.html; done > > Be sure to have a copy in case something goes wrong; and diff(1) a few > files afterwards to make sure that the result is as you intended. Having done that (or

Re: How to use /etc/adjtime

2024-06-28 Thread Max Nikulin
On 29/06/2024 01:49, Stefan Monnier wrote: But note that when we wake up ntpsec is already running It should be possible to stop the NTP daemon on suspend (or hibernate) and start it on resume. I think, what you are truing to achieve is doable. I do not agree with Greg. The question is what

Re: How to use /etc/adjtime

2024-06-28 Thread David Wright
On Fri 28 Jun 2024 at 17:03:47 (-0400), Stefan Monnier wrote: > > David has said that chrony can do fancy things involving the hardware > > clock. Maybe you should investigate that solution path. > > I'm trying to find out how to fix it Right, rather than how to work > around the problem (I alre

Re: installation

2024-06-28 Thread David Christensen
On 6/28/24 10:20, dewey rahn wrote: When I used to use Debian when a new release came out (like from 10 to 11) you had to completely reinstall the operation system. Is that the case now? I have invested myself in backup, recovery, and version control/ configuration management. So, a major v

Re: balenaEtcher

2024-06-28 Thread Andrew M.A. Cater
On Fri, Jun 28, 2024 at 04:27:16PM -0400, Stefan Monnier wrote: > > I’ve been tryed to boot a flash usb with Parrot and balenaEtcher but gives > > error is there another app for to boot a flash usb but not the rufus app? > > Despite some rumors, people here aren't any more clairvoyant than elsewhe

Re: Backup.

2024-06-28 Thread Thomas Schmitt
Hi, pe...@easthope.ca wrote: > > xorriso -for_backup -dev /dev/sr0 \ > > Finding a file as it existed months or years ago can be tedious I wrote: > > You could give the backups volume ids which tell the date. pe...@easthope.ca wrote: > Thanks. I should have added that when you mentioned a few

Re: balenaEtcher

2024-06-28 Thread Jeffrey Walton
On Fri, Jun 28, 2024 at 5:16 PM Stefan Monnier wrote: > > > I’ve been tryed to boot a flash usb of 4Gb with > > balenaEtcher-1.19.-21-x64.AppImage and Parrot-home-4.4_i386.iso and gives > > me the Error:(0, h.requestMetadata) is not a function > > Who/what gives you this error? When does it give

Re: balenaEtcher

2024-06-28 Thread Stefan Monnier
> I’ve been tryed to boot a flash usb of 4Gb with > balenaEtcher-1.19.-21-x64.AppImage and Parrot-home-4.4_i386.iso and gives > me the Error:(0, h.requestMetadata) is not a function Who/what gives you this error? When does it give you this error? Have you tried to ask your favorite search engine

balenaEtcher

2024-06-28 Thread Aleix Piulachs
I’ve been tryed to boot a flash usb of 4Gb with balenaEtcher-1.19.-21-x64.AppImage and Parrot-home-4.4_i386.iso and gives me the Error:(0, h.requestMetadata) is not a function

Re: How to use /etc/adjtime

2024-06-28 Thread Stefan Monnier
>> Notice I wrote "sleep". I'm concerned about the suspend+wakeup case, >> not the case when you're booting up. >> [ I thought I'd made it abundantly clear. ] > I'm not a laptop person. I don't know how to fix laptop-specific issues. FWIW, the offending machine is a desktop. I `suspend` most of

Re: Need help with narroely focused use case of Emacs

2024-06-28 Thread Michael Kjörling
On 28 Jun 2024 14:04 -0500, from rowl...@access.net (Richard Owlett): > I need to replace ANY occurrence of > > thru [at most] > > by > > > I'm reformatting a Bible stored in HTML format for a particular set of > vision impaired seniors (myself included). Each chapter is in it

Re: balenaEtcher

2024-06-28 Thread Stefan Monnier
> I’ve been tryed to boot a flash usb with Parrot and balenaEtcher but gives > error is there another app for to boot a flash usb but not the rufus app? Despite some rumors, people here aren't any more clairvoyant than elsewhere. So you'll probably get better answers if you provide more details,

Re: How to use /etc/adjtime

2024-06-28 Thread Greg Wooledge
On Fri, Jun 28, 2024 at 14:44:03 -0500, David Wright wrote: > On Fri 28 Jun 2024 at 14:54:42 (-0400), Greg Wooledge wrote: > > The *only* thing you know at boot time is what's in the HW clock, and > > if you're really lucky, you'll be able to figure out what time zone > > it's allegedly set to (aft

Re: balenaEtcher

2024-06-28 Thread Hans
Am Freitag, 28. Juni 2024, 21:55:42 CEST schrieb Aleix Piulachs: > I’ve been tryed to boot a flash usb with Parrot and balenaEtcher but gives > error is there another app for to boot a flash usb but not the rufus app? Did you tr using the dd command? dd if=/path_to_iso/parrot.iso of=/dev/sdc bs=8

Re: How to use /etc/adjtime

2024-06-28 Thread John Hasler
David writes: > With chrony, you can monitor the RTC over time and adjust the system > clock in accordance with its drift rate at boot time, without > correcting the RTC itself, or you can actually set the RTC from the > system clock periodically. That leads to the probelem that started this threa

balenaEtcher

2024-06-28 Thread Aleix Piulachs
I’ve been tryed to boot a flash usb with Parrot and balenaEtcher but gives error is there another app for to boot a flash usb but not the rufus app?

Re: How to use /etc/adjtime

2024-06-28 Thread Stefan Monnier
> Yeah, except... you're assuming a workflow that is not real or reliable. [...] >> It is if /etc/adjtime is set properly when you go to sleep. > You cannot assume that adjtime was updated the last time your system > stopped running, because your system might have stopped running due to > a crash,

Re: How to use /etc/adjtime

2024-06-28 Thread David Wright
On Fri 28 Jun 2024 at 14:54:42 (-0400), Greg Wooledge wrote: > > > It's not like you can say "Oh, I was asleep for 7.5234 hours, so I need > > > to adjust the HW clock time forward by X seconds because I know it runs > > > a bit slow." That information is not available to you. > > > > It is if /e

Re: Need help with narroely focused use case of Emacs

2024-06-28 Thread Van Snyder
On Fri, 2024-06-28 at 14:04 -0500, Richard Owlett wrote: > Pluma is my editor of choice. > *BUT* it can NOT handle Search and Replace operations involving > regular > expressions. > > Emacs can. It has much verbose documentation. > But examples seem rather scarce. nedit can handle regular expres

Re: Need help with narroely focused use case of Emacs

2024-06-28 Thread didier gaumet
Le 28/06/2024 à 21:04, Richard Owlett a écrit : Pluma is my editor of choice. *BUT* it can NOT handle Search and Replace operations involving regular expressions. [...] Hello Richard, According to the Mate wiki, Pluma handles regular expressions the Perl way: https://wiki.mate-desktop.org/mat

Re: How to use /etc/adjtime

2024-06-28 Thread David Wright
On Fri 28 Jun 2024 at 11:14:34 (-0500), John Hasler wrote: > David writes: > > It's not clear to me which NTP (protocol) packages are set up to use > > the util-linux stuff, assuming you're not rolling your own > > startup/shutdown scripts. (That's the problem in the Subject line, in > > a sense.)

Need help with narroely focused use case of Emacs

2024-06-28 Thread Richard Owlett
Pluma is my editor of choice. *BUT* it can NOT handle Search and Replace operations involving regular expressions. Emacs can. It has much verbose documentation. But examples seem rather scarce. I need to replace ANY occurrence of thru [at most] by I'm reformatting a Bible

Re: How to use /etc/adjtime

2024-06-28 Thread Greg Wooledge
> > It's not like you can say "Oh, I was asleep for 7.5234 hours, so I need > > to adjust the HW clock time forward by X seconds because I know it runs > > a bit slow." That information is not available to you. > > It is if /etc/adjtime is set properly when you go to sleep. > See `hwclock(8)` or

Re: How to use /etc/adjtime

2024-06-28 Thread Stefan Monnier
John Hasler [2024-06-28 09:41:06] wrote: > Stefan writes: >> The question remains: how to make use of that info upon wakeup to >> adjust the "initial" time before NTP takes over. > hwclock -a can do this. Indeed, and my question can be thought of as asking how to run `hwclock -a` when we wake up (

Re: How to use /etc/adjtime

2024-06-28 Thread Stefan Monnier
> The hardware clock has a time, which is loaded into the system clock > to initialize it. That's it. The only variable factor here is whether > the hardware clock's time is in UTC or some local time zone. > > You can't do anything with drift at this point, because you don't actually > know how l

Re: installation

2024-06-28 Thread tomas
On Fri, Jun 28, 2024 at 01:40:52PM -0400, Greg Wooledge wrote: > On Fri, Jun 28, 2024 at 19:20:54 +0200, dewey rahn wrote: > > When I used to use Debian when a new release came out (like from 10 to 11) > > you had to completely reinstall the operation system. Is that the case now? > > That has *n

Re: Backup.

2024-06-28 Thread peter
Hello Thomas & all, From: "Thomas Schmitt" Date: Thu, 27 Jun 2024 22:49:10 +0200 > You could give the backups volume ids which tell the date. Thanks. I should have added that when you mentioned a few years ago. > This would also make it possible to verify that the medium is either an

Re: installation

2024-06-28 Thread Greg Wooledge
On Fri, Jun 28, 2024 at 19:20:54 +0200, dewey rahn wrote: > When I used to use Debian when a new release came out (like from 10 to 11) > you had to completely reinstall the operation system. Is that the case now? That has *never* been the case. Debian has always supported in-place upgrades betwe

installation

2024-06-28 Thread dewey rahn
When I used to use Debian when a new release came out (like from 10 to 11) you had to completely reinstall the operation system. Is that the case now?

Re: fail2ban: default 5 attemps == 1 SSH client connection?

2024-06-28 Thread Dan Ritter
Steffen Dettmer wrote: > I encountered multiple times that debian based containers use fail2ban by > default with a max attempt value of 5, even for SSH logins using strong > asymmetric keys. There is no "debian based container" standard. Talk to whoever built your container. (Why isn't it you?)

Re: virt-manager: Cannot recv data: Connection reset by peer

2024-06-28 Thread Bruno Kleinert
Am Mittwoch, dem 12.06.2024 um 15:30 + schrieb Ceppo: > Context: I am on sid, so random breakage is expected. This time it happened > somewhere between virt-manager and KVM, and I got stuck as I don't know much > about KVM and emulation general. > > I have been using virt-manager to manage vir

Re: How to use /etc/adjtime

2024-06-28 Thread John Hasler
David writes: > It's not clear to me which NTP (protocol) packages are set up to use > the util-linux stuff, assuming you're not rolling your own > startup/shutdown scripts. (That's the problem in the Subject line, in > a sense.) Chrony can. I don't know about Ntpsec. But that doesn't get the ad

Re: Using packaged Nix

2024-06-28 Thread didier gaumet
Hello, Disclaimer: I have never used Nix from the Nix to Debian phrasebook ( https://nixos.wiki/wiki/Nix_to_Debian_phrasebook ) I would try: $ nix-env -qaP '.*libossp_uuid.*' As an answer to your other question (is there another package system managing dependencies available on Debian?), I h

fail2ban: default 5 attemps == 1 SSH client connection?

2024-06-28 Thread Steffen Dettmer
Hi, I encountered multiple times that debian based containers use fail2ban by default with a max attempt value of 5, even for SSH logins using strong asymmetric keys. (Again I just got locked out for 1h (fortunately a container, so I can access anyway). Do you know what happened? My SSH key agent

Re: How to use /etc/adjtime

2024-06-28 Thread David Wright
On Fri 28 Jun 2024 at 09:41:06 (-0500), John Hasler wrote: > Stefan writes: > > The question remains: how to make use of that info upon wakeup to > > adjust the "initial" time before NTP takes over. > > hwclock -a can do this. Sure it can. > If you use it be sure ntpsec isn't trying to do > the

Re: How to use /etc/adjtime

2024-06-28 Thread John Hasler
Stefan writes: > The question remains: how to make use of that info upon wakeup to > adjust the "initial" time before NTP takes over. hwclock -a can do this. If you use it be sure ntpsec isn't trying to do the same thing. -- John Hasler j...@sugarbit.com Elmwood, WI USA

Re: How to use /etc/adjtime

2024-06-28 Thread David Wright
On Fri 28 Jun 2024 at 10:06:23 (-0400), Greg Wooledge wrote: > On Fri, Jun 28, 2024 at 09:48:12 -0400, Stefan Monnier wrote: > > Oh, indeed, thanks. I had computed it manually from > > `journalctl | grep stepped` and it gave close enough results. > > The question remains: how to make use of that i

Re: How to use /etc/adjtime

2024-06-28 Thread Greg Wooledge
On Fri, Jun 28, 2024 at 09:48:12 -0400, Stefan Monnier wrote: > Oh, indeed, thanks. I had computed it manually from > `journalctl | grep stepped` and it gave close enough results. > The question remains: how to make use of that info upon wakeup to adjust > the "initial" time before NTP takes over.

Re: How to use /etc/adjtime

2024-06-28 Thread Stefan Monnier
> Do you really run ntp? You might already be running ntpsec, > its replacement. I call it ntp but yes, it's ntpsec. >> The /etc/adjtime is supposed to be there for such purposes but it seems >> to be mostly unused: I assume its "UTC" setting is respected but the >> first and second lines indica

Re: How to use /etc/adjtime

2024-06-28 Thread Stefan Monnier
> I think hwclock(8) has the info you need. On my system (yes, one of > those) there is an /etc/init.d/hwclock.sh which seems to take care > of that. No idea how the young'uns do it, though :-) AFAICT this `hwclock.sh` (which I do have) is not used (I'm using systemd) and even less so upon suspend

Using packaged Nix

2024-06-28 Thread Nicolas George
Hi. I am trying to use Nix on Debian, with the packaged version. My goal is to have a pristine Debian OS and the ability to install binaries for specific versions of common software independently from the OS. The problem is: none of the commands I find on the web work in this setup. For example

Re: ePub or mobi from LaTeX or PDF? (was PDF editors)

2024-06-28 Thread Richard
If that isn't a start, I don't know what is. The JSON file can potentially give an idea about what the other files do. Am Fr., 28. Juni 2024 um 03:33 Uhr schrieb Van Snyder < van.sny...@sbcglobal.net>: > *.kfx, *.yjr and *.yjf are all "data". *.mf is "JSON". >

Re: ePub or mobi from LaTeX or PDF? (was PDF editors)

2024-06-28 Thread Richard
Actually, magika does tell you quite well what you need to know. .yjf could be something comparable to a JPEG, .kfx seems to be very similar to a BMP image. .meta seems to be just a JSON text file. .mf could be too, but at least it will be a text file. The rest is unknown binary data you'll probabl

Re: System time/timezone, was Re: Maximum size .bash_aliases file

2024-06-28 Thread Keith Bainbridge
On 28/6/24 16:13, John Crawley wrote: Except that midnight is also 0:00, so you still have the am/pm confusion. They should have kept 0:00 just for midnight really. That's the first time I've seen anything to justify calling midnight AM. Thankyou But how can mid-day be after mid-day? Ah: