Solution [Re: Need help with narroely focused use case of Emacs]

2024-07-05 Thread Richard Owlett

On 06/29/2024 12:17 PM, to...@tuxteam.de wrote:

On Sat, Jun 29, 2024 at 06:37:23AM -0500, Richard Owlett wrote:

[...]


When searching for information on regular expressions I came across one that
did it by searching for
{"1 thru 9" OR "10 thru 99" OR "100 thru 999"} .
I lost the reference ;<


That would be something like ([0-9]|[1-9][0-9]|[1-9][0-9][0-9])
since [x-y] expresses a range of characters, the | does OR and
the () do grouping [1].

If you allow yourself to be a bit sloppy [2], and allow numbers
with leading zeros, many regexps flavors have the "limited count
operator" {min,max}, with which you might say [0-9]{1,3} (you
won't need the grouping here, since the repeat operator binds
strongly enough to not mess up the rest of your regexp.

CAVEAT IMPLEMENTOR: Depending on the flavor of your regexps, the
() and sometimes the | need a backslash in front to give them
their magic meaning. In Emacs they do, in Perl (and PCRE, which
is most probably the engine behind Pluma) they don't. In grep
(and sed) you can switch behavior with an option (-E was it,
IIRC).

Cheers

[1] This grouping is (again, depening on your regexp flavour)
a "capturing grouping", meaning that you can refer later
to what was matched by the sub-expression in the parens.
There are also (flavor blah blah) non-capturing groupings.

[2] You always are somewhat sloppy with regexps. Actually you
are being sloppy already, since every classical textbook
will tell you that they totally suck at understanding
"nested stuff", which HTML is, alas. But under the right
conditions they can butcher it alright :-)



Looks like KDE's Kate is viable solution for editing the particular HTML 
files of interest. It seems to be an appropriate mix of Pluma's ease of 
use and Emacs' power. And for some reason I had already installed it.




Re: Need help with narroely focused use case of Emacs

2024-06-30 Thread mick.crane

On 2024-06-30 14:21, Greg Wooledge wrote:

On Sun, Jun 30, 2024 at 12:32:15 +0100, mick.crane wrote:

got it thanks.









I don't know what you're trying to do, but ERE [0-7]{1,2} matches one-
or two-digit *octal* numbers (e.g. 5, 07, 72, 77) but not numbers that
contains the digits 8 or 9.

Do you have a book whose verses are enumerated in octal?


Looked at the original question, having first misunderstood it I said 
could be done with search and replace in an editor then realised I 
wasn't sure how to do what was asked.
So now I know you can use regular expressions in Geany and a bit more 
about the format.

Previous post could have been clearer but I was trying to be brief.



Re: Need help with narroely focused use case of Emacs

2024-06-30 Thread Andy Smith
Hello,

On Sun, Jun 30, 2024 at 09:21:57AM -0400, Greg Wooledge wrote:
> Do you have a book whose verses are enumerated in octal?

No one clarified that this was the *Christian* Bible. 

Thanks,
Andy



Re: Need help with narroely focused use case of Emacs

2024-06-30 Thread Greg Wooledge
On Sun, Jun 30, 2024 at 12:32:15 +0100, mick.crane wrote:
> got it thanks.
> 
> 
> 
> 
> 
> 
> 

I don't know what you're trying to do, but ERE [0-7]{1,2} matches one-
or two-digit *octal* numbers (e.g. 5, 07, 72, 77) but not numbers that
contains the digits 8 or 9.

Do you have a book whose verses are enumerated in octal?



Re: Need help with narroely focused use case of Emacs

2024-06-30 Thread mick.crane

On 2024-06-29 20:29, Greg Wooledge wrote:

On Sat, Jun 29, 2024 at 20:18:02 +0100, mick.crane wrote:

Oh, I see what the question was.
There is "use regular expressions", "use multi line matching" in Geany
I'm not very good at regular expressions.
I'd probably do it 3 times
"search for" 
"search for" 
"search for" 


There's more than one regular expression syntax, so the first step is
to figure out which *kind* of regular expression you're writing.

In a Basic Regular Expression (BRE), you can write "one to three
digits" as:

[[:digit:]]\{1,3\}

In an Extended Regular Expression (ERE), you'd remove the backslashes:

[[:digit:]]{1,3}

Some people would use [0-9] instead of [[:digit:]].  [0-9] should work
in any locale I'm aware of, but is theoretically less portable than
[[:digit:]].  If you're actually doing this by typing a regex into an
editor, then [0-9] might be preferred because it's easier to type.  If
you're writing a program, you should probably go with [[:digit:]].


got it thanks.










Re: Need help with narroely focused use case of Emacs

2024-06-29 Thread mick.crane

On 2024-06-29 20:29, Greg Wooledge wrote:

On Sat, Jun 29, 2024 at 20:18:02 +0100, mick.crane wrote:

Oh, I see what the question was.
There is "use regular expressions", "use multi line matching" in Geany
I'm not very good at regular expressions.
I'd probably do it 3 times
"search for" 
"search for" 
"search for" 


There's more than one regular expression syntax, so the first step is
to figure out which *kind* of regular expression you're writing.

In a Basic Regular Expression (BRE), you can write "one to three
digits" as:

[[:digit:]]\{1,3\}

In an Extended Regular Expression (ERE), you'd remove the backslashes:

[[:digit:]]{1,3}

Some people would use [0-9] instead of [[:digit:]].  [0-9] should work
in any locale I'm aware of, but is theoretically less portable than
[[:digit:]].  If you're actually doing this by typing a regex into an
editor, then [0-9] might be preferred because it's easier to type.  If
you're writing a program, you should probably go with [[:digit:]].


Ta,
I'd had a quick look.
the regular expression thing looks to do one character at a time.


I couldn't see how to do a wild card and if it didn't exist.



Re: Need help with narroely focused use case of Emacs

2024-06-29 Thread Greg Wooledge
On Sat, Jun 29, 2024 at 20:18:02 +0100, mick.crane wrote:
> Oh, I see what the question was.
> There is "use regular expressions", "use multi line matching" in Geany
> I'm not very good at regular expressions.
> I'd probably do it 3 times
> "search for" 
> "search for" 
> "search for" 

There's more than one regular expression syntax, so the first step is
to figure out which *kind* of regular expression you're writing.

In a Basic Regular Expression (BRE), you can write "one to three
digits" as:

[[:digit:]]\{1,3\}

In an Extended Regular Expression (ERE), you'd remove the backslashes:

[[:digit:]]{1,3}

Some people would use [0-9] instead of [[:digit:]].  [0-9] should work
in any locale I'm aware of, but is theoretically less portable than
[[:digit:]].  If you're actually doing this by typing a regex into an
editor, then [0-9] might be preferred because it's easier to type.  If
you're writing a program, you should probably go with [[:digit:]].



Re: Need help with narroely focused use case of Emacs

2024-06-29 Thread mick.crane

On 2024-06-29 16:09, Max Nikulin wrote:

On 29/06/2024 20:07, mick.crane wrote:

On 2024-06-29 12:34, Max Nikulin wrote:

To manipulate with HTML it is better to write a script in some
programming language, e.g. for python there are lxml etree and
BeautifulSoup packages. This way it is easier to maintain valid
document structure with paired opening and closing tags.

I have not tried Emacs lisp facilities for dealing with HTML.


open in Geany

[...]

click search select replace
copy paste selection into "search for"


By "Emacs *lisp* facilities for dealing with HTML" I mead something
like `libxml-parse-html-region'. Notice that I was suggesting against
search


Oh, I see what the question was.
There is "use regular expressions", "use multi line matching" in Geany
I'm not very good at regular expressions.
I'd probably do it 3 times
"search for" 
"search for" 
"search for" 



Re: Need help with narroely focused use case of Emacs

2024-06-29 Thread David Wright
On Sat 29 Jun 2024 at 17:08:04 (+0200), Vincent Lefevre wrote:
> On 2024-06-28 20:53:50 +, Michael Kjörling wrote:
> > Yes, it almost certainly can be done with a single sed (or other
> > similar tool) invocation where the regular expression matches
> > precisely what you want it to match. But unless this is something you
> > will do very often, I tend to prefer readability over being clever,
> > even if the readable version is somewhat less performant.
> 
> To match a range inside a regexp, $(rgxg range 1 119) is readable. :)
> 
> rgxg is provided by the package of the same name.

Perhaps best to ignore the narrow focus on 119 in the OP.
For bible verses per chapter, the largest number is 176.
(An accidental choice of 119 might be explained by that
psalm having the most verses. Only Psalms requires three
digits as it happens; I think the runner-up has only about
half that.)

It would be tedious and error-prone to have to specify the
maximum range for each chapter. Different versions of the
bible don't even agree with each other on numbers of verses.

Cheers,
David.



Re: Need help with narroely focused use case of Emacs

2024-06-29 Thread Curt
On 2024-06-29,   wrote:
>
>> Owlett is a notorious troll who never listens to reason.
>
> This is wrong, borderline defamatory. Richard Owlett is not a

Andy Smith:

 It's not an authentic Owlett thread unless it contains an enormous
 XY problem, a monomaniacal obsession with a solution already
 part-dreamed up by the OP, several factual errors, and a constant
 trickle of confounding small details that were never provided up
 front, now delivered with glee.

IOW, a troll. So go fuck yourself, as you should have done years ago.

Defamatory. What are you, a fucking lawyer? Sue me then, you little snit. 






Re: Need help with narroely focused use case of Emacs

2024-06-29 Thread tomas
On Sat, Jun 29, 2024 at 06:37:23AM -0500, Richard Owlett wrote:

[...]

> When searching for information on regular expressions I came across one that
> did it by searching for
>{"1 thru 9" OR "10 thru 99" OR "100 thru 999"} .
> I lost the reference ;<

That would be something like ([0-9]|[1-9][0-9]|[1-9][0-9][0-9])
since [x-y] expresses a range of characters, the | does OR and
the () do grouping [1].

If you allow yourself to be a bit sloppy [2], and allow numbers
with leading zeros, many regexps flavors have the "limited count
operator" {min,max}, with which you might say [0-9]{1,3} (you
won't need the grouping here, since the repeat operator binds
strongly enough to not mess up the rest of your regexp.

CAVEAT IMPLEMENTOR: Depending on the flavor of your regexps, the
() and sometimes the | need a backslash in front to give them
their magic meaning. In Emacs they do, in Perl (and PCRE, which
is most probably the engine behind Pluma) they don't. In grep
(and sed) you can switch behavior with an option (-E was it,
IIRC).

Cheers

[1] This grouping is (again, depening on your regexp flavour)
   a "capturing grouping", meaning that you can refer later
   to what was matched by the sub-expression in the parens.
   There are also (flavor blah blah) non-capturing groupings.

[2] You always are somewhat sloppy with regexps. Actually you
   are being sloppy already, since every classical textbook
   will tell you that they totally suck at understanding
   "nested stuff", which HTML is, alas. But under the right
   conditions they can butcher it alright :-)

-- 
tomás


signature.asc
Description: PGP signature


Re: Need help with narroely focused use case of Emacs

2024-06-29 Thread tomas
On Sat, Jun 29, 2024 at 04:02:56PM -, Curt wrote:
> On 2024-06-29, Michael Kjörling  wrote:
> >> 
> >> HUH ??
> >
> > ..._focus on the goal_.
> >
> 
> 
> Owlett is a notorious troll who never listens to reason.

This is wrong, borderline defamatory. Richard Owlett is not a
troll [1]. He may be uncommon in the way he approaches things,
and I do understand his ways may annoy some people.

If they annoy you, you always may choose to not respond. Others
will chime in. Much more polite and much more effective for the
whole mailing list.

Lobbing insults at people doesn't help anyone.

Cheers

[1] by the very definition of "troll", who isn't interested in the topic
   itself, but just in eliciting a response.
-- 
t


signature.asc
Description: PGP signature


Re: Need help with narroely focused use case of Emacs

2024-06-29 Thread Lee
Hi,

> > So you may prefer to use regexes as
> > Murphy intended, handling both the opening and closing tags at the same
> > time, leaving the intervening text intact.
>
> In this particular case I suspect it would become overly complex.
> I've already discovered that the order of edits is important.

I guess it depends on what you're used to.  I don't think this bit is
overly complex .. your opinion might be different

$ cat /tmp/z
cat /dev/null > txtfile.html
for v in $(seq 1 12); do echo ' text
text text ' >> txtfile.html; done
sed -Ei.bak 's@([^<]*)@\1@g' txtfile.html

$ bash z

$ cat txtfile*
 text text text 
 text text text 
 text text text 
 text text text 
 text text text 
 text text text 
 text text text 
 text text text 
 text text text 
 text text text 
 text text text 
 text text text 
 text text text 
 text text text 
 text text text 
 text text text 
 text text text 
 text text text 
 text text text 
 text text text 
 text text text 
 text text text 
 text text text 
 text text text 

$

Regards,
Lee



Re: Need help with narroely focused use case of Emacs

2024-06-29 Thread Curt
On 2024-06-29, Michael Kjörling  wrote:
>> 
>> HUH ??
>
> ..._focus on the goal_.
>


Owlett is a notorious troll who never listens to reason.

But you people adore this kind of troll, inexplicably, perhaps because
he allows you to expand endlessly on your reams of essentially useless
knowledge.



Re: Need help with narroely focused use case of Emacs

2024-06-29 Thread Max Nikulin

On 29/06/2024 20:07, mick.crane wrote:

On 2024-06-29 12:34, Max Nikulin wrote:

To manipulate with HTML it is better to write a script in some
programming language, e.g. for python there are lxml etree and
BeautifulSoup packages. This way it is easier to maintain valid
document structure with paired opening and closing tags.

I have not tried Emacs lisp facilities for dealing with HTML.


open in Geany

[...]

click search select replace
copy paste selection into "search for"


By "Emacs *lisp* facilities for dealing with HTML" I mead something like 
`libxml-parse-html-region'. Notice that I was suggesting against 
search





Re: Need help with narroely focused use case of Emacs

2024-06-29 Thread Vincent Lefevre
On 2024-06-28 20:53:50 +, Michael Kjörling wrote:
> Yes, it almost certainly can be done with a single sed (or other
> similar tool) invocation where the regular expression matches
> precisely what you want it to match. But unless this is something you
> will do very often, I tend to prefer readability over being clever,
> even if the readable version is somewhat less performant.

To match a range inside a regexp, $(rgxg range 1 119) is readable. :)

rgxg is provided by the package of the same name.

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



Re: Need help with narroely focused use case of Emacs

2024-06-29 Thread Andy Smith
Hello,

On Sat, Jun 29, 2024 at 01:46:27PM +, Michael Kjörling wrote:
> On 29 Jun 2024 06:12 -0500, from rowl...@access.net (Richard Owlett):
> >> there may be other  closing tags you don't want to
> >> change because they close other  tags we haven't seen.
> > 
> > Chuckle ;} The appropriate "" to be replaced by "" is ALWAYS
> > preceded by "#160;" .
> 
> As far as I can see, neither of this was stated in the original
> question. Please don't add arbitrary requirements later to invalidate
> potential answers.

It's not an authentic Owlett thread unless it contains an enormous
XY problem, a monomaniacal obsession with a solution already
part-dreamed up by the OP, several factual errors, and a constant
trickle of confounding small details that were never provided up
front, now delivered with glee.

Otherwise it's just sparkling timewasting.

Thanks,
Andy

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



Re: Need help with narroely focused use case of Emacs

2024-06-29 Thread Michael Kjörling
On 29 Jun 2024 05:51 -0500, from rowl...@access.net (Richard Owlett):
>> Ignoring the question about Emacs
> 
> Emacs *CAN NOT* be ignored.

I did not say to ignore _Emacs_. I said that I was ignoring the
_question_ about Emacs, to instead...

>> and focusing on the goal (your
   
>> question otherwise is an excellent example of a XY question), this is
>> not something regular expressions are very good at.
> 
> HUH ??

..._focus on the goal_.

(It is usually a good idea to read at least a whole sentence before
responding to it.)

The _goal_ in this case being your stated specific series of string
replacements.

If you want to use Emacs to do that, no one is stopping you from doing
so. You can directly adapt what I suggested to an Emacs workflow. But
just because a nailgun can be used to hang a painting doesn't mean
that a nailgun is the _appropriate_ tool for that particular job;
without detracting from its usability in _other_ applications.

Sometimes really all you are looking for is a small hammer.

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



Re: Need help with narroely focused use case of Emacs

2024-06-29 Thread Michael Kjörling
On 29 Jun 2024 06:12 -0500, from rowl...@access.net (Richard Owlett):
>>> $ for v in $(seq 1 119); do sed -i 's,>> id="V'$v'">,,g' ./*.html; done
>> 
>> Having done that (or similar), don't forget to change the relevant
>>  closing tags to  closing tags. However, there may be
>> other  closing tags you don't want to change because they close
>> other  tags we haven't seen.
> 
> Chuckle ;} The appropriate "" to be replaced by "" is ALWAYS
> preceded by "#160;" .

As far as I can see, neither of this was stated in the original
question. Please don't add arbitrary requirements later to invalidate
potential answers.

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



Re: Need help with narroely focused use case of Emacs

2024-06-29 Thread mick.crane

On 2024-06-29 12:34, Max Nikulin wrote:

On 29/06/2024 11:48, to...@tuxteam.de wrote:

   Do M-x (hold Meta, most of the time your Alt key, then "x").
   You get a command for a prompt. Enter "query-replace-regexp"


And to get help for this function

C-h f query-replace-regexp RET

To open user manual switch to the help buffer and press "i".

A side note since an answer to the asked question has been posted.

To manipulate with HTML it is better to write a script in some
programming language, e.g. for python there are lxml etree and
BeautifulSoup packages. This way it is easier to maintain valid
document structure with paired opening and closing tags.

I have not tried Emacs lisp facilities for dealing with HTML.


open in Geany


  thru [at most]

  abcdefg

  thru [at most]

abcdefg

  thru [at most]

abcdefg

click search select replace
copy paste selection into "search for"
paste  in "replace with"
click "In Document"


  abcdefg

abcdefg

abcdefg



Re: Need help with narroely focused use case of Emacs

2024-06-29 Thread Richard Owlett

On 06/29/2024 06:51 AM, debian-u...@howorth.org.uk wrote:

Richard Owlett  wrote:

On 06/28/2024 03:53 PM, Michael Kjörling wrote:

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 its own file.

How do I open a file.
Do the above replacement.
Save and close the file.


Ignoring the question about Emacs


Emacs *CAN NOT* be ignored.
It is the _available_ editor known to be capable of handling regular
expressions.


Err, pluma is available I believe.


May I quote my original post?

On 06/28/2024 02:04 PM, Richard Owlett wrote:

Pluma is my editor of choice.

I've never used it but I just
started it and used the Replace... entry on the Search menu to bring up
a dialog box. In the dialog box there is a tick box labelled "Match
regular expression". So I ticked that and then tested it by editing an
html file using an RE.

So Pluma is an "_available_ editor known to be capable of handling
regular expressions."


So you evidently have a later version than I have available for this 
particular machine.

One does get latest and greatest by simply wishing for it.



And as others have pointed out, sed is available and it's easy to
install others. So there are many possible answers to your question
other than emacs.


My definition of "available" includes knowledge of how to use it.
I've investigated it for some past projects and found easier way to 
accomplish those particular tasks. Part of my interest in Emacs stems 
from having seen what co-workers could do with its predecessor TECO 
decades ago.


Updating MY system is NONtrivial!





Re: Need help with narroely focused use case of Emacs

2024-06-29 Thread Greg Wooledge
On Sat, Jun 29, 2024 at 07:43:47 -0400, Dan Ritter wrote:
> The option "g" means that said should do this multiple times if
> it occurs in the same file (globally, like grep) instead of the
> default behavior which is to find the first match and just
> change that.

The g option in sed's s command means it will apply the substitution
multiple times per *line*.  Not per file.  It always applies multiple
times per file, unless you restrict the line range with a prefix.

hobbit:~$ printf 'foo foo\nfoo foo\n' | sed s/foo/bar/
bar foo
bar foo
hobbit:~$ printf 'foo foo\nfoo foo\n' | sed s/foo/bar/g
bar bar
bar bar



Re: Need help with narroely focused use case of Emacs

2024-06-29 Thread Greg Wooledge
On Fri, Jun 28, 2024 at 21:23:03 -0600, Charles Curley wrote:
> 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 similar), don't forget to change the relevant
>  closing tags to  closing tags. However, there may be
> other  closing tags you don't want to change because they close
> other  tags we haven't seen. So you may prefer to use regexes as
> Murphy intended, handling both the opening and closing tags at the same
> time, leaving the intervening text intact.

https://stackoverflow.com/questions/1732348/regex-match-open-tags-except-xhtml-self-contained-tags#answer-1732454



Re: Need help with narroely focused use case of Emacs

2024-06-29 Thread Dan Ritter
Richard Owlett wrote: 
> On 06/28/2024 03:53 PM, Michael Kjörling wrote:
> > 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 its own 
> > > file.
> > > 
> > > How do I open a file.
> > > Do the above replacement.
> > > Save and close the file.
> > 
> > Ignoring the question about Emacs
> 
> Emacs *CAN NOT* be ignored.
> It is the _available_ editor known to be capable of handling regular
> expressions.

If your machine doesn't have sed, it is not a working Debian
system. 

Every Debian machine comes with sed by default.  Even the
rescue image has sed. The installer environment, before Debian
is actually installed, has sed. sed is a basic tool that
everyone has access to. emacs needs to be installed, and often
is not.

I know from past experience that it's useless to offer you any
solution that deviates from the vision you have for the way the
world ought to work, but this is a sufficiently common kind of
problem that a full answer will be useful to other people.

> > and focusing on the goal (your
> > question otherwise is an excellent example of a XY question), this is
> > not something regular expressions are very good at.
> 
> HUH ??

An XY question is when someone asks "How can I do specific thing
X?" but what they want to do is task Y, which is more easily
accomplished in a different way that doesn't involve X at all.
Usually this means that they have read something that tells them
about X in a different context, and they think that is an
essential part of solving their Y problem.

If we're lucky, they tell us what Y is. Frequently, XY questions
just show up as "How do I do X?" without context.

It happens a lot on this mailing list.

Or, maybe your expression of disbelief was about regular
expressions? A regular expression (regexp) is a specific kind of
formal language for specifying a pattern of tokens -- what we
often call a "string". If the regexp describes a candidate
string, we call that a "match". A common editing task is to find
all the matches for a regexp and replace them with some other
string.

The program "grep" takes its name from a sequence of editor
commands: global regular expression print. 

Michael says that regexps aren't great at this particular task
because there's a variable component in the pattern which is
hard to describe. He comes up with a clever solution based on
the fact that the variable component is going to be an integer
sequence.


> > However, since
> > it's presumably a once-only operation, I assume that you can live with
> > it being done in a suboptimal way in terms of performance.
> > 
> > In that case, assuming for simplicity that all the files are in a
> > single directory, you could try something similar to:
> > 
> > $ for v in $(seq 1 119); do sed -i 's, > id="V'$v'">,,g' ./*.html; done
 
This sets up a loop which will execute 119 times, incrementing
the variable $v from 1 to 119. Inside the loop, it calls `sed`
to execute inplace (-i) which means it will change the files it
encounters rather than spitting out new files on standard out.

The command passed to sed is

s,,,g

s means string substitution. It takes a pattern, a replacement,
and options, separated by the next character after the s, which
in this case is a comma.



is the pattern. Because of the loop, the value $v is going to be
replaced by the shell before sed sees this, so on various runs
through the loop sed will see:



...




You'll probably need to adjust this for other books.

Anyway, whenever sed sees the pattern above, it will replace it
with:



which is what you said you wanted.

The option "g" means that said should do this multiple times if
it occurs in the same file (globally, like grep) instead of the
default behavior which is to find the first match and just
change that.

./*.html

tells sed to operate on all the files in the current directory
ending in .html -- yes, shells implement a version of regexp for
file pattern matching. And that's the end of the loop.


> I'll have to investigate sed further.
> My project is not yet to the point of automatically editing ALL chapters. I
> need to first establish how to edit all VERSES of an individual chapter.

The solution Michael presented can be run on just one file
instead of all the .html files in the current directory.


> ROFL ;} No one would define me as a "programmer". I took an introduction to
> computers course as a E.E. student in the 60's. Most of my jobs required
> background in component level analog electronics. Got one assignment because
> I was not "afraid" of 8080 ;}

The true UNIX philosophy is that at any moment, any user can
stop being "just a user" and use the tools present to do some
programming to solve their problems. 



Re: Need help with narroely focused use case of Emacs

2024-06-29 Thread debian-user
Richard Owlett  wrote:
> On 06/28/2024 03:53 PM, Michael Kjörling wrote:
> > 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 its own file.
> >>
> >> How do I open a file.
> >> Do the above replacement.
> >> Save and close the file.  
> > 
> > Ignoring the question about Emacs   
> 
> Emacs *CAN NOT* be ignored.
> It is the _available_ editor known to be capable of handling regular 
> expressions.

Err, pluma is available I believe. I've never used it but I just
started it and used the Replace... entry on the Search menu to bring up
a dialog box. In the dialog box there is a tick box labelled "Match
regular expression". So I ticked that and then tested it by editing an
html file using an RE.

So Pluma is an "_available_ editor known to be capable of handling
regular expressions."

And as others have pointed out, sed is available and it's easy to
install others. So there are many possible answers to your question
other than emacs.



Re: Need help with narroely focused use case of Emacs

2024-06-29 Thread Richard Owlett

On 06/28/2024 11:48 PM, to...@tuxteam.de wrote:

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. It has much verbose documentation.
But examples seem rather scarce.


Of course, Emacs is the best editor out there, by a long shot.
But learning it is a long and panoramic road. You should at
least have a rough idea that you want to take it.


Definitely interested
I worked for DEC in the 70's. Though an tech in Power Supply 
Engineering, I was exposed to TECO and have recently seen claims that 
Emacs is TECO done right. I've been exposed to many editors since but 
TECO is memorable.





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 its own file.

How do I open a file.


Two ways of skinning that cat:

   - in a terminal, type "emacs "
   - in an open Emacs instance (be it terminal or GUI, your
 choice), type C-x C-f (hold CTRL, then "x", while holding
 CTRL then "f"). You get a prompt in the bottom line (the
 so-called minibuffer), enter your file name there. You
 get tab completions.

Then there are menus...


Do the above replacement.


   Go to the top of your buffer (this is what you would call
   "your file": Emacs calls the things which hold your text
   while you are on them "buffers").
   Do M-x (hold Meta, most of the time your Alt key, then "x").
   You get a command for a prompt. Enter "query-replace-regexp"
   (you get tab completions, so "que" TAB "re" TAB should suffice,
   roughly speaking). Enter the regular expression you're looking
   for. Then ENTER, then your replacement.


Save and close the file.


   To save, C-x C-s. I don't quite know what you mean by
   "close".

   To quit Emacs, C-x C-c.

Now I don't quite understand what you mean above with your
example, and whether it can be expressed by a regular expression
at all, but that is for a second go.


When searching for information on regular expressions I came across one 
that did it by searching for

   {"1 thru 9" OR "10 thru 99" OR "100 thru 999"} .
I lost the reference ;<





First, find out whether your beloved Pluma can deliver. I'm
sure it can. Unless you want to embark in the Emacs adventure
(very much recommended, mind you, but not the most efficient
path to your problem at hand).


I'm still essentially at the stage of flow-charting how I need to handle 
individual chapters. As there ~1000 chapters, I'll want to use something 
that can handle macros eventually.


Thank you.



Cheers





Re: Need help with narroely focused use case of Emacs

2024-06-29 Thread Max Nikulin

On 29/06/2024 11:48, to...@tuxteam.de wrote:

   Do M-x (hold Meta, most of the time your Alt key, then "x").
   You get a command for a prompt. Enter "query-replace-regexp"


And to get help for this function

C-h f query-replace-regexp RET

To open user manual switch to the help buffer and press "i".

A side note since an answer to the asked question has been posted.

To manipulate with HTML it is better to write a script in some 
programming language, e.g. for python there are lxml etree and 
BeautifulSoup packages. This way it is easier to maintain valid document 
structure with paired opening and closing tags.


I have not tried Emacs lisp facilities for dealing with HTML.



Re: Need help with narroely focused use case of Emacs

2024-06-29 Thread Richard Owlett

On 06/28/2024 10:23 PM, Charles Curley wrote:

On Fri, 28 Jun 2024 20:53:50 +
Michael Kjörling  wrote:


$ for v in $(seq 1 119); do sed -i 's,,,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 similar), don't forget to change the relevant
 closing tags to  closing tags. However, there may be
other  closing tags you don't want to change because they close
other  tags we haven't seen.


Chuckle ;} The appropriate "" to be replaced by "" is 
ALWAYS preceded by "#160;" .



So you may prefer to use regexes as
Murphy intended, handling both the opening and closing tags at the same
time, leaving the intervening text intact.


In this particular case I suspect it would become overly complex.
I've already discovered that the order of edits is important.






Re: Need help with narroely focused use case of Emacs

2024-06-29 Thread Richard Owlett

On 06/28/2024 03:53 PM, Michael Kjörling wrote:

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 its own file.

How do I open a file.
Do the above replacement.
Save and close the file.


Ignoring the question about Emacs 


Emacs *CAN NOT* be ignored.
It is the _available_ editor known to be capable of handling regular 
expressions.



and focusing on the goal (your
question otherwise is an excellent example of a XY question), this is
not something regular expressions are very good at.


HUH ??


However, since
it's presumably a once-only operation, I assume that you can live with
it being done in a suboptimal way in terms of performance.

In that case, assuming for simplicity that all the files are in a
single directory, you could try something similar to:

$ for v in $(seq 1 119); do sed -i 's,,,g' 
./*.html; done


I'll have to investigate sed further.
My project is not yet to the point of automatically editing ALL 
chapters. I need to first establish how to edit all VERSES of an 
individual chapter.





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.


ROFL ;} No one would define me as a "programmer". I took an introduction 
to computers course as a E.E. student in the 60's. Most of my jobs 
required background in component level analog electronics. Got one 
assignment because I was not "afraid" of 8080 ;}




Yes, it almost certainly can be done with a single sed (or other
similar tool) invocation where the regular expression matches
precisely what you want it to match. But unless this is something you
will do very often, I tend to prefer readability over being clever,
even if the readable version is somewhat less performant.






Re: Need help with narroely focused use case of Emacs

2024-06-29 Thread Richard Owlett

On 06/28/2024 02:33 PM, Van Snyder wrote:

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 expressions in search and replace operations.
I find nedit easier to use than emacs.


I've see references to nedit before.
But circumstances require I use this system in its current configuration.

Thank you.



Re: Need help with narroely focused use case of Emacs

2024-06-29 Thread Richard Owlett

On 06/28/2024 02:17 PM, 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, Pluma handles regular expressions the Perl way:
https://wiki.mate-desktop.org/mate-desktop/applications/pluma/


Hadn't seen that page. I based my opinion on what I saw when doing a 
Search and Replace. Also Pluma's Help function doesn't mention it.



https://perldoc.perl.org/perlre


That page is thin on examples. But now knowing that Pluma does things 
"the Perl way" I can do a web search.


Thank you.






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, Pluma handles regular expressions the Perl way:
> https://wiki.mate-desktop.org/mate-desktop/applications/pluma/
> https://perldoc.perl.org/perlre

See? I was sure of that. And Perl style regexps are actually somewhat
friendlier than Emacs style (they're roughly one decennium younger).

Thanks, Didier :-)

Cheers
-- 
t


signature.asc
Description: PGP signature


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. It has much verbose documentation.
> But examples seem rather scarce.

Of course, Emacs is the best editor out there, by a long shot.
But learning it is a long and panoramic road. You should at
least have a rough idea that you want to take it.

> 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 its own file.
> 
> How do I open a file.

Two ways of skinning that cat:

  - in a terminal, type "emacs "
  - in an open Emacs instance (be it terminal or GUI, your
choice), type C-x C-f (hold CTRL, then "x", while holding
CTRL then "f"). You get a prompt in the bottom line (the
so-called minibuffer), enter your file name there. You
get tab completions.

Then there are menus...

> Do the above replacement.

  Go to the top of your buffer (this is what you would call
  "your file": Emacs calls the things which hold your text
  while you are on them "buffers").
  Do M-x (hold Meta, most of the time your Alt key, then "x").
  You get a command for a prompt. Enter "query-replace-regexp"
  (you get tab completions, so "que" TAB "re" TAB should suffice,
  roughly speaking). Enter the regular expression you're looking
  for. Then ENTER, then your replacement.

> Save and close the file.

  To save, C-x C-s. I don't quite know what you mean by
  "close".

  To quit Emacs, C-x C-c.

Now I don't quite understand what you mean above with your
example, and whether it can be expressed by a regular expression
at all, but that is for a second go.

First, find out whether your beloved Pluma can deliver. I'm
sure it can. Unless you want to embark in the Emacs adventure
(very much recommended, mind you, but not the most efficient
path to your problem at hand).

Cheers
-- 
t


signature.asc
Description: PGP signature


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 similar), don't forget to change the relevant
 closing tags to  closing tags. However, there may be
other  closing tags you don't want to change because they close
other  tags we haven't seen. So you may prefer to use regexes as
Murphy intended, handling both the opening and closing tags at the same
time, leaving the intervening text intact.



-- 
Does anybody read signatures any more?

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



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 its own file.
> 
> How do I open a file.
> Do the above replacement.
> Save and close the file.

Ignoring the question about Emacs and focusing on the goal (your
question otherwise is an excellent example of a XY question), this is
not something regular expressions are very good at. However, since
it's presumably a once-only operation, I assume that you can live with
it being done in a suboptimal way in terms of performance.

In that case, assuming for simplicity that all the files are in a
single directory, you could try something similar to:

$ for v in $(seq 1 119); do sed -i 's,,,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.

Yes, it almost certainly can be done with a single sed (or other
similar tool) invocation where the regular expression matches
precisely what you want it to match. But unless this is something you
will do very often, I tend to prefer readability over being clever,
even if the readable version is somewhat less performant.

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



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 expressions in search and replace operations.
I find nedit easier to use than emacs.

> 
> 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 its own
> file.
> 
> How do I open a file.
> Do the above replacement.
> Save and close the file.
> 
> Help please.
> TIA
> 



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/mate-desktop/applications/pluma/
https://perldoc.perl.org/perlre



Re: Need help with PGP signature verification

2023-10-08 Thread Tom Browder
On Sun, Oct 8, 2023 at 14:39 Thomas Schmitt  wrote:

> Hi,


Thanks, Thomas.

I did get the signers key fingeprints from their personal github pages. I
would go the full security route if it were only my use I'm concerned with,
but I'm working on a Raku module for others and I don't want them to be
held up by having to fumble with key trust before at least downloading the
files with a first order check with data I can provide.

I'll make sure to document exactly what I'm providing.

Best regards,

-Tom


Re: Need help with PGP signature verification

2023-10-08 Thread debian-user
"Thomas Schmitt"  wrote:
> Hi,
> 
> Tom Browder wrote:
> > I'm willing to trust published PGP key fingerprints for signers of
> > Rakudo downloadable files.  
> 
> Do i get it right that you talk about https://rakudo.org/downloads ?
> 
> > Question:  How can I get the fingerprint from the downloads? 
> > The products I download are (1) the file of interest, (2) a PGP
> > signed checksums file with various shaX hashes for the file, and
> > (3) a separate file containing a PGP signature.  
> 
> The "Verify" button at above web page leads to
>   https://rakudo.org/downloads/verifying
> which explains how to use sha256 and gpg2 for verification.
> Most importantly it lists the fingerprints of the four "Keys of the
> releasers". If gpg2 --verify reports any other fingerprint, then
> the .asc file cannot be trusted.
> 
> (It is not overly trustworthy that fingerprints and the signed files
> are offered on the same web site. Once the site is compromised, both
> can be manipulated by the attacker.)

That's why the page suggests that the developers' also list their
fingerprints on their github pages, I suspect. Which they do.



Re: Need help with PGP signature verification

2023-10-08 Thread Thomas Schmitt
Hi,

Tom Browder wrote:
> I found a usable answer. Run "gpg file.asc" and the output shows the two
> fingerprints: the primary key fingerprint and the subkey fingerprint.

Wow, that's surprising.

But indeed the man page says:

  COMMANDS
   ...
   gpg  may  be run with no commands, in which case it will perform a rea‐
   sonable action depending on the type of file it is given as  input  (an
   encrypted  message  is  decrypted, a signature is verified, a file con‐
   taining keys is listed).


Have a nice day :)

Thomas



Re: Need help with PGP signature verification

2023-10-08 Thread Tom Browder
On Sun, Oct 8, 2023 at 05:13 Tom Browder  wrote:

> On Sun, Oct 8, 2023 at 3:29 AM DdB
>  wrote:
> > Am 08.10.2023 um 01:16 schrieb Tom Browder:
> > > I'm willing to trust published PGP key fingerprints for signers of
> > > Rakudo downloadable files.
> > > Question:  How can I get the fingerprint from the downloads?


I found a usable answer. Run "gpg file.asc" and the output shows the two
fingerprints: the primary key fingerprint and the subkey fingerprint.

I wish there was a PGP cookbook around somewhere.

Thanks, all.

-Tom


Re: Need help with PGP signature verification

2023-10-08 Thread Thomas Schmitt
Hi,

maybe

  gpg --keyid-format long --verify signature_file.asc /some/dummy/file

this gives me the last 16 characters of the fingerprint. Like:

  gpg:using  key E9CBDFC0ABC0A854

with a matching payload file i get something like:

  Primary key fingerprint: 44BC 9FD0 D688 EB00 7C4D D029 E9CB DFC0 ABC0 A854


Have a nice day :)

Thomas



Re: Need help with PGP signature verification

2023-10-08 Thread Dan Purgert
On Oct 08, 2023, Tom Browder wrote:
> On Sun, Oct 8, 2023 at 3:29 AM DdB
>  wrote:
> > Am 08.10.2023 um 01:16 schrieb Tom Browder:
> > > I'm willing to trust published PGP key fingerprints for signers of
> > > Rakudo downloadable files.
> > > Question:  How can I get the fingerprint from the downloads?
> > There is more than just one way to archieve this, first result from
> 
> I should have been more specific. I have the following:
> 
> -BEGIN PGP SIGNATURE-
> 
> iHUEABYKAB0WIQTdpb2j9c3OmfntVsEsxulzgY84awUCZQ1GBgAKCRAsxulzgY84
> a+jhAQCZ0lLh1EnB1AwrgW0zPBp801OOeJ2QUiDBOGXBbrl/7QD/ZQe738sF2tCR
> 43SAvJOfT3b4YpGdfSUj9F7XNDoovQM=
> =mNqK
> -END PGP SIGNATURE-
> 
> I need the fingerprint from that to compare with the fingerprints I
> know from Github to see if it's from the same key.

No, you just need the key(s) from the developer(s).  Assuming you've not
accidentally tampered with the files, you'll be able to verify this
signature with a command like "gpg --verify shasum.txt.gpg shasum.txt".

You'll get a message to the effect of 

  Signature made [some-date-here]
  using RSA Key [fingerprint-here]
  Good signature from "Some Person's GPG Key Name"

NOTE -- you MAY also receive some lines to the effect of 

  WARNING: This key is not trusted, the authenticity of the signature
  cannot be verified.

As with checking a Debian ISO (or other Linux distro that uses this
style of verification), this is nothing to be worried about, it's just
GPG informing you that it doesn't have any information as to whether you
actually "trust" the key (either through you explicitly signing /
trusting the key, or trust being derived through the GPG Web of Trust).
It's roughly the GPG equivalent of a web browser going "WARNING - Self
Signed Certificate".


Anyway, once you're done with this; then you know the sha256 checksum
file is the one the developers intended you to get; and you can use it
to check the *iso file.  Probably something like "sha256sum
--ignore-missing -c sha256sum.txt"

HTH :)

-- 
|_|O|_|
|_|_|O| Github: https://github.com/dpurgert
|O|O|O| PGP: DDAB 23FB 19FA 7D85 1CC1  E067 6D65 70E5 4CE7 2860


signature.asc
Description: PGP signature


Re: Need help with PGP signature verification

2023-10-08 Thread Tom Browder
On Sun, Oct 8, 2023 at 3:29 AM DdB
 wrote:
> Am 08.10.2023 um 01:16 schrieb Tom Browder:
> > I'm willing to trust published PGP key fingerprints for signers of
> > Rakudo downloadable files.
> > Question:  How can I get the fingerprint from the downloads?
> There is more than just one way to archieve this, first result from

I should have been more specific. I have the following:

-BEGIN PGP SIGNATURE-

iHUEABYKAB0WIQTdpb2j9c3OmfntVsEsxulzgY84awUCZQ1GBgAKCRAsxulzgY84
a+jhAQCZ0lLh1EnB1AwrgW0zPBp801OOeJ2QUiDBOGXBbrl/7QD/ZQe738sF2tCR
43SAvJOfT3b4YpGdfSUj9F7XNDoovQM=
=mNqK
-END PGP SIGNATURE-

I need the fingerprint from that to compare with the fingerprints I
know from Github to see if it's from the same key.

I think using openssl might be the easiest, but all the tools seem to
have a huge number of options and a vocabulary that's very malleable.

Thanks.

-Tom



Re: Need help with PGP signature verification

2023-10-08 Thread Thomas Schmitt
Hi,

Tom Browder wrote:
> I'm willing to trust published PGP key fingerprints for signers of Rakudo
> downloadable files.

Do i get it right that you talk about https://rakudo.org/downloads ?

> Question:  How can I get the fingerprint from the downloads? 
> The products I download are (1) the file of interest, (2) a PGP signed
> checksums file with various shaX hashes for the file, and (3) a separate
> file containing a PGP signature.

The "Verify" button at above web page leads to
  https://rakudo.org/downloads/verifying
which explains how to use sha256 and gpg2 for verification.
Most importantly it lists the fingerprints of the four "Keys of the
releasers". If gpg2 --verify reports any other fingerprint, then the .asc
file cannot be trusted.

(It is not overly trustworthy that fingerprints and the signed files
are offered on the same web site. Once the site is compromised, both can
be manipulated by the attacker.)


Have a nice day :)

Thomas



Re: Need help with PGP signature verification

2023-10-07 Thread DdB
Am 08.10.2023 um 01:16 schrieb Tom Browder:
> I'm willing to trust published PGP key fingerprints for signers of
> Rakudo downloadable files.
> 
> Question:  How can I get the fingerprint from the downloads? 
> 
> The products I download are (1) the file of interest, (2) a PGP signed
> checksums file with various shaX hashes for the file, and (3) a separate
> file containing a PGP signature.
> 
> Thanks so much.
> 
> -Tom
> 
> 
> 
There is more than just one way to archieve this, first result from
G**-search returns:
https://superuser.com/questions/1297670/how-do-i-check-gpg-signature-given-only-the-fingerprint-and-key-id
which also contains security related warnings and hints.
HTH, DdB



Re: Need help to install gnucobol

2023-04-18 Thread Timothy M Butterworth
On Tue, Apr 18, 2023 at 2:55 PM Jerry Mellon  wrote:

> Hi,
>
> I am new to Debian and I would like to install gnucobol. I see it is in
> Debian 10 but not 11. I tried to download the Debian 10 gnucobol, but I
> get a message that the package is broken. Could you tell me where else I
> might obtain a compatible cobol compiler?
>

GNUCobol is packaged in Debian 12 Bookworm:

gnucobol/testing 5 amd64
 compiler package for default GnuCOBOL

gnucobol3/testing 3.1.2-5+b1 amd64
 COBOL compiler

gnucobol4/testing 4.0~early~20200606-6+b1 amd64
 COBOL compiler

Tim


> --
> Jerry Mellon
> 501 Los Caminos St.
> St Augustine, FL 32095
> 407.461.9216
> jfmel...@netscape.net
>
>

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


Re: Need help to install gnucobol

2023-04-18 Thread Jerry Mellon

Hi,

I am new to Debian and I would like to install gnucobol. I see it is in 
Debian 10 but not 11. I tried to download the Debian 10 gnucobol, but I 
get a message that the package is broken. Could you tell me where else I 
might obtain a compatible cobol compiler?


--
Jerry Mellon
501 Los Caminos St.
St Augustine, FL 32095
407.461.9216
jfmel...@netscape.net



Re: Need help to install gnucobol

2023-02-08 Thread Richmond
Amine Derk  writes:

> Hello,
>
> I'm trying to use debian for the first time. and I'm not able to
> install Gnucobol.
>
> aderkaoua@LAPTOP-6B841S0M:~$ sudo apt-get install gnucobol
> Reading package lists... Done
> Building dependency tree... Done
> Reading state information... Done
> E: Unable to locate package gnucobol
>
> please advise?
>
> Amine. 
> Cobol Developer 
> 571 234 9827

I compiled gnu-cobol and have it working. I obtained:

gnucobol-3.1.2.tar.xz

tar axvf gnucobol-3.1.2.tar.xz
cd gnucobol-3.1.2
./configure
make

Probably there were errors which I fixed by installing things. See how
far you get.



Re: Need help to install gnucobol

2023-02-07 Thread Amine Derk
Thanks, I'll check it out.

Update you soon.

On Tue, Feb 7, 2023, 8:35 AM  wrote:

> On 2023-02-04 20:20, Cyril Brulebois wrote:
> > Hi Amine,
> >
> > Amine Derk  (2023-02-04):
> >> I'm trying to use debian for the first time. and I'm not able to
> >> install
> >> Gnucobol.
> >>
> >> aderkaoua@LAPTOP-6B841S0M:~$ sudo apt-get install gnucobol
> >> Reading package lists... Done
> >> Building dependency tree... Done
> >> Reading state information... Done
> >> *E: Unable to locate package gnucobol*
> >>
> >> *please advise?*
> >>
> >> Amine.
> >> Cobol Developer
> >> 571 234 9827
> >
> > You contacted the installer team. Redirecting to the user support list.
> >
> >
> > Cheers,
>
> gnucobol DEB is not available in Debian 11 (Bullseye). It is,
> notwithstanding, available from older Debian 10 (Buster) and/or newer
> Debian 12 (Bookworm).
>
> --
> Best Professional Regards.
>
> --
> Jose R R
> http://metztli.it
>
> -
> Download Metztli Reiser4: Debian Buster w/ Linux 5.16.20 AMD64
>
> -
> feats ZSTD compression https://sf.net/projects/metztli-reiser4/
>
> ---
> Official current Reiser4 resources: https://reiser4.wiki.kernel.org/
>


Re: Need help to install gnucobol

2023-02-07 Thread jose . r . r

On 2023-02-04 20:20, Cyril Brulebois wrote:

Hi Amine,

Amine Derk  (2023-02-04):
I'm trying to use debian for the first time. and I'm not able to 
install

Gnucobol.

aderkaoua@LAPTOP-6B841S0M:~$ sudo apt-get install gnucobol
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
*E: Unable to locate package gnucobol*

*please advise?*

Amine.
Cobol Developer
571 234 9827


You contacted the installer team. Redirecting to the user support list.


Cheers,


gnucobol DEB is not available in Debian 11 (Bullseye). It is, 
notwithstanding, available from older Debian 10 (Buster) and/or newer 
Debian 12 (Bookworm).


--
Best Professional Regards.

--
Jose R R
http://metztli.it
-
Download Metztli Reiser4: Debian Buster w/ Linux 5.16.20 AMD64
-
feats ZSTD compression https://sf.net/projects/metztli-reiser4/
---
Official current Reiser4 resources: https://reiser4.wiki.kernel.org/



RE: Need help to install gnucobol

2023-02-04 Thread Ming Kuang
On Sunday, February 5, 2023 12:21 PM, Amine Derk wrote:
> > I'm trying to use debian for the first time. and I'm not able to install
> > Gnucobol.
> >
> > aderkaoua@LAPTOP-6B841S0M:~$ sudo apt-get install gnucobol
> > Reading package lists... Done
> > Building dependency tree... Done
> > Reading state information... Done
> > *E: Unable to locate package gnucobol*
> >
> > *please advise?*
> [...]

Hi, Amine,

Did you run apt update before apt install ?
sudo apt-get update

This command downloads and builds a local cache of the list of available
packages.
When you use the apt install command, apt package manager searches
the cache to get the package and version information and then download
it from its repositories over the network. If the package is not in this cache,
your system won’t be able to install it.


openpgp-digital-signature.asc
Description: PGP signature


Re: Need help to install gnucobol

2023-02-04 Thread Andika Triwidada
> Amine Derk  (2023-02-04):
> > I'm trying to use debian for the first time. and I'm not able to install
> > Gnucobol.
> >
> > aderkaoua@LAPTOP-6B841S0M:~$ sudo apt-get install gnucobol
> > Reading package lists... Done
> > Building dependency tree... Done
> > Reading state information... Done
> > *E: Unable to locate package gnucobol*
> >
> > *please advise?*
> >
> > Amine.
> > Cobol Developer
> > 571 234 9827


https://packages.debian.org/search?keywords=gnucobol

package gnucobol only available for Debian Buster, Testing, and Sid.
Current Debian Stable (Bullseye doesn't have it).



Re: Need help to install gnucobol

2023-02-04 Thread Cyril Brulebois
Hi Amine,

Amine Derk  (2023-02-04):
> I'm trying to use debian for the first time. and I'm not able to install
> Gnucobol.
> 
> aderkaoua@LAPTOP-6B841S0M:~$ sudo apt-get install gnucobol
> Reading package lists... Done
> Building dependency tree... Done
> Reading state information... Done
> *E: Unable to locate package gnucobol*
> 
> *please advise?*
> 
> Amine.
> Cobol Developer
> 571 234 9827

You contacted the installer team. Redirecting to the user support list.


Cheers,
-- 
Cyril Brulebois (k...@debian.org)
D-I release manager -- Release team member -- Freelance Consultant


signature.asc
Description: PGP signature


Re: need help on setup netgear adapter

2021-12-01 Thread Andrew M.A. Cater
On Wed, Dec 01, 2021 at 10:35:49AM +, Long Wind wrote:
> Thank Andy! i've just installed bullseye again, and can't get it to work with 
> netgear wn111. its problem is same as fresh install of buster. actually i've 
> complained this before: if wifi adapter isn't set up by installer, then i'm 
> unable to get it to work after installation 
> 
> i always use same procedure to get connected: edit /etc/network/interfaces, 
> then run ifup/ifdown to take effect, i'm not aware of network manager
> 
>  allow-hotplug wlxe091f5061648
> iface wlxe091f5061648 inet dhcp
>     wpa-ssid mice
>     wpa-key-mgmt NONE
> 
> my old bullseye works, ifup looks like this:
> 
> Internet Systems Consortium DHCP Client 4.4.1
> Copyright 2004-2018 Internet Systems Consortium.
> All rights reserved.
> For info, please visit https://www.isc.org/software/dhcp/
> 
> Listening on LPF/wlxe091f5061648/e0:91:f5:06:16:48
> Sending on   LPF/wlxe091f5061648/e0:91:f5:06:16:48
> Sending on   Socket/fallback
> DHCPDISCOVER on wlxe091f5061648 to 255.255.255.255 port 67 interval 5
> DHCPDISCOVER on wlxe091f5061648 to 255.255.255.255 port 67 interval 5
> DHCPOFFER of 192.168.41.52 from 192.168.41.1
> DHCPREQUEST for 192.168.41.52 on wlxe091f5061648 to 255.255.255.255 port 67
> DHCPACK of 192.168.41.52 from 192.168.41.1
> bound to 192.168.41.52 -- renewal in 676 seconds.
> 

Are you using the unofficial non-free including firmware .iso to install 
from?

I'd suggest starting there:

https://cdimage.debian.org/cdimage/unofficial/non-free/cd-including-firmware/11.1.0+nonfree/amd64/iso-cd/firmware-11.1.0-amd64-netinst.iso

If you can install via Ethernet before using the wireless interface, I would
suggest that you do so.

I would also suggest installing the network manager package to configure the 
network interface. I find that nmtui is very useful.

All the very best, as ever,

Andy Cater
> 
> 
> 
> 



Re: need help on setup netgear adapter

2021-12-01 Thread Andrew M.A. Cater
On Wed, Dec 01, 2021 at 05:20:02AM +, Long Wind wrote:
> Thank  Andrew!
> i've been able to get stretch and bullseye to work with netgear wn111
> both have installed other wifi adapter with non-freeware before
> but i can't get fresh install of buster to work
> buster has /lib/firmware/carl9170-1.fw
> i run ifup wlx... :
> 
> Internet Systems Consortium DHCP Client 4.4.1
> Copyright 2004-2018 Internet Systems Consortium.
> All rights reserved.
> For info, please visit https://www.isc.org/software/dhcp/
> 
> Listening on LPF/wlxe091f5061648/e0:91:f5:06:16:48
> Sending on   LPF/wlxe091f5061648/e0:91:f5:06:16:48
> Sending on   Socket/fallback
> DHCPDISCOVER on wlxe091f5061648 to 255.255.255.255 port 67 interval 4
> DHCPDISCOVER on wlxe091f5061648 to 255.255.255.255 port 67 interval 11
> DHCPDISCOVER on wlxe091f5061648 to 255.255.255.255 port 67 interval 21
> DHCPDISCOVER on wlxe091f5061648 to 255.255.255.255 port 67 interval 15
> DHCPDISCOVER on wlxe091f5061648 to 255.255.255.255 port 67 interval 10
> No DHCPOFFERS received.
> No working leases in persistent database - sleeping.
> 
> 

Unless you absolutely postitively have to use buster at this point: if you
have it working under Bullseye - Debian 11 - use bullseye on this system.

This is an _old_ adapter 2013-2015, I think? and may not be as capable 
as newer hardware, but in this case I think there is soemthing else?

If you plug it into a bullseye machine and do the same, what do you see?

In any event, use the most up to date software that works.

All the very best, as ever,

Andy Cater

> 
> 



Re: need help on setup netgear adapter

2021-11-30 Thread Long Wind
Thank  Andrew!
i've been able to get stretch and bullseye to work with netgear wn111
both have installed other wifi adapter with non-freeware before
but i can't get fresh install of buster to work
buster has /lib/firmware/carl9170-1.fw
i run ifup wlx... :

Internet Systems Consortium DHCP Client 4.4.1
Copyright 2004-2018 Internet Systems Consortium.
All rights reserved.
For info, please visit https://www.isc.org/software/dhcp/

Listening on LPF/wlxe091f5061648/e0:91:f5:06:16:48
Sending on   LPF/wlxe091f5061648/e0:91:f5:06:16:48
Sending on   Socket/fallback
DHCPDISCOVER on wlxe091f5061648 to 255.255.255.255 port 67 interval 4
DHCPDISCOVER on wlxe091f5061648 to 255.255.255.255 port 67 interval 11
DHCPDISCOVER on wlxe091f5061648 to 255.255.255.255 port 67 interval 21
DHCPDISCOVER on wlxe091f5061648 to 255.255.255.255 port 67 interval 15
DHCPDISCOVER on wlxe091f5061648 to 255.255.255.255 port 67 interval 10
No DHCPOFFERS received.
No working leases in persistent database - sleeping.






Re: need help on setup netgear adapter

2021-11-30 Thread Andrew M.A. Cater
On Tue, Nov 30, 2021 at 09:56:32AM +, Long Wind wrote:
> i plug netgear wn111 to other PC (hp thin client) running debian 11it easily 
> work, and don't seem to need non-free firmware??how to verify this? i think  
> rt2870.bin is needed by other adapter
> 
> 
>  ls /lib/firmware/ -lR
> /lib/firmware/:
> total 68
> drwxr-xr-x 2 root root  4096 Sep 20 03:17 av7110
> -rw-r--r-- 1 root root 13388 Feb  1  2020 carl9170-1.fw
> drwxr-xr-x 2 root root  4096 Sep 20 03:17 cis
> drwxr-xr-x 2 root root  4096 Sep 20 03:17 dsp56k
> drwxr-xr-x 2 root root  4096 Sep 20 03:17 isci
> drwxr-xr-x 2 root root  4096 Sep 20 03:17 keyspan_pda
> -rw-r--r-- 1 root root  3764 Jun 30  2020 regulatory.db
> -rw-r--r-- 1 root root  1249 Jun 30  2020 regulatory.db.p7s
> -rw-r--r-- 1 root root  8192 Sep 19 22:11 rt2870.bin
> -rw-r--r-- 1 root root   999 Feb  1  2020 usbduxfast_firmware.bin
> -rw-r--r-- 1 root root  1770 Feb  1  2020 usbdux_firmware.bin
> -rw-r--r-- 1 root root  8192 Feb  1  2020 usbduxsigma_firmware.bin
> 
> /lib/firmware/av7110:
> total 4
> -rw-r--r-- 1 root root 212 Feb  1  2020 bootcode.bin
> 
> /lib/firmware/cis:
> total 64
> -rw-r--r-- 1 root root 137 Feb  1  2020 3CCFEM556.cis
> -rw-r--r-- 1 root root 134 Feb  1  2020 3CXEM556.cis
> -rw-r--r-- 1 root root 109 Feb  1  2020 COMpad2.cis
> -rw-r--r-- 1 root root  76 Feb  1  2020 COMpad4.cis
> -rw-r--r-- 1 root root 136 Feb  1  2020 DP83903.cis
> -rw-r--r-- 1 root root 253 Feb  1  2020 LA-PCM.cis
> -rw-r--r-- 1 root root 107 Feb  1  2020 MT5634ZLX.cis
> -rw-r--r-- 1 root root  54 Feb  1  2020 NE2K.cis
> -rw-r--r-- 1 root root 210 Feb  1  2020 PCMLM28.cis
> -rw-r--r-- 1 root root  68 Feb  1  2020 PE-200.cis
> -rw-r--r-- 1 root root  74 Feb  1  2020 PE520.cis
> -rw-r--r-- 1 root root  86 Feb  1  2020 RS-COM-2P.cis
> -rw-r--r-- 1 root root 122 Feb  1  2020 SW_555_SER.cis
> -rw-r--r-- 1 root root 140 Feb  1  2020 SW_7xx_SER.cis
> -rw-r--r-- 1 root root 132 Feb  1  2020 SW_8xx_SER.cis
> -rw-r--r-- 1 root root  85 Feb  1  2020 tamarack.cis
> 
> /lib/firmware/dsp56k:
> total 4
> -rw-r--r-- 1 root root 375 Feb  1  2020 bootstrap.bin
> 
> /lib/firmware/isci:
> total 4
> -rw-r--r-- 1 root root 232 Feb  1  2020 isci_firmware.bin
> 
> /lib/firmware/keyspan_pda:
> total 8
> -rw-r--r-- 1 root root 1914 Feb  1  2020 keyspan_pda.fw
> -rw-r--r-- 1 root root 2018 Feb  1  2020 xircom_pgs.fw
> 
> 
> 
>   

This is an old adapter. ar9170 - it looks as if it's covered in 
firmware-linux-free now - but you might need a file carl9170-1.fw

https://packages.debian.org/bullseye/firmware-linux-free

All the very best, as ever,

Andy C.



Re: need help on setting up thunderbird

2021-08-06 Thread tomas
On Thu, Aug 05, 2021 at 04:55:51PM -0400, lou wrote:
> tomas, thunderbird is working now

Thanks, glad to hear it :)

Cheers
 - t


signature.asc
Description: Digital signature


Re: need help on setting up thunderbird

2021-08-05 Thread lou

tomas, thunderbird is working now



Re: need help on setting up thunderbird

2021-08-05 Thread tomas
On Thu, Aug 05, 2021 at 06:34:18AM -0400, lou wrote:
> Thank didier and tomas! i've set up thunderbird
> 
> when i receive mail, thunderbird prompts me for password, i enter
> 16-char-long code, password used in their web-based mail isn't used

I think I din't understand you: is thunderbird working with your mail
now or not?

Cheers
 - t


signature.asc
Description: Digital signature


Re: need help on setting up thunderbird

2021-08-05 Thread asoeldner



Am 05.08.2021 um 12:34 schrieb lou:

Thank didier and tomas! i've set up thunderbird

when i receive mail, thunderbird prompts me for password, i enter
16-char-long code, password used in their web-based mail isn't used



Take a look in "Settings" and there for Master-Password ..



Re: need help on setting up thunderbird

2021-08-05 Thread lou

Thank didier and tomas! i've set up thunderbird

when i receive mail, thunderbird prompts me for password, i enter 
16-char-long code, password used in their web-based mail isn't used




Re: need help on setting up thunderbird

2021-08-05 Thread tomas
On Thu, Aug 05, 2021 at 10:08:55AM +0200, didier gaumet wrote:
> 
> Hello,
> 
> >From memory (so take it with a grain of salt), when Thunderbird asks
> for a password to access a mail server for the first time [...]

This is more or less my recollection, yes.

> I would imagine that is somewhat similar to certain distros that
> propose a desktop environment auto-login: that is not mandatory and the
> user may chose to discard this feature if he considers it a security
> risk
> 
> Cheers :-)

My beef was not so much about (the choice of) storing your password
or not, but about *not* giving the user the possibility of entering
it when setting up the account, along with the other account data
(SMTP server, IMAP, etc.).

Cheers :-)
 - t


signature.asc
Description: Digital signature


Re: need help on setting up thunderbird

2021-08-05 Thread didier gaumet


Hello,

>From memory (so take it with a grain of salt), when Thunderbird asks
for a password to access a mail server for the first time, it proposes
to store it in order for the user to not have to enter his password
each time. But this storage is not mandatory. If the user choses to
enter his passord each time for security reasons, he thus may do it.

I would imagine that is somewhat similar to certain distros that
propose a desktop environment auto-login: that is not mandatory and the
user may chose to discard this feature if he considers it a security
risk

Cheers :-)





Re: need help on setting up thunderbird

2021-08-05 Thread tomas
On Thu, Aug 05, 2021 at 07:38:44AM +0800, loushanguan2...@sina.com wrote:
> mail provider gives me 16-character-long authorization code for smtp 
> server(something like 77c93457b12ab54a)i can't enter it in thunderbird
> 
> in Account Settings/Outgoing Sever dialogPort should be 587which shall i 
> choose for "Connection security" and "Authentication method"?

I /think/ (long time ago I set that up for someone, I prefer a
civilised MUA ;-) you just have to set up the account (without
any password) and then try to fetch mail. Then, Thunderbird will
ask you for the password and you can enter it. It will remember
it for the next time.

Why anyone would design software like that is beyond me. But hey.

Cheers
 - t


signature.asc
Description: Digital signature


Re: need help on setting up thunderbird

2021-08-04 Thread Bret Busby

On 5/8/21 7:38 am, loushanguan2...@sina.com wrote:

mail provider gives me 16-character-long authorization code for smtp server
(something like 77c93457b12ab54a)
i can't enter it in thunderbird

in Account Settings/Outgoing Sever dialog
Port should be 587
which shall i choose for "Connection security" and "Authentication method"?




You might be interested in subscribing to, and, posting your query (and 
other applicable queries) to, the two Thunderbird users mailing lists at 
groups.io .


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



Re: Need help with ffmpeg installation - strange behaviour of my system - am I correct here?

2021-07-10 Thread Michael Lange
On Fri, 09 Jul 2021 22:14:23 +0300
Anssi Saari  wrote:

> Joerg Kampmann  writes:
> 
> > Hello group I wanted to install ffmpeg under Debian 9 and got some
> > errormessages (in German): 
> 
> How about errormessages not in German? LANG=en_US.utf8 apt install
> ffmpeg?
> 
> >  ffmpeg : Hängt ab von: libavcodec58 (>= 10:4.1.6) soll aber nicht
> > installiert werden
> 
> https://packages.debian.org/stretch/ffmpeg says ffmpeg in Stretch
> depends on libavcodec57, not 58. Could it be you've configured Debian
> Multimedia repository for Debian 10 for your Debian 9 system?
> 

That's what I thought. Years ago the OP might have added something to the
sources.list like

deb http://ftp.uni-kl.de/debian-multimedia/ stable main

Unfortunately now stable points to buster (debian 10).
Changing this to something like

deb http://www.deb-multimedia.org stretch main

might help.

Regards
Michael


.-.. .. ...- .   .-.. --- -. --.   .- -. -..   .--. .-. --- ... .--. . .-.

Actual war is a very messy business.  Very, very messy business.
-- Kirk, "A Taste of Armageddon", stardate 3193.0



Re: Need help with ffmpeg installation - strange behaviour of my system - am I correct here?

2021-07-09 Thread Stefan Monnier
> 2. repair my situation - I cannot go to Debian 10 right now (I posted the
>   reason somewhere here - mouse ist awfully slow and jumpy))

You might want to try `aptitude` instead of `apt`: it will try to offer
ways to fix the problem (by removing package).
The solutions it offers can sometimes take a long time to come up
(because it performs a search through a large search tree), and it may
have effects you won't like, so carefully review the solutions proposed.


Stefan



Re: Need help with ffmpeg installation - strange behaviour of my system - am I correct here?

2021-07-09 Thread Kampmann

Heureka ...

I did an aptitude ... and got the following (and the quit!!! - but do I 
know whether my system is ok???):


root@primergy:~/software-env# aptitude install ffmpeg
Warning: Invalid locale (please review locale settings, this might lead 
to problems later):

  locale::facet::_S_create_c_locale name not valid
The following NEW packages will be installed:
  ffmpeg libaom0{a} libass9{ab} libavcodec58{ab} libavdevice58{ab} 
libavfilter7{ab} libavformat58{ab}
  libavresample4{a} libavutil56{ab} libbluray2{ab} libcdio-cdda2{a} 
libcdio-paranoia2{a} libcdio19{ab}
  libfdk-aac2{a} libkvazaar4{a} libmfx1{ab} libopenh264-5{ab} 
libpostproc55{a} libswresample3{a}
  libswscale5{a} libvidstab1.1{a} libvpx6{ab} libx264-157{ab} 
libx265-176{a} libzimg2{ab}

The following packages will be upgraded:
  librubberband2{b}
1 packages upgraded, 25 newly installed, 0 to remove and 29 not upgraded.
Need to get 15.4 MB of archives. After unpacking 56.1 MB will be used.
The following packages have unmet dependencies:
 libavformat58 : Depends: libc6 (>= 2.28) but 2.24-11+deb9u4 is installed
 Depends: libgcrypt20 (>= 1.8.0) but 1.7.6-2+deb9u4 is 
installed
 Depends: libopenmpt0 (>= 0.3.0) but 
0.2.7386~beta20.3-3+deb9u4 is installed

 libavfilter7 : Depends: libc6 (>= 2.27) but 2.24-11+deb9u4 is installed
    Depends: libfontconfig1 (>= 2.12.6) but 2.11.0-6.7+b1 
is installed
    Depends: libtesseract4 which is a virtual package and 
is not provided by any available package


    Depends: libva2 (>= 1.7.3) which is a virtual package 
and is not provided by any available package


 libopenh264-5 : Depends: libc6 (>= 2.27) but 2.24-11+deb9u4 is installed
 libcdio19 : Depends: libc6 (>= 2.27) but 2.24-11+deb9u4 is installed
 librubberband2 : Depends: libc6 (>= 2.27) but 2.24-11+deb9u4 is installed
 libvpx6 : Depends: libc6 (>= 2.27) but 2.24-11+deb9u4 is installed
 libx264-157 : Depends: libc6 (>= 2.27) but 2.24-11+deb9u4 is installed
 libass9 : Depends: libfontconfig1 (>= 2.12) but 2.11.0-6.7+b1 is installed
 libzimg2 : Depends: libc6 (>= 2.27) but 2.24-11+deb9u4 is installed
 libavcodec58 : Depends: libc6 (>= 2.27) but 2.24-11+deb9u4 is installed
    Depends: libcodec2-0.8.1 which is a virtual package and 
is not provided by any available package


    Depends: libgsm1 (>= 1.0.18) but 1.0.13-4+b2 is installed
    Depends: libva2 (>= 2.2.0) which is a virtual package 
and is not provided by any available package


    Depends: libwebpmux3 (>= 0.6.1-2) which is a virtual 
package and is not provided by any available package


 libavutil56 : Depends: libc6 (>= 2.28) but 2.24-11+deb9u4 is installed
   Depends: libva-drm2 (>= 1.1.0) which is a virtual 
package and is not provided by any available package


   Depends: libva-x11-2 (>= 1.0.3) which is a virtual 
package and is not provided by any available package


   Depends: libva2 (>= 1.8.0) which is a virtual package 
and is not provided by any available package


 libavdevice58 : Depends: libc6 (>= 2.28) but 2.24-11+deb9u4 is installed
 Depends: libsdl2-2.0-0 (>= 2.0.9) but it is not going 
to be installed
 libmfx1 : Depends: libva-drm2 (>= 1.1.0) which is a virtual package 
and is not provided by any available package


   Depends: libva-x11-2 (>= 1.0.3) which is a virtual package 
and is not provided by any available package


   Depends: libva2 (>= 1.0.3) which is a virtual package and is 
not provided by any available package


 libbluray2 : Depends: libfontconfig1 (>= 2.12.6) but 2.11.0-6.7+b1 is 
installed

The following actions will resolve these dependencies:

  Keep the following packages at their current version:
1)  ffmpeg [Not Installed]
2)  libass9 [Not Installed]
3)  libavcodec58 [Not Installed]
4)  libavdevice58 [Not Installed]
5)  libavfilter7 [Not Installed]
6)  libavformat58 [Not Installed]
7)  libavresample4 [Not Installed]
8)  libavutil56 [Not Installed]
9)  libbluray2 [Not Installed]
10) libcdio-cdda2 [Not Installed]
11) libcdio-paranoia2 [Not Installed]
12) libcdio19 [Not Installed]
13) libmfx1 [Not Installed]
14) libopenh264-5 [Not Installed]
15) libpostproc55 [Not Installed]
16) librubberband2 [1.8.1-7 (now, oldstable)]
17) libswresample3 [Not Installed]
18) libswscale5 [Not Installed]
19) libvpx6 [Not Installed]
20) libx264-157 [Not Installed]
21) libzimg2 [Not Installed]




--
=
Joerg Kampmann, Dr. Dipl.-Phys - IBK-Consult for Climate Physics - non-profit -
D-31228 Peine +49-177-276-3140
www.ibk-consult.de - www.kampmannpeine.org
www.xing.com/hp/Joerg_Kampmann
www.xing.com/net/mathe
www.researchgate.net/profile/Joerg_Kampmann - 
https://independent.academia.edu/J%C3%B6rgKampmann

Re: Need help with ffmpeg installation - strange behaviour of my system - am I correct here?

2021-07-09 Thread Greg Wooledge
On Fri, Jul 09, 2021 at 11:13:47PM +0200, Joerg Kampmann wrote:
> Die folgenden Pakete haben unerfüllte Abhängigkeiten:
>  libavcodec-dev : Hängt ab von: libavcodec58 (= 10:4.1.6-dmo1+deb10u1) soll

There we have it.

You have added a debian-multimedia (dmo) source intended to be used
with Debian 10 (deb10).

This is incompatible with Debian 9.

You'll want to remove the inappropriate sources, as I said in my original
reply.  Then purge any and all packages that contain "deb10" in their
version strings.

That may not cure *everything* but it's a start.



Re: Need help with ffmpeg installation - strange behaviour of my system - am I correct here?

2021-07-09 Thread Joerg Kampmann



Am 09.07.21 um 22:47 schrieb Stefan Monnier:

2. repair my situation - I cannot go to Debian 10 right now (I posted the
   reason somewhere here - mouse ist awfully slow and jumpy))

You might want to try `aptitude` instead of `apt`: it will try to offer
ways to fix the problem (by removing package).
The solutions it offers can sometimes take a long time to come up
(because it performs a search through a large search tree), and it may
have effects you won't like, so carefully review the solutions proposed.


 Stefan


I think I now know what went wrong - AND I do not know how to revert!!!:


some days ago I did unadvertantly:

root@primergy:/home/joerg# apt-get install \
>  build-essential \
>  cmake \
>  git \
>  libmbedtls-dev \
>  libasound2-dev \
>  libavcodec-dev \ #!!!
>  libavdevice-dev \
>  libavfilter-dev \
>  libavformat-dev \
>  libavutil-dev \
>  libcurl4-openssl-dev \
>  libfdk-aac-dev \
>  libfontconfig-dev \
>  libfreetype6-dev \
>  libglvnd-dev \
>  libjack-jackd2-dev \
>  libjansson-dev \
>  libluajit-5.1-dev \
>  libpulse-dev \
>  libqt5x11extras5-dev \
>  libspeexdsp-dev \
>  libswresample-dev \
>  libswscale-dev \
>  libudev-dev \
>  libv4l-dev \
>  libvlc-dev \
>  libwayland-dev \
>  libx11-dev \
>  libx264-dev \
>  libxcb-shm0-dev \
>  libxcb-xinerama0-dev \
>  libxcomposite-dev \
>  libxinerama-dev \
>  pkg-config \
>  python3-dev \
>  qtbase5-dev \
>  qtbase5-private-dev \
>  libqt5svg5-dev \
>  swig \
>  libxcb-randr0-dev \
>  libxcb-xfixes0-dev \
>  libx11-xcb-dev \
>  libxcb1-dev \
>  libxss-dev \
>  qtwayland5 \
>  libgles2-mesa \
>  libgles2-mesa-dev
Paketlisten werden gelesen... Fertig
Abhängigkeitsbaum wird aufgebaut.
Statusinformationen werden eingelesen Fertig
Hinweis: »libfontconfig1-dev« wird an Stelle von »libfontconfig-dev« 
gewählt.

libgles2-mesa ist schon die neueste Version (13.0.6-1+b2).
libgles2-mesa wurde als manuell installiert festgelegt.
pkg-config ist schon die neueste Version (0.29-4+b1).
pkg-config wurde als manuell installiert festgelegt.
Einige Pakete konnten nicht installiert werden. Das kann bedeuten, dass
Sie eine unmögliche Situation angefordert haben oder, wenn Sie die
Unstable-Distribution verwenden, dass einige erforderliche Pakete noch
nicht erstellt wurden oder Incoming noch nicht verlassen haben.
Die folgenden Informationen helfen Ihnen vielleicht, die Situation zu lösen:

Die folgenden Pakete haben unerfüllte Abhängigkeiten:
 libavcodec-dev : Hängt ab von: libavcodec58 (= 10:4.1.6-dmo1+deb10u1) 
soll aber nicht installiert werden
 libavdevice-dev : Hängt ab von: libavdevice58 (= 
10:4.1.6-dmo1+deb10u1) soll aber nicht installiert werden
   Hängt ab von: libpostproc-dev (>= 
10:4.1.6-dmo1+deb10u1) soll aber nicht installiert werden
   Hängt ab von: libavresample-dev (>= 
10:4.1.6-dmo1+deb10u1) soll aber nicht installiert werden
 libavfilter-dev : Hängt ab von: libavfilter7 (= 10:4.1.6-dmo1+deb10u1) 
soll aber nicht installiert werden
   Hängt ab von: libpostproc-dev (>= 
10:4.1.6-dmo1+deb10u1) soll aber nicht installiert werden
   Hängt ab von: libavresample-dev (>= 
10:4.1.6-dmo1+deb10u1) soll aber nicht installiert werden
 libavformat-dev : Hängt ab von: libavformat58 (= 
10:4.1.6-dmo1+deb10u1) soll aber nicht installiert werden
 libavutil-dev : Hängt ab von: libavutil56 (= 10:4.1.6-dmo1+deb10u1) 
soll aber nicht installiert werden
 libglvnd-dev : Hängt ab von: libegl-dev (>= 1.3.0-1) soll aber nicht 
installiert werden

    Hängt ab von: libgl-dev (>= 1.3.0-1)
    Hängt ab von: libgles-dev (>= 1.3.0-1) soll aber nicht 
installiert werden
    Hängt ab von: libglx-dev (>= 1.3.0-1) soll aber nicht 
installiert werden
 libswresample-dev : Hängt ab von: libswresample3 (= 
10:4.1.6-dmo1+deb10u1) soll aber nicht installiert werden
 libswscale-dev : Hängt ab von: libswscale5 (= 10:4.1.6-dmo1+deb10u1) 
soll aber nicht installiert werden
 libvlc-dev : Hängt ab von: libvlc5 (= 1:3.0.12-dmo0+deb10u2) soll aber 
nicht installiert werden
 libx264-dev : Hängt ab von: libx264-157 (= 
4:0.157.2980+git34c06d1-dmo1+deb10u2) soll aber nicht installiert werden
E: Probleme können nicht korrigiert werden, Sie haben zurückgehaltene 
defekte Pakete.





Re: Need help with ffmpeg installation - strange behaviour of my system - am I correct here?

2021-07-09 Thread Joerg Kampmann



Am 09.07.21 um 21:44 schrieb Greg Wooledge:

On Fri, Jul 09, 2021 at 09:36:00PM +0200, Kampmann wrote:

The following packages have unmet dependencies:
  libavcodec58 : Depends: libavutil56 (>= 10:4.1.6) but it is not going to be
installed
     Depends: libc6 (>= 2.27) but 2.24-11+deb9u4 is to be
installed

This is a really powerful indicator that you've mixed sources which
are either from, or for, different Debian releases.  Or mixed Debian
sources and non-Debian sources.

The "libc6 (>= 2.27)" dependency is identical to the libc6 dependency
on the *buster* (Debian 10) version of libavcodec58.  (Which is a
package that does not even exist in Debian 9.)  So, it looks like you've
either got a buster (Debian 10) source, or you've got some third-party
source that was meant to be used with Debian 10.

You can't use Debian 10 sources on Debian 9.


this really seems to be the clue, however: how do I get

1. information on the installed packages?

2. repair my situation - I cannot go to Debian 10 right now (I posted 
the reason somewhere here - mouse ist awfully slow and jumpy))





Re: Need help with ffmpeg installation - strange behaviour of my system - am I correct here?

2021-07-09 Thread Brian
On Fri 09 Jul 2021 at 15:40:21 -0400, Greg Wooledge wrote:

> On Fri, Jul 09, 2021 at 08:37:03PM +0100, Brian wrote:
> > On Fri 09 Jul 2021 at 15:05:20 -0400, Greg Wooledge wrote:
> > 
> > > On Fri, Jul 09, 2021 at 08:41:17PM +0200, Joerg Kampmann wrote:
> > > > Hello - I tried to install ffmpeg (a normal Debian package) and got some
> > > > strange messages. the ffmpeg-group adviced me to go to a Debian group. I
> > > > hope I am correct here in this group.
> > > > 
> > > > I am running Debian 9 on a Fujitsu TX 100 S1 computer ...
> > > 
> > > This is not the current stable release.  You may wish to *consider*
> > > upgrading, as running older releases tends to be incompatible with
> > > the desire to install recent versions of web browsers, video players,
> > > and other large and complicated packages.
> > 
> > The OP says:
> > 
> >   Hello - I tried to install ffmpeg...
> > 
> > This is on Debian 9. Either it installs or it doesn't. It did for me.
> > 
> > Not being the current release seems neither here nor there.
> 
> We shall see.
> 
> I have a theory that they tried to add buster sources (or
> buster-backports, or some third-party repository meant for buster)
> because they wanted newer stuff than was available in stretch or
> stretch-backports.  Frankendebian ensued.

You can have whatever theory you devised. My statement is rock-solid.

-- 
Brian.
> 



Re: Need help with ffmpeg installation - strange behaviour of my system - am I correct here?

2021-07-09 Thread Greg Wooledge
On Fri, Jul 09, 2021 at 09:36:00PM +0200, Kampmann wrote:
> The following packages have unmet dependencies:
>  libavcodec58 : Depends: libavutil56 (>= 10:4.1.6) but it is not going to be
> installed
>     Depends: libc6 (>= 2.27) but 2.24-11+deb9u4 is to be
> installed

This is a really powerful indicator that you've mixed sources which
are either from, or for, different Debian releases.  Or mixed Debian
sources and non-Debian sources.

The "libc6 (>= 2.27)" dependency is identical to the libc6 dependency
on the *buster* (Debian 10) version of libavcodec58.  (Which is a
package that does not even exist in Debian 9.)  So, it looks like you've
either got a buster (Debian 10) source, or you've got some third-party
source that was meant to be used with Debian 10.

You can't use Debian 10 sources on Debian 9.



Re: Need help with ffmpeg installation - strange behaviour of my system - am I correct here?

2021-07-09 Thread Kampmann



Am 09.07.21 um 21:40 schrieb Greg Wooledge:

On Fri, Jul 09, 2021 at 08:37:03PM +0100, Brian wrote:

On Fri 09 Jul 2021 at 15:05:20 -0400, Greg Wooledge wrote:


On Fri, Jul 09, 2021 at 08:41:17PM +0200, Joerg Kampmann wrote:

Hello - I tried to install ffmpeg (a normal Debian package) and got some
strange messages. the ffmpeg-group adviced me to go to a Debian group. I
hope I am correct here in this group.

I am running Debian 9 on a Fujitsu TX 100 S1 computer ...

This is not the current stable release.  You may wish to *consider*
upgrading, as running older releases tends to be incompatible with
the desire to install recent versions of web browsers, video players,
and other large and complicated packages.

The OP says:

   Hello - I tried to install ffmpeg...

This is on Debian 9. Either it installs or it doesn't. It did for me.

Not being the current release seems neither here nor there.

We shall see.

I have a theory that they tried to add buster sources (or
buster-backports, or some third-party repository meant for buster)
because they wanted newer stuff than was available in stretch or
stretch-backports.  Frankendebian ensued.

Frankendebian???



Re: Need help with ffmpeg installation - strange behaviour of my system - am I correct here?

2021-07-09 Thread Kampmann



Am 09.07.21 um 21:37 schrieb Brian:

On Fri 09 Jul 2021 at 15:05:20 -0400, Greg Wooledge wrote:


On Fri, Jul 09, 2021 at 08:41:17PM +0200, Joerg Kampmann wrote:

Hello - I tried to install ffmpeg (a normal Debian package) and got some
strange messages. the ffmpeg-group adviced me to go to a Debian group. I
hope I am correct here in this group.

I am running Debian 9 on a Fujitsu TX 100 S1 computer ...

This is not the current stable release.  You may wish to *consider*
upgrading, as running older releases tends to be incompatible with
the desire to install recent versions of web browsers, video players,
and other large and complicated packages.
yes I know, however I am running a rather old machine (TX 100 S1 from 
Fujitsu) and already tried to install Debian 10 which made my 
mouse-pointer awfully slow and "jumpy" ... therefore I stay with Debian 
9 - however I try moving with the Debian 10 - trial-disk - but at a 
later time in August ...

The OP says:

   Hello - I tried to install ffmpeg...

This is on Debian 9. Either it installs or it doesn't. It did for me.

Not being the current release seems neither here nor there.


--
=
Joerg Kampmann, Dr. Dipl.-Phys - IBK-Consult for Climate Physics - non-profit -
D-31228 Peine +49-177-276-3140
www.ibk-consult.de - www.kampmannpeine.org
www.xing.com/hp/Joerg_Kampmann
www.xing.com/net/mathe
www.researchgate.net/profile/Joerg_Kampmann - 
https://independent.academia.edu/J%C3%B6rgKampmann
===
This e-mail may contain confidential and/or legally protected information.
If you are not the intended recipient (or have received this e-mail in
error) please notify the sender immediately and delete this e-mail. Any
unauthorized copying, disclosure use or distribution of the material in
this e-mail is strictly forbidden.
Diese E-Mail enthält vertrauliche und/oder rechtlich geschuetzte Informationen.
Wenn Sie nicht der richtige Adressat sind oder diese E-Mail irrtuemlich
erhalten haben, informieren Sie bitte sofort den Absender und loeschen
Sie diese Mail
===



Re: Need help with ffmpeg installation - strange behaviour of my system - am I correct here?

2021-07-09 Thread Greg Wooledge
On Fri, Jul 09, 2021 at 08:37:03PM +0100, Brian wrote:
> On Fri 09 Jul 2021 at 15:05:20 -0400, Greg Wooledge wrote:
> 
> > On Fri, Jul 09, 2021 at 08:41:17PM +0200, Joerg Kampmann wrote:
> > > Hello - I tried to install ffmpeg (a normal Debian package) and got some
> > > strange messages. the ffmpeg-group adviced me to go to a Debian group. I
> > > hope I am correct here in this group.
> > > 
> > > I am running Debian 9 on a Fujitsu TX 100 S1 computer ...
> > 
> > This is not the current stable release.  You may wish to *consider*
> > upgrading, as running older releases tends to be incompatible with
> > the desire to install recent versions of web browsers, video players,
> > and other large and complicated packages.
> 
> The OP says:
> 
>   Hello - I tried to install ffmpeg...
> 
> This is on Debian 9. Either it installs or it doesn't. It did for me.
> 
> Not being the current release seems neither here nor there.

We shall see.

I have a theory that they tried to add buster sources (or
buster-backports, or some third-party repository meant for buster)
because they wanted newer stuff than was available in stretch or
stretch-backports.  Frankendebian ensued.



Re: Need help with ffmpeg installation - strange behaviour of my system - am I correct here?

2021-07-09 Thread Brian
On Fri 09 Jul 2021 at 15:05:20 -0400, Greg Wooledge wrote:

> On Fri, Jul 09, 2021 at 08:41:17PM +0200, Joerg Kampmann wrote:
> > Hello - I tried to install ffmpeg (a normal Debian package) and got some
> > strange messages. the ffmpeg-group adviced me to go to a Debian group. I
> > hope I am correct here in this group.
> > 
> > I am running Debian 9 on a Fujitsu TX 100 S1 computer ...
> 
> This is not the current stable release.  You may wish to *consider*
> upgrading, as running older releases tends to be incompatible with
> the desire to install recent versions of web browsers, video players,
> and other large and complicated packages.

The OP says:

  Hello - I tried to install ffmpeg...

This is on Debian 9. Either it installs or it doesn't. It did for me.

Not being the current release seems neither here nor there.

-- 
Brian.
 



Re: Need help with ffmpeg installation - strange behaviour of my system - am I correct here?

2021-07-09 Thread Kampmann

Ok, thanks - here we go :) :

(base) joerg@primergy:~$ su
Passwort:
root@primergy:/home/joerg# export LANG=en_US.utf8
root@primergy:/home/joerg# apt install ffmpeg
Reading package lists... Done
Building dependency tree
Reading state information... Done
Some packages could not be installed. This may mean that you have
requested an impossible situation or if you are using the unstable
distribution that some required packages have not yet been created
or been moved out of Incoming.
The following information may help to resolve the situation:

The following packages have unmet dependencies:
 ffmpeg : Depends: libavcodec58 (>= 10:4.1.6) but it is not going to be 
installed
  Depends: libavdevice58 (>= 10:4.1.6) but it is not going to 
be installed
  Depends: libavfilter7 (>= 10:4.1.6) but it is not going to be 
installed
  Depends: libavformat58 (>= 10:4.1.6) but it is not going to 
be installed
  Depends: libavresample4 (>= 10:4.1.6) but it is not going to 
be installed
  Depends: libavutil56 (>= 10:4.1.6) but it is not going to be 
installed
  Depends: libpostproc55 (>= 10:4.1.6) but it is not going to 
be installed
  Depends: libswresample3 (>= 10:4.1.6) but it is not going to 
be installed
  Depends: libswscale5 (>= 10:4.1.6) but it is not going to be 
installed

E: Unable to correct problems, you have held broken packages.
root@primergy:/home/joerg# apt install libavcodec58
Reading package lists... Done
Building dependency tree
Reading state information... Done
Some packages could not be installed. This may mean that you have
requested an impossible situation or if you are using the unstable
distribution that some required packages have not yet been created
or been moved out of Incoming.
The following information may help to resolve the situation:

The following packages have unmet dependencies:
 libavcodec58 : Depends: libavutil56 (>= 10:4.1.6) but it is not going 
to be installed
    Depends: libc6 (>= 2.27) but 2.24-11+deb9u4 is to be 
installed

    Depends: libcodec2-0.8.1 but it is not installable
    Depends: libgsm1 (>= 1.0.18) but 1.0.13-4+b2 is to be 
installed   --- this is completely non-understandable

    Depends: libmfx1 but it is not going to be installed
    Depends: libopenh264-5 (>= 2.0.0) but it is not going 
to be installed
    Depends: libswresample3 (>= 10:4.1.6) but it is not 
going to be installed

    Depends: libva2 (>= 2.2.0) but it is not installable
   --- this is completely non-understandable    Depends: 
libvpx6 (>= 1.8.1) but it is not going to be installed

    Depends: libwebpmux3 (>= 0.6.1-2) but it is not installable
    Depends: libx264-157 (>= 4:0.157.2980+git34c06d1) but 
it is not going to be installed

E: Unable to correct problems, you have held broken packages.
root@primergy:/home/joerg#

Am 09.07.21 um 21:14 schrieb Anssi Saari:

Joerg Kampmann  writes:


Hello group I wanted to install ffmpeg under Debian 9 and got some 
errormessages (in German):

How about errormessages not in German? LANG=en_US.utf8 apt install ffmpeg?


  ffmpeg : Hängt ab von: libavcodec58 (>= 10:4.1.6) soll aber nicht
installiert werden

https://packages.debian.org/stretch/ffmpeg says ffmpeg in Stretch
depends on libavcodec57, not 58. Could it be you've configured Debian
Multimedia repository for Debian 10 for your Debian 9 system?


--
=
Joerg Kampmann, Dr. Dipl.-Phys - IBK-Consult for Climate Physics - non-profit -
D-31228 Peine +49-177-276-3140
www.ibk-consult.de - www.kampmannpeine.org
www.xing.com/hp/Joerg_Kampmann
www.xing.com/net/mathe
www.researchgate.net/profile/Joerg_Kampmann - 
https://independent.academia.edu/J%C3%B6rgKampmann
===
This e-mail may contain confidential and/or legally protected information.
If you are not the intended recipient (or have received this e-mail in
error) please notify the sender immediately and delete this e-mail. Any
unauthorized copying, disclosure use or distribution of the material in
this e-mail is strictly forbidden.
Diese E-Mail enthält vertrauliche und/oder rechtlich geschuetzte Informationen.
Wenn Sie nicht der richtige Adressat sind oder diese E-Mail irrtuemlich
erhalten haben, informieren Sie bitte sofort den Absender und loeschen
Sie diese Mail
===



Re: Need help with ffmpeg installation - strange behaviour of my system - am I correct here?

2021-07-09 Thread Anssi Saari
Joerg Kampmann  writes:

> Hello group I wanted to install ffmpeg under Debian 9 and got some 
> errormessages (in German): 

How about errormessages not in German? LANG=en_US.utf8 apt install ffmpeg?

>  ffmpeg : Hängt ab von: libavcodec58 (>= 10:4.1.6) soll aber nicht
> installiert werden

https://packages.debian.org/stretch/ffmpeg says ffmpeg in Stretch
depends on libavcodec57, not 58. Could it be you've configured Debian
Multimedia repository for Debian 10 for your Debian 9 system?



Re: Need help with ffmpeg installation - strange behaviour of my system - am I correct here?

2021-07-09 Thread Kampmann


Am 09.07.21 um 21:04 schrieb Brian:

On Fri 09 Jul 2021 at 20:41:17 +0200, Joerg Kampmann wrote:


Hello - I tried to install ffmpeg (a normal Debian package) and got some
strange messages. the ffmpeg-group adviced me to go to a Debian group. I
hope I am correct here in this group.

You have kept these "strange" meaages secret. How could anyone work
out what is going on?
I am sorry - however I posted a rather long "strange" stuff here. I 
evidently disappeared :) - can you explain that?

I am running Debian 9 on a Fujitsu TX 100 S1 computer ...

ffmpeg is known to be installable on Debian 9.


--
=
Joerg Kampmann, Dr. Dipl.-Phys - IBK-Consult for Climate Physics - non-profit -
D-31228 Peine +49-177-276-3140
www.ibk-consult.de - www.kampmannpeine.org
www.xing.com/hp/Joerg_Kampmann
www.xing.com/net/mathe
www.researchgate.net/profile/Joerg_Kampmann - 
https://independent.academia.edu/J%C3%B6rgKampmann
===
This e-mail may contain confidential and/or legally protected information.
If you are not the intended recipient (or have received this e-mail in
error) please notify the sender immediately and delete this e-mail. Any
unauthorized copying, disclosure use or distribution of the material in
this e-mail is strictly forbidden.
Diese E-Mail enthält vertrauliche und/oder rechtlich geschuetzte Informationen.
Wenn Sie nicht der richtige Adressat sind oder diese E-Mail irrtuemlich
erhalten haben, informieren Sie bitte sofort den Absender und loeschen
Sie diese Mail
===



Re: Need help with ffmpeg installation - strange behaviour of my system - am I correct here?

2021-07-09 Thread Greg Wooledge
On Fri, Jul 09, 2021 at 08:41:17PM +0200, Joerg Kampmann wrote:
> Hello - I tried to install ffmpeg (a normal Debian package) and got some
> strange messages. the ffmpeg-group adviced me to go to a Debian group. I
> hope I am correct here in this group.
> 
> I am running Debian 9 on a Fujitsu TX 100 S1 computer ...

This is not the current stable release.  You may wish to *consider*
upgrading, as running older releases tends to be incompatible with
the desire to install recent versions of web browsers, video players,
and other large and complicated packages.

> /Hello group I wanted to install ffmpeg under Debian 9 and got some
> errormessages (in German):

For the purpose of posting to debian-user, you may wish to switch your
locale temporarily to English.  Since you're using a shell with root
privileges, the simplest way would probably be to run the command

export LANG=C

before your apt commands.  The LANG setting will go away when you exit
from the root shell.

> root@primergy:~# apt install ffmpeg
> Paketlisten werden gelesen... Fertig
> Abhängigkeitsbaum wird aufgebaut.
> Statusinformationen werden eingelesen Fertig
> Einige Pakete konnten nicht installiert werden. Das kann bedeuten, dass
> Sie eine unmögliche Situation angefordert haben oder, wenn Sie die
> Unstable-Distribution verwenden, dass einige erforderliche Pakete noch
> nicht erstellt wurden oder Incoming noch nicht verlassen haben.
> Die folgenden Informationen helfen Ihnen vielleicht, die Situation zu lösen:
> 
> Die folgenden Pakete haben unerfüllte Abhängigkeiten:
>  ffmpeg : Hängt ab von: libavcodec58 (>= 10:4.1.6) soll aber nicht
> installiert werden
>   Hängt ab von: libavdevice58 (>= 10:4.1.6) soll aber nicht
> installiert werden
>   Hängt ab von: libavfilter7 (>= 10:4.1.6) soll aber nicht
> installiert werden
>   Hängt ab von: libavformat58 (>= 10:4.1.6) soll aber nicht
> installiert werden
>   Hängt ab von: libavresample4 (>= 10:4.1.6) soll aber nicht
> installiert werden
>   Hängt ab von: libavutil56 (>= 10:4.1.6) soll aber nicht
> installiert werden
>   Hängt ab von: libpostproc55 (>= 10:4.1.6) soll aber nicht
> installiert werden
>   Hängt ab von: libswresample3 (>= 10:4.1.6) soll aber nicht
> installiert werden
>   Hängt ab von: libswscale5 (>= 10:4.1.6) soll aber nicht
> installiert werden
> E: Probleme können nicht korrigiert werden, Sie haben zurückgehaltene
> defekte Pakete.

These dependencies are *not* correct for a Debian 9 installation.

According to  the dependencies
should be   libavcodec57 (>= 7:3.2.14)   and so on.

This means you've probably got repositories other than the stretch
(Debian 9) sources, and these are causing a conflict.

If this were my system, I would first remove all of the non-Debian-9
sources and run "apt-get update".  If ffmpeg still can't be installed
after that, then it's possible you have already installed some of the
dependencies from non-Debian-9 sources, and you may need to remove
those.  This could cascade into a full disaster if you're unlucky.  This
is why we normally recommend against mixing sources from multiple Debian
versions, or using sketchy outside sources.



Re: Need help with ffmpeg installation - strange behaviour of my system - am I correct here?

2021-07-09 Thread Brian
On Fri 09 Jul 2021 at 20:41:17 +0200, Joerg Kampmann wrote:

> Hello - I tried to install ffmpeg (a normal Debian package) and got some
> strange messages. the ffmpeg-group adviced me to go to a Debian group. I
> hope I am correct here in this group.

You have kept these "strange" meaages secret. How could anyone work
out what is going on?

> I am running Debian 9 on a Fujitsu TX 100 S1 computer ...

ffmpeg is known to be installable on Debian 9.

-- 
Brian.



Re: need help on playing m3u8 file with mplayer

2021-05-13 Thread Dan Ritter
Long Wind wrote: 
> m3u8 file include a line below
> #EXT-X-KEY:METHOD=AES-128,URI="https://ts-qsg.qinbuyan666.com/20210511/Ql6iBJVB/1100kb/hls/key.key;
> 
> i want to change it to local file:
> #EXT-X-KEY:METHOD=AES-128,URI="file:///home/zhou/key.key"
> it doesn't work, mplayer complains: 
> 
> [hls,applehttp @ 0xb7791e20]Filename extension of 'file:///home/zhou/key.key' 
> is not a common multimedia extension, blocked for security reasons.
> If you wish to override this adjust allowed_extensions, you can set it to 
> 'ALL' to allow all
> Unable to open key file file:///home/zhou/key.key
> 
> how to solve it?? Thanks!

It says it is an AES-128 encryption key, not a piece of
media.

-dsr-



Re: Need help finding the right package under which to report a bug

2021-04-18 Thread Sven Joachim
On 2021-04-18 12:31 +0800, Robbi Nespu wrote:

> A quick or temporary solution are to git clone
> https://git.kernel.org/pub/scm/linux/kernel/git/firmware/linux-firmware.git
> and copy thus selection (warning line) of missing modules to
> /lib/firmware/amdgpu/
>
> (Don't try my solution if you are novice).

I would rather live with the warnings unless I actually had a GPU which
needs this firmware.  Don't know if you can actually buy these yet.

> Look like the bug are the 5.10.0-6-amd64 kernel.

No, it is in the firmware-amd-graphics package.  A bug report against
this package could help to remind the maintainers that they should
include the arcturus firmware in future uploads.

Cheers,
   Sven



Re: Need help finding the right package under which to report a bug

2021-04-17 Thread Robbi Nespu

On 4/18/21 12:31 PM, Robbi Nespu wrote:



I hope my guess is right. It on recently added on kernel up stream, I 
can see the log here


https://git.kernel.org/pub/scm/linux/kernel/git/firmware/linux-firmware.git/log/amdgpu


--
Email : Robbi Nespu 
PGP fingerprint : D311 B5FF EEE6 0BE8 9C91 FA9E 0C81 FA30 3B3A 80BA
PGP key : https://keybase.io/robbinespu/pgp_keys.asc



Re: Need help finding the right package under which to report a bug

2021-04-17 Thread Robbi Nespu

Hello

On 4/18/21 10:08 AM, Joshua Brickel wrote:
I am using bullseye and when I perform an update (apt-get dist-upgrade)  
to the system I get get the following messages.  I'm not sure if this is 
an intramfs-tools issue or a firmware-amd-graphics issue.  I have the 
latest version firmware/lib/firmware/-amd-graphics installed.


Processing triggers for initramfs-tools (0.140) ...
update-initramfs: Generating /boot/initrd.img-5.10.0-6-amd64
W: Possible missing firmware /lib/firmware/amdgpu/arcturus_gpu_info.bin 
for module amdgpu
W: Possible missing firmware /lib/firmware/amdgpu/navy_flounder_ta.bin 
for module amdgpu
W: Possible missing firmware /lib/firmware/amdgpu/navy_flounder_sos.bin 
for module amdgpu
W: Possible missing firmware /lib/fJoshua Brickelirmware/amdgpu/arcturus_ta.bin for 
module amdgpu
W: Possible missing firmware /lib/firmware/amdgpu/arcturus_asd.bin for 
module amdgpuJoshua Brickel
W: Possible missing firmware /lib/firmware/amdgpu/arcturus_sos.bin for 
module amdgpu
W: Possible missing firmware /lib/firmware/amdgpu/arcturus_rlc.bin for 
module amdgpu
W: Possible missing firmware /lib/firmware/amdgpu/arcturus_mec2.bin for 
module amdgpu
W: Possible missing firmware /lib/firmware/amdgpu/arcturus_mec.bin for 
module amdgpu
W: Possible missing firmware /lib/firmware/amdgpu/navy_flounder_rlc.bin 
for module amdgpuJoshua Brickel
W: Possible missing firmware /lib/firmware/amdgpu/navy_flounder_mec2.bin 
for module amdgpu
W: Possible missing firmware /lib/firmware/amdgpu/navy_flounder_mec.bin 
for module amdgpu
W: Possible missing firmware /lib/firmware/amdgpu/navy_flounder_me.bin 
for module amdgpu
W: Possible missing firmware /lib/firmware/amdgpu/navy_flounder_pfp.bin 
for module amdgpu
W: Possible missing firmware /lib/firmware/amdgpu/navy_flounder_ce.bin 
for module amdgpu
W: Possible missing firmware /lib/firmware/amdgpu/arcturus_sdma.bin for 
module amdgpu
W: Possible missing firmware /lib/firmwaJoshua Brickelre/amdgpu/navy_flounder_sdma.bin 
for module amdgpu
W: Possible missing firmware /lib/firmware/amdgpu/sienna_cichlid_mes.bin 
for module amdgpu
W: Possible missing firmware /lib/firmware/amdgpu/navi10_mes.bin for 
module amdgpu
W: Possible missing firmware /lib/firmware/amdgpu/navy_flounder_vcn.bin 
for module amdgpuJoshua Brickel
W: Possible missing firmware /lib/firmware/amdgpu/arcturus_vcn.bin for 
module amdgpu
W: Possible missing firmware /lib/firmware/amdgpu/navy_floundtheer_smc.bin 
for module amdgpu
W: Possible missing firmware /lib/firmware/amdgpu/arcturus_smc.bin for 
module amdgpu
W: Possible missing firmware 
/lib/firmware/amdgpu/navy_flounder_dmcub.bin for module amdgpu




I hope my guess is right. It on recently added on kernel up stream, I 
can see the log here


A quick or temporary solution are to git clone 
https://git.kernel.org/pub/scm/linux/kernel/git/firmware/linux-firmware.git 
and copy thus selection (warning line) of missing modules to 
/lib/firmware/amdgpu/


(Don't try my solution if you are novice).

Look like the bug are the 5.10.0-6-amd64 kernel.

--
Email : Robbi Nespu 
PGP fingerprint : D311 B5FF EEE6 0BE8 9C91 FA9E 0C81 FA30 3B3A 80BA
PGP key : https://keybase.io/robbinespu/pgp_keys.asc



Re: Need Help

2021-02-10 Thread David Christensen

On 2021-02-10 13:48, David Christensen wrote:

On 09.02.2021 20:46, griffin...@verizon.net wrote:

Please see attached.


If the attachment is, say, 20 kB (8 pages) or less, please post.  If 
larger, please post the most relevant portions and provide a public URL 
for the rest.


I found the content (it was in the Junk folder):

System was working properly.  Then on start-up it ended up with
a screen showing  (initfamfs  --  Enter  'help' for a list of
built-in commands).  Also Run fsck  MANUALLY without  -a  or  -p
options.
How do I get into util-linux 2.33.1 to run  fsck  ??
Please let me know how to proceed to get the system running.


What is the make and model of the computer?  What options -- CPU, 
memory, drive(s)?  Please provide a URL to the manufacturer support page.



Do you remember the major version number of Debian -- e.g. 10, 9, 8, etc.?


Do you still have the installation media (CD, USB flash drive) used to 
install Debian onto that computer?



David



Re: Need Help

2021-02-10 Thread David Christensen

On 09.02.2021 20:46, griffin...@verizon.net wrote:

Please see attached.


If the attachment is, say, 20 kB (8 pages) or less, please post.  If 
larger, please post the most relevant portions and provide a public URL 
for the rest.



David



Re: Need Help

2021-02-10 Thread Alexander V. Makartsev

On 09.02.2021 20:46, griffin...@verizon.net wrote:

Please see attached.

Have you done something to the system prior to its failure?
Could you send more information about this system? Is it laptop or a 
stationary PC? Does it uses RAID? Is it "Buster" (Current Stable branch) 
installation?
Due to lack of information it could be hazardous to your data to run 
"fsck" blindly without getting any knowledge about root cause for the 
failure.
It is highly recommended to backup your data from the system before 
attempting any recovery procedures.


--
With kindest regards, Alexander.

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



Re: Need help -- Virtual Machine Manager

2020-09-05 Thread Fabien Roucaute
Le 05/09/2020 à 19:27, Dennis Wicks a écrit :

> Yes, everything is in the same box/host. I need to know how to mount a
> physical CD!
> TNX!
> 

You go in the menu View-> details-> CD-ROM, and then you select the
physical drive in the list (usually /dev/sr0)



Re: Need help -- Virtual Machine Manager

2020-09-05 Thread Dennis Wicks

Fabien Roucaute wrote on 9/5/20 1:40 AM:

Le 05/09/2020 à 01:57, Dennis Wicks a écrit :

I'm running Win10 with Virtual Machine Manager on Deb 10.4. How to I
attach my CD drive to Win10 so I can install some software?

Many TIA!
Dennis



Either the ISO or the CD-ROM need to be on the host. If KVM/libvirt
doesn't run on the machine running Virtual Machine Manager, you need to
create a pool for the ISO and upload the ISO there or to insert cd-rom
in the host CD drive.




Yes, everything is in the same box/host. I need to know how 
to mount a physical CD!

TNX!



Re: Need help -- Virtual Machine Manager

2020-09-05 Thread Fabien Roucaute
Le 05/09/2020 à 01:57, Dennis Wicks a écrit :
> I'm running Win10 with Virtual Machine Manager on Deb 10.4. How to I
> attach my CD drive to Win10 so I can install some software?
> 
> Many TIA!
> Dennis
> 

Either the ISO or the CD-ROM need to be on the host. If KVM/libvirt
doesn't run on the machine running Virtual Machine Manager, you need to
create a pool for the ISO and upload the ISO there or to insert cd-rom
in the host CD drive.



Re: Need help with PATH variable (i3/debian buster)

2020-07-30 Thread tomas
On Thu, Jul 30, 2020 at 08:46:24AM -0400, Greg Wooledge wrote:
> On Thu, Jul 30, 2020 at 11:56:27AM +0200, to...@tuxteam.de wrote:
> > Sigh. It /used/ to be simple.
> 
> Honestly, it never was [...]

C'm on. At least there was a finite set back then. These days, the
set is infinite, or at least its cardinality is in the realm where
Peano arithmetic isn't contradiction-free anymore ;-P

Cheers
-- t


signature.asc
Description: Digital signature


Re: Need help with PATH variable (i3/debian buster)

2020-07-30 Thread Klaus Singvogel
Greg Wooledge wrote:
> Every type of login follows a completely different set of steps for
> configuring your environment.  Reconciling these and achieving a uniform
> environment across all possible login types is *extremely* difficult,
> if not impossible.

It's more or less a layer model with different entry points into different
layers.

A GUI login performs a login type with more graphical features. Therefore,
when starting a shell is a subprocess of an already performed login, and a
.*login isn't required anymore.

Login on console instead executes the login shell.

Same is for a remote login like SSH (and for the old men: rsh).

And: a .profile (or .rc) is always executed, as it isn't related to
the circumstance, if it's a login process or a subprocess of a login.

Note: I'm starting a tcsh not a bash as my (login) shell. Therefore I'm
writing the file names in a more abstract way to fit for both.

Regards,
Klaus.
-- 
Klaus Singvogel
GnuPG-Key-ID: 1024R/5068792D  1994-06-27



Re: Need help with PATH variable (i3/debian buster)

2020-07-30 Thread Greg Wooledge
On Thu, Jul 30, 2020 at 11:56:27AM +0200, to...@tuxteam.de wrote:
> Sigh. It /used/ to be simple.

Honestly, it never was.  Even in the old days, users had different login
shell options, so if you wanted a consistent environment for csh and sh
users, for example, you had to write two different sets of changes.  And
then there were xdm logins, and remote shell logins, and so on.



Re: Need help with PATH variable (i3/debian buster)

2020-07-30 Thread Greg Wooledge
On Thu, Jul 30, 2020 at 11:21:54AM +0200, Benedikt Tuchen wrote:
> When I use no display manager like lightdm, I start i3 via startx in
> the console. If I do this dmenu and rofi are using my personal $PATH
> variable. For example it includes "$HOME/.local/bin". But when I
> use a display manager, dmenu and rofi do no longer have my personal
> $PATH entries. How can I change this behavior?

Every type of login follows a completely different set of steps for
configuring your environment.  Reconciling these and achieving a uniform
environment across all possible login types is *extremely* difficult,
if not impossible.

With a console login, your session consists of a login shell, with some
variables pre-populated by the login program, and by PAM.  The login
shell then reads various configuration files (in the case of bash, these
include /etc/profile and ~/.profile or possibly others; for other shells,
other files are read).

With a "regular" Display Manager login (lightdm, xdm, and so on), your
session is *not* a login shell, nor does it ever at any time include
a login shell, so files like /etc/profile and ~/.profile are never read.
At all.

With a GNOME (gdm3) login, you have *two* different session types: Wayland
or X11.  When gdm3 runs an X11 session, it's similar to the "regular" DM
from the previous paragraph.  However, when it runs a Wayland session,
a whole different set of configs is used.  I've never run Wayland in my
life, but people have said that the Debian Wayland session reads login
shell config files.  I don't know whether that's true, or which shell is
reading them, at what time, or anything.  You'll have to figure that out.

But you said lightdm and i3, not GNOME.  So we can skip all of the GNOME
horror for now.  And please believe me, there are *more* layers of GNOME
horror that I'm omitting here.  It's so much worse than you thought.

A lightdm login running a standard Debian X session reads one additional
file that is unique to Debian: ~/.xsessionrc .  You can configure
environment variables like PATH here, and they will be read and respected
by anything that runs a standard Debian X session.

See also .


Now, after all of that, you still need to consider what your Desktop
Environment does to your environment.  You may go through all of these
steps to set your environment *just* how you like it, only to find out
that in the end, your DE takes over, wipes out some variables, and
changes others.

I suspect i3 is much more traditional and hands-off about it, but I've
never used i3, so I can't say for sure.  You may be totally fine with
just the knowledge contained in this post.  But if you find that some
variables work and others simply do not, it might be because i3 is
resetting them.  It's just a thing to keep in mind.



Re: Need help with PATH variable (i3/debian buster)

2020-07-30 Thread tomas
On Thu, Jul 30, 2020 at 11:21:54AM +0200, Benedikt Tuchen wrote:
> Hello,
> 
> I got some strange behavior with my PATH variable and maybe somebody
> here can help me with this.
> 
> When I use no display manager like lightdm, I start i3 via startx in
> the console. If I do this dmenu and rofi are using my personal $PATH
> variable. For example it includes "$HOME/.local/bin". But when I
> use a display manager, dmenu and rofi do no longer have my personal
> $PATH entries. How can I change this behavior?
> 
> I've tried to find a solution for this but didn't found one. Maybe
> someone here know exactly what to do.

The short (but sometimes inaccurate) answer: ~/.xsession --  this is
(very roughly) the X Session equivalent to your ~/.profile and its
ilk.

The longer answer: man Xsession (5). Depending on whether you use a
desktop environment (and on how badly it has brutalised your X setup),
you'll have to find out what is missing where.

Look around /etc/X11/Xsession.options and /etc/X11/Xsession.d/* --
there is the machinery which decides whether and how to load your
personal X session stuff in ~/.xsession.

Sigh. It /used/ to be simple.

Cheers
-- t


signature.asc
Description: Digital signature


Re: Need help with debugging Apache on Debian 10.2

2020-01-17 Thread Angela Korra'ti
The PHP issues were primarily involved with Wordpress plugins. I had to go 
through and find several that were not compatible with PHP 7. I _think_ I found 
and fixed all of those, but it’s certainly possible that the issue might be 
caused by a bad plugin.

But I don’t know for sure. I’ve tried digging through Apache’s error.log and 
have not found any more obvious error messages to point me at things that need 
fixing.

I’ve tried uninstalling and reinstalling PHP, on the theory that I may have 
confused it by making the jump not only through multiple versions of Debian, 
but also multiple versions of PHP. And yes, I have the PHP mod active in 
Apache. 

Re: getting a core dump… that’s the part I need help with. I did get the 
debugger installed but I am not experienced with how to use it in a way that’d 
let me actually get useful data. 

The big blocking problem would seem to be that I don’t actually know what’s 
causing the problem, so I can’t trigger it on purpose. So it would seem that 
I’d need to run Apache with the debugger somehow in the hope that I’d actually 
catch the problem when it happens? But I don’t know how to do that either.

> On Jan 17, 2020, at 9:12 PM,   wrote:
> 
> I'd look first into that PHP part (I'm assuming you're running
> mod_php, so it's in the Apache binary, and a crash in PHP would
> crash the server, too).
> 
> Which kind of problems did you have with PHP?
> 
> Any possibility of getting a core dump you can look into with
> the debugger?
> 
> (Sorry for not looking at your web site -- bad connectivity
> at the moment),
> 
> Cheers
> -- tomás



  1   2   3   4   5   6   7   8   9   10   >