Re: [gentoo-user] how to prevent ebuild from checking for available space

2024-03-23 Thread Neil Bothwick
On Fri, 22 Mar 2024 16:32:28 -0400, Jack wrote:

> > Why not add more to the ramdisk, assuming it is a tmpfs. If it needs  
> > more
> > than your physical memory, it will use swap, but that won't happen
> > because you only need the extra space.  
> That's actually what I did.  The problem is not how to get enough  
> space, it's how to resume the emerge instead of starting over, once I  
> have added the space.
> 
> It was initially set to 14G (out of 32G RAM) and I added 2G.  I suppose
> I can add another 14G, but that would only leave 4G for the system  
> itself.  I'm not sure how well that would work, but I suppose it's  
> worth a try.

tmpfs only uses the space it needs, so it would appear to the ebuild that
there is plenty of space, but it would only use and extra gig or two of
your RAM.

For me, avoiding tmpfs for big ebuilds is the least hassle, using
package.env.

% cat /etc/portage/package.env/chromium
www-client/chromium disk-tmpdir.conf ...

% cat /etc/portage/env/disk-tmpdir.conf 
PORTAGE_TMPDIR="/mnt/scratch"


-- 
Neil Bothwick

Linux like wigwam. No windows, no gates, Apache inside.


pgpptIaai7a_R.pgp
Description: OpenPGP digital signature


Re: [gentoo-user] how to prevent ebuild from checking for available space

2024-03-22 Thread Neil Bothwick
On Fri, 22 Mar 2024 12:57:34 -0400, Jack wrote:

> In this case, the offending package is dev-lang/rust, but this has 
> happened to me previously with other packages that require a lot of 
> space and time to build.
> 
> The build fails for any reason.  Since it has already progressed over 
> half way through the build, I would like to continue the build instead 
> of starting from scratch.  I fix whatever caused the issue.  In this 
> particular case, it failed for out of space, so I added another G to
> the ramdisk mounted at /var/tmp/portageg.  I issue "ebuild 
> path/to/package.ebuild compile" but it fails immediately because there 
> isn't enough free space.  The problem is that it's checking for enough 
> free space to do the entire build, not just to continue from where it 
> left off.

Why not add more to the ramdisk, assuming it is a tmpfs. If it needs more
than your physical memory, it will use swap, but that won't happen
because you only need the extra space.

I generally avoid this problem by having large packages use a
PORTAGE_TMPDIR on a spinning disk. It may be slightly slower, but that
doesn't really matter on a long compile, not nearly as much as having to
restart it!

> 
> I've done some searching, and found one old forum post which suggests
> to just temporarily remove the space check from the ebuild.
> 
> In this case, that seems to be line 236 of 
> /usr/portage/dev-lang/rust/rust-1.75.0-r1.ebuild, which is 
> "CHECKREQS_DISK_BUILD=${M}M check-reqs_pkg_${EBUILD_PHASE}" the last 
> line withing pre_build_checks().  However, if I comment out that line, 
> and run "ebuild path/to/ebuild manifest" another attempt to compile 
> still gives the same error about not enough space.

Have you tried setting M to a smaller value immediately before that line?


-- 
Neil Bothwick

Religious error: (A)tone, (R)epent, (I)mmolate?


pgpW4vyxIVRbF.pgp
Description: OpenPGP digital signature


Re: [gentoo-user] mailto net-mail/metamail

2023-12-05 Thread Neil Bothwick
On Tue, 5 Dec 2023 18:45:00 -0700, the...@sys-concept.com wrote:

> I think "mailto" used to be part of the package net-mail/metamail
> But I think is long time gone.
> 
> What is the replacement?
> I just need to send myself an email from the command line to test
> postfix.

echo "testing" | mail -s "test mail" the...@sys-concept.com

It's in mail-client/mailx


-- 
Neil Bothwick

Hm..what's this red button fo|'\xBB.'NO CARRIER


pgpSH6s3bNhec.pgp
Description: OpenPGP digital signature


Re: [gentoo-user] Emerge -K ignoring new packages

2023-11-21 Thread Neil Bothwick
On Tue, 21 Nov 2023 03:24:20 +, Peter Humphrey wrote:

> > Default location for binary packages is /var/cache/binpkgs/  
> 
> Oh? When did that change?

It may not have on your system. To check the location, run

portageq pkgdir

-- 
Neil Bothwick


pgpvxJd2Rwpxc.pgp
Description: OpenPGP digital signature


Re: [gentoo-user] tmpfs filling up with nothing

2023-11-13 Thread Neil Bothwick
On Mon, 13 Nov 2023 15:09:45 +0200, Mart Raudsepp wrote:

> On Wed, 2023-11-08 at 19:08 +0000, Neil Bothwick wrote:
> > On Wed, 8 Nov 2023 16:17:19 +0200, Alan McKinnon wrote:
> >   
> > > On Wed, Nov 8, 2023 at 4:10 PM Neil Bothwick 
> > > wrote:
> > >   
> > > > I have PORTAGE_TMPDIR on /tmp, which is a 24GB tmpfs. Last night,
> > > > an
> > > > update failed with an out of space error. df showed only 440MB
> > > > free
> > > > but du and ndcu both showed well under 1GB in use (including
> > > > hidden
> > > > files). this has happened on the odd occasion in the past and the
> > > > only solution appears to be to reboot. Of course, that means I
> > > > cannot
> > > > provide any more information until it happens again.
> > > > 
> > > > Has anyone else experienced this or, hopefully, resolved it
> > > > without
> > > > rebooting?  
> >   
> > > Hey Neil,
> > > 
> > > Yeah had this a few times. Always turns out to be deleted files
> > > that
> > > something still has a handle on  
> > 
> > Hah! I never thought of that one. I'll try that next time it happens.
> >  
> 
> 
> Another common case is that it runs out of inodes, not space,
> especially if df actually says there is free spaces. Check
> df -i /tmp

It was not inodes, df was showing close to 100% full. The problem was as
Alan suggested, deleted files still locked.


-- 
Neil Bothwick

Dolly Parton-- silicone based life


pgpl0jfV1gxdi.pgp
Description: OpenPGP digital signature


Re: [gentoo-user] tmpfs filling up with nothing

2023-11-09 Thread Neil Bothwick
On Wed, 8 Nov 2023 16:17:19 +0200, Alan McKinnon wrote:

> On Wed, Nov 8, 2023 at 4:10 PM Neil Bothwick  wrote:
> 
> > I have PORTAGE_TMPDIR on /tmp, which is a 24GB tmpfs. Last night, an
> > update failed with an out of space error. df showed only 440MB free
> > but du and ndcu both showed well under 1GB in use (including hidden
> > files). this has happened on the odd occasion in the past and the
> > only solution appears to be to reboot. Of course, that means I cannot
> > provide any more information until it happens again.
> 
> Yeah had this a few times. Always turns out to be deleted files that
> something still has a handle on
> 
> Run this:
> # lsof /tmp | grep deleted
> sddm-help 324615 root   13u   REG   0,32   96  184 /tmp/#184
> (deleted)

That was it. It happened again today, it was my duplicity backup script
filling /tmp. Killing duplicity released the space.


-- 
Neil Bothwick

Sometimes too much to drink is not enough.


pgpMsRwKHPYZ0.pgp
Description: OpenPGP digital signature


Re: [gentoo-user] tmpfs filling up with nothing

2023-11-08 Thread Neil Bothwick
On Wed, 8 Nov 2023 16:17:19 +0200, Alan McKinnon wrote:

> On Wed, Nov 8, 2023 at 4:10 PM Neil Bothwick  wrote:
> 
> > I have PORTAGE_TMPDIR on /tmp, which is a 24GB tmpfs. Last night, an
> > update failed with an out of space error. df showed only 440MB free
> > but du and ndcu both showed well under 1GB in use (including hidden
> > files). this has happened on the odd occasion in the past and the
> > only solution appears to be to reboot. Of course, that means I cannot
> > provide any more information until it happens again.
> >
> > Has anyone else experienced this or, hopefully, resolved it without
> > rebooting?

> Hey Neil,
> 
> Yeah had this a few times. Always turns out to be deleted files that
> something still has a handle on

Hah! I never thought of that one. I'll try that next time it happens.


-- 
Neil Bothwick

Irritable? Who the bloody hell are you calling irritable?


pgpDlfl56l3fK.pgp
Description: OpenPGP digital signature


[gentoo-user] tmpfs filling up with nothing

2023-11-08 Thread Neil Bothwick
I have PORTAGE_TMPDIR on /tmp, which is a 24GB tmpfs. Last night, an
update failed with an out of space error. df showed only 440MB free but
du and ndcu both showed well under 1GB in use (including hidden files).
this has happened on the odd occasion in the past and the only solution
appears to be to reboot. Of course, that means I cannot provide any more
information until it happens again.

Has anyone else experienced this or, hopefully, resolved it without
rebooting?


-- 
Neil Bothwick

Your lack of organisation does not represent an
emergency in my world.


pgp_GN_A_W5UP.pgp
Description: OpenPGP digital signature


Re: [gentoo-user] Something not right with LVM, I think.

2023-10-29 Thread Neil Bothwick
On Sun, 29 Oct 2023 03:16:05 -0500, Dale wrote:

> I have several external hard drives. I have one that is, weird.  Others
> work fine.  When I first power up the drive, cryptsetup can't open it
> because it doesn't exist yet.

Is it the drive/enclosure taking too long to power up? There are kernel
options to delay the boot to allow for USB devices to become available,
such as usb-storage.delay_use. Try setting a long delay and, if that
fixes it, reducing the delay until you find a suitable setting.


-- 
Neil Bothwick

Keep your words soft and sweet in case you have to eat them.


pgphD4BwPAYne.pgp
Description: OpenPGP digital signature


Re: [gentoo-user] Problem building x11-libs:libxcb-1.16

2023-10-24 Thread Neil Bothwick
On Mon, 23 Oct 2023 23:13:36 -0400, Walter Dnes wrote:

>   I have a desktop PC and and a "hot backup" ready to take over on a
> moment's notice.  I keep the configs and settings the same.  Today I
> tried to update both machines.  The main desktop was OK, but the hot
> backup ran into a prolem with x11-libs:libxcb-1.16  Before anybody asks,
> /etc/locale.gen is identical on both.  The uncommented lines are...
> 
> en_US ISO-8859-1
> en_US.UTF-8 UTF-8
> 
>   Not sure about the error message
> 
> UnicodeEncodeError: 'latin-1' codec can't encode character '\u201c' in
> position 68: ordinal not in range(256)

https://bugs.gentoo.org/913655 appears to have a solution in comment 5.

> Roses are red
> Roses are blue
> Depending on their velocity
> Relative to you

Love it :)


-- 
Neil Bothwick

Das Internet is nicht fuer gefingerclicken und giffengrabben. Ist easy
droppenpacket der routers und overloaden der backbone mit der spammen
und der me-tooen. Ist nicht fuer gewerken bei das dumpkopfen. Das
mausklicken sichtseeren keepen das bandwit-spewin hans in das pockets
muss; relaxen und watchen das cursorblinken.


pgpzWvIyIU6P7.pgp
Description: OpenPGP digital signature


Re: [gentoo-user] Re: OFF TOPIC Need Ubuntu network help: boot loader info

2023-10-19 Thread Neil Bothwick
On Thu, 19 Oct 2023 09:45:10 -0500, Dale wrote:

> > I like rEFIind, but I recall it needs/needed a separate /boot
> > partition if you are running LVM/RAID.
> >  
> 
> I have /boot on ext2, / on ext4 and rest on LVM on my main system.  On
> the 770T rig, I have /boot on ext2 I think and everything else on ext4.

If you are using EFI, you need a FAT partition as the ESP, so you may as
well make that /boot to keep things simple.


-- 
Neil Bothwick

An expert is nothing more than an ordinary person away from home.


pgps3LiqZUghE.pgp
Description: OpenPGP digital signature


Re: [gentoo-user] Re: OFF TOPIC Need Ubuntu network help: boot loader info

2023-10-19 Thread Neil Bothwick
On Thu, 19 Oct 2023 12:55:43 +0100, Neil Bothwick wrote:

> > That config kinda reminds me of the old grub.  A title line, location
> > of kernel and then options.  Sounds easy enough.  The new grub config
> > is almost impossible to config by hand.  They had to make a tool to
> > do it. That says a lot there.  ;-)   
> 
> GRUB2 was designed to be able to create a config for anything
> automatically, such as from an installer. It does that very well, but is
> total overkill for Gentoo-like people that like to stay in control.

Incidentally, systemd-boot can also generate and update boot menu entries
automatically with "bootctl install" and "bootctl update" although I have
never tried either.


-- 
Neil Bothwick

STATUS QUO is Latin for "the mess we're in."


pgp0FGL_4LVxf.pgp
Description: OpenPGP digital signature


Re: [gentoo-user] Re: OFF TOPIC Need Ubuntu network help: boot loader info

2023-10-19 Thread Neil Bothwick
On Wed, 18 Oct 2023 23:49:25 -0500, Dale wrote:

> That config kinda reminds me of the old grub.  A title line, location of
> kernel and then options.  Sounds easy enough.  The new grub config is
> almost impossible to config by hand.  They had to make a tool to do it. 
> That says a lot there.  ;-) 

GRUB2 was designed to be able to create a config for anything
automatically, such as from an installer. It does that very well, but is
total overkill for Gentoo-like people that like to stay in control.


-- 
Neil Bothwick

Keep your words soft and sweet in case you have to eat them.


pgpkxfqnMfxX7.pgp
Description: OpenPGP digital signature


Re: [gentoo-user] Re: OFF TOPIC Need Ubuntu network help

2023-10-19 Thread Neil Bothwick
On Wed, 18 Oct 2023 18:24:41 -0500, Dale wrote:

> > Do you mean booting from the ISO images? That's a GRUB thing, it
> > doesn't matter how it is loaded, EFI or MBR.
> >
> > However, being able to do away with GRUB is, to me, a bigger benefit
> > than not being able to boot ISOs is a drawback. Use either
> > systemd-boot (it doesn't need systemd) or rEFInd.

> On my main rig, BIOS type, in my /boot I have memtest.  Grub adds a
> entry for it.  I guess I could also but Knoppix or something in there as
> well.  I was just wondering if that is still a option with efi.  I'd
> think it is.  After all, it's like like being able to boot either Linux
> or windoze.  Lots of people dual boot and I'm sure efi hasn't changed
> that. 

Oh yes, you can boot memtest because that's a ramdisk image, it's only
ISOs that are restricted to Grub. Having said that, many live distros can
be booted from any bootloader if you copy the files from the ISO. I
always have SystemRescue in my /boot partition.


-- 
Neil Bothwick

Linux users do it without paying a Bill


pgpf6f1DRtnlA.pgp
Description: OpenPGP digital signature


Re: [gentoo-user] Re: OFF TOPIC Need Ubuntu network help

2023-10-18 Thread Neil Bothwick
On Wed, 18 Oct 2023 17:27:28 -0500, Dale wrote:

> I used cgdisk and GPT for my disk even tho it is small, only 300GBs or
> so, mostly out of habit.  The grub install failed and I did a search.  I
> found this and it worked. 
> 
> 
> 
> grub-install fails with "grub-install: warning: this GPT partition label
> contains no BIOS Boot Partition; embedding won't be possible." 

Simple answer, don't use GRUB :-)

Seriously, GRUB is a bootloader, EFI is a bootloader. You are using one
bootloader to load another bootloader before booting the system.

rEFIind and systemd-boot are both boot managers, they work with the EFI
bootloader - or you can boot a kernel directly without a boot manager,
but I prefer not to do that as it gives no opportunity to edit options
when booting.

If you like simple, here is a config file I use with systemd-boot

version 6.1.57-gentoo
linux   /vmlinuz-6.1.57-gentoo
options root=/dev/sda3 panic=10 net.ifnames=0 i915.enable_ips=0

That's it! There is a separate file for each menu entry, but they are
this simple. There's also a global loader.conf, that runs to a massive 2
lines here!


-- 
Neil Bothwick

If you catch an exploding manhole cover, you can keep it.


pgpZ0GJ2LcQL0.pgp
Description: OpenPGP digital signature


Re: [gentoo-user] Re: OFF TOPIC Need Ubuntu network help

2023-10-18 Thread Neil Bothwick
On Wed, 18 Oct 2023 12:49:34 -0500, Dale wrote:

> I usually use cgdisk, or cfdisk, but they all do the same thing.  Just a
> different interface.  As long as all this is documented, I'll just
> follow it and it should work.  After all, efi has been around for a long
> while now.  I'm sure millions of people have it installed, likely
> billions. 
> 
> I do wonder, can one still put things like memtest, Knoppix and such in
> that thing?  I'm sure it can be done but never seen it mentioned.  I
> started to put it on the old 770T but didn't now that I have that Ventoy
> USB thing. 

Do you mean booting from the ISO images? That's a GRUB thing, it doesn't
matter how it is loaded, EFI or MBR.

However, being able to do away with GRUB is, to me, a bigger benefit than
not being able to boot ISOs is a drawback. Use either systemd-boot (it
doesn't need systemd) or rEFInd.


-- 
Neil Bothwick

"Of course, I could switch back to Windows. At least there, if I have a
problem, I don't suffer under the illusion that I could ever fix it." -
Unknown (paraphrased)


pgpmvLUN21k6t.pgp
Description: OpenPGP digital signature


Re: [gentoo-user] Re: OFF TOPIC Need Ubuntu network help

2023-10-18 Thread Neil Bothwick
On Wed, 18 Oct 2023 10:23:23 +0100, Michael wrote:

> > Oh, and if you use GPT, you no longer need the MBR compatibility
> > partition, or whatever its called. I no longer need it so I can't
> > remember the exact name.  
> 
> Man pages of partitioning tools refer to it as "Protective MBR",
> although I've seen it mentioned in the interwebs as "protective GPT",
> which I think is more accurate.  It uses the first sector (LBA 0) to
> store an MBR table showing the whole disk, or 2TB if smaller, as an MBR
> partition.  This is the first partition on the disk, typically 1 MiB in
> size.  It is meant to stop 20 year old partitioning tools from messing
> up a GPT partitioning scheme because they can't see it.  Arguably
> nobody uses Windows 98 these days, so it should be safe to not have a
> protective MBR on your GPT disks.

You need it if your hardware doesn't support EFI booting.


-- 
Neil Bothwick

The human mind ordinarily operates at only ten per cent of its capacity
... the rest is overhead for the operating system.


pgpuROacoEHmw.pgp
Description: OpenPGP digital signature


Re: [gentoo-user] Re: OFF TOPIC Need Ubuntu network help

2023-10-18 Thread Neil Bothwick
On Wed, 18 Oct 2023 03:15:56 - (UTC), Grant Edwards wrote:

> > I have 4 Ubuntu-based machines here and over the last 6 years I've
> > never seen a 1 minute delay to login, much less 5 minutes.  
> 
> I see it all the time. Two minutes is the most common delay that I run
> into, but I've seen longer. The two-minute delay I frequently run into
> has usually got something to do with networking. For example, if one
> of the links is down, Ubuntu is really fond of waiting a couple
> mintues for it to come up before it finishes booting. [If it doesn't
> wait for all the network interfaces, how is it going to do all that
> cloudy crap nobody really wants?]

There are different ways of waiting for the network to come up in
systemd, depending on your needs. Is lo enough, do you need an external
network connection available, or do you need one up and working, do you
have more than one network connection. It seems like Ubuntu is taking the
safest-for-all approach of waiting for all network interfaces to be fully
configured.

> The really fun part is that since the methods used for configuring the
> network on Ubuntu change with the seasons, 95% of the suggested fixes
> you find are irrelevent even if they were on-target at one point.

But change is good and new is better, no matter what it breaks, isn't it? ;-)


-- 
Neil Bothwick

If you can't be kind, be vague.


pgpZpAWq4f7ap.pgp
Description: OpenPGP digital signature


Re: [gentoo-user] Re: OFF TOPIC Need Ubuntu network help

2023-10-18 Thread Neil Bothwick
On Tue, 17 Oct 2023 21:50:35 -0500, Dale wrote:

> > EFI is much simpler to work with. for one thing, you don't need the
> > monster that GRUB has become.

> While I kinda dread it, it does seem that quite a while ago, it has
> become much easier.  I noticed as I went through the install of Gentoo,
> there didn't seem to be a lot of stuff to do with efi.  One might could
> think it is quicker and simpler as you say.  I recall when it first came
> out.  It was complicated but I think most of that was because it was new
> and the documentation was not quite there yet.  After all this time tho,
> that shouldn't be a problem. 
> 
> It's a bridge I'll have to cross tho.  It looks easy enough.  Biggest
> thing is partitioning the drive differently.  Gotta remember that.  O_O 

If you usually use a separate partition for /boot, all you need to do
differently is set its partition type to EF00 and format it with FAT
instead of ext2.

Oh, and if you use GPT, you no longer need the MBR compatibility
partition, or whatever its called. I no longer need it so I can't
remember the exact name.


-- 
Neil Bothwick

leep is an excellent way of listening to an opera. - James Stephens
(1882-1950)


pgpV5x9WzHIYI.pgp
Description: OpenPGP digital signature


Re: [gentoo-user] OFF TOPIC Need Ubuntu network help

2023-10-17 Thread Neil Bothwick
On Tue, 17 Oct 2023 11:41:23 -0500, Dale wrote:

> >> Neil, I tired that command journalctl but not sure about the
> >> options. It either returned a lot or nothing related.  I'll make
> >> note of the systemctl command.  If Ubuntu survives, I may need it
> >> one day.  ;-)   
> > If it returned nothing with  -p err, nothing logged an error since the
> > last boot, which is odd considering something is broken. without -p
> > err, you get everything from the system log, it's like doing "cat
> > /var/log/messages" but only since the last reboot. You could pipe that
> > through grep, searching for the name of your network interface.

> Well, I didn't search for err.  I followed some other advice I found
> while searching.

Adding -p err means you only see error messages sent to the system log,
skipping the reams of info stuff. I always run "journalctl -b -p err"
after booting a new kernel, it tells me instantly if I've made a screw up.

Of course, if I screw up really badly, the thing doesn't even boot...

-- 
Neil Bothwick

I am Zaphod of Borg. Now, where's the coolest place to be assimilated...


pgp5Ujt7IlptO.pgp
Description: OpenPGP digital signature


Re: [gentoo-user] Re: OFF TOPIC Need Ubuntu network help

2023-10-17 Thread Neil Bothwick
On Tue, 17 Oct 2023 13:54:47 -0500, Dale wrote:

> I just realized, my new rig will almost certainly be efi.  I kinda dread
> that.  At least it is well documented tho.  Should be easy enough.  I
> hope.  o_O

EFI is much simpler to work with. for one thing, you don't need the
monster that GRUB has become.


-- 
Neil Bothwick

"Do you reply to our surveys.?"
[X]Never [ ]Always [ ]Sometimes


pgp_lfpogTA2O.pgp
Description: OpenPGP digital signature


Re: [gentoo-user] OFF TOPIC Need Ubuntu network help

2023-10-17 Thread Neil Bothwick
On Mon, 16 Oct 2023 19:34:09 -0500, Dale wrote:

> While I'm sure systemd is here to stay, I still have options.  I'm
> seriously thinking of installing Gentoo on that thing.  At least then if
> it breaks, I can post a thread that isn't off topic. o_O  I also just
> put a pretty large CPU cooler on that thing.  Should compile without so
> much as a mild fever.

You could have compiled the whole system several times over in the time
you've been trying to fix this. Even when you do fix it, you'll still
have an unfamiliar experience. Sticking with what you know is often best,
unless you treat it as a learning experience.

> Neil, I tired that command journalctl but not sure about the options. 
> It either returned a lot or nothing related.  I'll make note of the
> systemctl command.  If Ubuntu survives, I may need it one day.  ;-) 

If it returned nothing with  -p err, nothing logged an error since the
last boot, which is odd considering something is broken. without -p err,
you get everything from the system log, it's like doing "cat
/var/log/messages" but only since the last reboot. You could pipe that
through grep, searching for the name of your network interface.


-- 
Neil Bothwick

Snacktrek, n.:
 The peculiar habit, when searching for a snack, of constantly
 returning to the refrigerator in hopes that something new will have
 materialized.


pgpuCGFIFmuIi.pgp
Description: OpenPGP digital signature


Re: [gentoo-user] OFF TOPIC Need Ubuntu network help

2023-10-16 Thread Neil Bothwick
On Mon, 16 Oct 2023 11:56:27 -0500, Dale wrote:

> This is the problem.  The only place it shows up is where it shows it is
> disabled.  I can't get a status or anything of it anywhere else because
> it doesn't exist.  I didn't see anything in dmesg, since it doesn't
> exist, nor can I check it with netplan, again, since it doesn't exist. 

Try "journalctl -b -p err". If that doesn't help, try "journalctl -b" but
that will have a lot of info.


-- 
Neil Bothwick

Walk softly and carry a fully charged phazer.


pgpXdKJ0ILWwB.pgp
Description: OpenPGP digital signature


Re: [gentoo-user] OFF TOPIC Need Ubuntu network help

2023-10-16 Thread Neil Bothwick
On Mon, 16 Oct 2023 03:28:35 -0500, Dale wrote:

> Wols Lists wrote:
> > On 16/10/2023 08:51, Dale wrote:  
> >> Anyone here have ideas?  Keep in mind, that thing uses systemd.  I
> >> thought I hated that before.  I truly hate that thing now.  Trying to
> >> figure out how to restart something is like pulling teeth with no
> >> pain meds.  
> >
> > systemctl restart servicename?
> >
> > I like systemd, but given my battles with other stuff, I feel your
> > pain. Having had to WRITE a service file, though, oh I'm so glad I
> > wasn't messing with SystemV or stuff like that!
 
> I tried to restart a couple things I found during my searches but most
> of them no longer exist.  It seems they change names pretty often.  I've
> tried to find anything that looks like network to restart but I can't
> tell what is what.

systemctl list-unit-files

will show all unit files installed on the system, although I don't find
that service names change. However, Ubuntu may decide to use a different
service to manage things from time to time.


-- 
Neil Bothwick

System halted - hit any Microsoft employee to continue.


pgpGMsf8qQC25.pgp
Description: OpenPGP digital signature


Re: [gentoo-user] google SMTP with postfix - Password not accepted

2023-10-14 Thread Neil Bothwick
On Sat, 14 Oct 2023 14:28:53 +0100, Peter Humphrey wrote:

> On the other hand, I'd prefer to stick with fetchmail for my Zen POP3
> account, since it's working well. Then I could use getmail to fetch my
> gmail mail. Would that be safe?
> 
> If it works I could move Zen mail to getmail later, at my leisure.
> (That's the only sort of time I have these days... :(  )

Here's my getmail config for Zen

[retriever]
type = SimplePOP3Retriever
server = mailhost.zen.co.uk
username = zen123456
password = yeahyeahyeah

[destination]
type = MDA_external
path = /usr/bin/procmail

[options]
verbose = 0
read_all = false



-- 
Neil Bothwick

You do not need a parachute to skydive. You only need a parachute to
skydive twice.


pgpAw6u2sYpM6.pgp
Description: OpenPGP digital signature


Re: [gentoo-user] google SMTP with postfix - Password not accepted

2023-10-14 Thread Neil Bothwick
On Sat, 14 Oct 2023 06:02:21 +0100, Peter Humphrey wrote:

> On Tuesday, 20 June 2023 09:55:10 BST William Kenworthy wrote:
> > getmail can facilitate getting googlemail into postfix.  In my case,
> > it fetches an mail then invokes sendemail to forward into postfix.
> > The docs for the google side of the equation are quite good.  
> 
> Coming to this after a while, can you point me to the one that helps,
> please? I've had a look round but I haven't found anything helpful.
> Thanks.

I use this getmail config for GMail. It uses procmail to deliver to
Docecot, but it should work as a starting point for you.

[retriever]
type = SimpleIMAPSSLRetriever
server = imap.gmail.com
username = neil.bothw...@gmail.com
password = thisisnotmyrealpassword
mailboxes = ('Inbox',)

[destination]
type = MDA_external
path = /usr/bin/procmail

[options]
verbose = 0
read_all = false
delete = true


-- 
Neil Bothwick

Drink varnish and you'll have a lovely finish.


pgpn587UHp8Y7.pgp
Description: OpenPGP digital signature


Re: [gentoo-user] How to replay a backup system?

2023-10-12 Thread Neil Bothwick
On Thu, 12 Oct 2023 18:54:10 +0200, Helmut Jarausch wrote:

> from time to time - as was the case a few days ago - Gentoo updates  
> lead to an unbootable system.
> I backup my system each day - using BTRFS snapshots.
> 
> Now, only a few files on current system have changed; the rest of the  
> 400 GB root partition is unchanged.
> Therefore I only have to replace these newer files by the versions  
> saved a day before.
> 
> How can this be done efficiently? Unfortunately AFAIK rsync doesn't  
> have an option to copy only files which are
> NEWER on the destination than the corresponding files in the backup.

You can replace the original root subvolume with the snapshot. One way of
doiing it is detailed at
https://unix.stackexchange.com/questions/19211/how-to-create-a-snapshot-in-btrfs-and-then-rollback-to-it-after-some-work


-- 
Neil Bothwick

Bang on the LEFT side of your computer to restart Windows


pgpmRa5BmY4at.pgp
Description: OpenPGP digital signature


Re: [gentoo-user] Getting output of a program running in background after a crash

2023-10-12 Thread Neil Bothwick
On Thu, 12 Oct 2023 07:36:17 -0500, Dale wrote:

> Neil Bothwick wrote:
> > On Wed, 11 Oct 2023 17:52:58 -0500, Dale wrote:
> >  
> >> It only does this when I'm copying files over.  Right now I'm copying
> >> about 26TBs of data over ethernet and it is taking a while.  Once I
> >> stop it or it finishes the copy, the CPU goes to about nothing,
> >> unless I'm doing something else.  So it has something to do with the
> >> copy process.  
> > Or the network. What are you using to copy? If you use rsync, you can
> > make use the the --bwlimit option to reduce the speed and network
> > load.
> >
> >  
> 
> 
> Reduce?  I wouldn't complain if it went faster.  I think it is about as
> fast as it is going to get tho.

And that may be contributing to the CPU usage. Slowing down the flow may
make the comouter more usable, and you're never going to copy 26TB
quickly, especially over ethernet.

> While I'm not sure what is keeping me from copying as fast as the drives
> themselves can go, I suspect it is the encryption.

If you're copying over the network, that will be the limiting factor.


-- 
Neil Bothwick

Nixon's Principal: If 2 wrongs don't make a right, try 3.


pgpv3iDV0bfu7.pgp
Description: OpenPGP digital signature


Re: [gentoo-user] Getting output of a program running in background after a crash

2023-10-12 Thread Neil Bothwick
On Wed, 11 Oct 2023 17:52:58 -0500, Dale wrote:

> It only does this when I'm copying files over.  Right now I'm copying
> about 26TBs of data over ethernet and it is taking a while.  Once I stop
> it or it finishes the copy, the CPU goes to about nothing, unless I'm
> doing something else.  So it has something to do with the copy process.

Or the network. What are you using to copy? If you use rsync, you can
make use the the --bwlimit option to reduce the speed and network load.


-- 
Neil Bothwick

Is that "woof" feed me; "woof" walk me; "woof" there's a burglar? What??


pgpYMkd7E9Si0.pgp
Description: OpenPGP digital signature


Re: [gentoo-user] world updates blocked by Qt

2023-10-11 Thread Neil Bothwick
On Wed, 11 Oct 2023 16:04:08 +0200, Alan McKinnon wrote:

> > On Wed, 11 Oct 2023 15:43:46 +0200, Alan McKinnon wrote:
> >  
> > > Today a sync and emerge world produces a huge list of blockers.
> > > qt 5.15.10 is currently installed and qt 5.15.11 is new in the tree
> > > and being blocked.
> > > All the visible blockers are Qt itself so --verbose-conflicts is
> > > needed.  
> >
> > No such issues here, on ~amd64.
> >  
> 
> Hmmm. When did you last sync? Forgot to mention I am ~amd too

A few hours earliers, but I synced again before replying.

As posted elsewhere, try cranking up --backtrack. I have it set to 20,
which avoids almost all issues without hammering dependency calculation
times.


-- 
Neil Bothwick

I am Zaphod of Borg. Now, where's the coolest place to be assimilated...


pgpG0cifn5AWL.pgp
Description: OpenPGP digital signature


Re: [gentoo-user] world updates blocked by Qt

2023-10-11 Thread Neil Bothwick
On Wed, 11 Oct 2023 15:43:46 +0200, Alan McKinnon wrote:

> Today a sync and emerge world produces a huge list of blockers.
> qt 5.15.10 is currently installed and qt 5.15.11 is new in the tree and
> being blocked.
> All the visible blockers are Qt itself so --verbose-conflicts is needed.

No such issues here, on ~amd64.
 
> That will be an exceptionally long list and today I feel really lazy and
> unwilling :-D
> Has anyone seen what the actual blockers are?
> I spotted okular, I suspect there are more.

Have you tried syncing again, just in case you caught it partway through
a stack of Qt packages being updated?


-- 
Neil Bothwick

If at first you don't succeed, skydiving is not for you.


pgpeAsjv07peE.pgp
Description: OpenPGP digital signature


Re: [gentoo-user] 6.1.53-gentoo-r1 kernel not booting

2023-10-08 Thread Neil Bothwick
On Sat, 7 Oct 2023 12:13:58 -0400, Valmor F. de Almeida wrote:

> 2) make oldconfig in the new kernel directory for linux-6.1.53-gentoo-r1
> 
> • Mitigations for speculative execution vulnerabilities
> *
> Mitigations for speculative execution vulnerabilities 
> (SPECULATION_MITIGATIONS) [Y/n/?] y
>Remove the kernel mapping in user mode (PAGE_TABLE_ISOLATION)
> [Y/n/?] y Avoid speculative indirect branches in kernel (RETPOLINE)
> [Y/n/?] y Enable return-thunks (RETHUNK) [Y/n/?] y
>Enable UNRET on kernel entry (CPU_UNRET_ENTRY) [Y/n/?] y
>Enable IBPB on kernel entry (CPU_IBPB_ENTRY) [Y/n/?] y
>Enable IBRS on kernel entry (CPU_IBRS_ENTRY) [Y/n/?] y
> 
> Up to here default is picked automatically; I don't have a choice.

Those are settings you already have in your existing confid, shown to
give context to the following NEW settings.

You can change them, but with make config, not oldconfig.


-- 
Neil Bothwick

Love is grand. Divorce is a few grand more.


pgpqMoU9497s1.pgp
Description: OpenPGP digital signature


Re: [gentoo-user] Re: 6.1.53-gentoo-r1 kernel not booting

2023-10-08 Thread Neil Bothwick
On Sat, 7 Oct 2023 13:55:05 -0500, Dale wrote:

> Actually, I went to the latest version in the tree, 6.5, and got the
> message it likely won't work.  I went back to a version the message said
> should work, 6.1.  It still doesn't work.  It may be the driver, it may
> not be. 

What does /var/log/Xorg.0.log tell you?


-- 
Neil Bothwick

What do you have when you have six lawyers buried up to their necks in
sand? Not enough sand.


pgpWb1DKyib0m.pgp
Description: OpenPGP digital signature


Re: [gentoo-user] 6.1.53-gentoo-r1 kernel not booting

2023-10-04 Thread Neil Bothwick
On Tue, 3 Oct 2023 23:42:17 -0400, Valmor F. de Almeida wrote:

> There may have been a microcode emerge from dependencies; I don't
> emerge directly. I do agree with you: if I try to recompile the working 
> kernel it will not boot. However I am not willing to try just right now 
> and having to troubleshoot a broken system.

Microcode is usually applied as an initramfs, and I think you said you
are not using any.

If you set LOCALVERSION in the kernel config, your existing kernel will
be installed with a new name, so you'll still have the working kernel to
fall back on.


-- 
Neil Bothwick

Taglines are like cars - You get a good one, then someone nicks it.


pgpxE0Vt3LD_M.pgp
Description: OpenPGP digital signature


Re: [gentoo-user] Unwanted fonts

2023-10-02 Thread Neil Bothwick
On Mon, 02 Oct 2023 17:51:53 +0100, Michael wrote:

> > Reverse? Plasma-integration depends on those fonts, not the other way
> > round.  
> 
> ~ $ qdepends -d plasma-integration | grep noto
> ~ $ 
> 
> You can check the ebuild for plasma-integration.

RDEPEND is a run-time dependency. A reverse dependency would appear in
the noto ebuild.


-- 
Neil Bothwick

Y'know how s'm people treat th'r body like a TEMPLE?
Well, I treat mine like 'n AMUSEMENT PARK...  S'great...


pgpNNm3_VZPbB.pgp
Description: OpenPGP digital signature


Re: [gentoo-user] What is a dependency of ruby

2023-09-21 Thread Neil Bothwick
On Thu, 21 Sep 2023 11:21:34 -0400, Matt Connell wrote:

> > emerge -cav ruby  
> 
> emerge --depclean --pretend ruby
> 
> No need to ask when you don't actually mean to depclean it... nor could
> you if something depended on it.

Muscle memory added the --ask, but you do need verbose for this to give
the information you need.

emerge -cpv ruby


-- 
Neil Bothwick

A real programmer never documents his code.
It was hard to make, it should be hard to read


pgpbG5qkjbrtO.pgp
Description: OpenPGP digital signature


Re: [gentoo-user] What is a dependency of ruby

2023-09-21 Thread Neil Bothwick
On Thu, 21 Sep 2023 13:45:19 +0200, Alan McKinnon wrote:

> Not 100% back in the gentoo groove yet, forget some basic tools.
> 
> Something pulled in ruby, I know not what.
> 
> What commands show me what installed packages have ruby as a dependency?

emerge -cav ruby


-- 
Neil Bothwick

If at first you don't succeed, skydiving is not for you.


pgp9mQbDdZpE3.pgp
Description: OpenPGP digital signature


Re: [gentoo-user] Some mailing list emails not making it to me.

2023-09-20 Thread Neil Bothwick
On Wed, 20 Sep 2023 16:38:32 -0500, Dale wrote:

> Any one else seeing this?  Is it just me? 

It's usually just you, you do have an exceptional knack for breaking
things - and I've not even used the H word :)


-- 
Neil Bothwick

Hard work has a future payoff. Laziness pays off NOW!


pgpOfgx5gflng.pgp
Description: OpenPGP digital signature


Re: [gentoo-user] Re: How to move ext4 partition

2023-09-20 Thread Neil Bothwick
On Wed, 20 Sep 2023 21:28:29 - (UTC), Grant Edwards wrote:

> > you may as well then restore from that backup. I'm sure it will be a
> > lot quicker than GParted's moving all the data around.  
> 
> That depends on how long it takes me to decide on tar vs. rsync and
> what the appropriate options are. After 40 years using Unix, you'd
> think I'd know that (or have it written down somewhere). :)

If you written everything down, after 40 years you'd have so many bits of
paper you wouldn't be able to find anything ;-)
 
> That said, I think I will go with the backup, repartition, restore
> method. It's been many, many years since I used GParted, and I can
> probably have the whole job done from the command-line before I can
> figure out how the GParted GUI works.

:)


-- 
Neil Bothwick

The facts, although interesting, are usually irrelevant.


pgp8rOT94BLhx.pgp
Description: OpenPGP digital signature


Re: [gentoo-user] How to move ext4 partition

2023-09-20 Thread Neil Bothwick
On Wed, 20 Sep 2023 20:24:17 - (UTC), Grant Edwards wrote:

> However, GParted apparently does. Can GParted move an ext4 filesystem
> to a destination location that overlaps its starting location?
> 
> For example, I have a 500GB partition containing an ext4 filesystem
> starting at sector 2048 (1MiB). I want to move that filesystem so that
> it starts at sector 3*2048 (3MiB).
> 
> Can that be done in-place?
> 
> Or should I just back up the filesystem to a second drive and start
> from scratch?

Given that you'd want to backup before such an operation anyway, you may
as well then restore from that backup. I'm sure it will be a lot quicker
than GParted's moving all the data around.


-- 
Neil Bothwick

He who laughs last thinks slowest!


pgpIJFqg5f9uh.pgp
Description: OpenPGP digital signature


Re: [gentoo-user] Re: long compiles

2023-09-13 Thread Neil Bothwick
On Wed, 13 Sep 2023 21:20:20 - (UTC), Grant Edwards wrote:

> About a year ago I finally gave up building Chromium and switched to
> www-client/google-chrome.  It got to the point where it sometimes took
> longer to build Chromium than it did for the next version to come out.

That's why I run stable Chromium on an otherwise testing system.


-- 
Neil Bothwick

We all know what comes after 'X', said Tom, wisely.


pgpwfhEq3DXLG.pgp
Description: OpenPGP digital signature


Re: [gentoo-user] Re: Anyone used openmediavault with LVM?

2023-09-12 Thread Neil Bothwick
On Tue, 12 Sep 2023 14:43:30 -0500, Dale wrote:

> This last one seemed the simplest and easiest.  I might add, it also
> worked.  Now I don't have to sudo every time I want to take a breath or
> something.  Most any of them would have helped but now I can just login
> as root.  I have to be a user at first over ssh tho, if I recall
> correctly. 

Not if you set "PermitRootLogin prohibit-password" in sshd_config.


-- 
Neil Bothwick

WinErr 009: Horrible bug encountered - God knows what has happened


pgpZ9izO2DPym.pgp
Description: OpenPGP digital signature


Re: [gentoo-user] Re: long compiles

2023-09-12 Thread Neil Bothwick
On Tue, 12 Sep 2023 21:01:48 +0200, Alan McKinnon wrote:

> But anyways, this is not really about how to deal with long compiles, I
> was asking what current packages take a long time after a 5 year
> absence.
> 
> The answer is what it was always - browsers and libreoffice. I do recall
> icu being a bit of a beast back then

LibreOffice doesn't seem too bad these days. icu and boost are a pain
because of the number of other packages they rebuild.


-- 
Neil Bothwick

Light travels faster than sound. This is why some people appear bright
until you hear them speak.


pgpoFHtA2NgXP.pgp
Description: OpenPGP digital signature


Re: [gentoo-user] Re: Anyone used openmediavault with LVM?

2023-09-12 Thread Neil Bothwick
On Tue, 12 Sep 2023 16:19:45 - (UTC), Grant Edwards wrote:

> > I currently have Ubuntu installed. [...] So far, my biggest gripe is
> > sudo this, sudo that.  Dang, give me root and be done with it.  :/ 
> > I did try, no freaking password for the thing.  I gotta google that
> > tho.  There has to be a way.  
> 
> $ sudo bash -

Or sudo -i


-- 
Neil Bothwick

furbling, v.:
Having to wander through a maze of ropes at an airport or bank
even when you are the only person in line.
-- Rich Hall, "Sniglets"


pgpMSajJXQZPl.pgp
Description: OpenPGP digital signature


Re: [gentoo-user] long compiles

2023-09-11 Thread Neil Bothwick
On Mon, 11 Sep 2023 21:19:27 +0200, Alan McKinnon wrote:

> chromium has been building since 10:14, it's now 21:16 and still going
> so 9 hours at least on this machine to build a browser - almost as bad
> as openoffice at it's worst (regularly took 12 hours). Nodejs also took
> a while, but I didn't record time.

Chromium is definitely the worst, and strangely variable. The last few
compiles have taken between 6 and 14 hours. Since it takes longer than
everything else to build, it is usually compiling on its own, so parallel
emerges aren't a factor.

Qtwebengine is also bad, not surprising as it is a cut down Chromium.
Emerging world with --exclude then timing build to coincide with sleep
helps, although I haven't quite reached the age where I need 14 hours of
sleep a day.


-- 
Neil Bothwick

If it isn't broken, I can fix it.


pgpb9yNuiaxzs.pgp
Description: OpenPGP digital signature


Re: [gentoo-user] Re: sqlite downgraded by update breaks things

2023-09-07 Thread Neil Bothwick
On Wed, 6 Sep 2023 16:42:20 - (UTC), Grant Edwards wrote:

> IMO it's a mistake to have one package called "svn" and another one
> called "subversion".

The names -f the acct-{user,group} packages follow the actual user names.
So the issue is caused by subversion running as the svn user, portage is
just following upstream.

That does make it any less prone to confusion, but I doubt you will
persuade the subversion devs to change their choice of user name :-O


-- 
Neil Bothwick

The Japanese call us lazy, but at least we cook our fish!


pgpIEH3vlLtoD.pgp
Description: OpenPGP digital signature


Re: [gentoo-user] Is distfile partial mirror with failover possible?

2023-09-05 Thread Neil Bothwick
On Tue, 05 Sep 2023 16:07:16 +0100, Michael wrote:

> >   And while we're at it, howsabout "emerge --sync" on one host, and
> > then remote-mounting /var/db/repos/gentoo ?  
> 
> Take a look here:
> 
> https://wiki.gentoo.org/wiki/Local_Mirror

I used to do that, the server syncing with Gentoo then everything else
syncing with that. However, when I switched to git syncing, it was so
fast that there was no point in running a local mirror - everything syncs
directly from Github now.


-- 
Neil Bothwick

BBS: (n.) a system for connecting computers and exchanging gossip,
 facts, and uninformed speculation under false names.


pgpswfLEI66eX.pgp
Description: OpenPGP digital signature


Re: [gentoo-user] Is distfile partial mirror with failover possible?

2023-09-05 Thread Neil Bothwick
On Mon, 4 Sep 2023 22:54:38 -0400, Walter Dnes wrote:

> On Mon, Sep 04, 2023 at 06:21:27PM +0100, Neil Bothwick wrote

> > I use apt-cacher-ng for this and it does what you are looking for.  
> 
>   https://wiki.gentoo.org/wiki/Local_distfiles_cache#Open_issues says...
> 
> > Open issues
> >
> > *  Apt-cacher-ng installs a cron job to delete unreferenced files
> > from the cache. Since the Gentoo cache contains no index files,
> > this probably deletes either everything or nothing from it.  
> 
>   Have you run into ptoblems with this?

Not that I've noticed.

>   It looks like remote-mounting /var/cache/distfiles might be the
> quick-n-dirty solution like Alan suggested.  And I never have a need to
> have emerge run simultaneously on more than one machine.

It seems the simplest suitable solution for your needs.


-- 
Neil Bothwick

A pessimist complains about the noise when opportunity knocks.


pgpofPXiYb_oS.pgp
Description: OpenPGP digital signature


Re: [gentoo-user] Is distfile partial mirror with failover possible?

2023-09-04 Thread Neil Bothwick
On Mon, 4 Sep 2023 19:49:56 +0200, Alan McKinnon wrote:

> Quick n dirty solution:
> 
> put all distfiles on a central server
> FS mount that remote dir to /var/cache/distfiles on all hosts

That's what I used to do, but had problems when downloading the same file
from to clients at once.

BTW Welcome back Alan, but leave your dirty top-posting in Archland :P

> 
> Alan
> 
> On Mon, Sep 4, 2023 at 7:21 PM Neil Bothwick  wrote:
> 
> > On Mon, 04 Sep 2023 14:04:53 +0100, Michael wrote:
> >  
> > > On Monday, 4 September 2023 11:12:51 BST Walter Dnes wrote:  
> > > >   I may be misunderstanding, but it seems to me that local
> > > > mirrors are all-or-nothing.  In the interests of saving
> > > > bandwidth, I'd like to have a client first check the host's
> > > > /var/cache/distfiles directory for a source tarball file.  If not
> > > > found, then fail over to another mirror as per GENTOO_MIRRORS in
> > > > /etc/portage/make.conf.  This would require emerge doing the
> > > > lookup and potential failover for each file. Is this possible?  
> > >
> > > Unless I misunderstand what you're asking, isn't this what takes
> > > place anyway?  
> >
> > The reference to a host makes me think Walter wants one machne to hold
> > the distfiles for all on the network.
> >  
> > > PS. Is http_replicator still available/maintained?  I see the wiki
> > > mentions apt-cacher-ng for local distfiles cache.  
> >
> > I use apt-cacher-ng for this and it does what you are looking for.
> >
> >
> > --
> > Neil Bothwick
> >
> > The facts, although interesting, are usually irrelevant.
> >  
> 
> 




-- 
Neil Bothwick

Not one shred of evidence supports the notion that life is serious.


pgpEycCmOOrWx.pgp
Description: OpenPGP digital signature


Re: [gentoo-user] Is distfile partial mirror with failover possible?

2023-09-04 Thread Neil Bothwick
On Mon, 04 Sep 2023 14:04:53 +0100, Michael wrote:

> On Monday, 4 September 2023 11:12:51 BST Walter Dnes wrote:
> >   I may be misunderstanding, but it seems to me that local mirrors are
> > all-or-nothing.  In the interests of saving bandwidth, I'd like to
> > have a client first check the host's /var/cache/distfiles directory
> > for a source tarball file.  If not found, then fail over to another
> > mirror as per GENTOO_MIRRORS in /etc/portage/make.conf.  This would
> > require emerge doing the lookup and potential failover for each file.
> >  Is this possible?  
> 
> Unless I misunderstand what you're asking, isn't this what takes place
> anyway?

The reference to a host makes me think Walter wants one machne to hold
the distfiles for all on the network.

> PS. Is http_replicator still available/maintained?  I see the wiki
> mentions apt-cacher-ng for local distfiles cache.

I use apt-cacher-ng for this and it does what you are looking for.


-- 
Neil Bothwick

The facts, although interesting, are usually irrelevant.


pgpmQhUbItn3g.pgp
Description: OpenPGP digital signature


Re: [gentoo-user] he's baaaaaaack :-D

2023-08-31 Thread Neil Bothwick
On Thu, 31 Aug 2023 20:15:00 +0200, Alan McKinnon wrote:

> After some years away, I'm back to Gentoo. Arch was nice and I got
> fuzzies but something was always missing. Was on Mint for a while but
> eventually got fed up with how it does Bluetooth. So Gentoo is now on
> the new laptop from work.

You're still alive! Welcome back!


-- 
Neil Bothwick

Bagpipe for free: Stuff cat under arm. Pull legs, chew tail.


pgpFgE174hVPo.pgp
Description: OpenPGP digital signature


Re: [gentoo-user] Email clients

2023-07-31 Thread Neil Bothwick
On Mon, 31 Jul 2023 17:03:49 +0100, Peter Humphrey wrote:

> What should I do about backups of the server?

Don't bother, hard disks are dead reliable these days ;-)


-- 
Neil Bothwick

.sig a .sog of sixpence.


pgp0RnKsAawdG.pgp
Description: OpenPGP digital signature


Re: [gentoo-user] Email clients

2023-07-31 Thread Neil Bothwick
On Mon, 31 Jul 2023 18:26:03 +0100, Peter Humphrey wrote:

> I thought I should be able to specify where outgoing mail should be
> put, but I can't find it now.

That's a setting in the mail client.


-- 
Neil Bothwick

IBM: Itty Bitty Mentality


pgp1DMtkh7ZVh.pgp
Description: OpenPGP digital signature


Re: [gentoo-user] Email clients

2023-07-31 Thread Neil Bothwick
On Mon, 31 Jul 2023 13:33:18 +0100, Peter Humphrey wrote:

> > > But you're running the IMAP server locally, so what difference does
> > > it make?  
> 
> It's just the way things have 'just growed'. I could start again with
> the server keeping the mails itself, but it's a good deal of work.

Not really. Once you have set up the server and a folder for it in KMail,
you just move your mails from the local folder to the IMAP one. 


-- 
Neil Bothwick

I can't walk on water, but I can stagger on alcohol.


pgpZ98bVaLEHH.pgp
Description: OpenPGP digital signature


Re: [gentoo-user] Email clients

2023-07-30 Thread Neil Bothwick
On Sun, 30 Jul 2023 23:53:39 +0100, Peter Humphrey wrote:

> > ... I use Claws 99% of the time, but occasionally run Thunderbird.
> > Neither program cares that I have also used the other to read my
> > mail.  
> 
> Ah, but you're using IMAP4 and leaving your emails on the server. I
> don't want to do that.

But you're running the IMAP server locally, so what difference does it
make?


-- 
Neil Bothwick

Feminism: the radical notion that women are people.


pgpXP4ZTsg_k_.pgp
Description: OpenPGP digital signature


Re: [gentoo-user] Email clients

2023-07-30 Thread Neil Bothwick
On Sat, 29 Jul 2023 12:23:47 +0100, Wols Lists wrote:

> > Hm. I already have Dovecot on my LAN server, because KMail is
> > horribly buggy with POP3, which is what my ISP offers. So fetchmail
> > -> postfix -> dovecot became necessary before I could use IMAP4 in
> > KMail.
> > 
> > All incoming emails are transferred to my workstation because I like
> > to have everything in one place and one backup.
> > 
> > Maybe I'll stick with KMail a bit longer...  
> 
> Well then, install Claws and try it - just point it at Dovecot. Okay, I 
> use Thunderbird, but there's no reason I have to - I run about 4 
> different instances of TB, all pointing at my Dovecot server, and all 
> mail is visible on all my computers - the server/workstation, my old 
> laptop, my new laptop, my wife's laptop when I borrow it, ...

Similarly, I use Claws 99% of the time, but occasionally run Thunderbird.
Neither program cares that I have also used the other to read my mail.


-- 
Neil Bothwick

"If Micro built cars, the worlds population would be in decline"


pgp4UzDS8bqdk.pgp
Description: OpenPGP digital signature


Re: [gentoo-user] Simple installation on BTRFS

2023-07-29 Thread Neil Bothwick
On Sat, 29 Jul 2023 10:47:53 +0100, Michael wrote:

> > I take snapshots every 15 minutes, keeping 5. Then hourly snapshots,
> > keeping 25, daily snapshots keeping 8, weekly keeping 6 and monthly
> > snapshots that I clean manually as space requires.  
> 
> I doubt I will need anything so frequent, these days my data does not
> change often enough.  Daily snapshots should do the trick and I could
> keep more of them.

Snapshots don't take up any space if the data does not change, so
frequent snapshots don't hurt. The biggest impact on snapshot sizes on a
Gentoo system is kernel source package updates.


-- 
Neil Bothwick

Never underestimate the bandwidth of a station wagon full of tapes!


pgpyCuTKqpVdZ.pgp
Description: OpenPGP digital signature


Re: [gentoo-user] Simple installation on BTRFS

2023-07-29 Thread Neil Bothwick
On Fri, 28 Jul 2023 14:57:25 +0100, Michael wrote:

> > I too put everything on subvolumes, and set the one containing / to be
> > the default when mounted without a subvolid.  
> 
> When you say "everything", do you include temporary and virtual
> filesystems too (e.g. /sys, /proc/ /tmp, /run), or do you place these
> in hierarchically lower subvolumes so they are not backed up?

Everything but virtual filesystems, they are still virtual.

> Also, how do you treat /var/db and /var/cache/distfiles?

/var/db is just a directory on /var. I have $DISTDIR on an NFS mount, so
I can share it with all clients.

> How much space do you allocate for snapshots and at what point you
> start moving/deleting older snapshots?

You don't allocate space for them, at least I don't. 

I take snapshots every 15 minutes, keeping 5. Then hourly snapshots,
keeping 25, daily snapshots keeping 8, weekly keeping 6 and monthly
snapshots that I clean manually as space requires.

> I have one SSD and a larger spinning disk. I have a separate partition
> on the SSD for /home, so I could put dm-crypt on this partition alone
> and afford some basic security for personal data against opportunistic
> theft.  No RAID on this box, unless you suggest to create a RAID 1 with
> two partitions, in case the SSD cells go wrong on one of them?
> 
> Without RAID things should be simpler with block device level
> encryption for / home.  But, ... will this work without an initrd?  The
> unencrypted rootfs will be mounted before /home.

You should only need an initrd if / is encrypted. I encrypt everything
except /boot and dracut handles decrypting via an initrd easily.

> I am also not clear on steps I would need to follow in recovery
> operation scenarios and what I must have available to achieve this.  It
> is not as simple as booting with any ol' liveUSB to try to access an
> unecrypted drive/ partition.  I'll need dm-crypt and cryptsetup, or
> ecryptfs-utils and some familiarity with these tools, if I'm not
> reading off my exceptionally well structured notes I had the
> premonition to put together BEFORE the drive went south.  ;-)

systemrescue has all those tools, plus a web browser so you can work out
how to use them :)


-- 
Neil Bothwick

"There are two ways of constructing a software design: One way is to make
it so simple that there are obviously no deficiencies, and the other way
is to make it so complicated that there are no obvious deficiencies.
The first method is far more difficult" -C.A.R. Hoare


pgp9vlqOHQRqM.pgp
Description: OpenPGP digital signature


Re: [gentoo-user] Email clients

2023-07-29 Thread Neil Bothwick
On Sat, 29 Jul 2023 01:29:59 +0100, Peter Humphrey wrote:

> Claws mail is often mentioned hereabouts, and I'd like to try it, but
> first I'd need to export KMail's 20-odd-year maildir history to mbox
> format. Is it enough to run KMail's Import/Export Data tool to do this?
> It should be, on the face of it, but I'm suspicious (consider me
> paranoid if you like).

Claws works with maildir. However, I'd also recommend setting up Dovecot
locally, then you can try as many mail clients as you want without having
to worry about where the mails are sotred or in what format.


-- 
Neil Bothwick

If nothing sticks to Teflon, how do they stick teflon on the pan?


pgpZ5hUmLwj83.pgp
Description: OpenPGP digital signature


Re: [gentoo-user] Simple installation on BTRFS

2023-07-28 Thread Neil Bothwick
On Fri, 28 Jul 2023 08:07:10 +0100, Wols Lists wrote:

> WATCH YOUR FREE DISK. I think it's all sorted now, but whatever you're 
> using it was always a good idea not to go over 90% full. For a very
> long time, a combination of snapshots and a full disk would wedgie the 
> system, such that the only way to free up space was to reformat the 
> entire disk! As I say, I think it's now fixed so you can delete 
> snapshots, but >90% ain't a good idea anyway

That's been fixed for a long time, but you can still run out of space
when old metadata clogs things up. The fix is simple if a little time
consuming and covered in detail in the wiki. As you say though, not
filling up a filesystem is generally the best idea.


-- 
Neil Bothwick

Tact is the intelligence of the heart.


pgpJj3dzdGm3S.pgp
Description: OpenPGP digital signature


Re: [gentoo-user] Simple installation on BTRFS

2023-07-27 Thread Neil Bothwick
On Thu, 27 Jul 2023 14:01:40 -0400, Igor Semyonov wrote:

> I am planning to install gentoo with btrfs over luks on another machine.
> My plan is to use luks to encrypt a drive or partition, then put btrfs
> over it and do things as before with btrfs.
> 
> One thing I am wondering about is: what if I want my btrfs to span
> multiple drives?
> Would I luks encrypt each drive, then open each one before mounting the
> btrfs pool that spans all the luks containers?

Yes, but see my reply to Michael regarding the overhead.

> Would this be possible to do with grub and the initramfs?

Yes.


-- 
Neil Bothwick

Sleep is an excellent way of listening to an opera. - James Stephens
(1882-1950)


pgpbGTHVrVaDM.pgp
Description: OpenPGP digital signature


Re: [gentoo-user] Simple installation on BTRFS

2023-07-27 Thread Neil Bothwick
On Thu, 27 Jul 2023 17:18:14 +0100, Michael wrote:

> Although I've been using btrfs for the best part of 10 years I have not
> really done justice to it, because I have neither explored nor used
> enough most of its features.  I am now thinking of installing Gentoo on
> btrfs again, but this time I want to optimise the structure of btrfs
> subvolumes, to simplify snapshots and backups.
> 
> I see Ubuntu and derivates install the OS root fs under btrfs subvolume
> "@" and /home under subvolume "@home".  This makes storing snapshots of
> the two subvolumes under the btrfs top-volume, which remains unmounted,
> cleaner and reduces the chance of mixing up the fs you may end up in
> and operate on (live, or snapshot).
> 
> I have 3 partitions for /boot(ESP), / and /home, but have not yet
> created additional partitions for general data storage and backups.
> 
> What's your recommended approach and subvolume structure for the
> deployment of btrfs on Gentoo for a personal PC, if the primary
> objective is simplicity in maintenance, combined with ease of fs
> recovery?

I too put everything on subvolumes, and set the one containing / to be
the default when mounted without a subvolid.

> Any gotchas I should be mindful of?
> 
> Your favoured snapshot/backup strategy?

I have a script, I can share it with you if you don't criticise my
coding, that creates and destroys snapshots from cron. Based in principle
on zfs-snapshot but written from scratch.

> The impact of autodefrag on VM performance is noted, but then the
> example given proceeds to mount a subvolume for VM storage with
> 'autodefrag'.  :-/

I disable COW on the subvolume containing my VM disk volumes.

> Encryption is mentioned for VMs "... if the VM uses drive encryption,
> the whole compression strategy gets blown out of the water" but doesn't
> mention what type of encryption, or why/how this presents a problem.
> 
> Given btrfs does not offer fs level encryption, what could/would work
> to encrypt a subvolume, *without* requiring an initrd, or the
> introduction of encryption becoming orthogonal with snapshots and
> backups?  I am not clear on the best strategy and components to achieve
> this.  I'm also concerned of introducing an additional complexity layer
> in trying to recover btrfs when/if fs corruption creeps in.

The lack of encryption is a problem. You have to encrypt the block
device(s) containing btrfs, which means you will need an initrd. It also
means each component of a RAID is encrypted separately. so I only use
encryption on laptops. The alternative is to use ecryptfs for individual
subvolumes or directories.


-- 
Neil Bothwick

If you got the words it does not mean you got the knowledge.


pgpkJpovqLKoi.pgp
Description: OpenPGP digital signature


Re: [gentoo-user] Doubly mounted /boot

2023-07-15 Thread Neil Bothwick
On Sat, 15 Jul 2023 11:46:58 +0400 (GMT+04:00), Sergey Filatov wrote:

> I don't know if vfat is safe to be mounted twice, but to solve this I'd
> go with mount bind. You can use it in /etc/fstab as well. Mount the
> /boot as usual, for /mnt/rescue/boot use /boot as a source and add
> "bind" to options section. This is definitely safer

Just make sure you mount /boot first, otherwise /mnt/rescue/boot will
bind to the empty boot directory on /.


-- 
Neil Bothwick

Politicians are like nappies
Both should be changed regularly, and for the same reason


pgpRmXQLJc7xL.pgp
Description: OpenPGP digital signature


Re: [gentoo-user] Doubly mounted /boot

2023-07-15 Thread Neil Bothwick
On Sat, 15 Jul 2023 03:01:05 +0100, Peter Humphrey wrote:

> Now, my question is: is it safe for me to mount the boot partition on
> /boot and /mnt/rescue/boot simultaneously? The man page hints that it
> is, and I can see them both:
> 
> $ cat /proc/mounts | grep boot
> /dev/sda2 /mnt/rescue/boot vfat
> rw,relatime,fmask=0022,dmask=0022,codepage=850,iocharset=iso8859-1,shortname=mixed,errors=remount-ro
> 0 0 /dev/sda2 /boot vfat
> rw,relatime,fmask=0022,dmask=0022,codepage=850,iocharset=iso8859-1,shortname=mixed,errors=remount-ro
> 0 0

It looks OK, but it might be cleaner to use a bind mount

mount --bind /boot /mnt/rescue/boot


-- 
Neil Bothwick

Don't forget that MS-Windows is just a temporary workaround until you can
switch to a GNU system.


pgpWa6LQMwHG3.pgp
Description: OpenPGP digital signature


Re: [gentoo-user] Highlight certain packages being upgraded

2023-07-14 Thread Neil Bothwick
On Thu, 13 Jul 2023 19:02:25 -0500, Dale wrote:

> Neil Bothwick wrote:
> > On Thu, 13 Jul 2023 02:16:13 -0500, Dale wrote:
> >  
> >>> Then run
> >>>
> >>> emerge --options @world -p --color y | sed -f packages.script
> >>>
> >>> It highlights any of the packages in your file in bright red. See
> >>> https://gist.github.com/fnky/458719343aabd01cfb17a3a4f7296797 for a
> >>> list of colour options.  
> >> Like Wol's idea, that's a extra step.  I was wanting it to just do it
> >> when running emerge -auDN world with no additional steps except
> >> creating the file for the package list.   
> > That is the only extra step, unless you mean that you have to run
> > with -p to see the highlighted output. That takes a lot less time
> > than you have invested in this so far.
> >
> > Actually, I've checked and you can run this with --ask instead or -p,
> > so no extra steps involved. The only limitation is that you don't see
> > the Y/n prompt at the end of the ask output. Create an alias to the
> > command, or wrap it in a script that also runs the sed command first
> > and the number of extra steps becomes exactly zero.
> >
> >  
> 
> And I have no clue how to do any of that.  Like I said, emerge just
> isn't ready for anything like this.  I was hoping there may be some
> option, config file or something that I can use to do this and it just
> work.  I think if there was such a thing, someone would have mentioned
> it long ago.  Maybe one day something like this will be added.  Then
> again, maybe not. 

Just create the list of packages, copy and paste the commands and run the
emerge command I gave. You could add

alias myworld="emerge --options @world | sed -f /etc/portage/packages.script"

to your /etc/profile, then it's a one word command to get what you want.


-- 
Neil Bothwick

There is always one more imbecile than you counted on.


pgp0NfO3ywFU9.pgp
Description: OpenPGP digital signature


Re: [gentoo-user] Highlight certain packages being upgraded

2023-07-13 Thread Neil Bothwick
On Thu, 13 Jul 2023 02:16:13 -0500, Dale wrote:

> > Then run
> >
> > emerge --options @world -p --color y | sed -f packages.script
> >
> > It highlights any of the packages in your file in bright red. See
> > https://gist.github.com/fnky/458719343aabd01cfb17a3a4f7296797 for a
> > list of colour options.

> Like Wol's idea, that's a extra step.  I was wanting it to just do it
> when running emerge -auDN world with no additional steps except creating
> the file for the package list. 

That is the only extra step, unless you mean that you have to run with -p
to see the highlighted output. That takes a lot less time than you have
invested in this so far.

Actually, I've checked and you can run this with --ask instead or -p, so
no extra steps involved. The only limitation is that you don't see the
Y/n prompt at the end of the ask output. Create an alias to the command,
or wrap it in a script that also runs the sed command first and the
number of extra steps becomes exactly zero.


-- 
Neil Bothwick

The considered application of terror is also a form of communication.


pgpdsS9iwJzLS.pgp
Description: OpenPGP digital signature


Re: [gentoo-user] Highlight certain packages being upgraded

2023-07-12 Thread Neil Bothwick
On Sun, 9 Jul 2023 13:10:17 -0500, Dale wrote:

> > Just about every program on this computer does more than I need. What
> > counts is that they do all that I need :)
> >
> > Have you looked at using sed to add extra colour codes to the output
> > of emerge?

> I don't know anything about sed.  Heck, it took me a long to to even get
> started with grep.  ROFL

Try this:

Create a file with the package atoms you want to highlight, one per
line, say packages.txt. Then run this command, you'll need to rerun it
each time you edit the packages list

awk '{print "s:\\("$0"\\):\\x1b[1;31m\\1:"}' packages.txt
>|packages.script

Then run

emerge --options @world -p --color y | sed -f packages.script

It highlights any of the packages in your file in bright red. See
https://gist.github.com/fnky/458719343aabd01cfb17a3a4f7296797 for a list
of colour options.


-- 
Neil Bothwick

If you give a man a fish, he's fed for a day.
If you teach a man to fish, he'll buy a silly hat.
If you talk about fish to a starving man, you're a consultant.


pgpbMc3w5VmSC.pgp
Description: OpenPGP digital signature


Re: [gentoo-user] USE geoclue required

2023-07-09 Thread Neil Bothwick
On Sun, 09 Jul 2023 11:32:54 +0100, Michael wrote:

> The following USE changes are necessary to proceed:
>  (see "package.use" in the portage(5) man page for more details)
> # required by kde-misc/kweather-23.04.2::gentoo
> # required by kde-apps/kdeutils-meta-23.04.2::gentoo
> # required by @selected
> # required by @world (argument)
> >=dev-qt/qtpositioning-5.15.9 geoclue  
> 
> Reverse dependencies of qtpositioning do not contain USE="geoclue":
> 
> # qdepends -r qtpositioning
> dev-qt/qtpositioning-5.15.9: =dev-qt/qtdeclarative-5.15.9* =dev-qt/
> qtcore-5.15.9*
> 
> Setting USE="-geoclue" ends up with the above USE changes message.  I
> have not tried setting /etc/portage/package.mask to block stuff yet.

The kweather ebuild contains this RDEPEND

>=dev-qt/qtpositioning-${QTMIN}:5[geoclue]


-- 
Neil Bothwick

"They that can give up essential liberty to obtain a little
temporary safety, deserve neither liberty nor safety."
Benjamin Franklin


pgpIv0XJuD8S6.pgp
Description: OpenPGP digital signature


Re: [gentoo-user] Highlight certain packages being upgraded

2023-07-09 Thread Neil Bothwick
On Sat, 8 Jul 2023 17:29:58 -0500, Dale wrote:

> I use checkrestart still.  I tried needrestart but it does more than I
> need.

Just about every program on this computer does more than I need. What
counts is that they do all that I need :)

Have you looked at using sed to add extra colour codes to the output of
emerge?


-- 
Neil Bothwick

Growing old is mandatory; growing up is optional!!


pgpuPCH2psBUT.pgp
Description: OpenPGP digital signature


Re: [gentoo-user] Highlight certain packages being upgraded

2023-07-08 Thread Neil Bothwick
On Sat, 8 Jul 2023 15:44:47 -0500, Dale wrote:

> > I have reused the configuration file
> > "/etc/portage/package.env/no_tmpfs.conf"[1], which already contains a
> > list of packages, which need hours to compile.
> >
> > -Ramon
> >
> > [1]
> > https://wiki.gentoo.org/wiki/Portage_TMPDIR_on_tmpfs#Per-package_choices_at_compile_time
> >  
> 
> 
> I need more than just packages that take a while to compile. I need a
> list of packages that require large amounts of memory, needs restarting
> after upgrade is done and other things.  I already use notmpfs on a few
> packages.  That works fine.  Things is, I need to know about other
> packages for other reasons as well.  Upgrading nvidia is one.  It uses
> little memory to upgrade but it does require the modules to be
> reloaded. 

You can do a lot with package.env, including sending notifications
to remind you to do this. I also run app-admin/needrestart after each
emerge to list any services that need restarting.


-- 
Neil Bothwick

He who asks a question is a fool for a minute,
He who doesn't ask is a fool for a lifetime.


pgpsm3szqSMFe.pgp
Description: OpenPGP digital signature


Re: [gentoo-user] Highlight certain packages being upgraded

2023-07-08 Thread Neil Bothwick
On Sat, 8 Jul 2023 14:14:46 -0500, Dale wrote:

> Thing is, some of the packages are dependencies of other packages. 
> Excluding them will likely trigger other problems, such as packages not
> being able to upgrade due to others being excluded.  Plus, I'd have to
> run it twice and do two separate upgrades.  Usually, I start the upgrade
> in a chroot, take a nap and it is done when I wake up.  I'd have to
> interrupt my nap for the second set if it is split up. 
> 
> Having it highlight the packages so I can see them easier was a thought,
> just not a good one.  :/ 

But what would you do with the information? If you're just going to see
that there are slow packages there and then carry, what's the point. I
suppose you know you can have a longer nap :)

You could try piping emerge's output through sed to add colour codes
around the packages you want to highlight. How exactly you do this is
left as an exercise for the reader :P


-- 
Neil Bothwick

Q. How many mathematicians does it take to change a light bulb?
A. Only one - who gives it to six Californians, thereby reducing the
problem to an earlier joke.


pgpexWWBa11g_.pgp
Description: OpenPGP digital signature


Re: [gentoo-user] Instrumenting emerges

2023-07-08 Thread Neil Bothwick
On Sat, 08 Jul 2023 15:20:19 +0100, Peter Humphrey wrote:

> Has anyone here developed a utility to record the one-minute load
> average once per minute and log the results? The first bit is easy:
> just cat /proc/loadavg, but the logging has me stumped for the moment.

You could use dev-db/influxdb to record the information and
www-apps/grafana-bin to make pretty pictures with it. I've used this
combination in the past, although long enough ago[1] for the details t
have become fuzzy.

[1] A week seems long enough these days :(


-- 
Neil Bothwick

Of all the people I've met you're certainly one of them


pgp1gp63jKlAu.pgp
Description: OpenPGP digital signature


Re: [gentoo-user] Highlight certain packages being upgraded

2023-07-08 Thread Neil Bothwick
On Sat, 8 Jul 2023 03:33:30 -0500, Dale wrote:

> I was wondering.  Is there a way to highlight certain packages that are
> about to be upgraded?  Example, I like to know when some larger packages
> like Firefox, LOo, that excessively long qt package and a couple others
> are going to be upgraded.  Some that are listed in the world file show
> up in a darker green and are easier to see however, some are not. They
> are dependencies of another package but I'd like to have them stick out
> in the list of packages to be upgraded.  I don't recall ever seeing
> anyone mention this as a feature of emerge or heard of a way to
> configure such a thing either.  That said, it could be possible and just
> not well known. 

If your objective is to update your system without the long build times,
put the atoms of the relevant packages in a file and run

emerge --your-options --exclude "$(cat big-packages.txt)" @world


-- 
Neil Bothwick

"There are two ways to live: you can live as if nothing is a miracle;
 you can live as if everything is a miracle."
 (Albert Einstein)


pgpUITQBNiNxN.pgp
Description: OpenPGP digital signature


Re: [gentoo-user] ip_change_notifier - empty IP address

2023-06-28 Thread Neil Bothwick
On Tue, 27 Jun 2023 18:49:55 -0600, the...@sys-concept.com wrote:

> # Query the API to get the current IP address
> NEW_IP=$(get_ip_address)
> 
> # Retry if the IP address is empty
> retry_count=0
> while [[ -z "$NEW_IP" && $retry_count -lt 3 ]]; do
>  sleep 1
>  NEW_IP=$(get_ip_address)
>  ((retry_count++))
> done

That's better, although I would use a longer sleep to allow for network
issues.


-- 
Neil Bothwick

Documentation: (n.) a novel sold with software, designed to entertain the
   operator during episodes of bugs or glitches.


pgpoZAb5xmB6G.pgp
Description: OpenPGP digital signature


Re: [gentoo-user] ip_change_notifier - empty IP address

2023-06-27 Thread Neil Bothwick
On Tue, 27 Jun 2023 11:48:16 -0600, the...@sys-concept.com wrote:

> On 6/27/23 11:04, Neil Bothwick wrote:
> > On Tue, 27 Jun 2023 10:34:22 -0600, the...@sys-concept.com wrote:
> >   
> >> I run this little script to notify me when the IP changes.  However
> >> at time to time the file: "old_ip.txt" is being populated with an
> >> empty line "no IP address"
> >>
> >> What could be causing it?
> >>
> >>
> >> #!/bin/bash
> >>
> >> # Replace "YOUR_EMAIL" with your actual email address
> >> EMAIL="your_em...@gmail.com"
> >>
> >> # File to store the old IP address
> >> IP_FILE="/home/fd/business/scripts/old_ip.txt"
> >>
> >> # Read the old IP address from the file
> >> OLD_IP=$(cat "$IP_FILE")
> >>
> >> # Function to retrieve the IP address
> >> get_ip_address() {
> >>   local ip_address
> >>   ip_address=$(curl -s https://ifconfig.me/ip)
> >>   echo "$ip_address"
> >> }
> >>
> >> # Query the API to get the current IP address
> >> NEW_IP=$(curl -s https://api.ipify.org)  
> > 
> > I found this site very slow to respond. It could be timing out with an
> > empty result. OTOH the URL used in the get_ip_address function is
> > rapid, but you don't call that function.
> >   
> >>
> >> sleep 2  
> 
> Yes, I notice it, it take upwards 10sec to get an IP and sometimes I
> get a timeout, I increases "sleep 15" hopefully it will help.

It won't because the curl command is running synchronously. All
increasing the sleep does is make you wait longer after it fails. Why not
simply switch to the other service that seems to work more reliably?


-- 
Neil Bothwick

If someone with multiple personalities threatens to kill himself, is it
considered a hostage situation?


pgpLsmerRR4LQ.pgp
Description: OpenPGP digital signature


Re: [gentoo-user] ip_change_notifier - empty IP address

2023-06-27 Thread Neil Bothwick
On Tue, 27 Jun 2023 10:34:22 -0600, the...@sys-concept.com wrote:

> I run this little script to notify me when the IP changes.  However at
> time to time the file: "old_ip.txt" is being populated with an empty
> line "no IP address"
> 
> What could be causing it?
> 
> 
> #!/bin/bash
> 
> # Replace "YOUR_EMAIL" with your actual email address
> EMAIL="your_em...@gmail.com"
> 
> # File to store the old IP address
> IP_FILE="/home/fd/business/scripts/old_ip.txt"
> 
> # Read the old IP address from the file
> OLD_IP=$(cat "$IP_FILE")
> 
> # Function to retrieve the IP address
> get_ip_address() {
>  local ip_address
>  ip_address=$(curl -s https://ifconfig.me/ip)
>  echo "$ip_address"
> }
> 
> # Query the API to get the current IP address
> NEW_IP=$(curl -s https://api.ipify.org)

I found this site very slow to respond. It could be timing out with an
empty result. OTOH the URL used in the get_ip_address function is rapid,
but you don't call that function.

> 
> sleep 2
> 
> # Compare the new IP address with the old one
> if [[ "$NEW_IP" != "$OLD_IP" ]]; then
>  echo "Your IP address has changed to $NEW_IP"
> 
>  # Send an email notification
>  echo "New IP address: $NEW_IP" | mailto -s "IP address change"
> $EMAIL
> 
>  # Allow overwriting of the file
>  set +o noclobber
> 
>  # Update the old IP address in the file
> # printf "%s" "$NEW_IP" > "$IP_FILE"
>   echo -n "$NEW_IP" > "$IP_FILE"
> 
>  # Restore the noclobber option
>  set -o noclobber

You don't need to play with the noclobber option, just use >| for
redirection, which will always overwrite the file.

> 
> else
>  echo "Your IP address is still $OLD_IP"
> fi
> 
> 




-- 
Neil Bothwick

Linux like wigwam. No windows, no gates, Apache inside.


pgpW1QIVucn30.pgp
Description: OpenPGP digital signature


Re: [gentoo-user] KWallet refuses to auto open at login

2023-06-11 Thread Neil Bothwick
On Sun, 11 Jun 2023 13:47:44 +0100, Victor Ivanov wrote:

> > Does a new user account work the way it is supposed to?
> >  
> Unfortunately, no. New accounts also get the same broken behaviour.

Anything in the logs? Maybe someting to indicate whether PAM is trying to
open the wallet and failing, or whether it is not trying at all.


-- 
Neil Bothwick

Why is there an expiration date on sour cream?


pgpYWNIIl3any.pgp
Description: OpenPGP digital signature


Re: [gentoo-user] emerge conflict. Need help. ffmpeg, kpipewire, handbrake, ffmpegthumbnailer and others.

2023-06-05 Thread Neil Bothwick
On Sun, 4 Jun 2023 22:21:54 +0200, Arve Barsnes wrote:

> > Doing my updates, most things updated but some still have conflicts.
> > Emerge is trying to tell me but I use Konsole and I think it messes up
> > the ^ bit and points to the wrong thing.  I'm thinking this is a
> > USE flag problem but I can't tell for sure.  Anyone else recognize
> > this and make sense of it?  I recently switched to the pipewire thing
> > and that could be part of it, maybe.  It's among those mentioned at
> > least.
> >
> > Ideas?  Thoughts??  
> 
> It seems opencascade and handbrake are the culprits for you, blocking
> the ffmpeg upgrade, in your output they require  a newer handbrake version that uses ffmpeg 5, but it is not in
> ::gentoo, so maybe check for a newer version in an overlay or on
> b.g.o.

According to b.g.o the  version of HandBrake works with the new
ffmpeg. I just package.masked ffmpeg-5.1.3 for now.

> Maybe the same is true for opencascade.

libopenshot is also affected here.


-- 
Neil Bothwick

Quick!! Act as if nothing has happened!


pgpY75FtiO_Y2.pgp
Description: OpenPGP digital signature


Re: [gentoo-user] Systemd query ...

2023-05-16 Thread Neil Bothwick
On Tue, 16 May 2023 20:03:36 +0200, Jacques Montier wrote:

> It was very difficult to get Apache working with systemd Gentoo.
> No apache2.service found with apache installation.

Really?

% qfile apache2.service
www-servers/apache: /lib/systemd/system/apache2.service

> so i looked at the Linux Mint OS to copy the apache2.service.
> These commands
> 
> ExecStart=/usr/sbin/apachectl start
> ExecStop=/usr/sbin/apachectl graceful-stop
> ExecReload=/usr/sbin/apachectl graceful
> 
> did not work at all...

% systemctl cat apache2.service 
# /lib/systemd/system/apache2.service
[Unit]
Description=The Apache HTTP Server
After=network.target remote-fs.target nss-lookup.target

[Service]
EnvironmentFile=/etc/conf.d/apache2
ExecStart=/usr/sbin/apache2 $APACHE2_OPTS -DFOREGROUND
ExecReload=/usr/sbin/apache2 $APACHE2_OPTS -k graceful
ExecStop=/usr/sbin/apache2 $APACHE2_OPTS -k graceful-stop
# We want systemd to give httpd some time to finish gracefully, but still
want # it to kill httpd after TimeoutStopSec if something went wrong
during the # graceful stop. Normally, Systemd sends SIGTERM signal right
after the # ExecStop, which would kill httpd. We are sending useless
SIGCONT here to give # httpd time to finish.
KillSignal=SIGCONT
PrivateTmp=true
#Hardening
CapabilityBoundingSet=CAP_CHOWN CAP_SETGID CAP_SETUID CAP_DAC_OVERRIDE CAP_KILL 
CAP_NET_BIND_SERVICE CAP_IPC_LOCK
SecureBits=noroot-locked
ProtectSystem=full
PrivateDevices=true
MemoryDenyWriteExecute=true

[Install]
WantedBy=multi-user.target


-- 
Neil Bothwick

K: (n., adj.) a binary thousand, which isn't a decimal thousand or even
really a binary thousand (which is eight), but is the binary number
closest to a decimal thousand. This has proven so completely confusing
that it has become a standard.


pgpuqHNUVm4hR.pgp
Description: OpenPGP digital signature


Re: [gentoo-user] using Wifi in a new machine

2023-05-11 Thread Neil Bothwick
On Wed, 10 May 2023 21:42:16 -0400, Philip Webb wrote:

> Can anyone explain how I can get Wifi working at this early point
> in the installation process ?

There's an example of using WPA from the command line at

https://nixos.org/manual/nixos/stable/#sec-installation-manual-networking

-- 
Neil Bothwick

I'm not anti-social, I'm just not user friendly


pgpArp5i8eYy1.pgp
Description: OpenPGP digital signature


Re: [gentoo-user] Portage load control

2023-05-08 Thread Neil Bothwick
On Sun, 07 May 2023 17:00:16 +0100, Peter Humphrey wrote:

> Everybody keeps explaining how the system is supposed to work. I know
> all that, as I said last time.
> 
> The problem is that PORTAGE IS NOT DOING WHAT IT'S SUPPOSED TO.

I see the same at times. I realise that portage can only look at the load
at the time it starts another package, it has no control over what
happens after that, but they way your system seems to stick to a limit,
just not the one you set, seems strange.

> I don't like to shout, but I don't know how else to get the point
> across.

Maybe you should take this to bgo where it can be flagged for the portage
devs to look at, just keep us posted on the outcome.


-- 
Neil Bothwick

I'd tell you a UDP joke, but you may not get it.


pgphD_ta396WI.pgp
Description: OpenPGP digital signature


Re: [gentoo-user] Invalid atom in /etc/portage/package.unmask: =app-text/evince-44.1 ~amd64

2023-05-03 Thread Neil Bothwick
On Tue, 2 May 2023 15:14:56 -0600, the...@sys-concept.com wrote:

> >> Invalid atom in /etc/portage/package.unmask: =app-text/evince-44.1
> >> ~amd64
> >>
> >> What is it looking for?  
> > 
> > Try getting rid of space followed by ~amd64 and see how that works.  
> 
> There are no spaces at the end of the line:
> 
> /etc/portage/package.unmask
> =app-text/evince-44.1 ~amd64

You have put an accept_keywords entry in the unmask file. Unmask entries
contain only an atom, there should be no arch (~amd64).


-- 
Neil Bothwick

If bankers can count, how come they have eight windows and only four
tellers?


pgp_yXhs4TwoW.pgp
Description: OpenPGP digital signature


Re: [gentoo-user] file system for new machine

2023-04-27 Thread Neil Bothwick
On Thu, 27 Apr 2023 15:54:34 +0200, tastytea wrote:

> btrfs and zfs have some useful features for normal use cases. the
> transparent compression can save a lot of space and even increase speed
> in some cases, the checksumming guarantees that you will never get a
> corrupt file

That's only true if you use RAID, when there is a good copy to use. If
you have a single disk, they can only let you know a file is corrupt but
not restore it.


-- 
Neil Bothwick

Tact is for people who don't understand sarcasm.


pgpWHrwjmNWoJ.pgp
Description: OpenPGP digital signature


Re: [gentoo-user] How to set umask for entire Gnome session

2023-04-27 Thread Neil Bothwick
On Wed, 26 Apr 2023 21:56:23 -0300, Jorge P. de Morais Neto wrote:

> > Do you have a separate filesystem for /home? If so, the simplest
> > option is to set umask in its mount options in fstab. This will
> > affect all users, except root, and it won't affect files you write
> > outside of $HOME.  
> 
> That is not documented in the mount manpage as a filesystem-independet
> option; it only shows for specific filesystems, none of which I use.

That's because it is not filesystem-independent.

> Anyway, I use Btrfs and I have a separate subvolume for /home.  I have
> tried adding umask=077 (later umask=0077) as fstab option and invoking #
> 
> # mount -o remount /home
> 
> but in both cases it errored out:

Because btrfs does not have that option.

> mount: /home: mount point not mounted or bad option.
>dmesg(1) may have more information after failed mount system
> call.
> 
> dmesg says:
> 
> BTRFS error (device nvme0n1p7: state M): unrecognized mount option
> 'umask=077'

As it says.

I think ACLs may be a better fit for your needs.


-- 
Neil Bothwick

Synonym: a word you use when you can't spell the other one.


pgpp2N_pKLDv2.pgp
Description: OpenPGP digital signature


Re: [gentoo-user] How to set umask for entire Gnome session

2023-04-25 Thread Neil Bothwick
On Tue, 25 Apr 2023 15:30:37 -0300, Jorge P. de Morais Neto wrote:

> I now want to change my user's umask from 022 to 027, so new files and
> directories will also be secure.  I have tried adding to ~/.profile the
> line
> 
> umask 027

That sets the umask for the shell that runs the profile file, not for
your GNOME session.

> 
> and rebooting but it did not work.  I tested by, in Emacs (launched from
> Gnome), creating a new file in my Home and it did not respect the 027
> umask.
> 
> So, how do I change my user's umask for the entire Gnome session?

Do you have a separate filesystem for /home? If so, the simplest option
is to set umask in its mount options in fstab. This will affect all
users, except root, and it won't affect files you write outside of $HOME.



-- 
Neil Bothwick

She's fine, upstanding, and wonderful laying down.


pgp396Qw2dOxd.pgp
Description: OpenPGP digital signature


Re: [gentoo-user] text output from the kernel during boot is not showing

2023-04-25 Thread Neil Bothwick
On Tue, 25 Apr 2023 09:42:55 -0600, the...@sys-concept.com wrote:

> > What setting is the kernel actually being told to use for screen
> > resolution? What is the output of cat /proc/cmdline.
> > 
> > This sounds like it could be something to do with kernel modesetting.
> >  
> 
> I'm getting:
>   cat /proc/cmdline
> BOOT_IMAGE=/vmlinuz-6.1.19-gentoo
> root=PARTUUID=33fd3594-68f7-e143-842a-cdade6d25e34 ro
> 
> Have similar output like on my other systems.
> 
> Wold removing from grub :  GRUB_GFXMODE=1024x768x32
> solve the problem.  I think it would go to default mode: 640x480

That sets the resolution for the GRUB menu. If you can see that but the
kernel boot messages don't display, you may find adding nomodeset to the
boot options helps. More info at

https://wiki.archlinux.org/title/kernel_mode_setting#Disabling_modesetting


-- 
Neil Bothwick

If at first you don't suceed, try the switch marked "Power"


pgp45D1MgLQ7Q.pgp
Description: OpenPGP digital signature


Re: [gentoo-user] text output from the kernel during boot is not showing

2023-04-25 Thread Neil Bothwick
On Mon, 24 Apr 2023 16:02:33 -0600, the...@sys-concept.com wrote:

> > Consider uncommenting this line and running sudo update-grub  
> 
> Why should I uncommenting this line with an empty parameter?
> GRUB_CMDLINE_LINUX_DEFAULT=""
> 
> >  > # The resolution used on graphical terminal.
> >  > # Note that you can use only modes which your graphic card
> >  >supports via VBE. # You can see them in real GRUB with the command
> >  >`vbeinfo'.
> >  > #GRUB_GFXMODE=640x480
> >  > GRUB_GFXMODE=1024x768x32  
> 
> GRUB_GFXMODE=1024x768x32 was there before and it run perfectly find
> with older kernel: linux-5.10.103-gentoo Just after upgrading to
> kernel-6.1.19 it happened

What setting is the kernel actually being told to use for screen
resolution? What is the output of cat /proc/cmdline.

This sounds like it could be something to do with kernel modesetting.


-- 
Neil Bothwick

Men who go out with flat chested woman have reasons for feeling down


pgp2xLtInQ9fw.pgp
Description: OpenPGP digital signature


Re: [gentoo-user] Another week without chromium.

2023-04-21 Thread Neil Bothwick
On Fri, 21 Apr 2023 13:03:51 -0400, Alan Grimes wrote:

> I've already pruned everything sus out of my home directory... I'm at a 
> total loss.. This is insane at this point!!! I've been updating my 
> system daily hoping that this will be fixed upstream... =(
> 
Have you tried as a different user, or with --user-data-dir pointing to
an empty directory, to ignore all your current configurations. It may be
an extension causing this, a core problem with chromium is likely to have
gained attention very quickly.


-- 
Neil Bothwick

Top Oxymorons Number 42: Airline Food


pgpmNy_34EYjO.pgp
Description: OpenPGP digital signature


Re: [gentoo-user] Nvidia-drivers fails to patch

2023-04-21 Thread Neil Bothwick
On Fri, 21 Apr 2023 09:55:24 -0500, Dale wrote:

> >> Also, I switch to the current kernel, it failed in the same way.  It
> >> isn't just the new kernel, it seems to be any of them.  I wonder how
> >> hard it is to switch to that other driver.  From the wiki page, it
> >> looks like a big deal.   
> > Not really, AFAIR. You just enable nouveau drivers in your kernel
> > config, uninstall the nvidia package and reboot. This assumes you
> > haven't got any direct references to the nvisia driver in
> > /etc/xorg.conf*.

> I think, pretty much certain, I have it set to nvidia in xorg.conf. 
> This is a old install.  If I recall correctly, I have to change that. 
> Also, I'd need to edit make.conf I think.  I read the wiki thingy a few
> times.  It's mostly undoing things but with the age of this install, I
> don't think my old way is the new way.  Yep.  I'm getting better at
> grep.  lol
> 
> root@fireball / # cat /etc/X11/xorg.conf | grep driver
>     Driver "mouse"
>     Driver "kbd"
>     Driver "nvidia"

xorg.conf is often unnecessary these days. I only have a file in
xorg.conf.d to switch the buttons on my trackball.

> root@fireball / #cat /etc/make.conf | grep video_cards
> VIDEO_CARDS="nvidia vesa"
> root@fireball / #
> 
> I think I'd have to change those.  It may or may not rebuild some
> packages.  Would I need to leave out vesa or OK to leave it in?

You'll need to replace nvidia with nouveau here, leave in vesa as a
fallback.

The worst that can happen is that X fails to start and you need to
re-emerge the nvidia drivers, which you quickpkg'd of course.


-- 
Neil Bothwick

This is as bad as it can get; but don't bet on it.


pgp76AGQEPv1X.pgp
Description: OpenPGP digital signature


Re: [gentoo-user] Nvidia-drivers fails to patch

2023-04-21 Thread Neil Bothwick
On Thu, 20 Apr 2023 20:33:22 -0500, Dale wrote:

> Also, I switch to the current kernel, it failed in the same way.  It
> isn't just the new kernel, it seems to be any of them.  I wonder how
> hard it is to switch to that other driver.  From the wiki page, it looks
> like a big deal. 

Not really, AFAIR. You just enable nouveau drivers in your kernel config,
uninstall the nvidia package and reboot. This assumes you haven't got any
direct references to the nvisia driver in /etc/xorg.conf*.


-- 
Neil Bothwick

New sig wanted good price paid.


pgp7HlTOyzzcT.pgp
Description: OpenPGP digital signature


Re: [gentoo-user] Nvidia-drivers fails to patch

2023-04-21 Thread Neil Bothwick
On Fri, 21 Apr 2023 03:58:11 -0500, Dale wrote:

> I did a emerge -ef nvidia-drivers and it still fails.  I was hoping that
> would pick up the needed files.  Guess not.  I decided to do some more
> digging.  I noticed that the same version is still in the tree.  I
> copied the ebuild a while back to a local overlay to make sure I don't
> lose it.  It seems emerge gives my local overlay priority over the one
> in the tree.  I renamed the ebuild in my overlay with .old tacked on. 
> It emerges fine after that since it uses the ebuild in the tree.  It
> seems my overlay is broken somehow.  Likely a design improvement.  ;-) 

That's the default by design. If you copy an ebuild to your overlay, it's
usually because you want to make changes to it, so it should be given
priority. You can change the priority of overlays in
/etc/portage/repos.conf, or you can simply mask the overlay version.


-- 
Neil Bothwick

Dream as if you'll live forever. Live as if you'll die today.


pgptWnU_q8g1I.pgp
Description: OpenPGP digital signature


Re: [gentoo-user] Can some config files be automatically protected from etc-update?

2023-04-18 Thread Neil Bothwick
On Tue, 18 Apr 2023 05:55:49 +0100, Wols Lists wrote:

> On 17/04/2023 19:26, Walter Dnes wrote:
> >Now that the (no)multilib problem in my latest update has been
> > solved, I have a somewhat minor complaint.  Can I get etc-update to
> > skip certain files?  My latest emerge world wanted to "update"...
> > 
> > 1) /etc/hosts (1)
> > 2) /etc/inittab (1)
> > 3) /etc/mtab (1)
> > 4) /etc/conf.d/consolefont (1)
> > 5) /etc/conf.d/hwclock (1)
> > 6) /etc/default/grub (1)
> > 7) /etc/ssh/sshd_config (1)
> > 
> > ...hosts is critical for networking.  consolefont allows me tp use the
> > true text console with a readable font, etc, etc.  I have my reasons
> > for making certain settings, and keeping them that way.
> >   
> I had it want to update grub. Which would have utterly borked my system 
> the moment I updated my kernel.
> 
> Okay, the problem is where you mix user and system config in the same 
> file, but this would have deleted lvm and mdadm from my boot config, 
> rendering any kernel unbootable. :-(
> 
> Like it tried to update postfix many moons ago and would have destroued 
> my mail config ...
> 
> Surely there's some way of fixing this ...

You could have a post-install hook in /etc/portage/env/$CAT/$PKG for each
of the affected files,  something like

post_pkg_postinst() {
  rm -f /etc/._cfg_hosts
}

You'll need to check the syntax as it's a while since I've used this.


-- 
Neil Bothwick

Life's a cache, and then you flush...


pgpAXMXm6uLuW.pgp
Description: OpenPGP digital signature


Re: [gentoo-user] Failed to emerge x11-libs/libwnck-43.0-r1

2023-04-15 Thread Neil Bothwick
On Sat, 15 Apr 2023 07:48:15 -0600, the...@sys-concept.com wrote:

> Trying to update the system but I fails at
> 
> Failed to emerge x11-libs/libwnck-43.0-r1
> 
> Here is the output:
> 
>   * Applying user patches from /etc/portage/patches ...
>   * Applying diffs.patch ...

You have a patch file in /etc/portage/patches that is probably no longer
needed/valid. Either remove it or rename the directory containing it to
specify the currently installed version but exclude the new version.


-- 
Neil Bothwick

If you got the words it does not mean you got the knowledge.


pgpVPjsoP2hiD.pgp
Description: OpenPGP digital signature


Re: [gentoo-user] xfce4 automount usb doesn't work

2023-04-13 Thread Neil Bothwick
On Thu, 13 Apr 2023 21:22:42 +0100, Wol wrote:

> Dunno as I'd define it as "works correctly". Works as desired, sure. My 
> system (KDE) throws a pop-up up that says "what do you want to do?". 
> That, I think, is the default with which I am quite happy.
> 
> I'd rather (for *KNOWN* usb-sticks) put an entry in fstab.

KDE has an option to automount known devices when they are plugged in or
on boot, while others give the popup.


-- 
Neil Bothwick

The horizon of many people is a circle with a radius of zero. They call
this their point of view.
-- Albert Einstein


pgpdM4DqEUT3V.pgp
Description: OpenPGP digital signature


Re: [gentoo-user] emerge -U or emerge -N

2023-04-11 Thread Neil Bothwick
On Tue, 11 Apr 2023 10:18:13 -0500, Dale wrote:

> >> When I say deeper, I mean it will find more packages that may not be
> >> found otherwise.  
> > And -e finds even more - but more is not always better. -U was
> > introduced because -N was causing too many packages to be rebuilt
> > unnecessarily.

> Before those options came along, I would run emerge -e world to fix
> problems.  Sometimes revdep-rebuild would catch things but sometimes it
> wouldn't.  Thing is, since I started using the current options, I have
> few problems with package upgrades.  Sure, they have a known bug on
> occasion but recompiling won't help that.  I'm just talking about
> problems with one package not matching up with some other package and
> recompile fixes it. 
> 
> To me, the fact it works so much better tells me I'm doing something
> right.  Other people may get different results but as long as what I'm
> doing works, I don't plan to change anything. 

-N works, it just creates extra work. If you are happy with that, there's
no need to change.


-- 
Neil Bothwick

There are two hard things in computer science:
cache invalidation, naming things and off-by-one errors.


pgp3tqCYjPe6V.pgp
Description: OpenPGP digital signature


Re: [gentoo-user] emerge -U or emerge -N

2023-04-11 Thread Neil Bothwick
On Tue, 11 Apr 2023 06:30:47 -0500, Dale wrote:

> > -U: if a package doesn't need to be updated on your system today,
> > it'll be left until it does.
> >
> > -N: if any USE flag at all has changed in a package, it'll be
> > recompiled, whether it needs to be on your system or not.
> >  
> 
> 
> When I say deeper, I mean it will find more packages that may not be
> found otherwise.

And -e finds even more - but more is not always better. -U was introduced
because -N was causing too many packages to be rebuilt unnecessarily.


-- 
Neil Bothwick

"Logic will get you from A to B. Imagination will take you everywhere."
 (Albert Einstein)


pgpqMA91uTQ4P.pgp
Description: OpenPGP digital signature


Re: [gentoo-user] Portage 'Completed (m of n)' messages

2023-04-11 Thread Neil Bothwick
On Tue, 11 Apr 2023 11:59:08 +0100, Peter Humphrey wrote:

> What does the panel think of these new status messages from portage
> (~amd64)? At first I thought "that's useful", but after a while I
> concluded that it just adds to the clutter on the screen and actually
> impedes my ability to follow progress.

I like it. Previously, I had to wait for the completed counter to
increment before knowing that installation of a package was complete.
It's handy if you need to interrupt an emerge session and don't want to
do it just before Chromium has finished installing :-O

> Perhaps I'm just being a Grumpy Old Man (tm).

See above, some Grumpy Old Men like it ;-)


-- 
Neil Bothwick

Some cause happiness wherever they go. Others whenever they go.


pgp4HNzukR9Us.pgp
Description: OpenPGP digital signature


Re: [gentoo-user] emerge -U or emerge -N

2023-04-11 Thread Neil Bothwick
On Mon, 10 Apr 2023 22:10:32 -0600, the...@sys-concept.com wrote:

> !'ve asked ChatGPT for explanation and here is what I got:
> 
> Here are the differences between emerge -U and emerge -N:
> 
> emerge -U: This option upgrades the specified package(s) to the latest
> available version. It will first download the new version, then build
> and install it. If a dependency of the package being upgraded also
> needs to be upgraded, it will also be upgraded.
> 
> emerge -N: This option installs the specified package(s) without
> upgrading any dependencies. It will only download and install the
> package(s) if they are not already installed. If any dependencies of
> the package(s) are not already installed, the command will fail.

So now we kn ow, ChatGPT is case-insensitive, it gave you answers for -u
and -n.

It's probably easier to read the man page than ask a bot to make a guess :( 


-- 
Neil Bothwick

Hyperbole is absolutely the worst mistake you can possibly make


pgppjQANgv7wq.pgp
Description: OpenPGP digital signature


Re: [gentoo-user] Re: emerge -U or emerge -N

2023-04-11 Thread Neil Bothwick
On Tue, 11 Apr 2023 01:49:50 - (UTC), Grant Edwards wrote:

> > I always do both except I use the lower case 'u'. I started using
> > Gentoo back in 2003.  Over the years, I added/changed options to
> > emerge until I got a good sane system that works as expected and is
> > stable. My command is emerge -auDN world and it has worked for years.
> >  
> 
> Once upon a time, a little over 20 years ago, I did some studying, and
> I searched mailing lists postings for recommendations, and I settled
> on
> 
>   emerge -auvND 

I used that for a while, except like Dale I prefer to not use -v (I like
the quiet life) but I switched to -U (--changed-use) to lower the number
of unnecessary rebuilds.


-- 
Neil Bothwick

Confucius say :
He who play in root, eventually kill tree!


pgpOcU12fvhNH.pgp
Description: OpenPGP digital signature


Re: [gentoo-user] net-libs/webkit-gtk-2.38.5 and net-libs/webkit-gtk-2.38.5-r500

2023-04-10 Thread Neil Bothwick
On Sun, 9 Apr 2023 14:37:26 -0600, the...@sys-concept.com wrote:

> My system pulled IN two versions of webkit-gtk (slot 4 and 5)
> net-libs/webkit-gtk-2.38.5
> net-libs/webkit-gtk-2.38.5-r500
> 
> Running:
> equery d =net-libs/webkit-gtk-2.38.5-r500
>   * These packages depend on net-libs/webkit-gtk-2.38.5-r500:
> app-office/gnucash-4.8 (net-libs/webkit-gtk:4/37)
> net-libs/libproxy-0.4.18 (webkit ? net-libs/webkit-gtk:4)
> 
> equery d =net-libs/webkit-gtk-2.38.5
>   * These packages depend on net-libs/webkit-gtk-2.38.5:
> app-office/gnucash-4.8 (net-libs/webkit-gtk:4/37)
> net-libs/libproxy-0.4.18 (webkit ? net-libs/webkit-gtk:4)
> 
> Which package is pulling IN slotted version?

Use emerge instead of equery, it gives better, if slower, results:

emerge -cpv webkit-gtk:4
emerge -cpv webkit-gtk:5


-- 
Neil Bothwick

Q. Why do women have orgasms?
A: It gives them one extra reason to moan.



  1   2   3   4   5   6   7   8   9   10   >