Re: [gentoo-user] LVM and moving things around

2022-04-02 Thread Bill Kenworthy
Rsync has a bwlimit argument which helps here. Note that rsync copies the whole 
file on what it considers local storage (which can be mounted network shares) 
... this can cause a real slowdown.
BillK


On 3 April 2022 3:51:22 am AWST, Dale  wrote:
>Dale wrote:
>> Howdy,
>>
>> I sort of started this on another thread but wanted to nail a few things
>> down first.  I'm wanting to encrypt some parts of my data on /home. 
>> <<< SNIP >>>
>>
>
>
>OK.  I looked into another hard drive but budget right now says no.  So,
>I went back to plan A.  I managed to remove the 6TB drive and it is now
>on it's own LVM thingy.  I've moved enough over to mount it and use it
>as my /home directory.  I'm in the process of copying other non-critical
>files over so I can move things around some more.  Anyway, I'm using
>rsync to copy things over.  It works great, can restart if I need to
>stop it etc etc but it has one thing that annoys me.  While it is
>copying things over, it makes my system slow to respond.  Once the cache
>in memory gets pretty full, it takes a while to switch desktops or for
>programs to show up when I do get to a desktop.  Seamonkey seems to be
>hit hardest with this.  I tried putting ionice in front of the command
>but it is still slow.  My CPU cores are a bit busy but nowhere near
>100%.  Most cores are switching from almost idle to around 40% at their
>peak.  If I added them all up, I'd say the total would average around
>10%, 20% at the very most.  I've got swapiness set pretty low and it
>isn't using swap according to gkrellm.
>
>Anyone have a idea how to make rsync not cause this problem?  Is there
>something besides ionice I need to use? 
>
>Thanks.
>
>Dale
>
>:-)  :-) 
>

-- 
Sent from my Android device with K-9 Mail. Please excuse my brevity.

Re: [gentoo-user] Java wants cups?

2022-04-02 Thread Neil Bothwick
On Sat, 2 Apr 2022 12:06:22 -0400, Walter Dnes wrote:

>   You can't.  cups is more unwanted/unnecessary bloatware weasling its
> way in just like systemd and sphinx.  I also have cups as a requirement
> for app-text/ghostscript-gpl as well as for google-chrome, which I use
> 99% for Netflix.  Pale Moon is my "daily driver" browser.

google-chrome is Google's binary version, o Gentoo devs have no control
over the dependencies. With chromium, there is a cups USE flag, but you
have to put up with long compile times.


-- 
Neil Bothwick

Oops. My brain just hit a bad sector.


pgpI61VQEbB0G.pgp
Description: OpenPGP digital signature


Re: [gentoo-user] systemd DNS does not resolve 'local' addresses

2022-04-02 Thread Rich Freeman
On Sat, Apr 2, 2022 at 5:22 PM Alexander Puchmayr
 wrote:
>
> ## portage.local maps to 192.168.1.6
> ## DNS-Server provided via DHCP is 192.168.1.1 (openwrt-router)
>
> buildhost-desktop ~ # ping portage.local
> ping: portage.local: Temporary failure in name resolution
>
>Protocols: +LLMNR +mDNS -DNSOverTLS DNSSEC=no/unsupported

So, I haven't really used resolved much, but I see you have mDNS
enabled.  Does the portage.local host broadcast itself using mDNS?  If
it is running Gentoo then the answer is no unless you have it running
avahi, which is usually not installed by default.  Many
desktop-oriented linux distros provide avahi by default.

A resolver that supports mDNS will not use DNS to resolve the .local
TLD, in accordance with RFC 6762.

If you intend to use .local for DNS and not mDNS then you probably do
not want mDNS enabled.  You can either disable it for resolved
globally by setting MulticastDNS=no in the [Resolve] section of
/etc/systemd/resolved.conf, or by disabling it for a specific network
in your network manager (the setting has the same name for
systemd-networkd).

This is one of those reasons why it is best to not use the .local TLD
for DNS on your home network.  You can disable it on systemd-resolved,
but some IoT device in your home might have it permanently enabled.
It allows a form of name resolution to work without any DNS server as
devices discover and broadcast on their own.

-- 
Rich



[gentoo-user] systemd DNS does not resolve 'local' addresses

2022-04-02 Thread Alexander Puchmayr
Hi,

After upgrading systemd from 249.9 to 249.11, some of my host names defined in 
my router's host file do no longer resolve, but nslookup can still resolve 
them properly. With 249.9 everything works fine, and all other machines which 
did not yet get the update work fine.

Any ideas?

Thanks,
  Alex

## portage.local maps to 192.168.1.6
## DNS-Server provided via DHCP is 192.168.1.1 (openwrt-router)

buildhost-desktop ~ # ping portage
ping: portage: Name or service not known

buildhost-desktop ~ # ping portage.local
ping: portage.local: Temporary failure in name resolution

buildhost-desktop ~ # host portage
portage has address 192.168.1.6

buildhost-desktop ~ # nslookup portage
Server: 192.168.1.1
Address:192.168.1.1#53

Name:   portage
Address: 192.168.1.6

buildhost-desktop ~ # dig portage
; <<>> DiG 9.16.27 <<>> portage
;; global options: +cmd
;; Got answer:
;; ->>HEADER<<- opcode: QUERY, status: NOERROR, id: 40446
;; flags: qr aa rd ra; QUERY: 1, ANSWER: 1, AUTHORITY: 0, ADDITIONAL: 1

;; OPT PSEUDOSECTION:
; EDNS: version: 0, flags:; udp: 4096
;; QUESTION SECTION:
;portage.   IN  A

;; ANSWER SECTION:
portage.0   IN  A   192.168.1.6

;; Query time: 3 msec
;; SERVER: 192.168.1.1#53(192.168.1.1)
;; WHEN: Sat Apr 02 22:49:50 CEST 2022
;; MSG SIZE  rcvd: 52

buildhost-desktop ~ # resolvectl 
Global
   Protocols: +LLMNR +mDNS -DNSOverTLS DNSSEC=no/unsupported
resolv.conf mode: uplink
Fallback DNS Servers: 1.1.1.1#cloudflare-dns.com 8.8.8.8#dns.google
  1.0.0.1#cloudflare-dns.com 8.8.4.4#dns.google
  2606:4700:4700::#cloudflare-dns.com
  2001:4860:4860::#dns.google
  2606:4700:4700::1001#cloudflare-dns.com
  2001:4860:4860::8844#dns.google

Link 2 (enp3s0)
Current Scopes: DNS LLMNR/IPv4 LLMNR/IPv6
 Protocols: +DefaultRoute +LLMNR -mDNS -DNSOverTLS DNSSEC=no/
unsupported
Current DNS Server: 192.168.1.1
   DNS Servers: 192.168.1.1
buildhost-desktop ~ #






Re: [gentoo-user] LVM and moving things around

2022-04-02 Thread Dale
Rich Freeman wrote:
> On Mon, Mar 28, 2022 at 9:32 AM Dale  wrote:
>> Time for plan B.  I expect a drive purchase soon.  $$$  Heck, it would
>> be faster to do backups, redo the whole thing and copy it all back.  I
>> could copy it in chunks.  First chunk gets me running and then copy
>> remaining stuff.  Hm.
> If you start having large volumes of data it probably makes sense to
> split that off and handle it differently.  I am storing my large stuff
> on lizardfs for this reason (though if starting today I'd take another
> look at moosefs or ceph).  When you don't care so much about IOPS, or
> efficiency of small files, there are a lot of constraints you can
> avoid with ext4.  Distributed filesystems also have scaling benefits
> because you don't have to try to cram your 10 hard drives into a
> single host.
>
> Ext4 can be grown online, but it can't be shrunk online.  When you
> start getting to large filesystems you need to consider
> backup/restoration time and if you want availability you really want
> solutions that feature RAID and which can do all the operations you
> need online.  Simply having a backup might not be satisfactory if your
> backup requires dozens of hours to restore, except as a last resort.
>

That is one of the reasons I started using LVM.  At the time, the
software you mention, except RAID, either wasn't wide spread or wasn't
stable enough for general use.  One day, I just may switch to the new
ways but I still have trouble remembering how to deal with LVM.  I may
try to plan to buy two hard drives, maybe the price on 10TB drives will
drop, so I can learn the new way.  Most of what I have are large files. 
At least the things that I'm going to have on the new setup anyway. 

My current plan, 6TB drive is a regular /home on LVM, already done. 
Once I get space freed up, I'm going to remove one 8TB drive, reset LVM
on it, add encryption, still trying to figure out the steps on that, and
then add the 2nd 8TB drive to it.  I'll have 15TBs or so of space just
for large files and it's encrypted.  It will mount somewhere within
/home.  I'll just have to unlock and mount it manually.

I'm getting there.  Trying to get rsync to cooperate at the moment.

Dale

:-)  :-) 



Re: [gentoo-user] LVM and moving things around

2022-04-02 Thread Dale
Dale wrote:
> Howdy,
>
> I sort of started this on another thread but wanted to nail a few things
> down first.  I'm wanting to encrypt some parts of my data on /home. 
> <<< SNIP >>>
>


OK.  I looked into another hard drive but budget right now says no.  So,
I went back to plan A.  I managed to remove the 6TB drive and it is now
on it's own LVM thingy.  I've moved enough over to mount it and use it
as my /home directory.  I'm in the process of copying other non-critical
files over so I can move things around some more.  Anyway, I'm using
rsync to copy things over.  It works great, can restart if I need to
stop it etc etc but it has one thing that annoys me.  While it is
copying things over, it makes my system slow to respond.  Once the cache
in memory gets pretty full, it takes a while to switch desktops or for
programs to show up when I do get to a desktop.  Seamonkey seems to be
hit hardest with this.  I tried putting ionice in front of the command
but it is still slow.  My CPU cores are a bit busy but nowhere near
100%.  Most cores are switching from almost idle to around 40% at their
peak.  If I added them all up, I'd say the total would average around
10%, 20% at the very most.  I've got swapiness set pretty low and it
isn't using swap according to gkrellm.

Anyone have a idea how to make rsync not cause this problem?  Is there
something besides ionice I need to use? 

Thanks.

Dale

:-)  :-) 



[gentoo-user] Gnumeric tabs very faint fonts on white background

2022-04-02 Thread Walter Dnes
  Sometimes I swear developers want fonts to be foreground #FEFEFE on
background #FF.  After a recent update Gnumeric spreadsheet tabs at
the bottom have gotten very faint.  They're faint but tolerable when I
first open a spreadsheet.  But after right-clicking a graph to get at
"Properties", it goes super-faint.  See attached screen-snippet.  Can
you read the names of all 4 tabs?  I don't see any knobs to turn in
properties.  Any ideas?  I'm running plain ICEWM; no DE.

-- 
Walter Dnes 
I don't run "desktop environments"; I run useful applications


Re: [gentoo-user] Java wants cups?

2022-04-02 Thread Walter Dnes
On Sat, Apr 02, 2022 at 09:32:08AM +0200, Matthias Hanft wrote
> Hi,
> 
> after "emerge --sync" today, and "emerge -auv @world", I got the
> message:
> 
> emerge: there are no ebuilds built with USE flags to satisfy 
> ">=app-text/ghostscript-gpl-9.09[cups]".
> !!! One of the following packages is required to complete your request:
> - app-text/ghostscript-gpl-9.55.0-r1::gentoo (Change USE: +cups)
> (dependency required by 
> "net-print/cups-filters-1.28.10-r3::gentoo[postscript]" [ebuild])
> (dependency required by "net-print/cups-2.3.3_p2-r3::gentoo" [ebuild])
> (dependency required by "dev-java/openjdk-11.0.14_p9-r1::gentoo" [ebuild])
> (dependency required by "virtual/jdk-11-r2::gentoo" [ebuild])
> (dependency required by "@selected" [set])
> (dependency required by "@world" [argument])
> 
> But:
> 
> - the cups USE flag is globally disabled (and nowhere locally
>   enabled);
> - since this is a virtual server, no printers at all are used/
>   connected/configured.
> 
> I could run emerge with USE="cups", but in this case ~30 new
> packages would be installed (many, many "libXsomething" among
> them). And I would have a completely useless printing system.
> 
> How do I get rid of all those cups things?

  You can't.  cups is more unwanted/unnecessary bloatware weasling its
way in just like systemd and sphinx.  I also have cups as a requirement
for app-text/ghostscript-gpl as well as for google-chrome, which I use
99% for Netflix.  Pale Moon is my "daily driver" browser.

-- 
Walter Dnes 
I don't run "desktop environments"; I run useful applications



Re: [gentoo-user] Java wants cups?

2022-04-02 Thread Michael
On Saturday, 2 April 2022 08:32:08 BST Matthias Hanft wrote:
> Hi,
> 
> after "emerge --sync" today, and "emerge -auv @world", I got the
> message:
> 
> emerge: there are no ebuilds built with USE flags to satisfy
> ">=app-text/ghostscript-gpl-9.09[cups]". !!! One of the following packages
> is required to complete your request: -
> app-text/ghostscript-gpl-9.55.0-r1::gentoo (Change USE: +cups)
> (dependency required by
> "net-print/cups-filters-1.28.10-r3::gentoo[postscript]" [ebuild])
> (dependency required by "net-print/cups-2.3.3_p2-r3::gentoo" [ebuild])
> (dependency required by "dev-java/openjdk-11.0.14_p9-r1::gentoo" [ebuild])
> (dependency required by "virtual/jdk-11-r2::gentoo" [ebuild])
> (dependency required by "@selected" [set])
> (dependency required by "@world" [argument])
> 
> But:
> 
> - the cups USE flag is globally disabled (and nowhere locally
>   enabled);
> - since this is a virtual server, no printers at all are used/
>   connected/configured.
> 
> I could run emerge with USE="cups", but in this case ~30 new
> packages would be installed (many, many "libXsomething" among
> them). And I would have a completely useless printing system.
> 
> How do I get rid of all those cups things?
> 
> Thanks,
> 
> -Matt

Did you try running emerge with '--tree' to see the dependency tree with all 
its dependencies?  (The option '--deep' may show more dependencies too).

I have cups set here but don't have java.  This is what I get when I set 
USE="-cups"

~ $ USE="-cups" emerge -upv dev-java/openjdk app-text/ghostscript-gpl

These are the packages that would be merged, in order:

Calculating dependencies... done!
[ebuild  N ] app-eselect/eselect-java-0.4.3::gentoo  14 KiB
[ebuild  N ] app-crypt/p11-kit-0.23.22::gentoo  USE="asn1 libffi trust -
debug -systemd" ABI_X86="(64) -32 (-x32)" 811 KiB
[ebuild  N ] sys-apps/baselayout-java-0.1.0-r1::gentoo  71 KiB
[ebuild  N ] dev-java/java-config-2.3.1:2::gentoo  USE="-test" 
PYTHON_TARGETS="python3_9 -python3_8 -python3_10" 26 KiB
[ebuild  N ] dev-java/openjdk-bin-17.0.2_p8:17::gentoo  USE="alsa -cups (-
gentoo-vm) -headless-awt (-selinux) -source" 187,541 KiB
[ebuild  N ] dev-java/openjdk-17.0.2_p8:17::gentoo  USE="alsa jbootstrap 
(system-bootstrap) (-big-endian) -cups -debug -doc -examples (-gentoo-vm) -
headless-awt (-javafx) (-selinux) -source -systemtap" 102,288 KiB

which doesn't appear to disagree with the "-cups" flag.

signature.asc
Description: This is a digitally signed message part.


[gentoo-user] Java wants cups?

2022-04-02 Thread Matthias Hanft
Hi,

after "emerge --sync" today, and "emerge -auv @world", I got the
message:

emerge: there are no ebuilds built with USE flags to satisfy 
">=app-text/ghostscript-gpl-9.09[cups]".
!!! One of the following packages is required to complete your request:
- app-text/ghostscript-gpl-9.55.0-r1::gentoo (Change USE: +cups)
(dependency required by "net-print/cups-filters-1.28.10-r3::gentoo[postscript]" 
[ebuild])
(dependency required by "net-print/cups-2.3.3_p2-r3::gentoo" [ebuild])
(dependency required by "dev-java/openjdk-11.0.14_p9-r1::gentoo" [ebuild])
(dependency required by "virtual/jdk-11-r2::gentoo" [ebuild])
(dependency required by "@selected" [set])
(dependency required by "@world" [argument])

But:

- the cups USE flag is globally disabled (and nowhere locally
  enabled);
- since this is a virtual server, no printers at all are used/
  connected/configured.

I could run emerge with USE="cups", but in this case ~30 new
packages would be installed (many, many "libXsomething" among
them). And I would have a completely useless printing system.

How do I get rid of all those cups things?

Thanks,

-Matt