Re: [gentoo-user] How to compress lots of tarballs

2021-09-26 Thread Adam Carter
On Sun, Sep 26, 2021 at 8:57 PM Peter Humphrey 
wrote:

> Hello list,
>
> I have an external USB-3 drive with various system backups. There are 350
> .tar
> files (not .tar.gz etc.), amounting to 2.5TB. I was sure I wouldn't need
> to
> compress them, so I didn't, but now I think I'm going to have to. Is there
> a
> reasonably efficient way to do this?
>

find  -name \*tar -exec zstd -TN {} \;

Where N is the number of cores you want to allocate. zstd -T0 (or just
zstdmt) if you want to use all the available cores. I use zstd for
everything now as it's as good as or better than all the others in the
general case.

Parallel means it uses more than one core, so on a modern machine it is
much faster.


Re: [gentoo-user] Chrome - no system title bar or boarders

2021-09-26 Thread Mark Knecht
On Sun, Sep 26, 2021, 8:19 AM Frank Steinmetzger  wrote:

> Am Thu, Sep 23, 2021 at 09:53:57AM -0700 schrieb Mark Knecht:
>
> > Starting yesterday morning both of my KDE machines no longer show a
> system
> > title bar or border for Chrome, and only Chrome. All other apps are fine.
> > Right clicking the Chrome tab area has a checkbox for 'Use system title
> bar
> > and borders' but it does nothing. Chrome version 94.0.4606.54.
> >
> > Losing the title bar means losing (as far as I know) the ability to pin
> an
> > instance of Chrome to all virtual desktops which I use for browser
> streamed
> > media - YouTube, Netflix, etc.
>
> Not a solution, but a workaround:
> I’ve been using keyboard shortcuts for this kind of function for many
> years.
>
> Super+A = Window on all desktops
> Super+F = Fullscreen
> Super+Shift+F = Toggle window border
> Super+S = Shade window
> Super+T = Window on top
> ...
>
> --
> Grüße | Greetings | Qapla’
> Please do not share anything from, with or about me on any social network.
>
> Guns don’t kill people. It’s those little pieces of lead.
>

Excellent idea. Thanks.

It seems (via Stack Overflow) that this is a Chrome problem but not a
Chromium problem. Being that I sync bookmarks with Chrome across Linux,
Windows and Android it would be a stretch to move to Chromium. I did
determine that Chromium on my Linux machine is fine, and I set Firefox to
load on monitor#3 so I have a solution, but I will test your idea.

Thanks,
Mark

>


Re: [gentoo-user] console scrollback (kernel 5.14)

2021-09-26 Thread Dale
Jorge Almeida wrote:
> On Sun, Sep 26, 2021 at 6:24 PM antlists  wrote:
> Hello, Wol and Dale
>> When you rebuild it, get a surge protector and then put a UPS behind
>> that ... snag is that's all extra expense :-(
>>
> Surge protectors: I googled it and mostly got bad reviews. Do they
> _really_work?  What would you recommend? It probably should be
> something amazon-purchasable! Availability in my country is probably
> limited (and overpriced to boot, I bet).
>
> UPS: never gave it serious thought, I had the impression there was too
> much unclear stuff: for example, is it noisy (does it need a fan)? If
> (when) some component needs replacement will I know it before
> disaster? And does the replacement require a "qualified technician"? (
> Dale's description is not very reassuring!)
>
> Note that my lightning problem happened at night with both computer
> and monitor powered down (but still connected to a wall outlet through
> an interrupted extension; hence the "not-so-smart" self-qualifying...)
>
> Thanks for your suggestions
>
> Jorge
>
>

I had lightening strike right down the road, about 1,000 feet as a bird
flies.  It took out some stuff at my neighbors, including a freezer
which died a month later.  It even blew light bulbs, I mean literally
blew them.  They exploded and glass went all over the room.  I suggested
surge protection for their computer, TV and such a while before that. 
Even with a virtually direct hit, the surge protectors kept working. 
Not long after that, they wanted a UPS for their computer but also
wanted one for the TV, since the dish box takes a while to reload after
the power blinks.  So I helped them pick a fair sized UPS for the puter
and a smaller one for the TV.  The puter runs long enough to shutdown
normally and the TV is protected for those little blinks in power that
last just long enough to reset everything. 

One way to pick a decent surge device, look at the warranty.  If it
includes paying for items plugged in, then you're off to a good start at
least.  I just try to get as high a joule rating as I can.  The reason
for that, they can absorb more than one hit and still protect.  While
one large hit can disable protection, it can take out hundreds of
smaller hits and still work.  It all comes down to the quality of the
MOVs and the design of the protector. 

If you use Amazon: APC, Belkin and Tripp Lite are some brands I've heard
or seen are good.  I've used a couple of those brands myself.  I've
always heard that the Monster brand is also good but a bit pricey.  When
I researched them long ago, they are some heavy duty built products so
if a person has some serious power problems, they may be well worth the
expense.  I bought some on ebay that were Etekcity brand but it seems
they no longer make them.  I bought some that had a little over 5,000
joules of protection.  The only thing I didn't like, if power fails, it
stays off.  It doesn't have a hardware switch but a circuit switch that
resets on power loss.  That can be a good thing in some situations but I
don't like it. They are good protectors tho. 

Hope that info helps.  Also hope you can find something to prevent
future problems. 

Dale

:-)  :-) 





Re: [gentoo-user] console scrollback (kernel 5.14)

2021-09-26 Thread Wols Lists

On 26/09/2021 22:22, Jorge Almeida wrote:

On Sun, Sep 26, 2021 at 6:24 PM antlists  wrote:



Hello, Wol and Dale

When you rebuild it, get a surge protector and then put a UPS behind
that ... snag is that's all extra expense :-(



Surge protectors: I googled it and mostly got bad reviews. Do they
_really_work?  What would you recommend? It probably should be
something amazon-purchasable! Availability in my country is probably
limited (and overpriced to boot, I bet).


Surge protectors are tricky. In the UK, our power supply is pretty clean 
so they're (almost) a waste of time. They should have a status on them, 
usually they're good for one shock and that's it. The big danger in many 
places is a lightning hit on overhead power lines. And if it's a storm 
you can have several hits in quick succession which will overwhelm the 
protector ...


UPS: never gave it serious thought, I had the impression there was too
much unclear stuff: for example, is it noisy (does it need a fan)? If
(when) some component needs replacement will I know it before
disaster? And does the replacement require a "qualified technician"? (
Dale's description is not very reassuring!)


Again, you need a decent unit. And they're mostly a lot cheaper than a 
computer, so if they take the hit rather than your computer you're quids 
in whatever. But even if they're a not-very-good unit, if your local 
power is crappy they should clean it up and protect your computer to 
some extent.


Note that my lightning problem happened at night with both computer
and monitor powered down (but still connected to a wall outlet through
an interrupted extension; hence the "not-so-smart" self-qualifying...)

The problem is, I'm in an area where the protection these things provide 
is pretty redundant - I'd probably be fine without them. If you need 
them, as I said the danger is they're overwhelmed right at the start and 
then your kit gets damaged along with the surge protector and UPS ...


Cheers.
Wol



Re: [gentoo-user] console scrollback (kernel 5.14)

2021-09-26 Thread Jorge Almeida
On Sun, Sep 26, 2021 at 6:24 PM antlists  wrote:
>
Hello, Wol and Dale
> When you rebuild it, get a surge protector and then put a UPS behind
> that ... snag is that's all extra expense :-(
>

Surge protectors: I googled it and mostly got bad reviews. Do they
_really_work?  What would you recommend? It probably should be
something amazon-purchasable! Availability in my country is probably
limited (and overpriced to boot, I bet).

UPS: never gave it serious thought, I had the impression there was too
much unclear stuff: for example, is it noisy (does it need a fan)? If
(when) some component needs replacement will I know it before
disaster? And does the replacement require a "qualified technician"? (
Dale's description is not very reassuring!)

Note that my lightning problem happened at night with both computer
and monitor powered down (but still connected to a wall outlet through
an interrupted extension; hence the "not-so-smart" self-qualifying...)

Thanks for your suggestions

Jorge



Re: [gentoo-user] console scrollback (kernel 5.14)

2021-09-26 Thread Dale
antlists wrote:
> On 26/09/2021 13:36, Alan Mackenzie wrote:
>>> Sure enough, the patch was succesful. Unfortunately, I cannot test it,
>>> because my computer is out of luck (big thunderstorm, crappy power
>>> provider, not-so-smart owner).
>
>> I'm sorry to hear it.  I'm sure you've done it already, but get a decent
>> backup from that machine somehow while it is still even partly working.
>>
> Sounds like the drive is fine, but of course the question is "for how
> long? ..."
>
> When you rebuild it, get a surge protector and then put a UPS behind
> that ... snag is that's all extra expense :-(
>
> Cheers,
> Wol
>
>


I agree with that advise.  When I built my first system, I bought a UPS
a couple months later.  While most UPS's have a lot of surge protection
built in, I do have additional surge protection at the wall plug and I
also have a whole house surge protector in the breaker box as well.  I
make sure the light is green often, mostly check after a bad storm.
Having protection against momentary drops in either voltage or just a
outright outage for a few seconds or longer gives a lot of protection. 
File systems like to be unmounted and power failures are not good.  Most
file systems are good at recovering from problems but it does have risk.

After buying a UPS and other protections, I've had very few problems
that come from power issues.  The biggest problem I have is the
batteries in the UPS going bad and me not knowing it, even tho the UPS
is supposed to alert me of that.  Most computer power supplies can
handle a lot but having that protection outside the computer is best. 
Often, it is cheaper than a computer too.

If I had to pick one thing to protect my computer, it would be a UPS. 
It protects from most all the problems a computer can have with power. 
Protects against surges, brownouts and complete loss of power. 
Additional protection adds more protection but a UPS is a really good
start.  Even a small one that can only run a few minutes offers a lot. 

Just something to think on. 

Dale

:-)  :-) 

P. S.  I have a CyberPower UPS.  There are a lot of good brands out
there tho. 



Re: [gentoo-user] How to compress lots of tarballs

2021-09-26 Thread antlists

On 26/09/2021 16:38, Peter Humphrey wrote:

Or, I could connect a second USB-3 drive to a different interface, then read
from one and write to the other, with or without the SATA between.


If you've got a second drive, consider changing your strategy ...

First of all, you want eSATA or USB3 for the speed ...

Format the drive with lvm, and create an lv-partition big enough to hold 
your backup, but not much more.


Work out the syntax for an in-place rsync backup (sorry I haven't done 
it, I can't help.


Every time you make a backup, snapshot the lv before you do it.

That way, the inplace rsync will only actually write data that has 
changed. Your backup volume will grow at an incremental rate, but you'll 
actually have full backups.


The only downside is if the backup gets damaged, it will corrupt every 
copy of the files affected at one stroke, bit if you are using said 
second drive, you can repurpose your first drive if you can back up 
those tar files to dvd or whatever (or throw them away if they've served 
their purpose, but I guess they haven't ...). And by alternating the 
backup drives, you've got two distinct copies.


Cheers,
Wol



Re: [gentoo-user] console scrollback (kernel 5.14)

2021-09-26 Thread antlists

On 26/09/2021 13:36, Alan Mackenzie wrote:

Sure enough, the patch was succesful. Unfortunately, I cannot test it,
because my computer is out of luck (big thunderstorm, crappy power
provider, not-so-smart owner).



I'm sorry to hear it.  I'm sure you've done it already, but get a decent
backup from that machine somehow while it is still even partly working.

Sounds like the drive is fine, but of course the question is "for how 
long? ..."


When you rebuild it, get a surge protector and then put a UPS behind 
that ... snag is that's all extra expense :-(


Cheers,
Wol



Re: [gentoo-user] How to compress lots of tarballs

2021-09-26 Thread Peter Humphrey
On Sunday, 26 September 2021 13:25:24 BST Ramon Fischer wrote:
> Addendum:
> 
> To complete the list. Here the parallel implementation of "lzip":
> 
> "plzip": https://www.nongnu.org/lzip/plzip.html
> 
> -Ramon
> 
> On 26/09/2021 14:23, Ramon Fischer wrote:
> > In addition to this, you may want to use the parallel implementations
> > of "gzip", "xz", "bzip2" or the new "zstd" (zstandard), which are
> > "pigz"[1], "pixz"[2], "pbzip2"[3], or "zstmt" (within package
> > "app-arch/zstd")[4] in order to increase performance:
> > 
> >$ cd 
> >$ for tar_archive in *.tar; do pixz "${tar_archive}"; done
> > 
> > -Ramon
> > 
> > [1]
> > * https://www.zlib.net/pigz/
> > 
> > [2]
> > * https://github.com/vasi/pixz
> > 
> > [3]
> > * https://launchpad.net/pbzip2
> > * http://compression.ca/pbzip2/
> > 
> > [4]
> > * https://facebook.github.io/zstd/
> > 
> > On 26/09/2021 13:36, Simon Thelen wrote:
> >> [2021-09-26 11:57] Peter Humphrey 
> >> 
> >>> part   text/plain 382
> >>> Hello list,
> >> 
> >> Hi,
> >> 
> >>> I have an external USB-3 drive with various system backups. There
> >>> are 350 .tar
> >>> files (not .tar.gz etc.), amounting to 2.5TB. I was sure I wouldn't
> >>> need to
> >>> compress them, so I didn't, but now I think I'm going to have to. Is
> >>> there a
> >>> reasonably efficient way to do this? I have 500GB spare space on
> >>> /dev/sda, and
> >>> the machine runs constantly.
> >> 
> >> Pick your favorite of gzip, bzip2, xz or lzip (I recommend lzip) and
> >> then:
> >> mount USB-3 /mnt; cd /mnt; lzip *
> >> 
> >> The archiver you chose will compress the file and add the appropriate
> >> extension all on its own and tar will use that (and the file magic) to
> >> find the appropriate decompresser when you want to extract files later
> >> (you can use `tar tf' to test if you want).

Thank you both. Now, as it's a single USB-3 drive, what advantage would a 
parallel implementation confer? I assume I'd be better compressing from 
external to SATA, then writing back, or is that wrong?

Or, I could connect a second USB-3 drive to a different interface, then read 
from one and write to the other, with or without the SATA between.

-- 
Regards,
Peter.






Re: [gentoo-user] Chrome - no system title bar or boarders

2021-09-26 Thread Frank Steinmetzger
Am Thu, Sep 23, 2021 at 09:53:57AM -0700 schrieb Mark Knecht:

> Starting yesterday morning both of my KDE machines no longer show a system
> title bar or border for Chrome, and only Chrome. All other apps are fine.
> Right clicking the Chrome tab area has a checkbox for 'Use system title bar
> and borders' but it does nothing. Chrome version 94.0.4606.54.
> 
> Losing the title bar means losing (as far as I know) the ability to pin an
> instance of Chrome to all virtual desktops which I use for browser streamed
> media - YouTube, Netflix, etc.

Not a solution, but a workaround:
I’ve been using keyboard shortcuts for this kind of function for many years.

Super+A = Window on all desktops
Super+F = Fullscreen
Super+Shift+F = Toggle window border
Super+S = Shade window
Super+T = Window on top
...

-- 
Grüße | Greetings | Qapla’
Please do not share anything from, with or about me on any social network.

Guns don’t kill people. It’s those little pieces of lead.


signature.asc
Description: PGP signature


Re: [gentoo-user] How to control 'configure' options for slrn?

2021-09-26 Thread Anna “CyberTailor”
net-nntp/slrn is a proxy-maint package so feel free to either contact
its maintainer or submit improvements by yourself.

https://wiki.gentoo.org/wiki/Project:Proxy_Maintainers/User_Guide#How_to_submit_package_updates



Re: [gentoo-user] console scrollback (kernel 5.14)

2021-09-26 Thread Alan Mackenzie
Hello, Jorge.

On Fri, Sep 24, 2021 at 23:44:51 +, Jorge Almeida wrote:
> On Fri, Sep 24, 2021 at 5:29 PM Alan Mackenzie  wrote:

> Hello, Alan

> > > $ patch -p0 <../patch_for_5.14.diff
> > > patching file ./drivers/tty/vt/vt.c
> > > Hunk #1 FAILED at 3208.
> > > 1 out of 1 hunk FAILED -- saving rejects to file ./drivers/tty/vt/vt.c.rej


> > attached.  Please start again from a gentoo-sources without any previous
> > traces of the scrollback patches, and apply that patch.  _Surely_ it
> > should work this time.

> Sure enough, the patch was succesful. Unfortunately, I cannot test it,
> because my computer is out of luck (big thunderstorm, crappy power
> provider, not-so-smart owner).

I'm sorry to hear it.  I'm sure you've done it already, but get a decent
backup from that machine somehow while it is still even partly working.

> I can ssh into it and it all seems fine, but VT's other than tty1 go
> dim after 1 or 2 seconds (showing the greeting) and then go black; I
> can login blindly!  I'm sure it has nothing to do with the patch,
> since I also booted the former kernel (for which the previous patch
> has been applied with success as expected) and it happens the same.
> Damaged UPS or MO, maybe...  Anyway, I'll try again when I manage to
> fix or replace the computer and I'll report then.

OK, thanks!

> Thanks,

> Jorge Almeida

> P.S. I just noticed you mention gentoo-sources. I use the vanilla
> kernel from kernel.org. Could that be a problem?

Highly unlikely.  I doubt very much there's any difference in the tty
code between vanilla and gentoo-sources, but even so, I'm now basing my
patches on a Linux repository cloned from their central repository
server.

-- 
Alan Mackenzie (Nuremberg, Germany).



Re: [gentoo-user] How to compress lots of tarballs

2021-09-26 Thread Ramon Fischer

Addendum:

To complete the list. Here the parallel implementation of "lzip":

   "plzip": https://www.nongnu.org/lzip/plzip.html

-Ramon

On 26/09/2021 14:23, Ramon Fischer wrote:
In addition to this, you may want to use the parallel implementations 
of "gzip", "xz", "bzip2" or the new "zstd" (zstandard), which are 
"pigz"[1], "pixz"[2], "pbzip2"[3], or "zstmt" (within package 
"app-arch/zstd")[4] in order to increase performance:


   $ cd 
   $ for tar_archive in *.tar; do pixz "${tar_archive}"; done

-Ramon

[1]
* https://www.zlib.net/pigz/

[2]
* https://github.com/vasi/pixz

[3]
* https://launchpad.net/pbzip2
* http://compression.ca/pbzip2/

[4]
* https://facebook.github.io/zstd/


On 26/09/2021 13:36, Simon Thelen wrote:

[2021-09-26 11:57] Peter Humphrey 

part   text/plain 382
Hello list,

Hi,

I have an external USB-3 drive with various system backups. There 
are 350 .tar
files (not .tar.gz etc.), amounting to 2.5TB. I was sure I wouldn't 
need to
compress them, so I didn't, but now I think I'm going to have to. Is 
there a
reasonably efficient way to do this? I have 500GB spare space on 
/dev/sda, and

the machine runs constantly.

Pick your favorite of gzip, bzip2, xz or lzip (I recommend lzip) and
then:
mount USB-3 /mnt; cd /mnt; lzip *

The archiver you chose will compress the file and add the appropriate
extension all on its own and tar will use that (and the file magic) to
find the appropriate decompresser when you want to extract files later
(you can use `tar tf' to test if you want).

--
Simon Thelen





--
GPG public key: 5983 98DA 5F4D A464 38FD CF87 155B E264 13E6 99BF




OpenPGP_signature
Description: OpenPGP digital signature


Re: [gentoo-user] How to compress lots of tarballs

2021-09-26 Thread Ramon Fischer
In addition to this, you may want to use the parallel implementations of 
"gzip", "xz", "bzip2" or the new "zstd" (zstandard), which are 
"pigz"[1], "pixz"[2], "pbzip2"[3], or "zstmt" (within package 
"app-arch/zstd")[4] in order to increase performance:


   $ cd 
   $ for tar_archive in *.tar; do pixz "${tar_archive}"; done

-Ramon

[1]
* https://www.zlib.net/pigz/

[2]
* https://github.com/vasi/pixz

[3]
* https://launchpad.net/pbzip2
* http://compression.ca/pbzip2/

[4]
* https://facebook.github.io/zstd/


On 26/09/2021 13:36, Simon Thelen wrote:

[2021-09-26 11:57] Peter Humphrey 

part   text/plain 382
Hello list,

Hi,


I have an external USB-3 drive with various system backups. There are 350 .tar
files (not .tar.gz etc.), amounting to 2.5TB. I was sure I wouldn't need to
compress them, so I didn't, but now I think I'm going to have to. Is there a
reasonably efficient way to do this? I have 500GB spare space on /dev/sda, and
the machine runs constantly.

Pick your favorite of gzip, bzip2, xz or lzip (I recommend lzip) and
then:
mount USB-3 /mnt; cd /mnt; lzip *

The archiver you chose will compress the file and add the appropriate
extension all on its own and tar will use that (and the file magic) to
find the appropriate decompresser when you want to extract files later
(you can use `tar tf' to test if you want).

--
Simon Thelen



--
GPG public key: 5983 98DA 5F4D A464 38FD CF87 155B E264 13E6 99BF




OpenPGP_signature
Description: OpenPGP digital signature


Re: [gentoo-user] How to compress lots of tarballs

2021-09-26 Thread Simon Thelen
[2021-09-26 11:57] Peter Humphrey 
> part   text/plain 382
> Hello list,
Hi,

> I have an external USB-3 drive with various system backups. There are 350 .tar
> files (not .tar.gz etc.), amounting to 2.5TB. I was sure I wouldn't need to
> compress them, so I didn't, but now I think I'm going to have to. Is there a
> reasonably efficient way to do this? I have 500GB spare space on /dev/sda, and
> the machine runs constantly.
Pick your favorite of gzip, bzip2, xz or lzip (I recommend lzip) and
then:
mount USB-3 /mnt; cd /mnt; lzip *

The archiver you chose will compress the file and add the appropriate
extension all on its own and tar will use that (and the file magic) to
find the appropriate decompresser when you want to extract files later
(you can use `tar tf' to test if you want).

--
Simon Thelen



[gentoo-user] How to compress lots of tarballs

2021-09-26 Thread Peter Humphrey
Hello list,

I have an external USB-3 drive with various system backups. There are 350 .tar 
files (not .tar.gz etc.), amounting to 2.5TB. I was sure I wouldn't need to 
compress them, so I didn't, but now I think I'm going to have to. Is there a 
reasonably efficient way to do this? I have 500GB spare space on /dev/sda, and 
the machine runs constantly.

-- 
Regards,
Peter.