Re: git setup

2023-08-21 Thread Christoph Brinkhaus
Am Tue, Aug 22, 2023 at 03:00:33AM + schrieb Russell L. Harris:
Hello Russel,
I cannot answer your question directly but show what I am doing now.

> After much searching and reading, I have not discovered how to set up
> a pair of git repositories to work together.
> 
> I write articles for publication.  I typically spend anywhere from
> several hours to many days on each article.  It is frustrating to work
> for an hour or two on a paragraph or a page and then accidentally to
> erase what I have written.
> 
> In the past, I have found git to be a very good solution.  But now I
> am moving to a new computer, and I an having difficulty replicating
> the previous setup.
> 
> My needs are simple.  I need two git repositories.
> 
> The first is my work space, into which periodically I commit the
> article on which I am working.
> 
> The second repository is my backup; it resides on another machine.
> Several times a day, I SSH into the backup machine and pull the
> working repository.  It would be nice to be able to push from WORKING
> to BACKUP, eliminating the need to SSH.

I have almost the same setup and use local git repositories.
Instead of syncing them by the git tools I use rsync to update the
backup from time to time. This is a dumb method but it works.

> I cloned the WORKING repository from the old host, and the WORKING
> repository appears to function correctly.  But I do not know how to
> configure the BACKUP repository.  I tried the BARE option, but I am not
> able to push from WORKING to BACKUP.

To dig that is on my todo list as well. But as an additional backup I
would run the dump method in parallel, just in case I manage to screw up
the git repository.

Kind regards,
Christoph
-- 
Ist die Katze gesund
schmeckt sie dem Hund.


signature.asc
Description: PGP signature


Re: mailx and selinux not co-operating

2023-08-21 Thread Bhasker C V
For future reference

There is another package mailutils which also provides /usr/bin/mail.
This is working fine with selinux in enforcing mode.
This is a good alternative



On Mon, Aug 21, 2023 at 2:56 AM Bhasker C V  wrote:

> Thanks Nicholas
> However, it doesnt  to my knowledge looks like an issue with mailx or
> sendmail (I use exim4).
> The reason i derive at at is because the whole thing works the moment i
> disable selinux.
>
> What i wonder is why selinux is not complaining about the failure ? No
> logs whatsoever ...
>
> On Mon, Aug 21, 2023 at 12:58 AM Nicholas Geovanis 
> wrote:
>
>> On Sun, Aug 20, 2023, 9:20 AM Bhasker C V  wrote:
>>
>>> Finally i switched on the enforcing mode on my linux system
>>> Pretty much everything is working except
>>>
>>> ```
>>> $ echo hello | mail -s test x...@yyy.xyz
>>> 2023-08-20 14:39:30 1qXieQ-000Bpa-1P 1qXieQ-000Bpa-1P no recipients
>>> found in headers
>>> Can't send mail: sendmail process failed with error code 1
>>> ```
>>> however the same works fine when I put selinux in permissive state (no
>>> warnings shown in audit/dmesg)
>>>
>>
>> Is it easy for you to get the headers that cause Sendmail to say "no
>> recipients found in headers"? And compare with the headers generated by the
>> successful mail.
>> It might help tell if it's a bug or working as designed ;-) or maybe a
>> mailx issue not sendmail.
>>
>> A quick ltrace says
>>> ```
>>>  1qXia0-000BPb-0a Failed to create spool file
>>> /var/spool/exim4//input//1qXia0-000BPb-0a-D: Permission denied
>>> ```
>>>
>>> However there are no avc: messages for me to allow this through in my
>>> selinux module
>>> I even tried
>>>
>>> ```
>>> allow unconfined_t exim_spool_t:file { open read write create };
>>> allow unconfined_t exim_spool_t:dir { open read write };
>>> ```
>>>
>>> since /var/spool/exim4/input has exim_spool_dir set in it
>>>
>>> I cant fine any booleans either ..
>>>
>>> Please could someone tell me how to get this to work ? has anyone got
>>> mailx working with selinux on their system ?
>>>
>>>
>>>


Re: git setup

2023-08-21 Thread Karl Vogel
On Mon, Aug 21, 2023 at 11:01:21PM -0400, Russell L. Harris wrote:
> I write articles for publication.  I typically spend anywhere from
> several hours to many days on each article.  It is frustrating to work
> for an hour or two on a paragraph or a page and then accidentally to
> erase what I have written.

Heard that.

> The second repository is my backup; it resides on another machine.
> Several times a day, I SSH into the backup machine and pull the
> working repository.  It would be nice to be able to push from WORKING
> to BACKUP, eliminating the need to SSH.

I'd set up a post-commit hook on the production system.  Have it SSH to
your backup system and do a pull automatically whenever you commit a change.

I made an example project to try it:

me% mkdir example
me% cd example
me% git init

Test file:

me% date > testing
me% git add testing
me% git commit -m 'Testing a new file"

me% git log
d5fe2ce 2023-08-22 00:09:21 -0400 vogelke - Testing a new file

Here's a test script to connect from my backup system ("bkup") and simulate
pulling my working repo.  I have an SSH public/private key set up for
passwordless login:

me% cat try
#!/bin/sh
export PATH=/usr/local/bin:/bin:/usr/bin
ssh -q -c aes128-...@openssh.com -i $HOME/.ssh/bkup_ed25519 \
bkup "logger -t autopull git pull whatever"
exit 0

Here's the remote system log when I run this from the command line:

me@bkup% tail -1 /var/log/messages
Aug 22 00:24:44 bkup autopull[60592]: git pull whatever

I copied the test script ("try") to .git/hooks/post-commit and ran a commit:

me% git add try

me% date; git commit -m 'Added hook'
Tue Aug 22 00:31:27 EDT 2023
[master 42cb917] Added hook
 1 file changed, 6 insertions(+)
 create mode 100755 try

me% git log
42cb917 2023-08-22 00:31:27 -0400 vogelke - Added hook
d5fe2ce 2023-08-22 00:09:21 -0400 vogelke - Testing a new file

Here's the system log on the remote system showing my hook ran when the
commit was done:

me@bkup% tail -1 /var/log/messages
Aug 22 00:31:27 bkup autopull[80162]: git pull whatever

Replace the "logger ..." part of post-commit to run "git pull" or whatever.
Hope this helps.

-- 
Karl Vogel  I don't speak for the USAF or my company

There's no kill like overkill.
  --Reddit post about using .45 ACP rounds to dispose of old disk drives



Re: Looking for a good "default" font (small 'L' vs. capital 'i' problem)

2023-08-21 Thread Charlie Gibbs

On Mon Aug 21 16:23:25 2023 "Christoph K."  wrote:

> Am Sun, 20 Aug 2023 21:41:04 +
> schrieb "Russell L. Harris" :
>
>> On the 3, 5, 6, and 9, open the end of the loops, and shorten the
>> horizontal stroke on top of the 5 so the 5 is not mistaken for an S.
>> Always put horizontal strokes on I.  Make the 1 with a flag on the
>> upper end and put a horizontal stroke on the 7, German-style.  My
>> handwriting is a odd mixture of cursive script and printing.
>
> Thanks for sharing!
>
> Really interesting ... I'm already implementing all of these "rules".
> I learnt to write the 7 in German style because I live in Germany ;-)

Here on the west coast of Canada the stroke through the 7 isn't too
common, although I do see it from time to time.  I avoid it because
it makes a 7 look like certain script forms of the letter F (see the
Fender guitar logo, for instance).

> We also learned to put a "flag" on the 1 in school. I was surprised to
> see other people don't. To me it's quite confusing to see 1 just as a
> straight line.

When I was 8 years old I started writing the numeral 1 with the "flag".
I quickly stopped, because everyone confused it with 7.

This leaves the lower-case L.  It was a long time before this became
a problem, either because I didn't use them frequently or because
readers could figure it out from context.  (This was in my pre-computer
days.)  Now if there's a potential problem I'll put a little hook on
the bottom, similar to many computer fonts.  The vertical bar... well,
I'll either make it noticeably taller than other characters on the line,
or I'll write nearby 1s with both a flag and a bottom line.  It's a
bit of a compromise that I deal with on an individual basis.

> I don't remember when I startet to put bars on the 'I', probably
> during my studies of electrical engineering when we used lots of
> formulas.

I think I used them right from the beginning, so that wasn't a problem.

> I also have a "mixed handwriting" with some ligatures (for example on
> the double 'l'). For the small 's' I use two different glyphs (not on
> purpose) that usually depend on my mood. For a long time I wasn't even
> aware I was doing this :-)

Interesting.  I went through something like that when I started cursive
writing.  When writing a contraction I'd write the whole word and then
go back and place the apostrophe between the appropriate two letters -
except when writing "o'clock", where for some reason I would leave a
break after the "o".  Go figure.

--
/~\  Charlie Gibbs  |  Life is perverse.
\ /|  It can be beautiful -
 X   I'm really at ac.dekanfrus |  but it won't.
/ \  if you read it the right way.  |-- Lily Tomlin



git setup

2023-08-21 Thread Russell L. Harris

After much searching and reading, I have not discovered how to set up
a pair of git repositories to work together.

I write articles for publication.  I typically spend anywhere from
several hours to many days on each article.  It is frustrating to work
for an hour or two on a paragraph or a page and then accidentally to
erase what I have written.

In the past, I have found git to be a very good solution.  But now I
am moving to a new computer, and I an having difficulty replicating
the previous setup.

My needs are simple.  I need two git repositories.

The first is my work space, into which periodically I commit the
article on which I am working.

The second repository is my backup; it resides on another machine.
Several times a day, I SSH into the backup machine and pull the
working repository.  It would be nice to be able to push from WORKING
to BACKUP, eliminating the need to SSH.

I cloned the WORKING repository from the old host, and the WORKING
repository appears to function correctly.  But I do not know how to
configure the BACKUP repository.  I tried the BARE option, but I am not
able to push from WORKING to BACKUP.

RLH



Re: xterm font and other options

2023-08-21 Thread Max Nikulin

On 21/08/2023 16:16, Karl Vogel wrote:

On Sun, Aug 20, 2023 at 10:38:34PM -0400, Max Nikulin wrote:

Xterm configuration options may be put to ~/.Xresources, e.g.

xterm*VT100.faceName: ...

I am curious if there are actual advantages of usage a wrapper script
instead of xresources.

...

 # Don't override COLUMNS and LINES if already set; when my eyes are
 # tired, I use an xterm with characters two pixels larger:
 ##  FONT=xft:Cascadia:pixelsize=22:bold LINES=35 xt

 : ${COLUMNS=80}
 : ${LINES=40}


Thank you for clarification. Certainly it is aside from my use cases. 
Terminal applications usually occupy either the whole screen or its 
half, so I do not care concerning precise values of COLUMNS and LINES. 
Font size may be changed for a running instance of xterm through menu. I 
have not bothered to define keyboard shortcuts for that.


xterm*VT100.faceSize2: 7
xterm*VT100.faceSize3: 9
xterm*VT100.faceSize:  11
xterm*VT100.faceSize4: 11
xterm*VT100.faceSize5: 14
xterm*VT100.faceSize6: 18

There is another degree of freedom: -class. I still do not see 
advantages of $FONT over xterm*VT100.faceName as the default and -fa for 
ad-hoc override, but I admit it may be convenient for you.





upgrade to bookworm broke phpmyadmin

2023-08-21 Thread Rick Macdonald
I've been running phpmyadmin for years. It survived the upgrade to 
bullseye about a month ago but now the upgrade to bookworm broke it.


I don't see any similar bug reports. I do see similar error messages 
around the web from over the years, but I don't expect to have to do a 
manual re-install or repair. I removed it and installed again, but the 
result is the same. My mariadb is accessible from other apps and the 
"mysql" command line program, so it's up and running. "Composer" as 
mentioned in the error message isn't something that I have installed.


PHP 8.2.7 is the default version of php.


PHP 7.2.5+ is required.

Currently installed version is: ' . PHP_VERSION . '

'); } // phpcs:disable PSR1.Files.SideEffects define('PHPMYADMIN', 
true); // phpcs:enable require_once ROOT_PATH . 
'libraries/constants.php'; /** * Activate autoloader */ if (! 
@is_readable(AUTOLOAD_FILE)) { die( '


File ' . AUTOLOAD_FILE . ' missing or not readable.

' . '

Most likely you did not run Composer to ' . '' . 'install library 
files 
.


' ); } require AUTOLOAD_FILE; global $route, $containerBuilder, 
$request; Common::run(); $dispatcher = Routing::getDispatcher(); 
Routing::callControllerForRoute($request, $route, $dispatcher, 
$containerBuilder); 


I tried reconfigure, but I didn't select the option to "reinstall the 
database"*:


*

# dpkg-reconfigure phpmyadmin
Determining localhost credentials from /etc/mysql/debian.cnf: succeeded.
dbconfig-common: writing config to /etc/dbconfig-common/phpmyadmin.conf
dbconfig-common: flushing administrative password
apache2_invoke phpmyadmin: already enabled


Any ideas?

Rick

Re: Looking for a good "default" font (small 'L' vs. capital 'i' problem)

2023-08-21 Thread Richmond
debian-u...@howorth.org.uk wrote:

> Cindy Sue Causey  wrote:
>> My own mind went to the place of thinking sans serif was about those
>> very lines. I just didn't make it to thinking that would make it hard
>> to find any alternate in that family. My long time preference is
>> developer-weary-eye-friendly fonts-anonymous-pro for whatever
>> applications will accept it. Found it accidentally a few years ago.
>> Its differences are noticeable enough that I instantly miss it on new
>> operating system installs. The "apt-cache show" description for
>> fonts-anonymous-pro specifically references both 0 v. O and I v. l v.
>> 1: "Description-en: fixed width font designed for coders This package
>> contains two Font Families. - Anonymous Pro - Anonomous Pro Minus .
>> 'Anonymous Pro' is a family of four fixed-width fonts designed
>> especially with coding in mind. Characters that could be mistaken for
>> one another (O, 0, I, l, 1, etc.) have distinct shapes to make them
>> easier to tell apart in the context of source code.
> Terminal fonts tend to be fixed width since that's a property of
> terminals. Fixed width fonts tend to have serifs because it's easier
> to make the spacing look more even between inherently narrow
> characters and inherently wide ones using details like serifs. So
> finding a sans serif font amongst terminal fonts is likely a difficult
> cause.

The font I have in Gnome terminal is called 'Monospace'. It doesn't have
serifs generally, but there is on I and l, and on J. And the 0 has a dot
in it.

The Gnome Tweaks program has a font selector which shows 'The quick
brown fox jumps over the lazy dog', searching for 'sans' I found only
'Noto Sans Mono Regular' which distinguished the I and l.



Re: Looking for a good "default" font (small 'L' vs. capital 'i' problem)

2023-08-21 Thread Christoph K.
Am Sun, 20 Aug 2023 21:41:04 +
schrieb "Russell L. Harris" :

> On the 3, 5, 6, and 9, open the end of the loops, and shorten the
> horizontal stroke on top of the 5 so the 5 is not mistaken for an S.
> Always put horizontal strokes on I.  Make the 1 with a flag on the
> upper end and put a horizontal stroke on the 7, German-style.  My
> handwriting is a odd mixture of cursive script and printing.

Thanks for sharing!

Really interesting ... I'm already implementing all of these "rules".
I learnt to write the 7 in German style because I live in Germany ;-)
We also learned to put a "flag" on the 1 in school. I was surprised to see
other people don't. To me it's quite confusing to see 1 just as a straight
line.

I don't remember when I startet to put bars on the 'I', probably during
my studies of electrical engineering when we used lots of formulas.

I also have a "mixed handwriting" with some ligatures (for example on the
double 'l'). For the small 's' I use two different glyphs (not on
purpose) that usually depend on my mood. For a long time I wasn't even
aware I was doing this :-)

Best regards,
Christoph



Re: Disk error?

2023-08-21 Thread piorunz

On 21/08/2023 18:53, Tim Woodall wrote:

On Mon, 21 Aug 2023, Tim Woodall wrote:


On Wed, 24 Aug 2022, Tim Woodall wrote:


I got this error while installing build-essential

Preparing to unpack .../03-libperl5.34_5.34.0-5_arm64.deb ...
Unpacking libperl5.34:arm64 (5.34.0-5) ...
dpkg-deb (subprocess): decompressing archive
'/tmp/apt-dpkg-install-zqY3js/03-libperl5.34_5.34.0-5_arm64.deb'
(size=4015516) member 'data.tar': lzma error: compressed data is corrupt
dpkg-deb: error:  subprocess returned error exit status 2
dpkg: error processing archive
/tmp/apt-dpkg-install-zqY3js/03-libperl5.34_5.34.0-5_arm64.deb
(--unpack):
cannot copy extracted data for
'./usr/lib/aarch64-linux-gnu/libperl.so.5.34.0' to
'/usr/lib/aarch64-linux-gnu/libperl.so.5.34.0.dpkg-new': unexpected
end of file or stream

Am I right that this must be a local error - apt will have verified the
checksum while downloading the deb? (and it worked on rerunning - the
deb was in acng)

I can find nothing anywhere that suggests anything has gone wrong (other
than this error) but (and I'm sure it's a coincidence) since installing
ACNG (on the same machine) I've been getting a number of errors similar
to things like this where files appear to be corrupted but work on the
next attempt.

There's no SMART errors or anything like that either.

Anyone got any ideas - any logging I should add to try and track down
where the issue might be?

Tim.




Just a FYI, I've been battling this, and errors like this for almost a
year. The last but one kernel upgrade seems to have fixed it. :-)

I've been reverting all the changes I made trying to track it down and,
touch wood, it's not come back.

One of these two upgrades fixed it. (the first doesn't seem plausible)

Start-Date: 2023-08-11  06:25:52
Commandline: apt-get -y upgrade
Upgrade: usbip:amd64 (2.0+5.10.179-3, 2.0+5.10.179-5)
End-Date: 2023-08-11  06:25:53

Start-Date: 2023-08-12  08:16:59
Commandline: apt-get -y dist-upgrade
Install: linux-image-5.10.0-24-amd64:amd64 (5.10.179-5, automatic)
Upgrade: linux-image-amd64:amd64 (5.10.179-3, 5.10.179-5)
End-Date: 2023-08-12  08:23:07

I cannot tell which machine mattered, could be the xen host, the guest
running apt, the guest running apt-cacher-ng or the one running the
squid proxy. (the last two feel impossible given the symptoms above)

The disk was mounted via iscsi on the xen host, so it's not quite as
simple as saying apt got the right file over the network therefore it
must be the guest.

I'm not going to try to reproduce and track down exactly what fixed it.

Tim.



So I spoke too soon. Reverting the last change I made, resulting in
halving the memory and leaving only one vcpu in the guest, meaning that
the guest is severely loaded and I got a one bit error in a downloaded
(Packages.xz) file.


You never said in your original post that this is virtualized
environment. No point checking badblocks or SMART in that.
If you have memory/storage corruption errors in virtualized environment,
this could be due to: bad RAM, bugs in VM software, bugs in CPU
firmware, bugs in kernel. But probably nothing to do with SMART/hard
drive etc.
Check with run full of memtest86+ first.

--
With kindest regards, Piotr.

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



Re: "locate" easier to use than "find"

2023-08-21 Thread tomas
On Mon, Aug 21, 2023 at 06:45:16PM +0100, Brian wrote:

[...]

> plocate-updatedb.service and plocate-updatedb.timer take care of
> that for me. :)

I admit to accepting some help from trusty cron :)

> > Tools, jobs and that :)
> 
> Indeed.

Cheers
-- 
t


signature.asc
Description: PGP signature


Re: "locate" easier to use than "find"

2023-08-21 Thread mick.crane

On 2023-08-21 17:21, to...@tuxteam.de wrote:

On Mon, Aug 21, 2023 at 02:50:07PM +, Michael Kjörling wrote:

On 21 Aug 2023 15:56 +0200, from to...@tuxteam.de:
>> For me command "locate" is easier to use than "find":
>
> They do different things. Locate is much faster, but it only looks
> into file names. Find can do nearly everything, like looking into
> file metadata ("show me all files younger than 12 days" or "owned
> by www-data"), running external programs (e.g. grep), yadda, yadda.

Another downside of locate is that it relies on its database being up
to date.

Depending on what you're trying to do, they may both be equally
useful, or one may be far more useful than the other.


Don't get me wrong. I /do/ use both, and take care that the locate
database is up-to-date.

Tools, jobs and that :)


When you imagine what it must be doing is amazing how quick updatedb is.

mick



Re: Disk error?

2023-08-21 Thread Tim Woodall

On Mon, 21 Aug 2023, Tim Woodall wrote:


On Wed, 24 Aug 2022, Tim Woodall wrote:


I got this error while installing build-essential

Preparing to unpack .../03-libperl5.34_5.34.0-5_arm64.deb ...
Unpacking libperl5.34:arm64 (5.34.0-5) ...
dpkg-deb (subprocess): decompressing archive 
'/tmp/apt-dpkg-install-zqY3js/03-libperl5.34_5.34.0-5_arm64.deb' 
(size=4015516) member 'data.tar': lzma error: compressed data is corrupt

dpkg-deb: error:  subprocess returned error exit status 2
dpkg: error processing archive 
/tmp/apt-dpkg-install-zqY3js/03-libperl5.34_5.34.0-5_arm64.deb (--unpack):
cannot copy extracted data for 
'./usr/lib/aarch64-linux-gnu/libperl.so.5.34.0' to 
'/usr/lib/aarch64-linux-gnu/libperl.so.5.34.0.dpkg-new': unexpected end of 
file or stream


Am I right that this must be a local error - apt will have verified the
checksum while downloading the deb? (and it worked on rerunning - the
deb was in acng)

I can find nothing anywhere that suggests anything has gone wrong (other
than this error) but (and I'm sure it's a coincidence) since installing
ACNG (on the same machine) I've been getting a number of errors similar
to things like this where files appear to be corrupted but work on the
next attempt.

There's no SMART errors or anything like that either.

Anyone got any ideas - any logging I should add to try and track down
where the issue might be?

Tim.




Just a FYI, I've been battling this, and errors like this for almost a
year. The last but one kernel upgrade seems to have fixed it. :-)

I've been reverting all the changes I made trying to track it down and,
touch wood, it's not come back.

One of these two upgrades fixed it. (the first doesn't seem plausible)

Start-Date: 2023-08-11  06:25:52
Commandline: apt-get -y upgrade
Upgrade: usbip:amd64 (2.0+5.10.179-3, 2.0+5.10.179-5)
End-Date: 2023-08-11  06:25:53

Start-Date: 2023-08-12  08:16:59
Commandline: apt-get -y dist-upgrade
Install: linux-image-5.10.0-24-amd64:amd64 (5.10.179-5, automatic)
Upgrade: linux-image-amd64:amd64 (5.10.179-3, 5.10.179-5)
End-Date: 2023-08-12  08:23:07

I cannot tell which machine mattered, could be the xen host, the guest
running apt, the guest running apt-cacher-ng or the one running the
squid proxy. (the last two feel impossible given the symptoms above)

The disk was mounted via iscsi on the xen host, so it's not quite as
simple as saying apt got the right file over the network therefore it
must be the guest.

I'm not going to try to reproduce and track down exactly what fixed it.

Tim.



So I spoke too soon. Reverting the last change I made, resulting in
halving the memory and leaving only one vcpu in the guest, meaning that
the guest is severely loaded and I got a one bit error in a downloaded
(Packages.xz) file.



Re: "locate" easier to use than "find"

2023-08-21 Thread tomas
On Mon, Aug 21, 2023 at 02:50:07PM +, Michael Kjörling wrote:
> On 21 Aug 2023 15:56 +0200, from to...@tuxteam.de:
> >> For me command "locate" is easier to use than "find":
> > 
> > They do different things. Locate is much faster, but it only looks
> > into file names. Find can do nearly everything, like looking into
> > file metadata ("show me all files younger than 12 days" or "owned
> > by www-data"), running external programs (e.g. grep), yadda, yadda.
> 
> Another downside of locate is that it relies on its database being up
> to date.
> 
> Depending on what you're trying to do, they may both be equally
> useful, or one may be far more useful than the other.

Don't get me wrong. I /do/ use both, and take care that the locate
database is up-to-date.

Tools, jobs and that :)

Cheers
-- 
t


signature.asc
Description: PGP signature


Re: !Re: Favicon Firefox

2023-08-21 Thread Hans
I discovered, when I set a site as "bookamrked", then the favicon is stored 
and is shown on "most visited site" (or is it "last visited sites"??). What I 
mean is, when opening a new tab, then firefox shows me the most visited sites, 
but here the favicons are missing. 

However, when I set a site an bookmark it, then the favicon is shown here. 
This is strange, because it should show it also, if this site is visited once 
(or like me, visited often, as I am visting this site every day).

Does this help?

Hans




Re: setting paths for sudo (revisited)

2023-08-21 Thread Tom Browder
On Mon, Aug 21, 2023 at 08:11 Greg Wooledge  wrote:

> On Mon, Aug 21, 2023 at 07:56:22AM -0500, Tom Browder wrote:
> > For Greg: I'm trying to get my muscle memory to use "sudo -i" and "sudo
> -s"
> > as you said to become root user for more work (thanks for the great
> > explanation).
> >
> > One more question: when I need a one-liner as root, do I also use the
> '-i'
> > or '-s' with sudo to get the desired path?
>
> No.  sudo sets the PATH for you.  You only need -i or -s when you want
> to get an interactive shell, instead of running a specific command.


Thanks. When I get a multi-user system working with Raku as I want it to,
I'll post it on this thread for your critique. On the original thread you
kept wanting me to describe in detail my use case. The problem was (and
still is) how to handle the following requirements:

1. Have root install the Raku executable for all users

2. Have the root user install modules for himself, but have normal users
see and use them in their normal path.

3. Allow normal users to install their own modules which, for them only,
would override the global version.

This is somewhat analogous to Perl, but zef, the equivalebt Raku installer,
is a bit pickier than cpanm about overrides.

Best regards,

-Tom

P.S. Note Debian does have a Raku package, but most real users would rather
use the latest and greatest. The language is under heavy development and
there are real advantages for power users to stay current (a new version is
normally release monthly). There is a painless Debian package system
provided by our community similar to those provided by the PostgreSQL
community.

Do not think the syntax or user-space is changing due to the fast pace.
Certain older things are deprecated and announced automatically when using
them. Old code is usually compatible with new releases. A new release is
always back-compatible until a new version is released. Raku is on its
second version since its initial stable version release in December 2015.
The third version, v6.e, is in the wings. And a user can always install an
older release if all else fails.


Re: "locate" easier to use than "find"

2023-08-21 Thread Michael Kjörling
On 21 Aug 2023 15:56 +0200, from to...@tuxteam.de:
>> For me command "locate" is easier to use than "find":
> 
> They do different things. Locate is much faster, but it only looks
> into file names. Find can do nearly everything, like looking into
> file metadata ("show me all files younger than 12 days" or "owned
> by www-data"), running external programs (e.g. grep), yadda, yadda.

Another downside of locate is that it relies on its database being up
to date.

Depending on what you're trying to do, they may both be equally
useful, or one may be far more useful than the other.

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



Re: "locate" easier to use than "find"

2023-08-21 Thread tomas
On Mon, Aug 21, 2023 at 03:19:19PM +0200, Roger Price wrote:
> On Mon, 21 Aug 2023, Hans wrote:
> 
> > find .mozilla -name favicons.sqlite -ls
> >  1512492   2144 -rw-r--r--   1 myusername myusernama  2195456 Aug 21 13:29 
> > .mozilla/firefox/gs0gkgv2.default/favicons.sqlite
> >  1515049    260 -rw-r--r--   1 myusername myusername   262144 Aug 18 22:36 
> > .mozilla/firefox/th3dv2jy.default-1461749950404/favicons.sqlite
> 
> For me command "locate" is easier to use than "find":

They do different things. Locate is much faster, but it only looks
into file names. Find can do nearly everything, like looking into
file metadata ("show me all files younger than 12 days" or "owned
by www-data"), running external programs (e.g. grep), yadda, yadda.

To each job its tool.

Cheers
-- 
t


signature.asc
Description: PGP signature


"locate" easier to use than "find"

2023-08-21 Thread Roger Price

On Mon, 21 Aug 2023, Hans wrote:


find .mozilla -name favicons.sqlite -ls
 1512492   2144 -rw-r--r--   1 myusername myusernama  2195456 Aug 21 13:29 
.mozilla/firefox/gs0gkgv2.default/favicons.sqlite
 1515049    260 -rw-r--r--   1 myusername myusername   262144 Aug 18 22:36 
.mozilla/firefox/th3dv2jy.default-1461749950404/favicons.sqlite


For me command "locate" is easier to use than "find":

rprice@titan ~ locate favicons.sqlite
/mnt/home/rprice/.mozilla/firefox/60mahk24.default-esr/favicons.sqlite
/mnt/home/rprice/.mozilla/firefox/60mahk24.default-esr/favicons.sqlite-wal
/mnt/home/rprice/.mozilla/firefox/sehco4n9.default/favicons.sqlite
/mnt/home/rprice/.mozilla/firefox/sehco4n9.default/favicons.sqlite-shm
/mnt/home/rprice/.mozilla/firefox/sehco4n9.default/favicons.sqlite-wal
rprice@titan ~ inxi -S
System: Host: titan Kernel: 5.10.0-15-amd64 x86_64 bits: 64 Desktop: Xfce 
4.16.0 Distro: Debian GNU/Linux 11 (bullseye)

Roger

Re: setting paths for sudo (revisited)

2023-08-21 Thread Greg Wooledge
On Mon, Aug 21, 2023 at 07:56:22AM -0500, Tom Browder wrote:
> For Greg: I'm trying to get my muscle memory to use "sudo -i" and "sudo -s"
> as you said to become root user for more work (thanks for the great
> explanation).
> 
> One more question: when I need a one-liner as root, do I also use the '-i'
> or '-s' with sudo to get the desired path?

No.  sudo sets the PATH for you.  You only need -i or -s when you want
to get an interactive shell, instead of running a specific command.

unicorn:~$ sudo env | grep PATH=
[sudo] password for greg: 
WINDOWPATH=1
PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin



setting paths for sudo (revisited)

2023-08-21 Thread Tom Browder
For Greg: I'm trying to get my muscle memory to use "sudo -i" and "sudo -s"
as you said to become root user for more work (thanks for the great
explanation).

One more question: when I need a one-liner as root, do I also use the '-i'
or '-s' with sudo to get the desired path?

Thanks,

-Tom


!Re: Favicon Firefox

2023-08-21 Thread Hans
> unicorn:~$ find .mozilla -name favicons.sqlite -ls
>   1047247   6020 -rw-r--r--   1 greg greg  6160384 Aug 20 20:18
> .mozilla/firefox/0uik3i3z.default/favicons.sqlite

Yes, you are right! I did not find it, because I did:

find .mozilla -name favicon.sqlite -ls

missed ths "s" at "favicon". Yes I found it. Strangely I have two profiles:

find .mozilla -name favicons.sqlite -ls 
 1512492   2144 -rw-r--r--   1 myusername myusernama  2195456 Aug 21 13:29 
.mozilla/firefox/
gs0gkgv2.default/favi
cons.sqlite 
 1515049260 -rw-r--r--   1 myusername myusername   262144 Aug 18 22:36 
.mozilla/firefox/
th3dv2jy.default-1461
749950404/favicons.sqlite
Deleted both favicons.sqlite, but without any success.  


The unused profile now is moved away. Ok, now that I know, where to look at, I 
hope to 
approach the problem. I will now check some things out, if it does not work, I 
will notify you 
again. And of course, if it is solved, too.

Thanks for the help so far!

Best 

Hans


Re: Favicon Firefox

2023-08-21 Thread Nate Bargmann
* On 2023 21 Aug 06:53 -0500, Greg Wooledge wrote:
> On Mon, Aug 21, 2023 at 01:24:27PM +0200, Hans wrote:
> > Am Montag, 21. August 2023, 13:04:00 CEST schrieb Michael Kjörling:
> > > On 21 Aug 2023 12:31 +0200, from hans.ullr...@loop.de (Hans):
> > > > does someone know, where firefox-esr in debian does store its favicons?
> > > 
> > > Might that be "favicons.sqlite" in the profile?
> > 
> > Hmm, this is not existant. However, I am not sure, this is existant at all. 
> > Other sources claim some files below .mozilla, but all these are related to 
> > Windows. Yes, many settings are equal in linux, but sometimes linux does 
> > handling of files other than in Windows.
> 
> Peculiar.  I have one.
> 
> unicorn:~$ find .mozilla -name favicons.sqlite -ls
>   1047247   6020 -rw-r--r--   1 greg greg  6160384 Aug 20 20:18 
> .mozilla/firefox/0uik3i3z.default/favicons.sqlite

As do my systems.

Taking a wild guess, presumably cleaning the cache removed the icon
files that the DB is still referencing and not requesting being
downloaded.  In all likelihood it is safer for the OP to let the browser
manage the cache rather than a third party app.

- Nate

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



signature.asc
Description: PGP signature


Re: Favicon Firefox

2023-08-21 Thread Greg Wooledge
On Mon, Aug 21, 2023 at 01:24:27PM +0200, Hans wrote:
> Am Montag, 21. August 2023, 13:04:00 CEST schrieb Michael Kjörling:
> > On 21 Aug 2023 12:31 +0200, from hans.ullr...@loop.de (Hans):
> > > does someone know, where firefox-esr in debian does store its favicons?
> > 
> > Might that be "favicons.sqlite" in the profile?
> 
> Hmm, this is not existant. However, I am not sure, this is existant at all. 
> Other sources claim some files below .mozilla, but all these are related to 
> Windows. Yes, many settings are equal in linux, but sometimes linux does 
> handling of files other than in Windows.

Peculiar.  I have one.

unicorn:~$ find .mozilla -name favicons.sqlite -ls
  1047247   6020 -rw-r--r--   1 greg greg  6160384 Aug 20 20:18 
.mozilla/firefox/0uik3i3z.default/favicons.sqlite



Re: Favicon Firefox

2023-08-21 Thread Hans
Am Montag, 21. August 2023, 13:04:00 CEST schrieb Michael Kjörling:
> On 21 Aug 2023 12:31 +0200, from hans.ullr...@loop.de (Hans):
> > does someone know, where firefox-esr in debian does store its favicons?
> 
> Might that be "favicons.sqlite" in the profile?

Hmm, this is not existant. However, I am not sure, this is existant at all. 
Other sources claim some files below .mozilla, but all these are related to 
Windows. Yes, many settings are equal in linux, but sometimes linux does 
handling of files other than in Windows.

As I said: favicons recreation worked for years, but since my last deletion of 
them, no more. Thus my thoughts of corrupt files or wrong rights settings.

Oh, and I should mention: After deleting the whole .mozilla folder, favicons 
worked, but I do not want to delete oit, because there are many other settings 
I would like to keep.

Thus my primary question...

Best

Hans





Re: Favicon Firefox

2023-08-21 Thread Michael Kjörling
On 21 Aug 2023 12:31 +0200, from hans.ullr...@loop.de (Hans):
> does someone know, where firefox-esr in debian does store its favicons?

Might that be "favicons.sqlite" in the profile?

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



Favicon Firefox

2023-08-21 Thread Hans
Hi list,

does someone know, where firefox-esr in debian does store its favicons?

After a cleanup with bleachbit all favicons are lost (this is normal), but 
should be reloaded and resaved, when visting the sites again. This is normal.

Howver, now it does not any more, and I suppose, it might be a rights problem 
or a problem with a defective file.

As I do not want to clear the whole firefox, I would like to analyze the 
related file and directory. But which is it?

Thanks for any response.

Best regards

Hans




Re: xterm font and other options

2023-08-21 Thread Karl Vogel
On Sun, Aug 20, 2023 at 10:38:34PM -0400, Max Nikulin wrote:
> On 20/08/2023 14:55, Karl Vogel wrote:
> >  #!/bin/sh
> ...
> >  #   -fa 'xft:...'   font size and weight
> ...
> >  ( $XTERM $geo $topts -fa "$FONT" -title "Remote" ) &
> 
> Xterm configuration options may be put to ~/.Xresources, e.g.
> 
> xterm*VT100.faceName: ...
> 
> I am curious if there are actual advantages of usage a wrapper script
> instead of xresources.

  For me, being able to select or change a font based on an environment
  variable is very convenient.

  The script I included is simplified because I didn't want the post to
  get too long.  My production version has other conveniences:

# Don't override COLUMNS and LINES if already set; when my eyes are
# tired, I use an xterm with characters two pixels larger:
##  FONT=xft:Cascadia:pixelsize=22:bold LINES=35 xt

: ${COLUMNS=80}
: ${LINES=40}

  I can check a font and set LINES, COLUMNS, or geometry on the fly without
  having to mess with any configuration options.

-- 
Karl Vogel  I don't speak for the USAF or my company

Tent poles are not for pole dancing.  Please find
alternative ways to disappoint your father.  --seen on boredpanda.com



Re: Disk error?

2023-08-21 Thread Tim Woodall

On Wed, 24 Aug 2022, Tim Woodall wrote:


I got this error while installing build-essential

Preparing to unpack .../03-libperl5.34_5.34.0-5_arm64.deb ...
Unpacking libperl5.34:arm64 (5.34.0-5) ...
dpkg-deb (subprocess): decompressing archive 
'/tmp/apt-dpkg-install-zqY3js/03-libperl5.34_5.34.0-5_arm64.deb' 
(size=4015516) member 'data.tar': lzma error: compressed data is corrupt

dpkg-deb: error:  subprocess returned error exit status 2
dpkg: error processing archive 
/tmp/apt-dpkg-install-zqY3js/03-libperl5.34_5.34.0-5_arm64.deb (--unpack):
cannot copy extracted data for 
'./usr/lib/aarch64-linux-gnu/libperl.so.5.34.0' to 
'/usr/lib/aarch64-linux-gnu/libperl.so.5.34.0.dpkg-new': unexpected end of 
file or stream


Am I right that this must be a local error - apt will have verified the
checksum while downloading the deb? (and it worked on rerunning - the
deb was in acng)

I can find nothing anywhere that suggests anything has gone wrong (other
than this error) but (and I'm sure it's a coincidence) since installing
ACNG (on the same machine) I've been getting a number of errors similar
to things like this where files appear to be corrupted but work on the
next attempt.

There's no SMART errors or anything like that either.

Anyone got any ideas - any logging I should add to try and track down
where the issue might be?

Tim.




Just a FYI, I've been battling this, and errors like this for almost a
year. The last but one kernel upgrade seems to have fixed it. :-)

I've been reverting all the changes I made trying to track it down and,
touch wood, it's not come back.

One of these two upgrades fixed it. (the first doesn't seem plausible)

Start-Date: 2023-08-11  06:25:52
Commandline: apt-get -y upgrade
Upgrade: usbip:amd64 (2.0+5.10.179-3, 2.0+5.10.179-5)
End-Date: 2023-08-11  06:25:53

Start-Date: 2023-08-12  08:16:59
Commandline: apt-get -y dist-upgrade
Install: linux-image-5.10.0-24-amd64:amd64 (5.10.179-5, automatic)
Upgrade: linux-image-amd64:amd64 (5.10.179-3, 5.10.179-5)
End-Date: 2023-08-12  08:23:07

I cannot tell which machine mattered, could be the xen host, the guest
running apt, the guest running apt-cacher-ng or the one running the
squid proxy. (the last two feel impossible given the symptoms above)

The disk was mounted via iscsi on the xen host, so it's not quite as
simple as saying apt got the right file over the network therefore it
must be the guest.

I'm not going to try to reproduce and track down exactly what fixed it.

Tim.